Move remaining S390 code out of nptl/.
[platform/upstream/glibc.git] / ChangeLog
1 2014-06-26  Roland McGrath  <roland@hack.frob.com>
2
3         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
4         folded into ...
5         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
6         * sysdeps/unix/sysv/linux/s390/Versions
7         (libpthread: GLIBC_2.19): New version set.
8         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
9         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
10         (librt: GLIBC_2.3.3): New version set.
11         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
12         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
13         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
14         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
15         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
16         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
17         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
18         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
19         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
20         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
21         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
22         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
23         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
24         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
25         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
26         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
27         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
28         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
30         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
31         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
32         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
33         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
34         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
35         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
36         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
37         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
38         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
39         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
40         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
41         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
42         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
43         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
44         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
45         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
46         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
47         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
48         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
49         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
50         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
51         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
52         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
53         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
54         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
55         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
56
57         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
58         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
59         (__libc_vfork): Define the function under this name.
60         [!NOT_IN_libc] (__vfork): Make this an alias.
61         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
62         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
63         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
64         (__libc_vfork): Define the function under this name.
65         [!NOT_IN_libc] (__vfork): Make this an alias.
66         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
67         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
68         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
69         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
70         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
71         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
72
73         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
74         code that was previously under [RESET_PID].
75         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
76         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
77         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
78
79         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
80         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
81         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
82         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
83         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
84         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
85         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
86         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
87         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
88         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
89         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
90         Moved ...
91         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
92         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
93         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
94         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
95         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
96         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
97         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
98         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
99         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
100         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
101         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
102         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
103         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
104         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
105         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
106         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
107         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
108         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
109         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
110         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
111         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
112         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
113         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
114         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
115         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
116         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
117         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
118         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
119         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
120
121 2014-06-25  Roland McGrath  <roland@hack.frob.com>
122
123         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
124         that was previously under [RESET_PID].
125         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
126
127 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
128
129         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
130         not undefine and redefine.
131         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
132         [O_CLOEXEC]: Make code unconditional.
133         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
134         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
135         <kernel-features.h>.
136         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
137         conditional variable definition.
138         (shm_open) [O_CLOEXEC]: Make code unconditional.
139         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
140         code.
141
142         * configure.ac (USE_REGPARMS): Don't define here.
143         * configure: Regenerated.
144         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
145         * sysdeps/i386/configure: Regenerated.
146
147         * nptl/createthread.c: Don't include kernel-features.h.
148         * nptl/pthread_cancel.c: Likewise.
149         * nptl/pthread_condattr_setclock.c: Likewise.
150         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
151         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
152         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
153         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
154         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
155         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
156         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
157         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
158         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
159         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
160         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
161         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
162         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
163         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
164         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
165         * nscd/gai.c: Likewise.
166         * nss/nss_db/db-open.c: Likewise.
167         * sysdeps/generic/ldsodefs.h: Likewise.
168         * sysdeps/sh/nptl/tls.h: Likewise.
169         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
170         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
171         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
172         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
173         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
174         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
175         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
176         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
177         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
178         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
179         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
180         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
181         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
182         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
183         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
184         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
185         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
186         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
187         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
188         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
189         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
190         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
191         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
192         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
193         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
194         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
195         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
196         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
197         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
198         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
199         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
200         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
201         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
202         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
203         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
204         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
205         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
206         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
207         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
208         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
209         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
210         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
211         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
212         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
213         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
214         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
215         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
216         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
217         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
218         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
219         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
220         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
221         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
222         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
223         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
224         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
225         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
226         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
249         * sysdeps/unix/sysv/linux/pread.c: Likewise.
250         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
251         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
252         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
253         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
254         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
255         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
256         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
257         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
258         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
259         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
260         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
261         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
262         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
263         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
264         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
265         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
266         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
267         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
268         * sysdeps/unix/sysv/linux/system.c: Likewise.
269         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
270         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
271         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
272         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
273         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
274         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
275         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
276
277         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
278         * configure: Regenerated.
279         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
280
281         * configure.ac (base_machine): Do not set specially for particular
282         machines here.
283         * configure: Regenerated.
284         * sysdeps/powerpc/preconfigure: Move machine and base_machine
285         settings from configure.ac.
286         * sysdeps/i386/preconfigure: New file.
287         * sysdeps/s390/preconfigure: Likewise.
288         * sysdeps/sh/preconfigure: Likewise.
289         * sysdeps/sparc/preconfigure: Likewise.
290
291 2014-06-25  Roland McGrath  <roland@hack.frob.com>
292
293         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
294         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
295         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
296         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
297         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
298         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
299         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
300         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
301         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
302         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
303         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
304         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
305         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
306         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
307         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
308         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
309         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
310         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
311         * sysdeps/sparc/sparc64/Makefile: ... appended here.
312
313         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
314         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
315         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
316         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
317         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
318         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
319         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
320         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
321         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
322         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
323         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
324         * sysdeps/sparc/sparc32/sem_post.c: ... here.
325         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
326         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
327         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
328         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
329         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
330         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
331         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
332         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
333         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
334         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
335         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
336         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
337         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
338         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
339         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
340         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
341         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
342         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
343         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
344         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
345         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
346         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
347         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
348         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
349         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
350         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
351
352         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
353         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
354         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
355         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
356         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
357         Moved ...
358         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
359         ... here.
360         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
361         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
362         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
363         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
364         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
365         Moved ...
366         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
367         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
368         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
369         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
370         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
371         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
372         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
373         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
374         Moved ...
375         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
376         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
377         Moved ...
378         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
379         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
380         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
381         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
382         Moved ...
383         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
384         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
385         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
386         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
387         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
388         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
389         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
390         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
391         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
392         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
393         Moved ...
394         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
395         ... here.
396         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
397         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
398         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
399         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
400         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
401         Moved ...
402         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
403         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
404         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
405         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
406         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
407         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
408         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
409         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
410         Moved ...
411         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
412         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
413         Moved ...
414         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
415         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
416         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
417         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
418         Moved ...
419         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
420         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
421         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
422         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
423         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
424
425 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
426
427         * timezone/checktab.awk: Update from tzcode 2014e.
428         * timezone/private.h: Likewise.
429         * timezone/tzfile.h: Likewise.
430         * timezone/zdump.c: Likewise.
431         * timezone/zic.c: Likewise.
432
433         * sysdeps/unix/sysv/linux/kernel-features.h
434         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
435         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
436         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
437         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
438         Remove conditional code.
439
440 2014-06-25  Will Newton  <will.newton@linaro.org>
441
442         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
443         (_dl_arm_cap_flags): Add HWCAP2 values.
444         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
445         (_DL_HWCAP_COUNT): Increase to 37.
446         (_DL_HWCAP_LAST): New define.
447         (_DL_HWCAP2_LAST): New define.
448         (_dl_procinfo): Add support for printing
449         AT_HWCAP2 entries.
450         (_dl_string_hwcap): Use _dl_hwcap_string.
451
452 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
453
454         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
455
456 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
457
458         * README: Do not mention ports directory.
459
460         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
461         Remove macro.
462         * sysdeps/unix/sysv/linux/futimes.c: Do not include
463         <kernel-features.h>.
464         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
465         conditional variable definition.
466         (__futimes): Update comment.
467         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
468         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
469
470         [BZ #16560]
471         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
472         arguments close to 0.
473         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
474         Likewise.
475         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
476         Likewise.
477         * math/auto-libm-test-in: Add more tests of exp10.
478         * math/auto-libm-test-out: Regenerated.
479         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
480
481         * sysdeps/unix/sysv/linux/kernel-features.h
482         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
483         * sysdeps/unix/sysv/linux/readv.c: Do not include
484         <kernel-features.h>.
485         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
486         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
487         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
488         unconditional.
489         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
490         conditional code.
491         * sysdeps/unix/sysv/linux/writev.c: Do not include
492         <kernel-features.h>.
493         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
494         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
495         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
496         unconditional.
497         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
498         conditional code.
499
500 2014-06-25  Will Newton  <will.newton@linaro.org>
501
502         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
503         comment changes throughout the file.  Remove checks
504         for HAVE_*_H definitions that are not required.
505         (__gen_tempname): Call abort if an unknown kind value is
506         passed.
507
508 2014-06-25  Andreas Schwab  <schwab@suse.de>
509
510         [BZ #17086]
511         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
512         scalbln, scalblnf, scalblnl in libc.
513
514 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
515
516         [BZ #17086]
517         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
518         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
519         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
520
521 2014-06-24  Roland McGrath  <roland@hack.frob.com>
522
523         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
524         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
525         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
526         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
527         Update #include.
528         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
529         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
530         Update #include.
531         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
532         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
533         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
534         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
535         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
536         * sysdeps/x86/bits/pthreadtypes.h: ... here.
537         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
538         * sysdeps/x86/bits/semaphore.h: ... here.
539         * sysdeps/x86/nptl/elide.h: Moved ...
540         * sysdeps/x86/elide.h: ... here.
541         * sysdeps/x86_64/nptl/Implies: File removed.
542         * sysdeps/i386/nptl/Implies: File removed.
543
544 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
545
546         [BZ #16539]
547         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
548         return the argument for normal arguments with exponent below -64.
549         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
550         Likewise.
551         * math/auto-libm-test-in: Add another test of expm1.
552         * math/auto-libm-test-out: Regenerated.
553
554         [BZ #16287]
555         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
556         calling __erfcl for arguments at least 16.
557         * math/auto-libm-test-in: Add more tests of erf.
558         * math/auto-libm-test-out: Regenerated.
559
560         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
561         individual architectures.
562         * sysdeps/unix/sysv/linux/configure: Regenerated.
563         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
564         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
565         * sysdeps/unix/sysv/linux/powerpc/configure.ac
566         (ldd_rewrite_script): Define variable.
567         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
569         file.
570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
571         generated file.
572         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
573         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
574         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
575         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
576         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
577         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
578         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
579         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
580
581 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
582
583         [BZ #17084]
584         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
585         Rename member __data.d to __data.__elision_data.
586
587 2014-06-24  Wilco  <wdijkstr@arm.com>
588
589         * NEWS: Add 16918 to fixed bug list.
590
591 2014-06-24  Wilco  <wdijkstr@arm.com>
592
593         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
594
595 2014-06-24  Wilco  <wdijkstr@arm.com>
596
597         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
598         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
599         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
600         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
601         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
602         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
603         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
604         Use _FPU_MASK_RM.
605
606 2014-06-24  Wilco  <wdijkstr@arm.com>
607
608         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
609
610 2014-06-24  Wilco  <wdijkstr@arm.com>
611
612         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
613         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
614         * sysdeps/arm/fesetround.c (fesetround): Remove space.
615         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
616
617 2014-06-24  Wilco  <wdijkstr@arm.com>
618
619         [BZ #16918]
620         * sysdeps/arm/feupdateenv.c (feupdateenv):
621         Rewrite to reduce FPSCR accesses and fix return value.
622
623 2014-06-24  Wilco  <wdijkstr@arm.com>
624
625         * sysdeps/arm/fclrexcpt.c (feclearexcept):
626         Optimize to avoid unnecessary FPSCR writes.
627         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
628         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
629         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
630         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
631
632 2014-06-24  Wilco  <wdijkstr@arm.com>
633
634         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
635         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
636         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
637         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
638         Call libc_fetestexcept_vfp.
639         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
640         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
641         __SOFTFP__ ifdef so that they can be built for softfp.
642
643 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
644
645         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
646         argument type signed char.
647
648         * Makerules (check-abi): Dump diff of symlist if the test
649         fails.
650
651 2014-06-23  Roland McGrath  <roland@hack.frob.com>
652
653         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
654         using abort.
655
656         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
657         Remove unused variable ST.
658
659 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
660
661         [BZ #16354]
662         [BZ #17061]
663         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
664         small arguments before calling __expm1.
665         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
666         small arguments before calling __expm1f.
667         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
668         small arguments before calling __expm1l.
669         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
670         Likewise.
671         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
672         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
673         spurious underflow for some cosh tests.
674         * math/auto-libm-test-out: Regenerated.
675         * sysdeps/i386/fpu/libm-test-ulps: Update.
676
677         [BZ #17050]
678         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
679         (__ieee754_y1): Set errno if return value overflows.
680         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
681         (__ieee754_y1f): Set errno if return value overflows.
682         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
683         (__ieee754_y1l): Set errno if return value overflows.
684         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
685         (__ieee754_y1l): Set errno if return value overflows.
686         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
687         * math/auto-libm-test-out: Regenerated.
688
689         * math/gen-auto-libm-tests.c: Document use of
690         ignore-zero-inf-sign.
691         (input_flag_type): Add value flag_ignore_zero_inf_sign.
692         (input_flags): Add ignore-zero-inf-sign.
693         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
694         * math/gen-libm-test.pl (generate_testfile): Handle
695         ignore-zero-inf-sign.
696         * math/auto-libm-test-in: Mark some cpow tests with
697         ignore-zero-inf-sign and some with xfail-rounding.
698         * math/auto-libm-test-out: Regenerated.
699         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
700         * sysdeps/i386/fpu/libm-test-ulps: Update.
701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
702
703         [BZ #16315]
704         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
705         overflowing or underflowing operations take place with sign of
706         result.
707         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
708         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
709         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
710         (__ieee754_pow): Recompute overflowing and underflowing results in
711         original rounding mode.
712         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
713         (__powl_helper): Allow negative argument X and scale negated value
714         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
715         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
716         overflowing or underflowing operations take place with sign of
717         result.
718         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
719         Include <math.h>.
720         * math/auto-libm-test-in: Add more tests of pow.
721         * math/auto-libm-test-out: Regenerated.
722         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
723         (pow_tonearest_test_data): Remove.
724         (pow_test_tonearest): Likewise.
725         (pow_towardzero_test_data): Likewise.
726         (pow_test_towardzero): Likewise.
727         (pow_downward_test_data): Likewise.
728         (pow_test_downward): Likewise.
729         (pow_upward_test_data): Likewise.
730         (pow_test_upward): Likewise.
731         (main): Don't call removed functions.
732         * sysdeps/i386/fpu/libm-test-ulps: Update.
733         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
734
735 2014-06-23  Roland McGrath  <roland@hack.frob.com>
736
737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
738         Moved ...
739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
741         Moved ...
742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
744         Moved ...
745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
747         Moved ...
748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
750         File removed.
751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
752         File removed.
753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
754         File removed.
755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
756         File removed.
757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
758         File removed.
759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
760         File removed.
761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
762         File removed.
763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
764         File removed.
765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
766         File removed.
767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
768         File removed.
769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
770         File removed.
771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
772         File removed.
773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
774         Moved ...
775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
777         Moved ...
778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
779         ... here.
780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
781         Moved ...
782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
784         Moved ...
785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
787         Moved ...
788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
790         Moved ...
791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
793         Moved ...
794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
796         Moved ...
797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
799         Moved ...
800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
803         ... here.
804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
805         Moved ...
806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
808         Moved ...
809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
810         ... here.
811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
812         Moved ...
813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
814         ... here.
815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
816         Moved ...
817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
818         ... here.
819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
820         Moved ...
821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
823         Moved ...
824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
828         Moved ...
829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
830         ... here.
831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
832         Moved ...
833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
834         ... here.
835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
836         Moved ...
837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
839         Moved ...
840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
842         Moved ...
843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
845         Moved ...
846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
848         Moved ...
849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
850         ... here.
851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
852         Moved ...
853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
855         Moved ...
856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
858         Moved ...
859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
861         Moved ...
862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
866         Moved ...
867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
869         Moved ...
870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
872         Moved ...
873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
874         ... here.
875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
876         Moved ...
877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
878         ... here.
879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
880         Moved ...
881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
882         ... here.
883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
884         Moved ...
885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
887         Moved ...
888         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
890         Moved ...
891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
893         Moved ...
894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
895         ... here.
896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
897         Moved ...
898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
899         ... here.
900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
901         Moved ...
902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
903         ... here.
904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
905         Moved ...
906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
908         Moved ...
909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
910
911 2014-06-23  Will Newton  <will.newton@linaro.org>
912             Wilco  <wdijkstr@arm.com>
913
914         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
915         implementation.  Include get-rounding-mode.h.
916         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
917         [!libc_feholdsetround_noex_ctx]: Define
918         libc_feholdsetround_noex_ctx.
919         [!libc_feholdsetround_noexf_ctx]: Define
920         libc_feholdsetround_noexf_ctx.
921         [!libc_feholdsetround_noexl_ctx]: Define
922         libc_feholdsetround_noexl_ctx.
923         (libc_feholdsetround_ctx): New function.
924         (libc_feresetround_ctx): New function.
925         (libc_feholdsetround_noex_ctx): New function.
926         (libc_feresetround_noex_ctx): New function.
927
928 2014-06-23  Roland McGrath  <roland@hack.frob.com>
929
930         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
931         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
932         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
933         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
934         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
935         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
936
937         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
938         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
939         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
940         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
941         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
942         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
943         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
944         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
945         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
946         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
947         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
948         Moved ...
949         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
950         ... here.
951         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
952         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
953         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
954         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
955         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
956         Moved ...
957         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
958         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
959         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
960         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
961         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
962         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
963         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
964         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
965         Moved ...
966         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
967         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
968         Moved ...
969         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
970         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
971         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
972         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
973         Moved ...
974         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
975         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
976         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
977         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
978         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
979         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
980         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
981         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
982         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
983         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
984         Moved ...
985         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
986         ... here.
987         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
988         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
989         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
990         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
991         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
992         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
993         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
994         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
995         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
996         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
997         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
998         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
999         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
1000         Moved ...
1001         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
1002         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
1003         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
1004         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
1005         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
1006         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
1007         Moved ...
1008         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
1009         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
1010         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
1011         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
1012         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
1013
1014         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
1015         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
1016         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
1017         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
1018         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
1019         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
1020         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
1021         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
1022         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
1023         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
1024         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
1025         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
1026         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
1027         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
1028         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
1029         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
1030         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
1031         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
1032         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
1033         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
1034         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
1035         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
1036         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
1037         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
1038         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
1039         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
1040         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
1041         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
1042
1043 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
1044
1045         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1046         (FALLOC_FL_COLLAPSE_RANGE): New macro.
1047         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
1048         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
1049         (IPV6_PMTUDISC_INTERFACE): Likewise.
1050         (IPV6_PMTUDISC_OMIT): Likewise.
1051
1052 2014-06-23  Andreas Schwab  <schwab@suse.de>
1053
1054         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
1055         Remove unused errout label.
1056
1057 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1058
1059         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
1060         macro: hardware supports Vector Crypto instructions.
1061
1062 2014-06-23  Will Newton  <will.newton@linaro.org>
1063
1064         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
1065         rather than __builtin_expect.
1066
1067         * elf/dl-lookup.c (undefined_msg): Remove variable.
1068         (_dl_lookup_symbol_x): Replace undefined_msg with string
1069         literal.
1070
1071         * elf/dl-lookup.c (do_lookup_unique): New function.
1072         (do_lookup_x): Move STB_GNU_UNIQUE handling code
1073         to a separate function.
1074
1075 2014-06-23  Andreas Schwab  <schwab@suse.de>
1076
1077         [BZ #17079]
1078         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
1079         before reading the next line.
1080
1081 2014-06-23  Will Newton  <will.newton@linaro.org>
1082
1083         * test-skeleton.c (signal_handler): Use printf and %m
1084         rather than perror.  Use printf rather than fprintf to
1085         stderr.  Use puts rather than fputs to stderr.
1086         (main): Likewise.
1087
1088 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
1089
1090         * nscd/nscd.c (thread_info_t): Remove typedef.
1091         (thread_info): Remove variable.
1092
1093 2014-06-21  Allan McRae  <allan@archlinux.org>
1094
1095         * NEWS: Mention CVE-2014-4043.
1096
1097 2014-06-20  Roland McGrath  <roland@hack.frob.com>
1098
1099         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
1100         * nptl/smp.h: ... here.
1101
1102         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
1103
1104         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
1105         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
1106         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
1107         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
1108
1109         * nptl/allocatestack.c: Include <stack-aliasing.h>.
1110         * nptl/stack-aliasing.h: New file.
1111         * sysdeps/i386/i686/stack-aliasing.h: New file.
1112         * sysdeps/i386/i686/nptl/Makefile: File removed.
1113         * sysdeps/x86_64/stack-aliasing.h: New file.
1114         * sysdeps/x86_64/nptl/Makefile
1115         (CFLAGS-pthread_create.c): Variable removed.
1116
1117         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
1118         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
1119         old file.
1120         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
1121         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
1122         old file.
1123
1124 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
1125
1126         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1127         (__ASSUME_SIGFRAME_V2): Remove macro.
1128         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
1129         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
1130         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
1131         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
1132         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
1133         Declare as function.  Remove conditional macro definitions.
1134         (__default_rt_sa_restorer): Likewise.
1135         (__default_sa_restorer_v1): Remove declaration.
1136         (__default_sa_restorer_v2): Likewise.
1137         (__default_rt_sa_restorer_v1): Likewise.
1138         (__default_rt_sa_restorer_v2): Likewise.
1139         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
1140         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
1141         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
1142
1143 2014-06-20  Roland McGrath  <roland@hack.frob.com>
1144
1145         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
1146         (libpthread-routines): Add sysdep.
1147         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
1148         * sysdeps/unix/sysv/linux/sparc/Versions
1149         (libpthread: GLIBC_2.3.3): New version set.
1150         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
1151         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
1152         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
1153         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
1154         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
1155         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
1156         Moved ...
1157         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
1158         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
1159         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
1160         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
1161         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
1162         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
1163         * sysdeps/sparc/nptl/sem_init.c: ... here.
1164         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
1165         * sysdeps/sparc/nptl/sem_post.c: ... here.
1166         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
1167         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
1168         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
1169         * sysdeps/sparc/nptl/sem_wait.c: ... here.
1170         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
1171         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
1172         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
1173         (libpthread-routines): Add cpu_relax.
1174         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
1175         File removed.
1176         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
1177         (librt: GLIBC_2.3.3): New version set.
1178         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
1179         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
1180         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
1181         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
1182         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
1183         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
1184         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
1185         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
1186         Moved ...
1187         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
1188         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
1189         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
1190         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
1191         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
1192         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
1193         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
1194         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
1195         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
1196         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
1197         Moved ...
1198         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
1199         Update #include.
1200         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
1201         Moved ...
1202         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
1203         Update #include.
1204         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
1205         Moved ...
1206         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
1207         Update #include.
1208         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
1209         Moved ...
1210         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
1211         Update #include.
1212         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
1213         Moved ...
1214         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
1215         Update #include.
1216         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
1217         Moved ...
1218         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
1219         Update #include.
1220         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
1221         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
1222         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
1223         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
1224         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
1225         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
1226         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
1227         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
1228         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
1229         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
1230         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
1231         Moved ...
1232         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
1233         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
1234         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
1235         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
1236         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
1237
1238 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
1239
1240         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
1241         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
1242         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
1243         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
1244         * nscd/nscd.c: Likewise.
1245         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
1246         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
1247         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
1248         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
1249
1250         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
1251         <kernel-features.h>.
1252         (init_mq_netlink): Remove conditional have_sock_cloexec
1253         definitions.  Remove code conditional on have_sock_cloexec < 0.
1254         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
1255         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
1256         * sysdeps/unix/sysv/linux/opensock.c: Do not include
1257         <kernel-features.h>.
1258         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
1259         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
1260
1261 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1262
1263         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1264         Add tests for memset_chk and memset.
1265
1266         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
1267         with AVX2_Usable.
1268
1269 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
1270
1271         [BZ #16046]
1272         * elf/tst-dl-iter-static.c: New file.
1273         * elf/Makefile (tests-static): Add tst-dl-iter-static.
1274
1275         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
1276         error.
1277
1278 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
1279
1280         * sysdeps/unix/sysv/linux/kernel-features.h
1281         (__ASSUME_F_GETOWN_EX): Remove macro.
1282         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
1283         <kernel-features.h>.
1284         (miss_F_GETOWN_EX): Remove variable or macro.
1285         (do_fcntl): Do not check miss_F_GETOWN_EX.
1286         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
1287
1288         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
1289         Remove macro.
1290         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
1291         [!__ASSUME_AT_RANDOM]: Remove conditional code.
1292         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
1293
1294         * sysdeps/unix/sysv/linux/kernel-features.h
1295         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
1296         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
1297         [ADJ_OFFSET_SS_READ]: Make code unconditional.
1298         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
1299
1300 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
1301
1302         [BZ #17075]
1303         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
1304         Fix calculation of the symbol's value.
1305         * sysdeps/arm/tst-armtlsdescloc.c: New file.
1306         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
1307         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
1308         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
1309         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
1310         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
1311         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
1312         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
1313         (modules-names): Add `tst-armtlsdescmod',
1314         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
1315         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
1316         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
1317         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
1318         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
1319         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
1320         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
1321         ($(objpfx)tst-armtlsdescloc): New dependency.
1322         ($(objpfx)tst-armtlsdescextnow): Likewise.
1323         ($(objpfx)tst-armtlsdescextlazy): Likewise.
1324         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
1325         TLS scheme support.
1326         * sysdeps/arm/configure: Regenerate.
1327
1328 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
1329
1330         * include/fcntl.h (__atfct_seterrno): Remove prototype.
1331         (__atfct_seterrno_2): Likewise.
1332         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
1333         <kernel-features.h>.
1334         (__ASSUME_ATFCTS): Do not undefine and redefine.
1335         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
1336         (__have_atfcts): Remove conditional definition.
1337         (__fxstatat([__NR_fstatat64]: Make code unconditional.
1338         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
1339         unreachable if [__ASSUME_ATFCTS].
1340         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
1341         not undefine and redefine.
1342         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
1343         <kernel-features.h>.
1344         (faccessat) [__NR_faccessat]: Make code unconditional.
1345         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
1346         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
1347         <kernel-features.h>.
1348         (fchmodat) [__NR_fchmodat]: Make code unconditional.
1349         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
1350         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
1351         <kernel-features.h>.
1352         (fchownat) [__NR_fchownat]: Make code unconditional.
1353         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
1354         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
1355         <kernel-features.h>.
1356         (futimesat) [__NR_futimesat]: Make code unconditional.
1357         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
1358         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
1359         <kernel-features.h>.
1360         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
1361         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
1362         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
1363         <kernel-features.h>.
1364         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
1365         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
1366         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
1367         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
1368         <kernel-features.h>.
1369         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
1370         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
1371         * sysdeps/unix/sysv/linux/linkat.c: Do not include
1372         <kernel-features.h>.
1373         (linkat) [__NR_linkat]: Make code unconditional.
1374         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
1375         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
1376         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
1377         <kernel-features.h>.
1378         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
1379         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
1380         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
1381         <kernel-features.h>.
1382         (mkdirat) [__NR_mkdirat]: Make code unconditional.
1383         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
1384         * sysdeps/unix/sysv/linux/openat.c: Do not include
1385         <kernel-features.h>.
1386         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
1387         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
1388         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
1389         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
1390         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
1391         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
1392         <kernel-features.h>.
1393         (readlinkat) [__NR_readlinkat]: Make code unconditional.
1394         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
1395         result of INLINE_SYSCALL directly, not via int variable.
1396         * sysdeps/unix/sysv/linux/renameat.c: Do not include
1397         <kernel-features.h>.
1398         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
1399         (renameat) [__NR_renameat]: Make code unconditional.
1400         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
1401         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
1402         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
1403         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
1404         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
1405         (__ASSUME_ATFCTS): Do not undefine and redefine.
1406         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
1407         <kernel-features.h>.
1408         (symlinkat) [__NR_symlinkat]: Make code unconditional.
1409         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
1410         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
1411         <kernel-features.h>.
1412         (unlinkat) [__NR_unlinkat]: Make code unconditional.
1413         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
1414         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
1415         (__ASSUME_ATFCTS): Do not undefine and redefine.
1416         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
1417         <kernel-features.h>.
1418         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
1419         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
1420         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
1421         <kernel-features.h>.
1422         (__xmknodat) [__NR_mknodat]: Make code unconditional.
1423         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
1424
1425 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1426
1427         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
1428
1429 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
1430
1431         [BZ #17069]
1432         * posix/regcomp.c (parse_reg_exp): Deallocate partially
1433         constructed tree before returning error.
1434         * posix/bug-regexp36.c: Expand test case.
1435
1436 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
1437
1438         [BZ #6803]
1439         * math/libm-test.inc (scalbln_test_date):
1440         Add errno expectations.
1441         * math/w_scalblnf.c: New File.
1442         Add wrapper which checks for setting errno to ERANGE.
1443         Add weak_alias for corresponding scalbln function.
1444         * math/w_scalbln.c: Likewise.
1445         * math/w_scalblnl.c: Likewise.
1446         * math/Makefile (libm-calls): Add w_scalbln.
1447         * sysdeps/ieee754/flt-32/s_scalblnf.c:
1448         Remove weak_alias for corresponding scalbln function.
1449         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
1450         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
1451         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
1452         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
1453         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
1454         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
1455         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
1456         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
1457         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
1458         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
1459         Remove long_double_symbol for scalblnl function in libm, libc.
1460         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
1461         Add wrapper which checks for setting errno to ERANGE.
1462         Add long_double_symbol for scalblnl function in libm, libc.
1463         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
1464         Remove long_double_symbol for scalblnl in libm.
1465         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
1466         Add wrapper which checks for setting errno to ERANGE.
1467         Add long_double_symbol for scalblnl function in libm.
1468         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
1469         Do not use wrapper because of own implementation.
1470
1471 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1472
1473         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
1474         3 bytes for __pad1 for x32.
1475         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
1476
1477 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
1478             H.J. Lu  <hongjiu.lu@intel.com>
1479
1480         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
1481         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
1482         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1483         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1484         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
1485
1486 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
1487
1488         [BZ #17069]
1489         * posix/regcomp.c (parse_expression): Deallocate partially
1490         constructed tree before returning error.
1491         * posix/Makefile.c (tests): Add bug-regex36.
1492         (generated): Add bug-regex36.mtrace.
1493         (tests-special): Add $(objpfx)bug-regex36-mem.out
1494         (bug-regex36-ENV): New variable.
1495         ($(objpfx)bug-regex36-mem.out): New rule.
1496         * posix/bug-regex36.c: New file.
1497
1498 2014-06-19  Will Newton  <will.newton@linaro.org>
1499
1500         * malloc/malloc.c (systrim): If extra is zero then return
1501         early.
1502
1503 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1504
1505         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
1506
1507 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
1508
1509         * sysdeps/aarch64/strchr.S: New file.
1510
1511 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
1512
1513         [BZ #17022]
1514         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
1515         from arguments -2 or below.
1516         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1517         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1518
1519 2014-06-18  Andreas Schwab  <schwab@suse.de>
1520
1521         [BZ #17062]
1522         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
1523         of a bracket expr not to run off the end of the string.
1524         * posix/Makefile (tests): Add tst-fnmatch3.
1525         * posix/tst-fnmatch3.c: New file.
1526
1527 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
1528
1529         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
1530         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1531         [$(cross-compiling) = no]: Likewise.
1532         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1533         [$(cross-compiling) = no]: Likewise.
1534
1535 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
1536
1537         [BZ #17031]
1538         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
1539         double, adjusted for any remainder from the high double.
1540         * math/libm-test.inc (nearbyint): Add tests.
1541         (rint): Likewise.
1542
1543 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1544
1545         * nptl/sysdeps/powerpc/Makefile: Moved ...
1546         * sysdeps/powerpc/nptl/Makefile: ... here.
1547         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
1548         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
1549         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
1550         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
1551         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
1552         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
1553         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
1554         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
1555         * nptl/sysdeps/powerpc/tls.h: Moved ...
1556         * sysdeps/powerpc/nptl/tls.h: ... here.
1557
1558 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
1559
1560         [BZ #16681]
1561         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
1562         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
1563         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
1564         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
1565         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
1566         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
1567         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
1568         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
1569         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
1570
1571 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
1572
1573         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
1574
1575 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
1576
1577         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
1578         defined operator.
1579
1580         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
1581         $TIMEOUTFACTOR.
1582
1583 2014-06-16  Florian Weimer  <fweimer@redhat.com>
1584
1585         [BZ #17058]
1586         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
1587         non-executed part of the test.
1588
1589 2014-06-16  Andreas Schwab  <schwab@suse.de>
1590
1591         * string/bits/string2.h (strdup, strndup): Update feature guard.
1592
1593 2014-06-14  David S. Miller  <davem@davemloft.net>
1594
1595         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1596
1597 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
1598
1599         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
1600         that was previously under [RESET_PID].
1601         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
1602
1603         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
1604         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
1605         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
1606         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1607         (__libc_vfork): New strong alias.
1608         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
1609
1610 2014-06-14 Andi Kleen  <ak@linux.intel.com>
1611
1612         * sysdeps/generic/elide.h: New file.
1613
1614 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
1615
1616         * Makefile (installed-headers): Adjust path of pthread.h header.
1617
1618 2014-06-13  Roland McGrath  <roland@hack.frob.com>
1619
1620         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
1621         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
1622         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
1623         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
1624
1625         * nptl/sysdeps/s390/Makefile: Moved ...
1626         * sysdeps/s390/nptl/Makefile: ... here.
1627         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
1628         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
1629         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
1630         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
1631         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
1632         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
1633         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
1634         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
1635         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
1636         * sysdeps/s390/nptl/pthreaddef.h: ... here.
1637         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
1638         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
1639         * nptl/sysdeps/s390/tls.h: Moved ...
1640         * sysdeps/s390/nptl/tls.h: ... here.
1641
1642         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
1643         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
1644
1645 2014-06-13  David S. Miller  <davem@davemloft.net>
1646
1647         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
1648         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
1649         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
1650         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
1651         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
1652         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
1653         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
1654         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
1655         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
1656         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
1657         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
1658         Remove RESET_PID cpp guards.
1659         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
1660         Remove RESET_PID cpp guards.
1661         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
1662
1663 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
1664
1665         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
1666         __sp to uintptr_t.
1667
1668 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1669
1670         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
1671         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
1672         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
1673         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
1674         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
1675         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
1676         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
1677         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
1678         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
1679         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
1680         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
1681         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
1682         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
1683         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
1684         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
1685         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
1686         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
1687         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
1688         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
1689         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
1690
1691         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
1692         (pthread_rwlock_rdlock): Add elision.
1693         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
1694         (pthread_rwlock_wrlock): Add elision.
1695         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
1696         (pthread_rwlock_trywrlock): Add elision.
1697         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
1698         (pthread_rwlock_tryrdlock): Add elision.
1699         * nptl/pthread_rwlock_unlock.c: Include elide.h.
1700         (pthread_rwlock_tryrdlock): Add elision unlock.
1701         * nptl/sysdeps/pthread/pthread.h:
1702         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
1703         (PTHREAD_RWLOCK_INITIALIZER,
1704         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
1705         Handle new elision field.
1706         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
1707         * sysdeps/arm/nptl/bits/pthreadtypes.h
1708         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1709         * sysdeps/sh/nptl/bits/pthreadtypes.h
1710         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1711         * sysdeps/tile/nptl/bits/pthreadtypes.h
1712         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1713         * sysdeps/a/nptl/bits/pthreadtypes.h
1714         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1715         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
1716         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1717         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
1718         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1719         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
1720         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1721         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
1722         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1723         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
1724         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1725         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
1726         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1727         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
1728         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1729         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
1730         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1731         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
1732         (elision_init): Set try_xbegin to zero when no RTM.
1733         * sysdeps/x86/nptl/bits/pthreadtypes.h
1734         (pthread_rwlock_t): Change __pad1 to __rwelision.
1735         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1736
1737 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1738
1739         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
1740         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
1741         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
1742         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
1743
1744 2014-06-13  Meador Inge  <meadori@codesourcery.com>
1745
1746         [BZ #16996]
1747         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
1748         that the cached result has been set before returning it.
1749
1750 2014-06-12  Roland McGrath  <roland@hack.frob.com>
1751
1752         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
1753         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
1754         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
1755         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
1756         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
1757         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
1758
1759         * nptl/sysdeps/sparc/Makefile: Moved ...
1760         * sysdeps/sparc/nptl/Makefile: ... here.
1761         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
1762         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
1763         * nptl/sysdeps/sparc/tls.h: Moved ...
1764         * sysdeps/sparc/nptl/tls.h: ... here.
1765         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
1766         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
1767         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
1768         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
1769         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
1770         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
1771         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
1772         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
1773         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
1774         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
1775         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
1776         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
1777         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
1778         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
1779         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
1780         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
1781         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
1782         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
1783         Update #include.
1784         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
1785         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
1786         Update #include.
1787         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
1788         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
1789         Update #include.
1790         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
1791         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
1792         Update #include.
1793
1794         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1795
1796         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
1797         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
1798
1799         * sysdeps/pthread/posix-timer.h: Include <list.h>.
1800         (struct list_links): Type removed.
1801         (struct thread_node, struct timer_node): Replace struct list_links
1802         with struct list_head.
1803         (list_unlink_ip): Likewise.
1804         * sysdeps/pthread/timer_routines.c
1805         (timer_free_list, thread_free_list, thread_active_list): Likewise.
1806         (list_append, list_insbefore): Likewise.
1807         (list_init): Function removed.
1808         (thread_init, init_module): Use INIT_LIST_HEAD instead.
1809         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
1810         * sysdeps/pthread/Makefile: ... here, new file.
1811
1812         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
1813         * sysdeps/nptl/Implies: ... here.
1814         * sysdeps/unix/sysv/linux/Implies: Add nptl.
1815         * nptl/sysdeps/pthread/list.h: Moved ...
1816         * include/list.h: ... here.
1817         * nptl/sysdeps/pthread/createthread.c: Moved ...
1818         * nptl/createthread.c: ... here.
1819         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
1820         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
1821         * nptl/pt-longjmp.c: ... here.
1822         * nptl/sysdeps/pthread/Makefile: Moved ...
1823         * sysdeps/nptl/Makefile: ... here.
1824         * nptl/sysdeps/pthread/Subdirs: Moved ...
1825         * sysdeps/nptl/Subdirs: ... here.
1826         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
1827         * sysdeps/nptl/aio_misc.h: ... here.
1828         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
1829         * sysdeps/nptl/bits/libc-lock.h: ... here.
1830         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
1831         * sysdeps/nptl/bits/libc-lockP.h: ... here.
1832         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
1833         * sysdeps/nptl/bits/stdio-lock.h: ... here.
1834         * nptl/sysdeps/pthread/configure: Moved ...
1835         * sysdeps/nptl/configure: ... here.
1836         * nptl/sysdeps/pthread/configure.ac: Moved ...
1837         * sysdeps/nptl/configure.ac: ... here.
1838         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
1839         * sysdeps/nptl/gai_misc.h: ... here.
1840         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
1841         * sysdeps/nptl/librt-cancellation.c: ... here.
1842         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
1843         * sysdeps/nptl/malloc-machine.h: ... here.
1844         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
1845         * sysdeps/nptl/pthread-functions.h: ... here.
1846         * nptl/sysdeps/pthread/pthread.h: Moved ...
1847         * sysdeps/nptl/pthread.h: ... here.
1848         * nptl/sysdeps/pthread/setxid.h: Moved ...
1849         * sysdeps/nptl/setxid.h: ... here.
1850         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
1851         * sysdeps/nptl/sigfillset.c: ... here.
1852         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
1853         * sysdeps/nptl/tcb-offsets.h: ... here.
1854         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
1855         * sysdeps/nptl/tst-mqueue8x.c: ... here.
1856         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
1857         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
1858         * nptl/sysdeps/pthread/allocalim.h: Moved ...
1859         * sysdeps/pthread/allocalim.h: ... here.
1860         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
1861         * sysdeps/pthread/bits/sigthread.h: ... here.
1862         * nptl/sysdeps/pthread/flockfile.c: Moved ...
1863         * sysdeps/pthread/flockfile.c: ... here.
1864         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
1865         * sysdeps/pthread/ftrylockfile.c: ... here.
1866         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
1867         * sysdeps/pthread/funlockfile.c: ... here.
1868         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
1869         * sysdeps/pthread/posix-timer.h: ... here.
1870         * nptl/sysdeps/pthread/timer_create.c: Moved ...
1871         * sysdeps/pthread/timer_create.c: ... here.
1872         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
1873         * sysdeps/pthread/timer_delete.c: ... here.
1874         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
1875         * sysdeps/pthread/timer_getoverr.c: ... here.
1876         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
1877         * sysdeps/pthread/timer_gettime.c: ... here.
1878         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
1879         * sysdeps/pthread/timer_routines.c: ... here.
1880         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
1881         * sysdeps/pthread/timer_settime.c: ... here.
1882         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
1883         * sysdeps/pthread/tst-timer.c: ... here.
1884         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
1885         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
1886
1887         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
1888         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
1889
1890         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
1891         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
1892         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
1893         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
1894         Update #include target.
1895         * nptl/sysdeps/i386/i686/Makefile: Moved ...
1896         * sysdeps/i386/i686/nptl/Makefile: ... here.
1897         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
1898         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
1899         Update #include target.
1900         * nptl/sysdeps/i386/i686/tls.h: Moved ...
1901         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
1902         * nptl/sysdeps/i386/Makefile: Moved ...
1903         * sysdeps/i386/nptl/Makefile: ... here.
1904         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
1905         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
1906         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
1907         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
1908         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
1909         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
1910         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
1911         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
1912         * sysdeps/i386/nptl/pthreaddef.h: ... here.
1913         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
1914         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
1915         * nptl/sysdeps/i386/tls.h: Moved ...
1916         * sysdeps/i386/nptl/tls.h: ... here.
1917
1918         * sysdeps/sh/Makefile [$(subdir) = csu]
1919         (gen-as-const-headers): Add tcb-offsets.sym.
1920         * nptl/sysdeps/sh/Makefile: File removed.
1921         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
1922         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
1923         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
1924         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
1925         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
1926         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
1927         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
1928         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
1929         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
1930         * sysdeps/sh/nptl/pthreaddef.h: ... here.
1931         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
1932         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
1933         * nptl/sysdeps/sh/tls.h: Moved ...
1934         * sysdeps/sh/nptl/tls.h: ... here.
1935         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
1936         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
1937         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
1938         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
1939         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
1940         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
1941         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
1942         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
1943         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
1944         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
1945         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
1946         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
1947         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
1948         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
1949         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
1950         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
1951         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
1952         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
1953         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
1954         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
1955         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
1956         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
1957         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
1958         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
1959         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
1960         Moved ...
1961         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
1962         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
1963         Moved ...
1964         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
1965         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
1966         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
1967         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
1968         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
1969         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
1970         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
1971         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
1972         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
1973         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
1974         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
1975         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
1976         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
1977         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
1978         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
1979         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
1980         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
1981         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
1982         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
1983
1984 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
1985
1986         * posix/spawn_faction_addopen.c: Include string.h.
1987
1988 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1989
1990         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
1991         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
1992         * nptl/sysdeps/x86_64/Makefile: Moved ...
1993         * sysdeps/x86_64/nptl/Makefile: ... here.
1994         * nptl/sysdeps/x86_64/configure: Moved ...
1995         * sysdeps/x86_64/nptl/configure: ... here.
1996         * nptl/sysdeps/x86_64/configure.ac: Moved ...
1997         * sysdeps/x86_64/nptl/configure.ac: ... here.
1998         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
1999         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
2000         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
2001         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
2002         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
2003         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
2004         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
2005         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
2006         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
2007         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
2008         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
2009         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
2010         * nptl/sysdeps/x86_64/tls.h: Moved ...
2011         * sysdeps/x86_64/nptl/tls.h: ... here.
2012         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
2013         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
2014         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
2015         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
2016
2017         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
2018
2019 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2020
2021         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2022
2023 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
2024
2025         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
2026         type.
2027         [POSIX] (off_t): Likewise.
2028         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
2029         [POSIX] (S_ISBLK): Require macro.
2030         [POSIX] (S_ISCHR): Likewise.
2031         [POSIX] (S_ISDIR): Likewise.
2032         [POSIX] (S_ISFIFO): Likewise.
2033         [POSIX] (S_ISREG): Likewise.
2034         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
2035         optional-macro.
2036         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
2037         type.
2038         [POSIX] (time_t): Likewise.
2039         [POSIX] (timer_t): Likewise.
2040
2041 2014-06-11  Florian Weimer  <fweimer@redhat.com>
2042
2043         [BZ #17048]
2044         * posix/spawn_int.h (struct __spawn_action): Make the path string
2045         non-const to support deallocation.
2046         * posix/spawn_faction_addopen.c
2047         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
2048         * posix/spawn_faction_destroy.c
2049         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
2050         path in all spawn_do_open actions.
2051         * posix/tst-spawn.c (do_test): Exercise the copy operation in
2052         posix_spawn_file_actions_addopen.
2053
2054 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
2055
2056         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
2057         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
2058         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
2059         conditional code always true.
2060         (__libc_vfork): New alias.
2061
2062 2014-06-11  Roland McGrath  <roland@hack.frob.com>
2063
2064         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2065         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
2066
2067         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
2068
2069         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2070         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
2071
2072         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
2073         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
2074
2075         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2076         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
2077
2078 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
2079
2080         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
2081         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
2082         multiarch strcmp for PPC64.
2083         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
2084         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
2085         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
2086         multiarch optimizations.
2087         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2088         (__libc_ifunc_impl_list): Likewise.
2089
2090 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2091
2092         * benchtests/scripts/validate_benchout.py: New script.
2093         * benchtests/Makefile (bench-func): Call it.
2094         * benchtests/scripts/benchout.schema.json: New file.
2095
2096 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
2097
2098         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
2099         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
2100         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
2101         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
2102         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
2103         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
2104         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
2105         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
2106         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
2107         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
2108         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
2109         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
2110         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
2111         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
2112         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
2113         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
2114         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
2115         Moved ...
2116         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
2117         ... here.
2118         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
2119         Moved ...
2120         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
2121         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
2122         Moved ...
2123         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
2124         ... here.
2125         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
2126         Moved ...
2127         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
2128         ... here.
2129         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
2130         Moved ...
2131         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
2132         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
2133         Moved ...
2134         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
2135         ... here.
2136         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
2137         Moved ...
2138         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
2139         ... here.
2140         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
2141         Moved ...
2142         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
2143         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
2144         Moved ...
2145         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
2146         ... here.
2147         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
2148         Moved ...
2149         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
2150         ... here.
2151         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
2152         Moved ...
2153         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
2154         ... here.
2155         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
2156         Moved ...
2157         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
2158         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
2159         Moved ...
2160         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
2161         ... here.
2162         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
2163         Moved ...
2164         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
2165         ... here.
2166         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
2167         Moved ...
2168         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
2169         ... here.
2170         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
2171         Moved ...
2172         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
2173         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
2174         Moved ...
2175         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
2176         ... here.
2177         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
2178         Moved ...
2179         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
2180         ... here.
2181         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
2182         Moved ...
2183         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
2184         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
2185         Moved ...
2186         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
2187         ... here.
2188         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
2189         Moved ...
2190         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
2191         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
2192         Moved ...
2193         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
2194         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
2195         Moved ...
2196         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
2197         ... here.
2198         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
2199         Moved ...
2200         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
2201         ... here.
2202         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
2203         Moved ...
2204         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
2205         ... here.
2206         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
2207         Moved ...
2208         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
2209         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
2210         Moved ...
2211         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
2212         ... here.
2213         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
2214         Moved ...
2215         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
2216         ... here.
2217         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
2218         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
2219         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
2220         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
2221         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
2222         Moved ...
2223         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
2224         ... here.
2225         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
2226         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
2227         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
2228         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
2229         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
2230         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
2231         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
2232         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
2233         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
2234         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
2235         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
2236         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
2237         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
2238         Moved ...
2239         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
2240         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
2241         Moved ...
2242         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
2243         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
2244         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
2245         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
2246         Moved ...
2247         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
2248         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
2249         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
2250         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
2251         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
2252         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
2253         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
2254
2255 2014-06-10  Wilco  <wdijkstr@arm.com>
2256
2257         * math/test-fenv-return.c: New file.
2258         * math/Makefile: Add new test test-fenv-return.
2259
2260 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
2261
2262         [BZ #17042]
2263         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
2264         when x - 1 is zero.
2265         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
2266         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
2267         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
2268         0.0L for an argument of 1.0L.
2269         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
2270         Likewise.
2271         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
2272         value when x - 1 is zero.
2273         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
2274         * sysdeps/i386/fpu/libm-test-ulps: Update.
2275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2276
2277 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
2278
2279         [BZ #15119]
2280         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
2281
2282 2014-06-09  Roland McGrath  <roland@hack.frob.com>
2283
2284         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
2285         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
2286
2287 2014-06-09  Roland McGrath  <roland@hack.frob.com>
2288
2289         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2290         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
2291
2292         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2293         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
2294
2295         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2296         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
2297
2298         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2299         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
2300
2301         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
2302         if not already defined.
2303         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
2304         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
2305         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
2306         (TLS_INIT_TP): Use it.
2307         (TLS_DEFINE_INIT_TP): New macro.
2308         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
2309
2310 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
2311
2312         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
2313         constant.
2314         [POSIX] (IXANY): Likewise.
2315         [POSIX] (OLCUC): Likewise.
2316         [POSIX || POSIX2008] (CBAUD): Do not allow.
2317         [POSIX || POSIX2008] (DEFECHO): Likewise.
2318         [POSIX || POSIX2008] (ECHOCTL): Likewise.
2319         [POSIX || POSIX2008] (ECHOKE): Likewise.
2320         [POSIX || POSIX2008] (ECHOPRT): Likewise.
2321         [POSIX || POSIX2008] (EXTA): Likewise.
2322         [POSIX || POSIX2008] (EXTB): Likewise.
2323         [POSIX || POSIX2008] (FLUSHO): Likewise.
2324         [POSIX || POSIX2008] (LOBLK): Likewise.
2325         [POSIX || POSIX2008] (PENDIN): Likewise.
2326         [POSIX || POSIX2008] (SWTCH): Likewise.
2327         [POSIX || POSIX2008] (VDISCARD): Likewise.
2328         [POSIX || POSIX2008] (VDSUSP): Likewise.
2329         [POSIX || POSIX2008] (VLNEXT): Likewise.
2330         [POSIX || POSIX2008] (VREPRINT): Likewise.
2331         [POSIX || POSIX2008] (VSTATUS): Likewise.
2332         [POSIX || POSIX2008] (VWERASE): Likewise.
2333         (B*): Change to B[0123456789]*.
2334         * conform/data/time.h-data [POSIX || UNIX98]
2335         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
2336         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
2337         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
2338         [POSIX] (tm_*): Do not allow.
2339
2340 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
2341
2342         * Makefile (install): Don't set LANGUAGE.
2343         * Makefile.in (install): Likewise.
2344         * assert/Makefile (test-assert-ENV): Remove variable.
2345         (test-assert-perr-ENV): Likewise.
2346         * elf/Makefile (neededtest4-ENV): Likewise.
2347         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
2348         [$(cross-compiling) = no]: Don't set LANGUAGE.
2349         * io/ftwtest-sh (LANG): Remove variable.
2350         * libio/Makefile (tst-widetext-ENV): Likewise.
2351         * manual/install.texi (Running make install): Don't refer to
2352         environment settings for make install.
2353         * INSTALL: Regenerated.
2354         * nptl/tst-tls6.sh: Don't set LANG.
2355         * posix/globtest.sh (LANG): Remove variable.
2356         * string/Makefile (tester-ENV): Likewise.
2357         (inl-tester-ENV): Likewise.
2358         (noinl-tester-ENV): Likewise.
2359         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
2360         [$(cross-compiling) = no]: Don't set LANGUAGE.
2361         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
2362         without explicit environment settings.
2363
2364 2014-06-06  Roland McGrath  <roland@hack.frob.com>
2365
2366         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
2367         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
2368         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
2369         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
2370
2371 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
2372
2373         * crypt/crypt-private.h [DOS]: Add some includes taken from the
2374         other files in the crypt directory.
2375         * crypt/crypt.c: Remove duplicate includes.
2376         * crypt/crypt-entry.c: Likewise.
2377         * crypt/crypt_util.c: Likewise.
2378
2379 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
2380
2381         * Makeconfig (run-program-env): New variable.
2382         (run-program-prefix-before-env): Likewise.
2383         (run-program-prefix-after-env): Likewise.
2384         (run-program-prefix): Define in terms of new variables.
2385         (built-program-cmd-before-env): New variable.
2386         (built-program-cmd-after-env): Likewise.
2387         (built-program-cmd): Define in terms of new variables.
2388         (test-program-prefix-before-env): New variable.
2389         (test-program-prefix-after-env): Likewise.
2390         (test-program-prefix): Define in terms of new variables.
2391         (test-program-cmd-before-env): New variable.
2392         (test-program-cmd-after-env): Likewise.
2393         (test-program-cmd): Define in terms of new variables.
2394         * Rules (make-test-out): Use $(run-program-env).
2395         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
2396         (help): Do not mention environment variables.  Mention
2397         --timeoutfactor option.
2398         (timeoutfactor): New variable.
2399         (blacklist_exports): Remove function.
2400         (exports): Remove variable.
2401         (command): Do not include ${exports}.
2402         * manual/install.texi (Configuring and compiling): Do not mention
2403         test wrappers preserving environment variables.  Mention that last
2404         assignment to a variable must take precedence.
2405         * INSTALL: Regenerated.
2406         * benchtests/Makefile (run-bench): Use $(run-program-env).
2407         * catgets/Makefile ($(objpfx)test1.cat): Use
2408         $(built-program-cmd-before-env), $(run-program-env) and
2409         $(built-program-cmd-after-env).
2410         ($(objpfx)test2.cat): Do not specify environment variables
2411         explicitly.
2412         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
2413         $(run-program-env) and $(built-program-cmd-after-env).
2414         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
2415         $(run-program-env) and $(test-program-cmd-after-env).
2416         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
2417         explicitly.
2418         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
2419         run_program_env and test_program_cmd_after_env arguments.
2420         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
2421         * elf/tst-pathopt.sh: Use run_program_env argument.
2422         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
2423         $(test-wrapper-env) and $(run-program-env).
2424         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
2425         run_program_env arguments.
2426         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
2427         * intl/Makefile ($(objpfx)tst-gettext.out): Use
2428         $(test-program-prefix-before-env), $(run-program-env) and
2429         $(test-program-prefix-after-env).
2430         ($(objpfx)tst-gettext2.out): Likewise.
2431         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
2432         run_program_env and test_program_prefix_after_env arguments.
2433         * intl/tst-gettext2.sh: Likewise.
2434         * intl/tst-gettext4.sh: Do not set environment variables
2435         explicitly.
2436         * intl/tst-gettext6.sh: Likewise.
2437         * intl/tst-translit.sh: Likewise.
2438         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
2439         $(test-program-prefix-before-env), $(run-program-env) and
2440         $(test-program-prefix-after-env).
2441         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
2442         run_program_env and test_program_prefix_after_env arguments.
2443         * math/Makefile (run-regen-ulps): Use $(run-program-env).
2444         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
2445         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
2446         explicitly with each use of ${test_wrapper_env}.
2447         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
2448         $(test-program-prefix-before-env), $(run-program-env) and
2449         $(test-program-prefix-after-env).
2450         * posix/tst-getconf.sh: Do not set environment variables
2451         explicitly.
2452         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
2453         run_program_env and test_program_prefix_after_env arguments.
2454         * stdio-common/tst-printf.sh: Do not set environment variables
2455         explicitly.
2456         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
2457         $(test-program-prefix-before-env), $(run-program-env) and
2458         $(test-program-prefix-after-env).
2459         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
2460         run_program_env and test_program_prefix_after_env arguments.
2461         Split $test calls into $test_pre and $test.
2462         * timezone/Makefile (build-testdata): Use
2463         $(built-program-cmd-before-env), $(run-program-env) and
2464         $(built-program-cmd-after-env).
2465
2466 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2467
2468         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
2469         strlen for non SHARED builds.
2470
2471 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2472
2473         * nptl/allocatestack.c (check_list): Inlined function...
2474         (__reclaim_stacks): ... here.
2475
2476 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
2477
2478         [BZ #15698]
2479         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
2480         memory overrun.
2481
2482 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
2483
2484         * Rules (make-test-out): Include
2485         LOCPATH=$(common-objpfx)localedata in default environment.
2486         * debug/Makefile (tst-chk1-ENV): Remove variable.
2487         (tst-chk2-ENV): Likewise.
2488         (tst-chk3-ENV): Likewise.
2489         (tst-chk4-ENV): Likewise.
2490         (tst-chk5-ENV): Likewise.
2491         (tst-chk6-ENV): Likewise.
2492         (tst-lfschk1-ENV): Likewise.
2493         (tst-lfschk2-ENV): Likewise.
2494         (tst-lfschk3-ENV): Likewise.
2495         (tst-lfschk4-ENV): Likewise.
2496         (tst-lfschk5-ENV): Likewise.
2497         (tst-lfschk6-ENV): Likewise.
2498         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
2499         (tst-iconv7-ENV): Likewise.
2500         * intl/Makefile (LOCPATH-ENV): Likewise.
2501         (tst-codeset-ENV): Likewise.
2502         (tst-gettext3-ENV): Likewise.
2503         (tst-gettext5-ENV): Likewise.
2504         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
2505         (tst-fopenloc-ENV): Likewise.
2506         (tst-fgetws-ENV): Remove variable.
2507         (tst-ungetwc1-ENV): Likewise.
2508         (tst-ungetwc2-ENV): Likewise.
2509         (bug-ungetwc2-ENV): Likewise.
2510         (tst-swscanf-ENV): Likewise.
2511         (bug-ftell-ENV): Likewise.
2512         (tst-fgetwc-ENV): Likewise.
2513         (tst-fseek-ENV): Likewise.
2514         (tst-ftell-partial-wide-ENV): Likewise.
2515         (tst-ftell-active-handler-ENV): Likewise.
2516         (tst-ftell-append-ENV): Likewise.
2517         * posix/Makefile (tst-fnmatch-ENV): Likewise.
2518         (tst-regexloc-ENV): Likewise.
2519         (bug-regex1-ENV): Likewise.
2520         (tst-regex-ENV): Likewise.
2521         (tst-regex2-ENV): Likewise.
2522         (bug-regex5-ENV): Likewise.
2523         (bug-regex6-ENV): Likewise.
2524         (bug-regex17-ENV): Likewise.
2525         (bug-regex18-ENV): Likewise.
2526         (bug-regex19-ENV): Likewise.
2527         (bug-regex20-ENV): Likewise.
2528         (bug-regex22-ENV): Likewise.
2529         (bug-regex23-ENV): Likewise.
2530         (bug-regex25-ENV): Likewise.
2531         (bug-regex26-ENV): Likewise.
2532         (bug-regex30-ENV): Likewise.
2533         (bug-regex32-ENV): Likewise.
2534         (bug-regex33-ENV): Likewise.
2535         (bug-regex34-ENV): Likewise.
2536         (bug-regex35-ENV): Likewise.
2537         (tst-rxspencer-ENV): Likewise.
2538         (tst-rxspencer-no-utf8-ENV): Likewise.
2539         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
2540         (tst-sscanf-ENV): Likewise.
2541         (tst-swprintf-ENV): Likewise.
2542         (tst-swscanf-ENV): Likewise.
2543         (test-vfprintf-ENV): Likewise.
2544         (scanf13-ENV): Likewise.
2545         (bug14-ENV): Likewise.
2546         (tst-grouping-ENV): Likewise.
2547         * stdlib/Makefile (tst-strtod-ENV): Likewise.
2548         (tst-strtod3-ENV): Likewise.
2549         (tst-strtod4-ENV): Likewise.
2550         (tst-strtod5-ENV): Likewise.
2551         (testmb2-ENV): Likewise./
2552         * string/Makefile (tst-strxfrm-ENV): Likewise.
2553         (tst-strxfrm2-ENV): Likewise.
2554         (bug-strcoll1-ENV): Likewise.
2555         (test-strcasecmp-ENV): Likewise.
2556         (test-strncasecmp-ENV): Likewise.
2557         * time/Makefile (tst-strptime-ENV): Likewise.
2558         (tst-ftime_l-ENV): Likewise.
2559         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
2560         (tst-mbrtowc-ENV): Likewise.
2561         (tst-wcrtomb-ENV): Likewise.
2562         (tst-mbrtowc2-ENV): Likewise.
2563         (tst-c16c32-1-ENV): Likewise.
2564         (tst-mbsnrtowcs-ENV): Likewise.
2565
2566 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
2567
2568         * manual/resource.texi (How to get information about the memory
2569         subsystem?): Fix typo.
2570         Reported by Peon de la Parra Ivan <peon@keba.com>
2571
2572 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
2573
2574         [BZ #16882]
2575         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
2576         (pthread_spin_lock): Branch out of spin loop to proper location.
2577         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
2578         (pthread_spin_lock): Likewise.
2579
2580         * nptl/tst-spin4.c: New test.
2581         * nptl/Makefile (tests): Add tst-spin4.
2582
2583 2014-06-03  Andreas Schwab  <schwab@suse.de>
2584
2585         [BZ #15946]
2586         * resolv/res_send.c (send_dg): Reload file descriptor after
2587         calling reopen.
2588
2589 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
2590
2591         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
2592
2593 2014-06-03  Richard Henderson  <rth@redhat.com>
2594
2595         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
2596         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
2597         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
2598         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
2599         in the SAVE_PID block.
2600         (__libc_vfork): New alias.
2601         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
2602
2603         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
2604         child in registers, not on the stack.  Remove RESET_PID conditionals.
2605         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
2606
2607 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2608
2609         * sysdeps/aarch64/libm-test-ulps: Regenerate.
2610
2611 2014-06-03  Wilco  <wdijkstr@arm.com>
2612
2613         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
2614         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
2615         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2616         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
2617         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
2618         Likewise.
2619
2620 2014-06-03  Wilco  <wdijkstr@arm.com>
2621
2622         * sysdeps/aarch64/fpu/math_private.h
2623         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
2624         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
2625         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
2626         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2627         Fix declarations.
2628
2629 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2630
2631         * crypt/crypt-private.h: Include ufc-crypt.h.
2632         (__b64_from_24bit): Declare extern.
2633         * crypt/crypt_util.c(__b64_from_24bit): New function.
2634         (b64t): New static const variable.
2635         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
2636         (b64t): Remove variable.
2637         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
2638         * crypt/sha256-crypt.c: Include crypt-private.h.
2639         (b64t): Remove variable.
2640         (__sha256_crypt_r): Remove b64_from_24bit and replace
2641         with __b64_from_24bit.
2642         * crypt/sha512-crypt.c: Likewise.
2643
2644 2014-06-02  Roland McGrath  <roland@hack.frob.com>
2645
2646         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
2647         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
2648         Label the code __libc_vfork rather than __vfork.
2649         [!NOT_IN_libc] (vfork): Define as weak alias.
2650         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
2651         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
2652         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
2653
2654 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2655
2656         * malloc/malloc.c (malloc_info): Fix format specifier for
2657         n_mmaps.
2658
2659 2014-06-02  Wilco  <wdijkstr@arm.com>
2660
2661         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
2662         FPCR write.
2663
2664 2014-06-02  Wilco  <wdijkstr@arm.com>
2665
2666         [BZ #17009]
2667         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
2668         Rewrite to reduce FPCR/FPSR accesses.
2669
2670 2014-06-01  David S. Miller  <davem@davemloft.net>
2671
2672         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2673
2674 2014-05-31  David S. Miller  <davem@davemloft.net>
2675
2676         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
2677         to occur in round to nearest mode when |x| >= 2.0
2678
2679 2014-05-30  Richard Henderson  <rth@twiddle.net>
2680
2681         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
2682         (PSEUDO_RET_NOERRNO): Remove.
2683         (ret): Don't redefine.
2684         (ret_NOERRNO): Define in terms of ret.
2685         (ret_ERRVAL): Likewise.
2686
2687         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
2688         use of PSEUDO_RET; perform the error check directly.
2689
2690 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
2691
2692         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
2693         with __int128_t.
2694
2695 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2696
2697         * malloc/malloc (malloc_info): Fix formatting.
2698
2699 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2700             Roland McGrath  <roland@hack.frob.com>
2701
2702         * malloc/malloc (malloc_info): Also print mmapped statistics.
2703
2704 2014-05-30  Roland McGrath  <roland@hack.frob.com>
2705
2706         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
2707         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
2708
2709 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
2710
2711         * malloc/malloc.c (malloc_info): Inline mi_arena.
2712
2713 2014-05-29  Richard Henderson  <rth@twiddle.net>
2714
2715         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
2716         Remove comma before expanding ASM_ARGS_##nr.
2717         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
2718         Make _x0 a strict output; make _x8 a strict input; adjust expansion
2719         of ASM_ARGS_##nr.
2720         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
2721         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
2722         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
2723         (ASM_ARGS_1): Add leading comma.
2724
2725         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
2726         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
2727         to __errno_location.
2728         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
2729         Remove the expected plt for __errno_location.
2730
2731         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2732         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
2733         call to __read_tp.
2734
2735         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2736         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
2737         it and break it down.
2738         (DOCARGS_0, DOCARGS_1): Do nothing.
2739         (DOCARGS_2): Update to store into the new stack frame.
2740         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
2741         (UNDOCARGS_1): Update to restore from the new stack frame.
2742         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
2743         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
2744
2745         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2746         (SINGLE_THREAD_P): New parameter for result regno.
2747         (PSEUDO): Update to match; use cbz instead of beq.
2748
2749         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2750         Use ENTRY to define the _nocancel entry point.  Share the syscall
2751         and syscall error check paths with the cancel path.
2752         (PSEUDO_END): New.
2753
2754         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
2755         whitespace; tabs before and after asm mnemonics.
2756
2757 2014-05-29  Eric Wong  <normalperson@yhbt.net>
2758
2759         [BZ #15132]
2760         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2761         Call fstat64 or stat64 internally, depending on arguments passed.
2762         Replace stat buffer argument with file descriptor argument.
2763         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
2764         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
2765         Pass fd to __internal_statvfs instead of calling fstat64.
2766         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
2767         Pass fd to __internal_statvfs64 instead of calling fstat64.
2768         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
2769         Pass -1 to __internal_statvfs instead of calling stat64.
2770         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
2771         Pass -1 to __internal_statvfs64 instead of calling stat64.
2772
2773 2014-05-28  Roland McGrath  <roland@hack.frob.com>
2774
2775         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
2776         that was previously under [RESET_PID].
2777         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
2778
2779         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
2780         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
2781
2782 2014-05-27  Roland McGrath  <roland@hack.frob.com>
2783
2784         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
2785
2786         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
2787         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
2788
2789 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
2790
2791         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
2792
2793 2014-05-27  Andreas Schwab  <schwab@suse.de>
2794
2795         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
2796         TLS_INIT_TP macro.
2797         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2798         * elf/rtld.c (init_tls, dl_main): Likewise.
2799         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
2800         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
2801         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
2802         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
2803         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
2804         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
2805         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
2806         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
2807         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
2808         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
2809         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
2810         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
2811         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
2812         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
2813         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
2814         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
2815         * sysdeps/generic/tls.h: Update description.
2816
2817 2014-05-27  Will Newton  <will.newton@linaro.org>
2818
2819         [BZ #16990]
2820         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
2821         and restore r2 rather than just restoring.
2822
2823 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2824
2825         [BZ #16724]
2826         * libio/tst-ftell-append.c: New test case.
2827         * libio/Makefile (tests): Add test case.
2828         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
2829         append mode.
2830         * libio/wfileops.c (do_ftell_wide): Likewise.
2831
2832 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2833
2834         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2835
2836         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
2837         ...
2838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
2839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
2840         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
2841         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
2842         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
2843         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
2844         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
2845         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
2846         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
2847         Moved ...
2848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
2849         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
2850         Moved ...
2851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
2852         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
2853         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
2854         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
2855         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
2856         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
2857         ...
2858         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
2859         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
2860         Moved ...
2861         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
2862         here.
2863         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
2864         ...
2865         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
2866         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
2867         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
2868
2869         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
2870         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
2871         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
2872         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
2873
2874         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
2875         merge into ...
2876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
2877         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
2878         ...
2879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
2880         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
2881         ...
2882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
2883         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2884         Moved ...
2885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
2886         here.
2887         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2888         Moved ...
2889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
2890         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2891         Moved ...
2892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
2893
2894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
2895         conditional [RESET_PID].
2896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
2897         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
2898         removed.
2899         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
2900         removed.
2901
2902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
2903         <tcb-offsets.h>.
2904         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2905         (__libc_vfork): New strong alias.
2906         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
2907         removed.
2908         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
2909         Removed.
2910
2911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
2912         <tcb-offsets.h>.
2913         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
2914         (__libc_vfork): New strong alias.
2915         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
2916         removed.
2917         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
2918         removed.
2919
2920 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
2921
2922         * malloc/malloc.c (mi_arena): New function.
2923         (malloc_info): Remove nested function mi_arena. Call non-nosted
2924         function mi_arena.
2925
2926 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2927
2928         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
2929         by insrwi.
2930         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2931         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2932         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
2933         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
2934         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
2935         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
2936         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
2937
2938 2014-05-26  Andreas Schwab  <schwab@suse.de>
2939
2940         [BZ #16984]
2941         * locale/programs/repertoire.c (repertoire_read): Add slash
2942         between I18NPATH element and file name.
2943         * locale/programs/locfile.c (locfile_read): Likewise.
2944
2945 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2946
2947         * nptl/pthread_mutexattr_settype.c
2948         (__pthread_mutexattr_settype):
2949         Disable lock elision for PTHREAD_MUTEX_NORMAL.
2950
2951 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2952
2953         * nptl/tst-mutex5 (do_test):
2954         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
2955
2956 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2957
2958         * benchtests/README: Document 'init' directive.
2959         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
2960         BENCH_INIT.
2961         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
2962         (parse_file): Recognize 'init' directive.
2963
2964 2014-05-26  Kyle McMartin  <kyle@redhat.com>
2965
2966         [BZ #16796]
2967         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
2968         alignment of struct pthread.
2969
2970 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2971
2972         [BZ #16878]
2973         * nscd/netgroupcache.c (addgetnetgrentX): Look for
2974         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2975         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
2976         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2977
2978 2014-05-25  Richard Henderson  <rth@twiddle.net>
2979
2980         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2981         (SINGLE_THREAD_P_PIC): Remove.
2982         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
2983         (SINGLE_THREAD_P_PIC): Remove.
2984
2985         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
2986         branch to syscall error ...
2987         (PSEUDO): ... here.
2988         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
2989         from __local_syscall_error to .Lsyscall_error.
2990         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
2991         (SYSCALL_ERROR): Update label name.
2992
2993         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2994         Do not use DOARGS/UNDOARGS.
2995         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
2996         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
2997         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
2998         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
2999         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
3000
3001         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
3002         block comment.
3003
3004         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
3005         define if !NOT_IN_libc.
3006         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
3007         define with non-default symbol versions.
3008
3009 2014-05-23  Richard Henderson  <rth@twiddle.net>
3010
3011         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
3012         (vfork, __vfork): Define via compat_symbol.
3013
3014         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
3015         [!HAVE_IFUNC] (vfork_compat): Remove.
3016         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
3017
3018 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
3019
3020         [BZ #16978]
3021         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
3022         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
3023         variable.
3024
3025 2014-05-23  Richard Henderson  <rth@twiddle.net>
3026
3027         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
3028         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
3029         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
3030         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
3031
3032         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
3033         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
3034         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
3035         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
3036         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
3037         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
3038         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
3039         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
3040         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
3041         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
3042         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
3043         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
3044         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
3045         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
3046         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
3047         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
3048         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
3049         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
3050         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
3051         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
3052         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
3053         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
3054         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
3055         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
3056         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
3057         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
3058         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
3059         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
3060         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
3061         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
3062         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
3063         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
3064         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
3065         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
3066         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
3067         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
3068         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
3069         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
3070         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
3071         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
3072         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
3073         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
3074         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
3075         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
3076         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
3077         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
3078         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
3079         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
3080         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
3081         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
3082         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
3083         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
3084         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
3085         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
3086         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
3087         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
3088
3089         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
3090         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
3091         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
3092         before exiting on error.
3093         (__libc_vfork): New strong alias.
3094         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
3095         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
3096
3097         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
3098         that was previously under [RESET_PID].
3099         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
3100
3101         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
3102
3103 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
3104
3105         [BZ #16977]
3106         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
3107         value when x - 1 is zero.
3108         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
3109         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
3110         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
3111         0.0L for an argument of 1.0L.
3112         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
3113         Likewise.
3114         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
3115         value when x - 1 is zero.
3116         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
3117         * sysdeps/i386/fpu/libm-test-ulps: Update.
3118         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3119
3120 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
3121
3122         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
3123         alphasort and versionsort.
3124
3125 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3126
3127         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
3128         macro.
3129         [copysignf]: Likewise.
3130
3131 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3132
3133         * crypt/md5-crypt.c: Fix formatting.
3134
3135 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
3136
3137         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
3138         (b64_from_24bit): New function.
3139
3140 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3141
3142         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
3143         libc_hidden_builtin_def to ifunc.
3144         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3145         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
3146
3147 2014-05-21  Roland McGrath  <roland@hack.frob.com>
3148
3149         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
3150         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
3151
3152 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
3153
3154         * nscd/Depend (linuxthreads): Remove.
3155         (nptl): Add.
3156         * resolv/Depend (linuxthreads): Remove.
3157         * rt/Depend (linuxthreads): Remove.
3158
3159         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
3160         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
3161         $(common-objpfx)elf/.
3162         (link-libc-before-gnulib): Likewise.
3163         (elfobjdir): Remove variable.
3164         * Makefile (install): Use $(elf-objpfx) instead of
3165         $(common-objpfx)elf/.
3166         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
3167         $(elfobjdir)/.
3168         (link-libc-deps): Likewise.
3169         ($(common-objpfx)libc.so): Likewise.
3170         ($(common-objpfx)linkobj/libc.so): Likewise.
3171         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
3172         instead of $(common-objpfx)elf/.
3173         (symbolic-link-list): Likewise.
3174         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
3175         [$(cross-compiling) = no]: Likewise.
3176         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
3177         $(elfobjdir)/.
3178         (static-gnulib-arch): Likewise.
3179         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
3180         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
3181         $(common-objpfx)elf/.
3182
3183 2014-05-21  Richard Henderson  <rth@redhat.com>
3184
3185         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
3186         (SINGLE_THREAD_P): Use the correct width load.  Fold
3187         into the ldr offset.
3188
3189         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
3190         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
3191
3192 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
3193
3194         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
3195         (libgcc_s_resume): Use __attribute_used__.
3196         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
3197         Likewise.
3198
3199 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3200
3201         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
3202         optimization when used with float constants.
3203
3204         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3205
3206 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
3207
3208         [BZ #16915]
3209         * locale/nl_langinfo_l.c: Make direct reference to every
3210         _nl_current_CATEGORY symbol.
3211         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
3212         (tests-static): Add tst-langinfo-static.
3213         (tests-special): Add tst-langinfo-static.out.
3214         ($(objpfx)tst-langinfo.out): Redirect output.
3215         ($(objpfx)tst-langinfo-static.out): New.
3216         * localedata/tst-langinfo.sh: Send output to stdout.
3217         * localedata/tst-langinfo-static.c: New file.
3218
3219         [BZ #16965]
3220         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
3221         when the shift amount is modulo the limb size.
3222
3223 2014-05-20  Richard Henderson  <rth@redhat.com>
3224
3225         [BZ #16967]
3226         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
3227         Change type of sa_flags from unsigned int to int.
3228
3229         [BZ #16966]
3230         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
3231
3232         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
3233
3234 2014-05-20  Will Newton  <will.newton@linaro.org>
3235
3236         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
3237         Test the return value of the system call in the nocancel case.
3238
3239 2014-05-20  Will Newton  <will.newton@linaro.org>
3240             Yvan Roux  <yvan.roux@linaro.org>
3241
3242         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
3243         #include of asm/ptrace.h.
3244         (PTRACE_GET_THREAD_AREA): Remove #undef.
3245         (PTRACE_GETHBPREGS): Likewise.
3246         (PTRACE_SETHBPREGS): Likewise.
3247         (struct user_regs_struct): New structure.
3248         (struct user_fpsimd_struct): New structure.
3249         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
3250         #include of asm/ptrace.h and second #include of sys/user.h.
3251         (PTRACE_GET_THREAD_AREA): Remove #undef.
3252         (PTRACE_GETHBPREGS): Likewise.
3253         (PTRACE_SETHBPREGS): Likewise.
3254         (ELF_NGREG): Use new struct user_regs_struct.
3255         (elf_fpregset_t): Use new struct user_fpsimd_struct.
3256
3257 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3258
3259         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
3260         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
3261
3262 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
3263
3264         [BZ #16958]
3265         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
3266         membar to avoid block loads/stores to overlap previous stores.
3267
3268 2014-05-17  Richard Henderson  <rth@redhat.com>
3269
3270         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
3271         Create the __##syscall_name##_nocancel entry point.
3272         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
3273         Remove; let the sysdep-cancel.h code create it.
3274
3275 2014-05-17  David S. Miller  <davem@davemloft.net>
3276
3277         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
3278         Protect with __USE_GNU.
3279         (TIOCSET_TEMPT): Likewise.
3280         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
3281         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
3282         these are already provided in bits/ioctl-types.h
3283
3284 2014-05-16  Roland McGrath  <roland@hack.frob.com>
3285
3286         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
3287         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
3288
3289         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
3290         Use wait4 regardless of [__NR_waitpid].
3291
3292 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
3293
3294         PR libgcc/60166
3295         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
3296         (_FP_NANSIGN_Q): Set the quiet bit.
3297
3298 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
3299
3300         * benchtests/Makefile
3301         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
3302         not $(common-objpfx)math/libm.so.
3303         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
3304         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
3305         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
3306         $(common-objpfx)dlfcn/libdl.so.
3307         ($(objpfx)tst-audit8): Depend on $(libm), not
3308         $(common-objpfx)math/libm.so.
3309         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
3310         not $(common-objpfx)dlfcn/libdl.so.
3311         * math/Makefile
3312         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
3313         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
3314         [$(build-shared) = yes].
3315         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
3316         $(common-objpfx)nptl/libpthread.so.
3317         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
3318         $(common-objpfx)math/libm.so$(libm.so-version) or
3319         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
3320         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
3321         $(common-objpfx)dlfcn/libdl.so.
3322         * setjmp/Makefile (link-libm): Remove variable.
3323         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
3324         * stdio-common/Makefile (link-libm): Remove variable.
3325         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
3326         * stdlib/Makefile (link-libm): Remove variable.
3327         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
3328         ($(objpfx)tst-strtod-round): Likewise.
3329         ($(objpfx)tst-tininess): Likewise.
3330         ($(objpfx)tst-strtod-underflow): Likewise.
3331         ($(objpfx)tst-strtod6): Likewise.
3332         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
3333         $(libdl), not $(common-objpfx)nptl/libpthread.so and
3334         $(common-objpfx)dlfcn/libdl.so.
3335
3336 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3337
3338         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
3339         BSD terminal modes definitions.
3340
3341 2014-05-16  Roland McGrath  <roland@hack.frob.com>
3342
3343         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
3344         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
3345
3346         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
3347         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
3348         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
3349         Don't do #include_next.
3350         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
3351         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
3352         Don't do #include_next.
3353         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
3354         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
3355         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
3356         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
3357
3358 2014-05-16  Allan McRae  <allan@archlinux.org>
3359
3360         * po/sv.po: Update Swedish translation from translation project.
3361
3362         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
3363         in sed expression.
3364
3365 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
3366
3367         [BZ #16917]
3368         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
3369         errno if the TIOCGPTN ioctl fails with an error different than
3370         EINVAL.
3371         * login/tst-ptsname.c: New file.
3372         * login/Makefile (tests): Add tst-ptsname.
3373
3374         [BZ #16943]
3375         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
3376         and prlimit64.
3377
3378 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3379
3380         [BZ #16849]
3381         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
3382         herrno to return EAI_AGAIN.
3383
3384 2014-05-14  Roland McGrath  <roland@hack.frob.com>
3385
3386         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
3387         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
3388         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
3389         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
3390         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
3391         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
3392         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
3393         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
3394         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
3395         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
3396         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
3397         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
3398         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
3399         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
3400         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
3401         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
3402         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
3403         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
3404         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
3405         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
3406         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
3407         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
3408         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
3409         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
3410         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
3411         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
3412         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
3413         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
3414         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
3415         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
3416         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
3417         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
3418         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
3419         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
3420         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
3421         Moved ...
3422         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
3423         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
3424         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
3425         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
3426         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
3427         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
3428         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
3429         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
3430         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
3431         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
3432         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
3433         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
3434         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
3435         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
3436         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
3437         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
3438         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
3439         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
3440         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
3441         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
3442         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
3443         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
3444         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
3445         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
3446         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
3447         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
3448         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
3449         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3450         Moved ...
3451         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
3452         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
3453         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
3454         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
3455         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
3456         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
3457         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
3458         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
3459         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
3460         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
3461         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
3462         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
3463         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
3464         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
3465         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
3466         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
3467         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
3468         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
3469         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
3470         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3471         Moved ...
3472         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
3473         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
3474         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
3475
3476         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
3477         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
3478         (libpthread-sysdep_routines): Add elision-related stuff here instead.
3479         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
3480         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
3481         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
3482         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
3483         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
3484         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
3485         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
3486         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
3487         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
3488         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
3489         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
3490         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
3491         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
3492         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
3493         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
3494         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
3495         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
3496         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
3497         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
3498         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
3499         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
3500         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
3501         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
3502         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
3503         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
3504         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
3505         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
3506         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
3507
3508         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
3509         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
3510
3511         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
3512         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
3513         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
3514         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
3515         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
3516         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
3517         Moved ...
3518         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
3519         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
3520         Moved ...
3521         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
3522         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
3523         Moved ...
3524         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
3525         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
3526         Moved ...
3527         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
3528         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
3529         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
3530         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
3531         Moved ...
3532         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
3533         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
3534         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
3535         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
3536         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
3537         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
3538         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
3539         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
3540         Moved ...
3541         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
3542         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
3543         Moved ...
3544         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
3545         ... here.
3546         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
3547         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
3548         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
3549         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
3550         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
3551         Moved ...
3552         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
3553         ... here.
3554         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
3555         Moved ...
3556         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
3557         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
3558         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
3559         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
3560         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
3561         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
3562         Moved ...
3563         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
3564         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
3565         Moved ...
3566         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
3567         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
3568         Moved ...
3569         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
3570         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
3571         Moved ...
3572         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
3573         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
3574         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
3575         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
3576         Moved ...
3577         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
3578         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
3579         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
3580         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
3581         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
3582         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
3583         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
3584         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
3585         Moved ...
3586         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
3587         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3588         Moved ...
3589         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3590         ... here.
3591         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
3592         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
3593         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
3594         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
3595         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3596         Moved ...
3597         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3598         ... here.
3599         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
3600         Moved ...
3601         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
3602         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
3603         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
3604         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
3605         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
3606         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
3607         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
3608         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
3609         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
3610         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
3611         Moved ...
3612         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
3613         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
3614         Moved ...
3615         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
3616         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
3617         Moved ...
3618         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
3619         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
3620         Moved ...
3621         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
3622         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
3623         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
3624         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
3625         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
3626         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
3627         Moved ...
3628         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
3629         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
3630         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
3631         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
3632         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
3633         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
3634         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
3635         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
3636         Moved ...
3637         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
3638         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3639         Moved ...
3640         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3641         ... here.
3642         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
3643         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
3644         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
3645         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
3646         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3647         Moved ...
3648         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3649         ... here.
3650         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
3651         Moved ...
3652         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
3653         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
3654         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
3655         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
3656         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
3657         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
3658         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
3659         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
3660         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
3661         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
3662         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
3663
3664         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
3665         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
3666
3667         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
3668         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
3669
3670         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
3671         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
3672         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
3673         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
3674         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
3675         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
3676         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
3677         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
3678         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
3679         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
3680         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
3681         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
3682         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
3683         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
3684         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
3685         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
3686         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
3687         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3688         Moved ...
3689         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
3690         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
3691         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
3692         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3693         Moved ...
3694         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
3695         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
3696         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
3697         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
3698         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
3699         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
3700         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
3701         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3702         Moved ...
3703         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
3704         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3705         Moved ...
3706         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
3707         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
3708         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
3709         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
3710         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
3711         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
3712         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
3713         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
3714         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
3715         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
3716         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
3717         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
3718         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
3719         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
3720         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
3721         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
3722         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
3723
3724         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
3725         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
3726         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
3727         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
3728         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
3729
3730         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
3731         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
3732         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
3733         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
3734         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
3735         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
3736         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
3737         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
3738         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
3739         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
3740
3741         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
3742         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
3743
3744         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
3745         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
3746         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
3747         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
3748         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
3749         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
3750         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
3751         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
3752         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
3753         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
3754         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
3755         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
3756         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
3757         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
3758         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
3759         Update #include.
3760         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
3761         Likewise.
3762         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
3763         Likewise.
3764         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
3765         Likewise.
3766         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
3767         Likewise.
3768         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
3769         Likewise.
3770         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
3771         Likewise.
3772         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
3773         Likewise.
3774         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
3775         Likewise.
3776         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
3777         Likewise.
3778         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
3779         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
3780         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
3781         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
3782         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
3783         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
3784         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
3785         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
3786         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
3787         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
3788         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
3789         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
3790         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
3791         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
3792         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
3793
3794         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
3795         that was previously under [RESET_PID].
3796         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3797         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
3798         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
3799
3800         * sysdeps/i386/nptl/Implies: New file.
3801         * sysdeps/x86_64/nptl/Implies: New file.
3802         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
3803         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
3804         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
3805         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
3806
3807         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
3808         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3809         (__libc_vfork): New strong alias.
3810         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
3811         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
3812
3813         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
3814         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3815         (__libc_vfork): New strong alias.
3816         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
3817         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
3818
3819         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
3820         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3821         (__libc_vfork): New strong alias.
3822         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
3823         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
3824         * nptl/pt-vfork.c: New file.
3825         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
3826         (libpthread: GLIBC_2.20): New version set (empty).
3827
3828 2014-05-14  Will Newton  <will.newton@linaro.org>
3829
3830         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
3831         rather than #if.
3832
3833 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3834
3835         [BZ #16564]
3836         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
3837         arguments with exponent 65 or above.
3838         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
3839         arguments 0x1p113L or above.
3840         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
3841         to arguments 0x1p107L or above.
3842         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
3843         positive arguments with exponent 65 or above.
3844         * math/auto-libm-test-in: Add more tests of log1p.
3845         * math/auto-libm-test-out: Regenerated.
3846
3847         [BZ #16928]
3848         * math/s_cacos.c (__cacos): Ensure zero real part of result from
3849         non-finite arguments is +0.
3850         * math/s_cacosf.c (__cacosf): Likewise.
3851         * math/s_cacosl.c (__cacosl): Likewise.
3852         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
3853         * sysdeps/i386/fpu/libm-test-ulps: Update.
3854         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3855
3856         [BZ #16927]
3857         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
3858         value.
3859         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
3860         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
3861         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
3862         for explicit high bit of mantissa when testing for argument equal
3863         to 1.
3864         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
3865         * sysdeps/i386/fpu/libm-test-ulps: Update.
3866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3867
3868         [BZ #16516]
3869         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
3870         (__erf): Scale by 16 instead of 8 in potentially underflowing
3871         case.  Ensure exception if result actually underflows.
3872         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
3873         (__erff): Scale by 16 instead of 8 in potentially underflowing
3874         case.  Ensure exception if result actually underflows.
3875         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
3876         (efx8): Remove variable.
3877         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3878         case.  Ensure exception if result actually underflows.
3879         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
3880         (efx8): Remove variable.
3881         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3882         case.  Ensure exception if result actually underflows.
3883         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
3884         (efx8): Remove variable.
3885         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3886         case.  Ensure exception if result actually underflows.
3887         * math/auto-libm-test-in: Add more tests of erf.
3888         * math/auto-libm-test-out: Regenerated.
3889
3890 2014-05-14  Andreas Schwab  <schwab@suse.de>
3891
3892         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
3893         Remove code conditionalized on USE___THREAD.
3894
3895         * config.h.in (HAVE_PT_CHOWN): Define as 0.
3896         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
3897         not definedness.
3898
3899 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3900
3901         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
3902         Define unconditionally.
3903         (__ASSUME_O_CLOEXEC): Likewise.
3904         (__ASSUME_SOCK_CLOEXEC): Likewise.
3905         (__ASSUME_IN_NONBLOCK): Likewise.
3906         (__ASSUME_PIPE2): Likewise.
3907         (__ASSUME_EVENTFD2): Likewise.
3908         (__ASSUME_SIGNALFD4): Likewise.
3909         (__ASSUME_DUP3): Likewise.
3910         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
3911         (__ASSUME_DUP3): Do not define.
3912         (__ASSUME_EVENTFD2): Likewise.
3913         (__ASSUME_IN_NONBLOCK): Likewise.
3914         (__ASSUME_O_CLOEXEC): Likewise.
3915         (__ASSUME_PIPE2): Likewise.
3916         (__ASSUME_SIGNALFD4): Likewise.
3917         (__ASSUME_SOCK_CLOEXEC): Likewise.
3918         (__ASSUME_UTIMES): Undefine.
3919         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3920         (__ASSUME_UTIMES): Do not define.
3921         (__ASSUME_O_CLOEXEC): Likewise.
3922         (__ASSUME_SOCK_CLOEXEC): Likewise.
3923         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
3924         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
3925         0x020621].
3926         (__ASSUME_PIPE2): Likewise.
3927         (__ASSUME_EVENTFD2): Likewise.
3928         (__ASSUME_SIGNALFD4): Likewise.
3929         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
3930         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
3931         Do not define.
3932         (__ASSUME_EVENTFD2): Likewise.
3933         (__ASSUME_SIGNALFD4): Likewise.
3934         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3935         (__ASSUME_32BITUIDS): Likewise.
3936         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3937         (__ASSUME_IPC64): Likewise.
3938         (__ASSUME_ST_INO_64_BIT): Likewise.
3939         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
3940         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
3941         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3942         (__ASSUME_UTIMES): Do not define.
3943         (__ASSUME_PSELECT): Likewise.
3944         (__ASSUME_PPOLL): Likewise.
3945         (__ASSUME_O_CLOEXEC): Likewise.
3946         (__ASSUME_SOCK_CLOEXEC): Likewise.
3947         (__ASSUME_IN_NONBLOCK): Likewise.
3948         (__ASSUME_PIPE2): Likewise.
3949         (__ASSUME_EVENTFD2): Likewise.
3950         (__ASSUME_SIGNALFD4): Likewise.
3951         (__ASSUME_DUP3): Likewise.
3952         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3953         (__ASSUME_UTIMES): Likewise.
3954         (__ASSUME_O_CLOEXEC): Likewise.
3955         (__ASSUME_SOCK_CLOEXEC): Likewise.
3956         (__ASSUME_IN_NONBLOCK): Likewise.
3957         (__ASSUME_PIPE2): Likewise.
3958         (__ASSUME_EVENTFD2): Likewise.
3959         (__ASSUME_SIGNALFD4): Likewise.
3960         (__ASSUME_DUP3): Likewise.
3961         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3962         (__ASSUME_UTIMES): Likewise.
3963         (__ASSUME_O_CLOEXEC): Likewise.
3964         (__ASSUME_SOCK_CLOEXEC): Likewise.
3965         (__ASSUME_IN_NONBLOCK): Likewise.
3966         (__ASSUME_PIPE2): Likewise.
3967         (__ASSUME_EVENTFD2): Likewise.
3968         (__ASSUME_SIGNALFD4): Likewise.
3969         (__ASSUME_DUP3): Likewise.
3970         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
3971         Likewise.
3972         (__ASSUME_UTIMES): Likewise.
3973         (__ASSUME_EVENTFD2): Likewise.
3974         (__ASSUME_SIGNALFD4): Likewise.
3975         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3976         (__ASSUME_O_CLOEXEC): Likewise.
3977         (__ASSUME_SOCK_CLOEXEC): Likewise.
3978         (__ASSUME_IN_NONBLOCK): Likewise.
3979         (__ASSUME_PIPE2): Likewise.
3980         (__ASSUME_EVENTFD2): Likewise.
3981         (__ASSUME_SIGNALFD4): Likewise.
3982         (__ASSUME_DUP3): Likewise.
3983         (__ASSUME_UTIMES): Undefine.
3984
3985         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
3986         feclearexcept.  Remove symbol versioning code.
3987         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
3988         symbol versioning code.
3989         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
3990         symbol versioning code.
3991         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
3992         feupdateenv.  Remove symbol versioning code.
3993         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
3994         fegetexceptflag.  Remove symbol versioning code.
3995         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
3996         fesetexceptflag.  Remove symbol versioning code.
3997         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
3998         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
3999         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
4000         (__posix_fadvise64_l32): Remove prototype.
4001         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
4002         code.
4003
4004 2014-05-13  Roland McGrath  <roland@hack.frob.com>
4005
4006         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
4007         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
4008         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
4009         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
4010
4011 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
4012
4013         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
4014         current working directory
4015
4016 2014-05-13  Roland McGrath  <roland@hack.frob.com>
4017
4018         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
4019         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
4020         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
4021         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
4022         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
4023         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
4024         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
4025         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
4026         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
4027         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
4028         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
4029         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
4030         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
4031         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
4032         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
4033         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
4034         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
4035         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
4036         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
4037         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
4038         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
4039         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
4040         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
4041         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
4042         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
4043         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
4044         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
4045         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
4046         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
4047         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
4048         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
4049         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
4050         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
4051         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
4052         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
4053         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
4054         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
4055         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
4056         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
4057         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
4058         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
4059         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
4060
4061         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
4062         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
4063
4064         * sysdeps/unix/sysv/linux/arm/Makefile
4065         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
4066         Add rt-aeabi_unwind_cpp_pr1.
4067         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
4068         Add nptl-aeabi_unwind_cpp_pr1.
4069         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
4070         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
4071         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
4072         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
4073         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
4074         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
4075
4076         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
4077         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
4078         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
4079         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
4080
4081         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
4082         Deconditionalize the code that was previously under [RESET_PID].
4083         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
4084
4085         * sysdeps/generic/exit-thread.h: New file.
4086         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
4087         * include/unistd.h (__exit_thread): Remove declaration.
4088         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
4089         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
4090         * csu/libc-start.c: Include <exit-thread.h>.
4091         (LIBC_START_MAIN): Pass no argument to __exit_thread.
4092         * nptl/pthread_create.c: Include <exit-thread.h>.
4093         (start_thread): Call __exit_thread in place of __exit_thread_inline.
4094         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
4095         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
4096         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
4097         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
4098         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
4099         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
4100         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
4101         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
4102         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
4103         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
4104         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
4105         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
4106         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
4107         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
4108         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
4109         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
4110
4111 2014-05-13  Andreas Schwab  <schwab@suse.de>
4112
4113         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
4114
4115 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
4116
4117         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
4118         (__ASSUME_UTIMES): Do not condition on kernel version.
4119         (__ASSUME_PSELECT): Define unconditionally.
4120         (__ASSUME_PPOLL): Likewise.
4121         (__ASSUME_ATFCTS): Likewise.
4122         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
4123         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
4124         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
4125         (__ASSUME_UTIMENSAT): Define unconditionally.
4126         (__ASSUME_PRIVATE_FUTEX): Likewise.
4127         (__ASSUME_FALLOCATE): Likewise.
4128         (__ASSUME_O_CLOEXEC): Likewise.
4129         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
4130         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
4131         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
4132         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
4133         (__ASSUME_IN_NONBLOCK): Likewise.
4134         (__ASSUME_PIPE2): Likewise.
4135         (__ASSUME_EVENTFD2): Likewise.
4136         (__ASSUME_SIGNALFD4): Likewise.
4137         (__ASSUME_DUP3): Likewise.
4138         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4139         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
4140         (__ASSUME_AT_RANDOM): Likewise.
4141         (__ASSUME_PREADV): Likewise.
4142         (__ASSUME_PWRITEV): Likewise.
4143         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
4144         (__ASSUME_F_GETOWN_EX): Define unconditionally.
4145         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
4146         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4147         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
4148         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4149         (__ASSUME_O_CLOEXEC): Define unconditionally.
4150         (__ASSUME_PSELECT): Do not undefine conditionally.
4151         (__ASSUME_PPOLL): Likewise.
4152         (__ASSUME_ATFCTS): Likewise.
4153         (__ASSUME_SET_ROBUST_LIST): Likewise.
4154         (__ASSUME_UTIMENSAT): Likewise.
4155         (__ASSUME_FDATASYNC): Define unconditionally.
4156         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4157         (__ASSUME_SIGFRAME_V2): Likewise.
4158         )__ASSUME_EVENTFD2): Likewise.
4159         (__ASSUME_SIGNALFD4): Likewise.
4160         (__ASSUME_PSELECT): Do not undefine conditionally.
4161         (__ASSUME_PPOLL): Likewise.
4162         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4163         (__ASSUME_PSELECT): Define unconditionally.
4164         (__ASSUME_PPOLL): Likewise.
4165         (__ASSUME_O_CLOEXEC): Likewise.
4166         (__ASSUME_SOCK_CLOEXEC): Likewise.
4167         (__ASSUME_IN_NONBLOCK): Likewise.
4168         (__ASSUME_PIPE2): Likewise.
4169         (__ASSUME_EVENTFD2): Likewise.
4170         (__ASSUME_SIGNALFD4): Likewise.
4171         (__ASSUME_DUP3): Likewise.
4172         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4173         (__ASSUME_O_CLOEXEC): Likewise.
4174         (__ASSUME_SOCK_CLOEXEC): Likewise.
4175         (__ASSUME_IN_NONBLOCK): Likewise.
4176         (__ASSUME_PIPE2): Likewise.
4177         (__ASSUME_EVENTFD2): Likewise.
4178         (__ASSUME_SIGNALFD4): Likewise.
4179         (__ASSUME_DUP3): Likewise.
4180         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4181         (__ASSUME_EVENTFD2): Likewise.
4182         (__ASSUME_SIGNALFD4): Likewise.
4183         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4184
4185 2014-05-12  Andreas Schwab  <schwab@suse.de>
4186
4187         [BZ #16932]
4188         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
4189         (_nss_nis_gethostbyname4_r): Return error if item length is larger
4190         than maximum RPC packet size.
4191         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
4192         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
4193         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
4194         (_nss_nis_getservbyport_r): Likewise.
4195
4196 2014-05-12  Will Newton  <will.newton@linaro.org>
4197
4198         * malloc/Makefile (tests): Add tst-mallopt.
4199         * malloc/tst-mallopt.c: New file.
4200
4201 2014-05-09  Roland McGrath  <roland@hack.frob.com>
4202
4203         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
4204         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
4205
4206 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4207
4208         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
4209         (tst-tlsmod6.so): Likewise.
4210
4211 2014-05-09  Roland McGrath  <roland@hack.frob.com>
4212
4213         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
4214
4215 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
4216
4217         [BZ #16064]
4218         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
4219         and <dl-procinfo.h>.
4220         (__fegetenv): Save SSE state in envp->__eip if supported.
4221         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
4222         envp->__eip if supported.
4223         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
4224         and <dl-procinfo.h>.
4225         (__fesetenv): Always set __eip, __cs_selector, __opcode,
4226         __data_offset and __data_selector in environment to 0.  Set SSE
4227         state if supported.
4228         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
4229         test-fenv-sse.
4230         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
4231         -mfpmath=sse.
4232         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
4233
4234 2014-05-09  Will Newton  <will.newton@linaro.org>
4235
4236         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
4237         and libc_relro_required for ARM.
4238         * sysdeps/arm/preconfigure: Regenerate.
4239
4240 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4241             Stefan Liebler  <stli@linux.vnet.ibm.com>
4242
4243         * config.make.in (enable-lock-elision): New Makefile variable.
4244         * configure.ac: Likewise.
4245         * configure: Regenerate.
4246         * sysdeps/s390/configure.ac:
4247         Add check for gcc transactions support.
4248         * sysdeps/s390/configure: Regenerate.
4249         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
4250         Build elision files if enabled.
4251         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
4252         Add lock elision support for s390.
4253         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
4254         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
4255         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
4256         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
4257         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
4258         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
4259         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
4260         Likewise.
4261         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
4262         Likewise.
4263         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
4264         Likewise.
4265         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
4266         Likewise.
4267         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
4268         (__lll_timedlock_elision, __lll_lock_elision)
4269         (__lll_unlock_elision, __lll_trylock_elision)
4270         (lll_timedlock_elision, lll_lock_elision)
4271         (lll_unlock_elision, lll_trylock_elision): Add.
4272         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4273         (pthread_mutex_t): Add lock elision support for s390.
4274
4275 2014-05-14  Wilco  <wdijkstr@arm.com>
4276
4277         * sysdeps/arm/fclrexcpt.c: Cleanup.
4278         * sysdeps/arm/fedisblxcpt.c: Cleanup.
4279         * sysdeps/arm/feenablxcpt.c: Cleanup.
4280         * sysdeps/arm/fegetenv.c: Cleanup.
4281         * sysdeps/arm/fegetexcept.c: Cleanup.
4282         * sysdeps/arm/fegetround.c: Cleanup.
4283         * sysdeps/arm/feholdexcpt.c: Cleanup.
4284         * sysdeps/arm/fesetenv.c: Cleanup.
4285         * sysdeps/arm/fesetround.c: Cleanup.
4286         * sysdeps/arm/feupdateenv.c: Cleanup.
4287         * sysdeps/arm/fgetexcptflg.c: Cleanup.
4288         * sysdeps/arm/fraiseexcpt.c: Cleanup.
4289         * sysdeps/arm/fsetexcptflg.c: Cleanup.
4290         * sysdeps/arm/ftestexcept.c: Cleanup.
4291         * sysdeps/arm/get-rounding-mode.h: Cleanup.
4292         * sysdeps/arm/setfpucw.c: Cleanup.
4293
4294 2014-05-09  Will Newton  <will.newton@linaro.org>
4295
4296         * sysdeps/arm/armv7/strcmp.S: New file.
4297         * NEWS: Mention addition of ARMv7 optimized strcmp.
4298
4299 2014-05-08  Roland McGrath  <roland@hack.frob.com>
4300
4301         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
4302         look for %.ac rather than %.in.
4303
4304         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
4305         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
4306         * sysdeps/mach/hurd/configure: Regenerated.
4307         * sysdeps/unix/sysv/linux/configure: Regenerated.
4308
4309         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
4310
4311 2014-05-07  Steve Ellcey  <sellcey@mips.com>
4312
4313         [BZ# 16922]
4314         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
4315         (LONG_SUB): Ditto.
4316         (PTR_SUB): Ditto.
4317
4318 2014-05-07  Andreas Schwab  <schwab@suse.de>
4319
4320         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
4321         when skipping over non-matching result from nscd.
4322
4323 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
4324
4325         [BZ #16876]
4326         * nptl/sockperf.c (client): Check socket return value.
4327
4328         [BZ #16877]
4329         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
4330         nscd security class.
4331
4332 2014-05-06  Roland McGrath  <roland@hack.frob.com>
4333
4334         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
4335         * sysdeps/arm/unwind.h: ... here.
4336
4337 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
4338
4339         [BZ# 16916]
4340         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
4341         Define.
4342
4343 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4344
4345         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
4346         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
4347         multiarch strncpy for PPC64.
4348         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
4349         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
4350         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
4351         multiarch optimizations.
4352         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4353         (__libc_ifunc_impl_list): Likewise.
4354         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
4355         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
4356         multiarch stpncpy for PPC64.
4357         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
4358         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
4359
4360 2014-05-06  Andreas Schwab  <schwab@suse.de>
4361
4362         [BZ #16912]
4363         * gmon/mcount.c (_MCOUNT_DECL): Use
4364         atomic_compare_and_exchange_bool_acq instead of
4365         catomic_compare_and_exchange_bool_acq.
4366
4367 2014-05-05  Roland McGrath  <roland@hack.frob.com>
4368
4369         * elf/Makefile (others, install-bin): Remove pldd.
4370         (pldd-modules): Variable removed.
4371         ($(objpfx)pldd): Target removed.
4372         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
4373         (others, install-bin): Append pldd here.
4374         ($(objpfx)pldd): New target.
4375
4376         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
4377         to 0, so the first #if test emitted later doesn't see it undefined.
4378         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
4379         * sysdeps/gnu/errlist.c: Regenerated.
4380
4381 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4382
4383         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
4384         [libc_hidden_builtin_def]: Define to empty value.
4385         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
4386         [libc_hidden_builtin_def]: Likewise.
4387         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
4388         [libc_hidden_builtin_def]: Likewise.
4389         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
4390         [libc_hidden_builtin_def]: Likewise.
4391         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
4392         __redirect_memcpy and define ifunc as default hidden symbol.
4393         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
4394         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
4395
4396 2014-05-04  Adam Conrad  <adconrad@0c3.net>
4397
4398         * locale/iso-4217.def: Reintroduce XDR currency.
4399
4400 2014-05-04  Allan McRae  <allan@archlinux.org>
4401
4402         * po/eo.po: Update Esperanto translation from translation project.
4403
4404 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
4405
4406         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
4407         and FEATURE_INDEX_MAX to 1.
4408         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
4409
4410 2014-05-01  Steve Ellcey  <sellcey@mips.com>
4411
4412         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
4413         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
4414         * iconvdata/big5.c (ONE_DIRECTION): Define.
4415         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
4416         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
4417         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
4418         * iconvdata/cp932.c (ONE_DIRECTION): Define.
4419         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
4420         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
4421         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
4422         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
4423         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
4424         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
4425         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
4426         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
4427         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
4428         * iconvdata/gbk.c (ONE_DIRECTION): Define.
4429         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
4430         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
4431         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
4432         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
4433         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
4434         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
4435         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
4436         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
4437         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
4438         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
4439         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
4440         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
4441         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
4442         * iconvdata/iso646.c (ONE_DIRECTION): Define.
4443         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
4444         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
4445         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
4446         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
4447         * iconvdata/johab.c (ONE_DIRECTION): Define.
4448         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
4449         * iconvdata/sjis.c (ONE_DIRECTION): Define.
4450         * iconvdata/t.61.c (ONE_DIRECTION): Define.
4451         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
4452         * iconvdata/tscii.c (ONE_DIRECTION): Define.
4453         * iconvdata/uhc.c (ONE_DIRECTION): Define.
4454         * iconvdata/unicode.c (ONE_DIRECTION): Define.
4455         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
4456         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
4457         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
4458
4459 2014-05-01  Roland McGrath  <roland@hack.frob.com>
4460
4461         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
4462         (_IO_JUMPS_OFFSET): Define to 0.
4463
4464         * nptl/sysdeps/pthread/bits/libc-lock.h
4465         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
4466         (__libc_lock_define_initialized_recursive): Always define using
4467         initializer.  Modern compilers treat uninitialized (implicit zero) and
4468         explicit zero initializers the same (i.e. put the datum in bss).
4469
4470 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4471
4472         * nscd/nscd-client.h: Include <string.h>.
4473
4474 2014-05-01  David S. Miller  <davem@davemloft.net>
4475
4476         [BZ #16885]
4477         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
4478         multiple zero bytes exist at the end of a string.
4479         Reported by Aurelien Jarno <aurelien@aurel32.net>
4480
4481         * string/test-strcmp.c (check): Add explicit test for situations where
4482         there are multiple zero bytes after the first.
4483
4484 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4485
4486         [BZ #16890]
4487         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
4488         when compiling wprintf.
4489         * stdio-common/tstdiomisc.c (t3): New function.
4490         (main): Call it.
4491
4492 2014-05-01  Steve Ellcey  <sellcey@mips.com>
4493
4494         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
4495         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
4496         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
4497         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
4498
4499 2014-05-01  Steve Ellcey  <sellcey@mips.com>
4500
4501         * stdlib/longlong.h: Updated from GCC.
4502
4503 2014-05-01  Will Newton  <will.newton@linaro.org>
4504             Bernard Ogden  <bernie.ogden@linaro.org>
4505
4506         * NEWS: Update fixed bug list.
4507
4508         [BZ #15119]
4509         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
4510
4511 2014-04-30  David S. Miller  <davem@davemloft.net>
4512
4513         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
4514         (libc_feholdexcept_setround_sparc_ctx): New function.
4515         (libc_fesetenv_sparc_ctx): Likewise.
4516         (libc_feupdateenv_sparc_ctx): Likewise.
4517         (libc_feholdsetround_sparc_ctx): Likewise.
4518         (libc_feholdexcept_setround_ctx): Define.
4519         (libc_feholdexcept_setroundf_ctx): Likewise.
4520         (libc_feholdexcept_setroundl_ctx): Likewise.
4521         (libc_fesetenv_ctx): Likewise.
4522         (libc_fesetenvf_ctx): Likewise.
4523         (libc_fesetenvl_ctx): Likewise.
4524         (libc_feupdateenv_ctx): Likewise.
4525         (libc_feupdateenvf_ctx): Likewise.
4526         (libc_feupdateenvl_ctx): Likewise.
4527         (libc_feresetround_ctx): Likewise.
4528         (libc_feresetroundf_ctx): Likewise.
4529         (libc_feresetroundl_ctx): Likewise.
4530         (libc_feholdsetround_ctx): Likewise.
4531         (libc_feholdsetroundf_ctx): Likewise.
4532         (libc_feholdsetroundl_ctx): Likewise.
4533
4534         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
4535         with __USE_GNU instead of XOPEN cpp guards.
4536
4537         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
4538         0.
4539
4540         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
4541         with XOPEN cpp guards.
4542
4543 2014-04-30  Julian Brown  <julian@codesourcery.com>
4544
4545         [BZ #16888]
4546         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
4547         handling.
4548
4549 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
4550
4551         [BZ #9894]
4552         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4553         Change to 2.6.32.
4554         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
4555         * sysdeps/unix/sysv/linux/configure: Regenerated.
4556         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
4557         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
4558         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
4559         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
4560         * README: Update reference to required Linux kernel version.
4561         * manual/install.texi (Linux): Update reference to required Linux
4562         kernel headers version.
4563         * INSTALL: Regenerated.
4564
4565         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
4566         header inclusion.
4567         [POSIX] (limits.h): Likewise.
4568         [POSIX] (math.h): Likewise.
4569         [POSIX] (sys/wait.h): Likewise.
4570         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
4571         function.
4572         [POSIX] (stddef.h): Do not allow header inclusion.
4573
4574 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4575
4576         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
4577
4578 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
4579
4580         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
4581         Return immediately after lll_futex_wake.
4582
4583 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4584
4585         [BZ #16791]
4586         * nscd/nscd-client.h (datahead_init_common): Initialize entire
4587         structure.
4588         (datahead_init_pos): Call datahead_init_common early.
4589         (datahead_init_neg): Likewise.
4590
4591         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
4592         datahead_init_neg): New functions.
4593         * nscd/aicache.c (addhstaiX): Use them.
4594         * nscd/grpcache.c (cache_addgr): Likewise.
4595         * nscd/hstcache.c (cache_addhst): Likewise.
4596         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4597         * nscd/netgroupcache.c (do_notfound): Likewise.
4598         (addgetnetgrentX): Likewise.
4599         (addinnetgrX): Likewise.
4600         * nscd/pwdcache.c (cache_addpw): Likewise.
4601         * nscd/servicescache.c (cache_addserv): Likewise.
4602
4603 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4604             Atsushi Onoe  <atsushi@onoe.org>
4605
4606         [BZ #14308]
4607         [BZ #12994]
4608         [BZ #13651]
4609         * resolv/res_query.c (__libc_res_nsearch): Return if at least
4610         one response is valid.
4611         * resolv/res_send.c (send_dg): Check for validity of other
4612         response if the current response is a referral.
4613
4614 2014-04-29  Steve Ellcey  <sellcey@mips.com>
4615
4616         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
4617
4618 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
4619
4620         [BZ #16823]
4621         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
4622         Always divide by positive zero when computing -Inf result.
4623         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
4624         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
4625
4626 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4627
4628         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
4629         FPSCR if value do not change.
4630         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4631         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
4632         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
4633         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
4634         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
4635         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
4636         function.
4637
4638 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
4639
4640         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
4641         * sysdeps/unix/sysv/linux/hppa: Move directory from
4642         ports/systeps/unix/sysv/linux/hppa.
4643         * README: Update listing for hppa-*-linux-gnu.
4644
4645 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
4646
4647         [BZ #16754]
4648         * manual/stdio.texi (Hook functions): Fix types of stream hook
4649         functions.
4650         [BZ #16854]
4651         * socket/sys/socket.h: Fix typo in comment.
4652
4653 2014-04-28  Wilco  <wdijkstr@arm.com>
4654
4655         * sysdeps/arm/fenv_private.h: New file.
4656         * sysdeps/arm/math_private.h: New file.
4657         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
4658
4659 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
4660
4661         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
4662         with __int128_t.
4663         (La_x86_64_retval): Likewise.
4664
4665 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
4666
4667         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
4668         fpsr if value didn't change.
4669         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
4670         to fpcr if value didn't change.
4671         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
4672         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
4673         fpsr or fpcr if value didn't change.
4674         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
4675         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
4676         fpcr if value didn't change.
4677         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
4678         to fpsr if value didn't change.
4679
4680 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4681
4682         * nptl/tst-sem3.c: Use test-skeleton.c
4683         (main): Rename to do_test.  Use return instead of
4684         exit.
4685         * nptl/tst-sem4.c: Use test-skeleton.c
4686         (main): Rename to do_test.
4687
4688 2014-04-22  David S. Miller  <davem@davemloft.net>
4689
4690         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
4691         (struct sigaction): New struct member __glibc_reserved0, change
4692         type of sa_flags to int.
4693
4694 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
4695
4696         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
4697         (COUNT_LEADING_ZEROS_0): Define for AArch64.
4698
4699 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4700
4701         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
4702         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
4703
4704 2014-04-22  Will Newton  <will.newton@linaro.org>
4705             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
4706
4707         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
4708         (__longjmp): Add longjmp and longjmp_target SystemTap
4709         probes.
4710         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
4711         (__sigsetjmp): Add setjmp SystemTap probe.
4712
4713 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
4714
4715         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
4716         match manual order.
4717
4718 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4719
4720         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
4721
4722         * sysdeps/powerpc/fpu/fenv_private.h
4723         (libc_feholdexcept_setroundl_ctx): Define to
4724         libc_feholdexcept_setround_ppc_ctx.
4725         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
4726         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
4727         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
4728         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
4729
4730 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4731
4732         * sysdeps/aarch64/math-tests.h: New file.
4733
4734 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
4735
4736         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
4737         New.
4738         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4739         Check and set bit_AVX2_Usable.
4740         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
4741         macro.
4742         (bit_AVX2): Likewise.
4743         (index_AVX2_Usable): Likewise.
4744         (CPUID_AVX2): Likewise.
4745         (HAS_AVX2): Likewise.
4746
4747 2014-04-17  Will Newton  <will.newton@linaro.org>
4748
4749         * manual/setjmp.texi (System V contexts): Add note that
4750         calling setcontext on a context created by a call to a
4751         signal handler is undefined.  Update text to note that
4752         setcontext from a signal handler is possible but not
4753         recommended.
4754
4755         [BZ #16629]
4756         * stdlib/tst-setcontext.c: Include signal.h.
4757         (main): Check that the signal stack before and
4758         after swapcontext is the same.
4759
4760         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
4761         Re-implement to restore registers in user code and avoid
4762         rt_sigreturn system call.
4763
4764 2014-04-17  Wilco  <wdijkstr@arm.com>
4765
4766         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
4767         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
4768         * math/test-fenv.c: Skip exception trap tests on targets which only
4769         support non-stop mode.
4770
4771 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4772             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4773
4774         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
4775         (libc_feholdsetround_aarch64_ctx)
4776         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
4777         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
4778         (libc_feresetround_ctx, libc_feresetroundf_ctx)
4779         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
4780         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
4781         (libc_feresetround_noexl_ctx): Define.
4782
4783 2014-04-16  Richard Henderson  <rth@redhat.com>
4784
4785         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
4786
4787         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
4788         unwind tables.
4789
4790         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
4791         const from the non-libc, non-ldso copy.
4792
4793         * sysdeps/alpha/libm-test-ulps: Regenerate.
4794
4795 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
4796             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4797
4798         * sysdeps/aarch64/fpu/math_private.h: New file.
4799
4800 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4801
4802         * sysdeps/aarch64/libm-test-ulps: Regenerate.
4803
4804 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
4805
4806         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
4807         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
4808         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
4809         Intel MPX bound registers before _dl_profile_fixup.
4810         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
4811         registers after _dl_profile_fixup.  Save and restore bound
4812         registers bnd0/bnd1 when calling _dl_call_pltexit.
4813         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
4814         (LR_BND_OFFSET): Likewise.
4815         (LRV_BND0_OFFSET): Likewise.
4816         (LRV_BND1_OFFSET): Likewise.
4817
4818 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4819
4820         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
4821         to...
4822         * sysdeps/mach/hurd/i386/tls.h: ... here.
4823         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
4824         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
4825         fields.
4826
4827 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4828
4829         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
4830
4831 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4832
4833         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4834
4835 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4836
4837         [BZ #14770]
4838         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
4839         * sysdeps/s390/configure: Regenerate.
4840
4841         [BZ #16824]
4842         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
4843         Set round-to-nearest internally to reduce error accumulation.
4844
4845 2014-04-16  Alan Modra  <amodra@gmail.com>
4846
4847         [BZ #16740]
4848         [BZ #16619]
4849         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
4850         * math/libm-test.inc (frexp_test_data): Add tests.
4851         * NEWS: Update fixed bug list.
4852
4853 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4854
4855         * benchtests/Makefile: Depend on libraries in build directory.
4856         (bench-math): Separate out math tests.
4857         (bench-pthread): Separate out pthread tests.
4858         (bench): Include math and pthread tests.
4859
4860 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
4861
4862         [BZ #16831]
4863         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
4864         _dl_debug_initialize.
4865
4866         * configure.ac: Remove SELinux header check.
4867         * configure: Regenerate.
4868         * nscd/selinux.c (perms): Array of const char* to permission names.
4869         (nscd_request_avc_has_perm): Call security_deny_unknown to find
4870         default policy. Call string_to_security_class and string_to_av_perm to
4871         translate strings. Enforce default policy and call avs_has_perm with
4872         results of translated strings.
4873
4874 2014-04-13  David S. Miller  <davem@davemloft.net>
4875
4876         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4877
4878 2014-04-12  Allan McRae  <allan@archlinux.org>
4879
4880         [BZ #16838]
4881         * manual/string.texi (Collation Functions): Fix qsort argument
4882         order in example.
4883         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4884
4885 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
4886
4887         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
4888         Make the test a no-op if there are no exceptions defined.
4889
4890 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
4891
4892         * elf/Makefile (tests): make tst-dlopen-aout conditional on
4893         enable-hardcoded-path-in-tests
4894
4895 2014-04-11  Will Newton  <will.newton@linaro.org>
4896
4897         * benchtests/Makefile (extra-objs): Add json-lib.o.
4898         (bench-func): Tidy up JSON output.
4899         * benchtests/bench-skeleton.c: Include json-lib.h.
4900         (main): Use JSON library functions to do output of
4901         benchmark results.
4902         * benchtests/bench-timing-type.c (main): Output the
4903         timing type simply, leaving formatting to the user.
4904         * benchtests/json-lib.c: New file.
4905         * benchtests/json-lib.h: Likewise.
4906
4907 2014-04-11  Torvald Riegel  <triegel@redhat.com>
4908
4909         [BZ #15215]
4910         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
4911         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
4912         memory barriers.  Add comments.
4913         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
4914         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
4915         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
4916         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
4917         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
4918         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
4919
4920 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
4921
4922         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
4923         * sysdeps/s390/s390-64/configure.ac: ... this ...
4924         * sysdeps/s390/configure.ac: ... to here.
4925         * sysdeps/s390/s390-32/configure: Delete file.
4926         * sysdeps/s390/s390-64/configure: Delete file.
4927         * sysdeps/s390/configure: Regenerate.
4928
4929 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
4930
4931         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
4932
4933 2014-04-11  Will Newton  <will.newton@linaro.org>
4934
4935         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
4936         to zero if it is not defined elsewhere.  (mtrim): Test
4937         the value of MALLOC_DEBUG with #if rather than #ifdef.
4938
4939 2014-04-10 Torvald Riegel  <triegel@redhat.com>
4940
4941         * benchtests/pthread_once-inputs: New file.
4942         * benchtests/pthread_once-source.c: New file.
4943         * benchtests/README: Update documentation.
4944
4945 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
4946             H.J. Lu  <hongjiu.lu@intel.com>
4947
4948         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
4949         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
4950         * sysdeps/x86_64/configure: Regenerated.
4951         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
4952         macro.
4953         (REGISTER_SAVE_RAX): Likewise.
4954         (REGISTER_SAVE_RCX): Likewise.
4955         (REGISTER_SAVE_RDX): Likewise.
4956         (REGISTER_SAVE_RSI): Likewise.
4957         (REGISTER_SAVE_RDI): Likewise.
4958         (REGISTER_SAVE_R8): Likewise.
4959         (REGISTER_SAVE_R9): Likewise.
4960         (REGISTER_SAVE_BND0): Likewise.
4961         (REGISTER_SAVE_BND1): Likewise.
4962         (REGISTER_SAVE_BND2): Likewise.
4963         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
4964         bound registers when calling _dl_fixup.
4965
4966 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4967
4968         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
4969         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
4970         of its definition.
4971         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
4972         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
4973         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
4974         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
4975         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
4976         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
4977         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
4978
4979 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
4980
4981         [BZ #15514]
4982         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
4983         pathconf(_PC_NAME_MAX).
4984
4985 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4986
4987         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
4988         Remove macro usage.
4989         (__PTHREAD_SPINS): Move definition to ...
4990         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4991         (__PTHREAD_SPINS): ... here.
4992         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4993         (__PTHREAD_SPIN): Likewise.
4994         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
4995         (__PTHREAD_SPIN): Likewise.
4996         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
4997         (__PTHREAD_SPIN): Likewise.
4998         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
4999         (__PTHREAD_SPIN): Likewise.
5000         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
5001         (__PTHREAD_SPIN): Likewise.
5002         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
5003         (__PTHREAD_SPIN): Likewise.
5004         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
5005         (__PTHREAD_SPIN): Likewise.
5006         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
5007         (__PTHREAD_SPIN): Likewise.
5008         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
5009         (__PTHREAD_SPIN): Likewise.
5010         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
5011         (__PTHREAD_SPIN): Likewise.
5012         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
5013         (__PTHREAD_SPIN): Likewise.
5014         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
5015         (__PTHREAD_SPIN): Likewise.
5016
5017         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5018         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
5019         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
5020         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
5021         imply folder.
5022         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
5023         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
5024         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
5025         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
5026         correct imply path.
5027         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
5028         strlen symbol for non multi-arch builds.
5029         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
5030         missing hidden_def and weak_alias.
5031
5032 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
5033
5034         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
5035
5036 2014-04-07  Will Newton  <will.newton@linaro.org>
5037
5038         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
5039         and contents.  [!_LIBC] Remove #ifndef and contents.
5040         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
5041         * string/memccpy.c (__memccpy): Use ANSI prototype.
5042         * string/memfrob.c (memfrob): Likewise.
5043         * string/strcoll.c (STRCOLL): Likewise.
5044         * string/strlen.c (strlen): Likewise.
5045         * string/strtok.c (STRTOK): Likewise.
5046         * string/strcat.c: Remove unused #include of memcopy.h.
5047         (strcat): Use ANSI prototype.
5048         * string/strchr.c: Remove unused #include of memcopy.h.
5049         (strchr): Use ANSI prototype.
5050         * string/strcmp.c: Remove unused #include of memcopy.h.
5051         (strcmp): Use ANSI prototype.
5052         * string/strcpy.c: Remove unused #include of memcopy.h.
5053         (strcpy): Use ANSI prototype.
5054
5055 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5056
5057         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
5058         * config.make.in (config-extra-cppflags): Set it from
5059         libc_extra_cppflags.
5060         * configure.ac (libc_extra_cflags): Make it accumulate over
5061         configure fragments.
5062         (libc_extra_cppflags): New flag.
5063         * configure. Regenerate.
5064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
5065         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
5066         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
5067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
5068
5069         [BZ #16815]
5070         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
5071         result for FE_DOWNWARD rounding mode.
5072         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
5073         Likewise.
5074         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5075
5076 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
5077
5078         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
5079         in function argument name.
5080
5081 2014-04-03  David Svoboda  <svoboda@cert.org>
5082
5083         [BZ #5666]
5084         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
5085         explicitly.
5086
5087 2014-04-03  Roland McGrath  <roland@hack.frob.com>
5088
5089         * elf/dl-unmap-segments.h: New file.
5090         * sysdeps/generic/ldsodefs.h
5091         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
5092         * elf/dl-close.c: Include <dl-unmap-segments.h>.
5093         * elf/dl-fptr.c: Likewise.
5094         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
5095         * sysdeps/aarch64/tlsdesc.c: Likewise.
5096         * sysdeps/arm/tlsdesc.c: Likewise.
5097         * sysdeps/i386/tlsdesc.c: Likewise.
5098         * sysdeps/tile/dl-runtime.c: Likewise.
5099         * sysdeps/x86_64/tlsdesc.c: Likewise.
5100         * elf/dl-load.h: New file.
5101         * elf/dl-load.c: Include it.
5102         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
5103         Macros moved to dl-load.h.
5104         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
5105         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
5106         Use _dl_unmap_segments in place of __munmap.
5107         Break out segment-mapping loop into ...
5108         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
5109
5110 2014-04-03  Will Newton  <will.newton@linaro.org>
5111
5112         * elf/dl-lookup.c (do_lookup_x): Remove comment
5113         referring to nested function and move variable
5114         declarations down to before first use.
5115
5116 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
5117
5118         [BZ #16799]
5119         [BZ #16800]
5120         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
5121         with 0 numerator.
5122         * math/s_catanf.c (__catanf): Likewise.
5123         * math/s_catanh.c (__catanh): Likewise.
5124         * math/s_catanhf.c (__catanhf): Likewise.
5125         * math/s_catanhl.c (__catanhl): Likewise.
5126         * math/s_catanl.c (__catanl): Likewise.
5127         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
5128         by positive zero when computing -Inf result.
5129         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
5130         (catanh_test): Likewise.
5131         * sysdeps/i386/fpu/libm-test-ulps: Update.
5132         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5133
5134         [BZ #16789]
5135         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
5136         instead of using underflowing value in computing result.
5137         * math/s_clog10.c (__clog10): Likewise.
5138         * math/s_clog10f.c (__clog10f): Likewise.
5139         * math/s_clog10l.c (__clog10l): Likewise.
5140         * math/s_clogf.c (__clogf): Likewise.
5141         * math/s_clogl.c (__clogl): Likewise.
5142         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
5143         (clog10_test): Likewise.
5144         * sysdeps/i386/fpu/libm-test-ulps: Update.
5145         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5146
5147 2014-04-02  Alan Modra  <amodra@gmail.com>
5148
5149         [BZ #16739]
5150         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
5151         output when value is near a power of two.  Use int64_t for lx and
5152         remove casts.  Use decimal rather than hex exponent constants.
5153         Don't use long double multiplication when double will suffice.
5154         * math/libm-test.inc (nextafter_test_data): Add tests.
5155         * NEWS: Add 16739 and 16786 to bug list.
5156
5157         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
5158
5159         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
5160
5161 2014-04-01  Will Newton  <will.newton@linaro.org>
5162
5163         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
5164         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
5165
5166 2014-04-01  Florian Weimer  <fweimer@redhat.com>
5167
5168         [BZ #13347]
5169         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
5170         * nptl/tst-setuid2.c: New file.
5171         * nptl/Makefile (xtests): Add tst-setuid2.
5172
5173 2014-04-01  Alan Modra  <amodra@gmail.com>
5174
5175         [BZ #16786]
5176         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
5177
5178 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
5179
5180         [BZ #6803]
5181         [BZ #6804]
5182         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
5183         set errno as appropriate.
5184         * math/w_scalbf.c (__scalbf): Likewise.
5185         * math/w_scalbl.c (__scalbl): Likewise.
5186         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
5187         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
5188         * math/libm-test.inc (scalb_test_data): Add errno expectations.
5189         Add more NaN tests.
5190
5191         [BZ #16349]
5192         * math/w_atan2.c: Include <errno.h>.
5193         (__atan2): Set errno for result underflowing to zero.
5194         * math/w_atan2f.c: Include <errno.h>.
5195         (__atan2f): Set errno for result underflowing to zero.
5196         * math/w_atan2l.c: Include <errno.h>.
5197         (__atan2l): Set errno for result underflowing to zero.
5198         * math/auto-libm-test-in: Don't allow missing errno for some atan2
5199         tests.
5200         * math/auto-libm-test-out: Regenerated.
5201
5202 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5203
5204         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
5205         Encode instruction correctly in little endian.
5206         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
5207         Likewise.
5208         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
5209         Likewise.
5210         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
5211         Likewise.
5212         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
5213         Likewise.
5214
5215 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
5216
5217         [BZ #9894]
5218         * sysdeps/unix/sysv/linux/kernel-features.h
5219         [__sparc__ && !__arch64__ && !__sparc_v9__]
5220         (__ASSUME_SET_ROBUST_LIST): Do not define.
5221         [__sparc__ && !__arch64__ && !__sparc_v9__]
5222         (__ASSUME_FUTEX_LOCK_PI): Likewise.
5223         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
5224         Likewise.
5225         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5226         (__ASSUME_FUTEX_LOCK_PI): Undefine.
5227         (__ASSUME_REQUEUE_PI): Likewise.
5228         (__ASSUME_SET_ROBUST_LIST): Likewise.
5229         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5230         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
5231         Undefine.
5232         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5233         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
5234         Likewise.
5235         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
5236         Likewise.
5237         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
5238         Likewise.
5239         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5240         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
5241         Undefine.
5242         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
5243         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
5244         Likewise.
5245
5246         [BZ #16648]
5247         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5248         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
5249         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
5250
5251 2014-03-31  Will Newton  <will.newton@linaro.org>
5252
5253         * benchtests/Makefile (bench): Add ffs and ffsll to list
5254         of tests.
5255         * benchtests/ffs-inputs: New file.
5256         * benchtests/ffsll-inputs: Likewise.
5257
5258 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
5259
5260         [BZ #16770]
5261         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
5262         too large before casting to int.
5263         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
5264         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
5265         * math/libm-test.inc (scalb_test_data): Add more tests.
5266
5267 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5268
5269         * benchtests/Makefile (DETAILED_OPT): New make option.
5270         (bench-func): Run benchmark program with -d if DETAILED_OPT is
5271         set.
5272         * benchtests/bench-skeleton.c: Include stdbool.h.
5273         (main): Store and print timings per input.
5274         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
5275         member to each argument value.
5276         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
5277         (_print_arg_data): Initialize per-input timing to 0.
5278
5279         * benchtests/Makefile (timing-type): New binary.
5280         (bench-clean): Also remove bench-timing-type.
5281         (bench): New target for timing-type.
5282         (bench-func): Print output in JSON format.
5283         * benchtests/bench-skeleton.c (main): Print output in JSON
5284         format.
5285         * benchtests/bench-timing-type.c: New file.
5286         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
5287         (TIMING_PRINT_STATS): Remove.
5288         * benchtests/scripts/bench.py (_print_arg_data): Store variant
5289         name separately.
5290
5291         * benchtests/bench-modf.c: Remove.
5292         * benchtests/modf-inputs: New inputs file.
5293
5294 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
5295
5296         [BZ #16362]
5297         * math/s_clog10.c (M_PI_LOG10E): New macro.
5298         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
5299         imaginary parts are 0.
5300         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
5301         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
5302         imaginary parts are 0.
5303         * math/s_clog10l.c (M_PI_LOG10El): New macro.
5304         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
5305         imaginary parts are 0.
5306         * math/libm-test.inc (clog10_test_data): Update expected results
5307         for when real and imaginary parts are 0.
5308
5309 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
5310
5311         * elf/dl-load.c: Finish conversion of __builtin_expect into
5312         __glibc_{un}likely.
5313
5314 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
5315
5316         [BZ #16348]
5317         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
5318         1+x for argument with exponent below -67.
5319         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
5320         Likewise.
5321         * math/auto-libm-test-in: Add more tests of exp.
5322         * math/auto-libm-test-out: Regenerated.
5323
5324 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5325
5326         [BZ #16759]
5327         * inet/getnetgrent_r.c (get_nonempty_val): New function.
5328         (nscd_getnetgrent): Use it.
5329
5330         [BZ #16760]
5331         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
5332         of stpcpy.
5333
5334 2014-03-27  Andi Kleen  <ak@linux.intel.com>
5335
5336         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
5337         (lll_robust_lock, lll_cond_lock, lll_timedlock)
5338         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
5339         (lll_robust_unlock): Remove out of line section. Use cfi
5340         intrinsics.
5341         (LLL_STUB_UNWIND_INFO*): Remove.
5342         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
5343         (lll_robust_lock, lll_cond_lock, lll_timedlock)
5344         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
5345         (lll_robust_unlock): Remove out of line section. Use cfi
5346         intrinsics.
5347         (LLL_STUB_UNWIND_INFO*): Remove.
5348
5349 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5350
5351         [BZ #16758]
5352         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
5353         blank values.
5354
5355 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
5356
5357         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
5358
5359 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
5360
5361         [BZ #16198]
5362         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
5363         fnstenv.
5364         * math/test-fenv-preserve.c: New file.
5365         * math/Makefile (tests): Add test-fenv-preserve.
5366
5367 2014-03-26  Will Newton <will.newton@linaro.org>
5368
5369         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
5370
5371 2014-03-25  Roland McGrath  <roland@hack.frob.com>
5372
5373         * scripts/versionlist.awk: Partition the version sets and emit all
5374         GLIBC_* (sorted) before all others (sorted).
5375
5376 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
5377
5378         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
5379         GLIBC_2.2.5 version.
5380
5381 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5382
5383         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
5384         calls.
5385
5386         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
5387         previous change.
5388
5389         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5390
5391 2014-03-25  Andreas Schwab  <schwab@suse.de>
5392
5393         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
5394         label to be used after in6ailist is initialized.
5395
5396 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5397
5398         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5399         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
5400
5401 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
5402
5403         [BZ #16357]
5404         [BZ #16599]
5405         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
5406         min_plus_half.
5407         (fp_formats): Update initializers.
5408         (init_fp_formats): Initialize new field.
5409         (output_for_one_input_case): Allow underflow for results up to
5410         min_plus_half.
5411         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
5412         * math/auto-libm-test-in: Don't mark some underflows from asin and
5413         atanh as spurious.
5414         * math/auto-libm-test-out: Regenerated.
5415         * sysdeps/i386/fpu/libm-test-ulps: Update.
5416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5417
5418 2014-03-25  Andreas Schwab  <schwab@suse.de>
5419
5420         * libio/Makefile (tst-ftell-partial-wide-ENV)
5421         (tst-ftell-active-handler-ENV): Define.
5422
5423 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
5424
5425         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
5426
5427 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
5428
5429         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
5430
5431 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
5432
5433         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
5434         * sysdeps/x86_64/fpu/multiarch/e_exp.c
5435         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
5436
5437 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
5438
5439         [BZ #16634]
5440         * elf/dl-load.c (open_verify): Add mode parameter.
5441         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
5442         (open_path): Change from boolean 'secure' to complete flag 'mode'
5443         (_dl_map_object): Adjust.
5444         * elf/Makefile (tests): Add tst-dlopen-aout.
5445         * elf/tst-dlopen-aout.c: New test.
5446
5447 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
5448
5449         [BZ #16714]
5450         * sysdeps/unix/sysv/linux/s390/bits/stat.h
5451         (struct stat): Rename member pad0 to __glibc_reserved0.
5452
5453         [BZ #16712]
5454         * sysdeps/s390/s390-32/bits/wordsize.h
5455         (__WORDSIZE32_SIZE_ULONG): New define.
5456         * sysdeps/s390/s390-64/bits/wordsize.h
5457         (__WORDSIZE32_SIZE_ULONG): Likewise.
5458         * sysdeps/generic/stdint.h (SIZE_MAX):
5459         Define as UL if __WORDSIZE32_SIZE_ULONG.
5460
5461         [BZ #16713]
5462         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
5463         (__glibc_reserved0): New variable.
5464         (sa_flags): Change type to int.
5465
5466         * posix/Makefile (before-compile): Use += before-compile instead
5467         of a :=.
5468
5469         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
5470         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
5471
5472 2014-03-20  Andreas Schwab  <schwab@suse.de>
5473
5474         [BZ #16743]
5475         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
5476         non-matching result from nscd.
5477
5478 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
5479
5480         * scripts/bench.py: Moved to ...
5481         * benchtests/scripts/bench.py: ... here.
5482         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
5483
5484 2014-03-24  Andreas Schwab  <schwab@suse.de>
5485
5486         [BZ #16002]
5487         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
5488         alloca_account and account alloca use for struct in6ailist.
5489
5490 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
5491
5492         [BZ #16284]
5493         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
5494         rounding mode to recompute results that overflow to infinity or
5495         underflow to zero.
5496         * math/auto-libm-test-in: Don't mark tests as expected to fail for
5497         bug 16284.
5498         * math/auto-libm-test-out: Regenerated.
5499         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
5500         (ccosh_test): Likewise.
5501         (csin_test_data): Use plus_oflow.
5502         (csin_test): Use ALL_RM_TEST.
5503         (csinh_test_data): Use plus_oflow.
5504         (csinh_test): Use ALL_RM_TEST.
5505         * sysdeps/i386/fpu/libm-test-ulps: Update.
5506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5507
5508 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
5509
5510         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
5511         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
5512         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
5513
5514         [BZ #16731]
5515         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
5516         when x - 1 is zero.
5517         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
5518         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
5519         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
5520         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
5521         argument is 1.
5522         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
5523         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
5524         zero.
5525         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
5526         * sysdeps/i386/fpu/libm-test-ulps: Update.
5527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5528
5529 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5530
5531         * scripts/bench.pl: Remove file.
5532         * scripts/bench.py: New benchmark script.
5533         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
5534         * benchtests/README: Mention python dependency.
5535         * scripts/pylintrc: New file.
5536         * scripts/pylint: New file.
5537
5538         * bits/mathdef.h: Use #ifdef instead of #if.
5539         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
5540         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
5541         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
5542         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
5543         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
5544         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
5545
5546 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5547             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5548
5549         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
5550         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
5551         and strpbrk-ppc64 objects.
5552         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
5553         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
5554         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
5555         multiarch strpbrk for POWER7.
5556         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
5557         multiarch strpbrk for PPC64.
5558         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
5559         ifunc selector.
5560         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
5561         strpbrk for POWER7.
5562
5563 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
5564
5565         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
5566         (atan_test): Likewise.
5567         (atanh_test_data): Use NO_TEST_INLINE for two tests.
5568         (atanh_test): Use ALL_RM_TEST.
5569         (atan2_test_data): Likewise.
5570         (cabs_test): Likewise.
5571         (cacosh_test): Likewise.
5572         (carg_test): Likewise.
5573         (casin_test): Likewise.
5574         (casinh_test): Likewise.
5575         (cbrt_test): Likewise.
5576         (csqrt_test): Likewise.
5577         (erf_test): Likewise.
5578         (erfc_test): Likewise.
5579         (pow10_test): Likewise.
5580         (exp2_test): Likewise.
5581         (hypot_test): Likewise.
5582         (j0_test): Likewise.
5583         (j1_test): Likewise.
5584         (lgamma_test): Likewise.
5585         (gamma_test): Likewise.
5586         (sincos_test): Likewise.
5587         (tanh_test): Likewise.
5588         (y0_test): Likewise.
5589         (y1_test): Likewise.
5590         * sysdeps/i386/fpu/libm-test-ulps: Update.
5591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5592
5593 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5594
5595         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
5596         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
5597         and strcspn-ppc64 objects.
5598         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
5599         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
5600         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
5601         multiarch strcspn for POWER7.
5602         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
5603         multiarch strcspn for PPC64.
5604         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
5605         ifunc selector.
5606         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
5607         strcspn for POWER7.
5608
5609 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
5610
5611         * math/gen-libm-test.pl (generate_testfile): Expect only function
5612         name as argument to AUTO_TESTS_* and pass results for all rounding
5613         modes to parse_args.
5614         (parse_auto_input): Separate inputs of automatic tests from
5615         outputs before storing in %auto_tests.
5616         * math/libm-test.inc (acos_test_data): Update call to
5617         AUTO_TESTS_f_f.
5618         (acos_test): Use ALL_RM_TEST.
5619         (acos_tonearest_test_data): Remove.
5620         (acos_test_tonearest): Likewise.
5621         (acos_towardzero_test_data): Likewise.
5622         (acos_test_towardzero): Likewise.
5623         (acos_downward_test_data): Likewise.
5624         (acos_test_downward): Likewise.
5625         (acos_upward_test_data): Likewise.
5626         (acos_test_upward): Likewise.
5627         (acosh_test_data): Update call to AUTO_TESTS_f_f.
5628         (asin_test_data): Likewise.
5629         (asin_test): Use ALL_RM_TEST.
5630         (asin_tonearest_test_data): Remove.
5631         (asin_test_tonearest): Likewise.
5632         (asin_towardzero_test_data): Likewise.
5633         (asin_test_towardzero): Likewise.
5634         (asin_downward_test_data): Likewise.
5635         (asin_test_downward): Likewise.
5636         (asin_upward_test_data): Likewise.
5637         (asin_test_upward): Likewise.
5638         (asinh_test_data): Update call to AUTO_TESTS_f_f.
5639         (atan_test_data): Likewise.
5640         (atanh_test_data): Likewise.
5641         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
5642         (cabs_test_data): Update call to AUTO_TESTS_c_f.
5643         (carg_test_data): Likewise.
5644         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
5645         (ccos_test_data): Update call to AUTO_TESTS_c_c.
5646         (ccosh_test_data): Likewise.
5647         (cexp_test_data): Likewise.
5648         (clog_test_data): Likewise.
5649         (clog10_test_data): Likewise.
5650         (cos_test_data): Update call to AUTO_TESTS_f_f.
5651         (cos_test): Use ALL_RM_TEST.
5652         (cos_tonearest_test_data): Remove.
5653         (cos_test_tonearest): Likewise.
5654         (cos_towardzero_test_data): Likewise.
5655         (cos_test_towardzero): Likewise.
5656         (cos_downward_test_data): Likewise.
5657         (cos_test_downward): Likewise.
5658         (cos_upward_test_data): Likewise.
5659         (cos_test_upward): Likewise.
5660         (cosh_test_data): Update call to AUTO_TESTS_f_f.
5661         (cosh_test): Use ALL_RM_TEST.
5662         (cosh_tonearest_test_data): Remove.
5663         (cosh_test_tonearest): Likewise.
5664         (cosh_towardzero_test_data): Likewise.
5665         (cosh_test_towardzero): Likewise.
5666         (cosh_downward_test_data): Likewise.
5667         (cosh_test_downward): Likewise.
5668         (cosh_upward_test_data): Likewise.
5669         (cosh_test_upward): Likewise.
5670         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
5671         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
5672         (ctan_test_data): Likewise.
5673         (ctan_test): Use ALL_RM_TEST.
5674         (ctan_tonearest_test_data): Remove.
5675         (ctan_test_tonearest): Likewise.
5676         (ctan_towardzero_test_data): Likewise.
5677         (ctan_test_towardzero): Likewise.
5678         (ctan_downward_test_data): Likewise.
5679         (ctan_test_downward): Likewise.
5680         (ctan_upward_test_data): Likewise.
5681         (ctan_test_upward): Likewise.
5682         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
5683         (ctanh_test): Use ALL_RM_TEST.
5684         (ctanh_tonearest_test_data): Remove.
5685         (ctanh_test_tonearest): Likewise.
5686         (ctanh_towardzero_test_data): Likewise.
5687         (ctanh_test_towardzero): Likewise.
5688         (ctanh_downward_test_data): Likewise.
5689         (ctanh_test_downward): Likewise.
5690         (ctanh_upward_test_data): Likewise.
5691         (ctanh_test_upward): Likewise.
5692         (erf_test_data): Update call to AUTO_TESTS_f_f.
5693         (erfc_test_data): Likewise.
5694         (exp_test_data): Likewise.
5695         (exp_test): Use ALL_RM_TEST.
5696         (exp_tonearest_test_data): Remove.
5697         (exp_test_tonearest): Likewise.
5698         (exp_towardzero_test_data): Likewise.
5699         (exp_test_towardzero): Likewise.
5700         (exp_downward_test_data): Likewise.
5701         (exp_test_downward): Likewise.
5702         (exp_upward_test_data): Likewise.
5703         (exp_test_upward): Likewise.
5704         (exp10_test_data): Update call to AUTO_TESTS_f_f.
5705         (exp10_test): Use ALL_RM_TEST.
5706         (exp10_tonearest_test_data): Remove.
5707         (exp10_test_tonearest): Likewise.
5708         (exp10_towardzero_test_data): Likewise.
5709         (exp10_test_towardzero): Likewise.
5710         (exp10_downward_test_data): Likewise.
5711         (exp10_test_downward): Likewise.
5712         (exp10_upward_test_data): Likewise.
5713         (exp10_test_upward): Likewise.
5714         (exp2_test_data): Update call to AUTO_TESTS_f_f.
5715         (expm1_test_data): Likewise.
5716         (expm1_test): Use ALL_RM_TEST.
5717         (expm1_tonearest_test_data): Remove.
5718         (expm1_test_tonearest): Likewise.
5719         (expm1_towardzero_test_data): Likewise.
5720         (expm1_test_towardzero): Likewise.
5721         (expm1_downward_test_data): Likewise.
5722         (expm1_test_downward): Likewise.
5723         (expm1_upward_test_data): Likewise.
5724         (expm1_test_upward): Likewise.
5725         (fma_test_data): Update call to AUTO_TESTS_fff_f.
5726         (fma_test): Use ALL_RM_TEST.
5727         (fma_towardzero_test_data): Remove.
5728         (fma_test_towardzero): Likewise.
5729         (fma_downward_test_data): Likewise.
5730         (fma_test_downward): Likewise.
5731         (fma_upward_test_data): Likewise.
5732         (fma_test_upward): Likewise.
5733         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
5734         (j0_test_data): Update call to AUTO_TESTS_f_f.
5735         (j1_test_data): Likewise.
5736         (jn_test_data): Update call to AUTO_TESTS_if_f.
5737         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
5738         (log_test_data): Update call to AUTO_TESTS_f_f.
5739         (log10_test_data): Likewise.
5740         (log1p_test_data): Likewise.
5741         (log2_test_data): Likewise.
5742         (pow_test_data): Update call to AUTO_TESTS_ff_f.
5743         (pow_tonearest_test_data): Likewise.
5744         (sin_test_data): Update call to AUTO_TESTS_f_f.
5745         (sin_test): Use ALL_RM_TEST.
5746         (sin_tonearest_test_data): Remove.
5747         (sin_test_tonearest): Likewise.
5748         (sin_towardzero_test_data): Likewise.
5749         (sin_test_towardzero): Likewise.
5750         (sin_downward_test_data): Likewise.
5751         (sin_test_downward): Likewise.
5752         (sin_upward_test_data): Likewise.
5753         (sin_test_upward): Likewise.
5754         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
5755         (sinh_test_data): Update call to AUTO_TESTS_f_f.
5756         (sinh_test): Use ALL_RM_TEST.
5757         (sinh_tonearest_test_data): Remove.
5758         (sinh_test_tonearest): Likewise.
5759         (sinh_towardzero_test_data): Likewise.
5760         (sinh_test_towardzero): Likewise.
5761         (sinh_downward_test_data): Likewise.
5762         (sinh_test_downward): Likewise.
5763         (sinh_upward_test_data): Likewise.
5764         (sinh_test_upward): Likewise.
5765         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
5766         (sqrt_test): Use ALL_RM_TEST.
5767         (sqrt_tonearest_test_data): Remove.
5768         (sqrt_test_tonearest): Likewise.
5769         (sqrt_towardzero_test_data): Likewise.
5770         (sqrt_test_towardzero): Likewise.
5771         (sqrt_downward_test_data): Likewise.
5772         (sqrt_test_downward): Likewise.
5773         (sqrt_upward_test_data): Likewise.
5774         (sqrt_test_upward): Likewise.
5775         (tan_test_data): Update call to AUTO_TESTS_f_f.
5776         (tan_test): Use ALL_RM_TEST.
5777         (tan_tonearest_test_data): Remove.
5778         (tan_test_tonearest): Likewise.
5779         (tan_towardzero_test_data): Likewise.
5780         (tan_test_towardzero): Likewise.
5781         (tan_downward_test_data): Likewise.
5782         (tan_test_downward): Likewise.
5783         (tan_upward_test_data): Likewise.
5784         (tan_test_upward): Likewise.
5785         (tanh_test_data): Update call to AUTO_TESTS_f_f.
5786         (tgamma_test_data): Likewise.
5787         (y0_test_data): Likewise.
5788         (y1_test_data): Likewise.
5789         (yn_test_data): Update call to AUTO_TESTS_if_f.
5790         (main): Do not call removed functions.
5791
5792 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5793
5794         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
5795         (ldexp_test_data): Remove.
5796         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
5797         scalbn_test_data.
5798         (scalb_test): Use ALL_RM_TEST.
5799
5800 2014-03-19  Andreas Schwab  <schwab@suse.de>
5801
5802         * nscd/nscd.service: Also invalidate netgroup cache on reload.
5803
5804 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5805
5806         [BZ #16649]
5807         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5808         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
5809         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
5810         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5811         (__ASSUME_PREADV): Undefine.
5812         (__ASSUME_PWRITEV): Likewise.
5813
5814 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5815
5816         * bits/mman-linux.h: Add comment about non-Linux use.
5817         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
5818         bits/mman-linux.h resting place.
5819
5820         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
5821         * bits/mman-linux.h: ... here.
5822
5823 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5824
5825         * conform/conformtest.pl: Add standard definition when calling C
5826         preprocessor on data files.
5827         (checknamespace): Remove unused variable.
5828
5829 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5830
5831         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
5832         minus_oflow, plus_uflow and minus_uflow in expected results.
5833         * math/libm-test.inc (scalbn_test_data): Add more tests of
5834         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
5835         minus_uflow.
5836         (scalbn_test): Use ALL_RM_TEST.
5837         (scalbln_test_data): Add more tests of negative arguments.  Use
5838         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
5839         (scalbln_test): Use ALL_RM_TEST.
5840
5841 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5842
5843         * scripts/abilist.awk: Ignore symbols marked with .hidden.
5844
5845 2014-03-18  Will Newton  <will.newton@linaro.org>
5846
5847         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
5848         inaccurate comment.
5849
5850 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5851
5852         * Makerules [!subdir] (check-abi): Exit with error status if a
5853         test failed.
5854
5855 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5856
5857         * math/libm-test.inc (nearbyint_test_data): Include all tests used
5858         for rint.  Include results for all rounding modes.
5859         (nearbyint_test): Use ALL_RM_TEST.
5860         (rint_test_data): Include all tests used for nearbyint.
5861
5862 2014-03-17  Will Newton  <will.newton@linaro.org>
5863
5864         * nptl/sysdeps/pthread/pthread.h: Revert previous
5865         change.
5866
5867         * sysdeps/generic/ldsodefs.h: Revert previous
5868         change.
5869
5870         * libio/genops.c: Revert previous change.
5871         * libio/libioP.h: Likewise.
5872         * stdio-common/vfprintf.c: Likewise.
5873
5874         * sysdeps/generic/math_private.h: Revert previous
5875         change.
5876
5877         * sysdeps/generic/math_private.h: Check whether
5878         HAVE_RM_CTX is defined with #ifdef rather
5879         than #if.
5880
5881         * argp/argp-fmtstream.h: Check whether
5882         __STRICT_ANSI__ is defined with #ifdef rather
5883         than #if.
5884         * argp/argp.h: Likewise.
5885
5886         * libio/genops.c: Check whether
5887         _IO_JUMPS_OFFSET is defined with #ifdef rather
5888         than #if.
5889         * libio/libioP.h: Likewise.
5890         * stdio-common/vfprintf.c: Likewise.
5891
5892         * sysdeps/generic/ldsodefs.h: Check whether
5893         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
5894         than #if.
5895
5896         * nptl/sysdeps/pthread/pthread.h: Check
5897         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
5898         its value.
5899
5900 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5901
5902         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
5903         setting O_APPEND.
5904         * libio/tst-ftell-active-handler.c (do_append_test): Add a
5905         test case.
5906
5907         [BZ #16680]
5908         * libio/fileops.c (_IO_file_open): Seek to end of file but
5909         don't cache the offset.
5910         (get_file_offset): Remove function.
5911         (do_ftell): Use cached offset when available.
5912         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
5913         don't cache the offset.
5914         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
5915         case.
5916         (do_one_test): Call it.
5917         (do_ftell_test): Fix up expected old offset for a+ mode.
5918         * libio/wfileops.c (do_ftell_wide): Used cached offset when
5919         available.
5920
5921         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
5922         up test status with function return status.
5923         (do_write_test): Likewise.
5924         (do_append_test): Likewise.
5925
5926         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
5927         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
5928         Remove.
5929
5930 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5931
5932         * math/gen-libm-test.pl (parse_args): Handle results specified for
5933         each rounding mode separately.
5934         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
5935         tests and results from lrint_tonearest_test_data,
5936         lrint_towardzero_test_data, lrint_downward_test_data and
5937         lrint_upward_test_data.
5938         (lrint_test): Use ALL_RM_TEST.
5939         (lrint_tonearest_test_data): Remove.
5940         (lrint_test_tonearest): Likewise.
5941         (lrint_towardzero_test_data): Likewise.
5942         (lrint_test_towardzero): Likewise.
5943         (lrint_downward_test_data): Likewise.
5944         (lrint_test_downward): Likewise.
5945         (lrint_upward_test_data): Likewise.
5946         (lrint_test_upward): Likewise.
5947         (llrint_test_data): Merge in per-rounding-mode tests and results
5948         from llrint_tonearest_test_data, llrint_towardzero_test_data,
5949         llrint_downward_test_data and llrint_upward_test_data.
5950         (llrint_test): Use ALL_RM_TEST.
5951         (llrint_tonearest_test_data): Remove.
5952         (llrint_test_tonearest): Likewise.
5953         (llrint_towardzero_test_data): Likewise.
5954         (llrint_test_towardzero): Likewise.
5955         (llrint_downward_test_data): Likewise.
5956         (llrint_test_downward): Likewise.
5957         (llrint_upward_test_data): Likewise.
5958         (llrint_test_upward): Likewise.
5959         (rint_test_data): Merge in per-rounding-mode tests and results
5960         from rint_tonearest_test_data, rint_towardzero_test_data,
5961         rint_downward_test_data and rint_upward_test_data.  Add
5962         per-rounding-mode results for tests not in those arrays.
5963         (rint_test): Use ALL_RM_TEST.
5964         (rint_tonearest_test_data): Remove.
5965         (rint_test_tonearest): Likewise.
5966         (rint_towardzero_test_data): Likewise.
5967         (rint_test_towardzero): Likewise.
5968         (rint_downward_test_data): Likewise.
5969         (rint_test_downward): Likewise.
5970         (rint_upward_test_data): Likewise.
5971         (rint_test_upward): Likewise.
5972         (main): Don't call removed functions.
5973
5974 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5975
5976         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
5977         "Compiled on ..." crapola.  It is anti-useful.
5978
5979 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
5980
5981         * scripts/evaluate-test.sh: Handle fourth argument to determine
5982         whether test run should stop on failure.
5983         * Makeconfig (stop-on-test-failure): New variable.
5984         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
5985         $(stop-on-test-failure).
5986         * Makefile (tests): Give a summary of results from testing and
5987         exit with failure status if they include an ERROR or FAIL.
5988         (xtests): Likewise.
5989         * manual/install.texi (Configuring and compiling): Mention
5990         stop-on-test-failure=y.
5991         * INSTALL: Regenerated.
5992
5993 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5994
5995         * scripts/versionlist.awk: New file.
5996         * Makerules [$(build-shared) = yes]
5997         (postclean-generated): Add Versions.def, not Versions.def.v and
5998         Versions.def.v.i.
5999         ($(common-objpfx)Versions.def.v.i): Target removed.
6000         ($(common-objpfx)Versions.def): New target.
6001         ($(common-objpfx)Versions.all): Depend on that rather that
6002         $(common-objpfx)Versions.def.v.
6003         * Versions.def: File removed.
6004
6005         * Makeconfig (+gccwarn): Add -Wundef.
6006         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
6007         a dl-sysdep.h breaking its contract.
6008         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
6009         * include/stackinfo.h: New file.
6010         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
6011         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
6012         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
6013         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
6014         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
6015         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
6016         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6017         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6018         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6019         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6020         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6021         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
6022         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6023         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6024         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6025
6026 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6027
6028         [BZ #16707]
6029         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
6030         implementation.
6031         * math/libm-test.inc (round_test_data): Add more tests.
6032
6033         [BZ #16706]
6034         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
6035         implementation.
6036         * math/libm-test.inc (nearbyint_test_data): Add more tests.
6037
6038         [BZ #16701]
6039         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
6040         implementation.
6041         * math/libm-test.inc (ceil_test_data): Add more tests.
6042
6043         * math/libm-test.inc (trunc_test_data): Add more tests related to
6044         BZ#16414.
6045
6046 2014-03-14  Roland McGrath  <roland@hack.frob.com>
6047
6048         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
6049         with #if rather than #ifdef.
6050         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
6051
6052 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
6053
6054         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
6055         first.  Disable AVX-512 GCC support if assembler doesn't support
6056         it.
6057         * sysdeps/x86_64/configure: Regenerated.
6058
6059 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
6060
6061         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
6062         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
6063         (__old_pthread_attr_setstack): Likewise.
6064         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
6065         [!_STACK_GROWS_DOWN]: Likewise.
6066
6067 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
6068
6069         * config.make.in (have-bash2): Delete.
6070         * configure.ac (libc_cv_have_bash2): Delete.
6071         * configure: Regenerate.
6072         * elf/Makefile (common-ldd-rewrite): Rename to ...
6073         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
6074         (sh-ldd-rewrite): Delete.
6075         (bash-ldd-rewrite): Delete.
6076         (have-bash2): Delete checks.
6077         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
6078         ldd-rewrite.
6079
6080         * config.make.in (have-ksh): Delete.
6081         (KSH): Delete.
6082         * configure.ac (libc_cv_have_ksh): Delete.
6083         * configure: Regenerate.
6084
6085         * elf/Makefile: Delete $(have-ksh) check.
6086         ($(objpfx)sotruss): Change KSH to BASH.
6087         * elf/sotruss.ksh: Rename to ...
6088         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
6089         function style to match POSIX.  Drop ksh vim mode setting.
6090
6091         * manual/time.texi (Specifying the Time Zone with TZ): Change
6092         Tuesday to Thursday.
6093
6094         * debug/tst-longjmp_chk2.c: Update header comment.
6095         (stackoverflow_handler): Add comment.  Call assert on pass value.
6096
6097 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
6098
6099         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
6100         (HAVE_AVX512_ASM_SUPPORT): Likewise.
6101         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
6102         (La_x86_64_vector): Add zmm.
6103         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
6104         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
6105         ($(objpfx)tst-audit10): New target.
6106         ($(objpfx)tst-audit10.out): Likewise.
6107         (tst-audit10-ENV): New.
6108         (AVX512-CFLAGS): Likewise.
6109         (CFLAGS-tst-audit10.c): Likewise.
6110         (CFLAGS-tst-auditmod10a.c): Likewise.
6111         (CFLAGS-tst-auditmod10b.c): Likewise.
6112         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
6113         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
6114         * sysdeps/x86_64/configure: Regenerated.
6115         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
6116         AVX-512 zmm register support.
6117         (_dl_x86_64_save_sse): Likewise.
6118         (_dl_x86_64_restore_sse): Likewise.
6119         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
6120         size vector registers.
6121         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
6122         (ZMM_SIZE): Likewise.
6123         * sysdeps/x86_64/tst-audit10.c: New file.
6124         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
6125         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
6126
6127 2014-03-13  Roland McGrath  <roland@hack.frob.com>
6128
6129         * configure.ac (HAVE_EHDR_START): New check.
6130         * configure: Regenerated.
6131         * config.h.in (HAVE_EHDR_START): New #undef.
6132         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
6133         assuming the lowest-addressed segment maps the start of the file.
6134
6135 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
6136
6137         * INSTALL: Regenerated.
6138
6139 2014-03-13  Will Newton  <will.newton@linaro.org>
6140
6141         * manual/setjmp.texi (System V contexts): Improve
6142         clarity and grammar of documentation.
6143
6144 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
6145
6146         [BZ #16381]
6147         * elf/Makefile (tests): Add tst-pie2.
6148         (tests-pie): Add tst-pie2.
6149         * elf/tst-pie2.c: New file.
6150         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
6151         for ET_EXEC.
6152         * elf/rtld.c (map_doit): Load executable as lt_executable.
6153         (dl_main): Likewise.
6154
6155 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
6156
6157         [BZ #16642]
6158         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6159         (__ASSUME_PSELECT): Undefine.
6160
6161 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6162
6163         [BZ #16689]
6164         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
6165         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
6166         static build.
6167         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
6168         selector for static builds.
6169
6170 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6171
6172         [BZ #16695]
6173         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
6174         key in the buffer.
6175
6176 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6177
6178         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
6179         IFUNC selector for static builds.
6180
6181 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
6182
6183         * sysdeps/mips/math_private.h [__mips_hard_float]
6184         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
6185         libc_feresetround_mips_ctx.
6186         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
6187         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
6188         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
6189
6190         [BZ #16677]
6191         * math/s_nextafter.c (__nextafter): Do not return value from
6192         overflowing computation.
6193         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
6194         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6195         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
6196         Likewise.
6197         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
6198         Likewise.
6199         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
6200         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
6201
6202 2014-03-11  Roland McGrath  <roland@hack.frob.com>
6203
6204         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
6205         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
6206         Move sfi_sp use from the load-multiple (that no longer sets sp) to
6207         the new mov targetting sp.
6208
6209 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6210
6211         [BZ #16683]
6212         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
6213         Define it for static builds as well.
6214         (NO_BZERO_IMPL): Likewise.
6215
6216 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
6217
6218         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
6219         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
6220         multiarch strspn for PPC64.
6221         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
6222         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
6223         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6224         (__libc_ifunc_impl_list): Likewise.
6225         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
6226         multiarch optimizations
6227         * string/strspn.c (strspn): Using macro to redefine symbol name.
6228
6229 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
6230             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6231
6232         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
6233         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
6234         multiarch strncat for PPC64.
6235         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
6236         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
6237         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6238         (__libc_ifunc_impl_list): Likewise.
6239         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
6240         multiarch optimizations
6241
6242 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6243
6244         [BZ #16639]
6245         * nscd/nscd.service: Make service type forking.
6246
6247 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6248
6249         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
6250         sign in non default rounding modes.
6251         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6252
6253 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
6254
6255         * math/libm-test.inc (ALL_RM_TEST): New macro.
6256         (ceil_test): Use ALL_RM_TEST.
6257         (cimag_test): Likewise.
6258         (conj_test): Likewise.
6259         (copysign_test): Likewise.
6260         (cproj_test): Likewise.
6261         (creal_test): Likewise.
6262         (fabs_test): Likewise.
6263         (floor_test): Likewise.
6264         (fmax_test): Likewise.
6265         (fmin_test): Likewise.
6266         (fmod_test): Likewise.
6267         (fpclassify_test): Likewise.
6268         (frexp_test): Likewise.
6269         (ilogb_test): Likewise.
6270         (isfinite_test): Likewise.
6271         (finite_test): Likewise.
6272         (isgreater_test): Likewise.
6273         (isgreaterequal_test): Likewise.
6274         (isinf_test): Likewise.
6275         (isless_test): Likewise.
6276         (islessequal_test): Likewise.
6277         (islessgreater_test): Likewise.
6278         (isnan_test): Likewise.
6279         (isnormal_test): Likewise.
6280         (issignaling_test): Likewise.
6281         (isunordered_test): Likewise.
6282         (logb_test): Likewise.
6283         (logb_downward_test_data): Remove.
6284         (logb_test_downward): Likewise.
6285         (lround_test): Use ALL_RM_TEST.
6286         (llround_test): Likewise.
6287         (modf_test): Likewise.
6288         (nexttoward_test): Likewise.
6289         (remainder_test): Likewise.
6290         (drem_test): Likewise.
6291         (remainder_tonearest_test_data): Likewise.
6292         (remainder_test_tonearest): Likewise.
6293         (drem_test_tonearest): Likewise.
6294         (remainder_towardzero_test_data): Likewise.
6295         (remainder_test_towardzero): Likewise.
6296         (drem_test_towardzero): Likewise.
6297         (remainder_downward_test_data): Likewise.
6298         (remainder_test_downward): Likewise.
6299         (drem_test_downward): Likewise.
6300         (remainder_upward_test_data): Likewise.
6301         (remainder_test_upward): Likewise.
6302         (drem_test_upward): Likewise.
6303         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
6304         (round_test): Use ALL_RM_TEST.
6305         (signbit_test): Likewise.
6306         (trunc_test): Likewise.
6307         (significand_test): Likewise.
6308         (main): Don't call removed functions.
6309
6310 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
6311
6312         [BZ #16674]
6313         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
6314         || __USE_XOPEN2K8].
6315         (ILL_ILLOPN): Likewise.
6316         (ILL_ILLADR): Likewise.
6317         (ILL_ILLTRP): Likewise.
6318         (ILL_PRVOPC): Likewise.
6319         (ILL_PRVREG): Likewise.
6320         (ILL_COPROC): Likewise.
6321         (ILL_BADSTK): Likewise.
6322         (FPE_INTDIV): Likewise.
6323         (FPE_INTOVF): Likewise.
6324         (FPE_FLTDIV): Likewise.
6325         (FPE_FLTOVF): Likewise.
6326         (FPE_FLTUND): Likewise.
6327         (FPE_FLTRES): Likewise.
6328         (FPE_FLTINV): Likewise.
6329         (FPE_FLTSUB): Likewise.
6330         (SEGV_MAPERR): Likewise.
6331         (SEGV_ACCERR): Likewise.
6332         (BUS_ADRALN): Likewise.
6333         (BUS_ADRERR): Likewise.
6334         (BUS_OBJERR): Likewise.
6335         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6336         (TRAP_TRACE): Likewise.
6337         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6338         __USE_XOPEN2K8].
6339         (CLD_KILLED): Likewise.
6340         (CLD_DUMPED): Likewise.
6341         (CLD_TRAPPED): Likewise.
6342         (CLD_STOPPED): Likewise.
6343         (CLD_CONTINUED): Likewise.
6344         (POLL_IN): Likewise.
6345         (POLL_OUT): Likewise.
6346         (POLL_MSG): Likewise.
6347         (POLL_ERR): Likewise.
6348         (POLL_PRI): Likewise.
6349         (POLL_HUP): Likewise.
6350         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
6351         Likewise.
6352         (ILL_ILLOPN): Likewise.
6353         (ILL_ILLADR): Likewise.
6354         (ILL_ILLTRP): Likewise.
6355         (ILL_PRVOPC): Likewise.
6356         (ILL_PRVREG): Likewise.
6357         (ILL_COPROC): Likewise.
6358         (ILL_BADSTK): Likewise.
6359         (FPE_INTDIV): Likewise.
6360         (FPE_INTOVF): Likewise.
6361         (FPE_FLTDIV): Likewise.
6362         (FPE_FLTOVF): Likewise.
6363         (FPE_FLTUND): Likewise.
6364         (FPE_FLTRES): Likewise.
6365         (FPE_FLTINV): Likewise.
6366         (FPE_FLTSUB): Likewise.
6367         (SEGV_MAPERR): Likewise.
6368         (SEGV_ACCERR): Likewise.
6369         (BUS_ADRALN): Likewise.
6370         (BUS_ADRERR): Likewise.
6371         (BUS_OBJERR): Likewise.
6372         (BUS_MCEERR_AR): Likewise.
6373         (BUS_MCEERR_AO): Likewise.
6374         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6375         (TRAP_TRACE): Likewise.
6376         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6377         __USE_XOPEN2K8].
6378         (CLD_KILLED): Likewise.
6379         (CLD_DUMPED): Likewise.
6380         (CLD_TRAPPED): Likewise.
6381         (CLD_STOPPED): Likewise.
6382         (CLD_CONTINUED): Likewise.
6383         (POLL_IN): Likewise.
6384         (POLL_OUT): Likewise.
6385         (POLL_MSG): Likewise.
6386         (POLL_ERR): Likewise.
6387         (POLL_PRI): Likewise.
6388         (POLL_HUP): Likewise.
6389         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
6390         (ILL_ILLOPN): Likewise.
6391         (ILL_ILLADR): Likewise.
6392         (ILL_ILLTRP): Likewise.
6393         (ILL_PRVOPC): Likewise.
6394         (ILL_PRVREG): Likewise.
6395         (ILL_COPROC): Likewise.
6396         (ILL_BADSTK): Likewise.
6397         (FPE_INTDIV): Likewise.
6398         (FPE_INTOVF): Likewise.
6399         (FPE_FLTDIV): Likewise.
6400         (FPE_FLTOVF): Likewise.
6401         (FPE_FLTUND): Likewise.
6402         (FPE_FLTRES): Likewise.
6403         (FPE_FLTINV): Likewise.
6404         (FPE_FLTSUB): Likewise.
6405         (SEGV_MAPERR): Likewise.
6406         (SEGV_ACCERR): Likewise.
6407         (BUS_ADRALN): Likewise.
6408         (BUS_ADRERR): Likewise.
6409         (BUS_OBJERR): Likewise.
6410         (BUS_MCEERR_AR): Likewise.
6411         (BUS_MCEERR_AO): Likewise.
6412         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6413         (TRAP_TRACE): Likewise.
6414         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6415         __USE_XOPEN2K8].
6416         (CLD_KILLED): Likewise.
6417         (CLD_DUMPED): Likewise.
6418         (CLD_TRAPPED): Likewise.
6419         (CLD_STOPPED): Likewise.
6420         (CLD_CONTINUED): Likewise.
6421         (POLL_IN): Likewise.
6422         (POLL_OUT): Likewise.
6423         (POLL_MSG): Likewise.
6424         (POLL_ERR): Likewise.
6425         (POLL_PRI): Likewise.
6426         (POLL_HUP): Likewise.
6427         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
6428         Likewise.
6429         (ILL_ILLOPN): Likewise.
6430         (ILL_ILLADR): Likewise.
6431         (ILL_ILLTRP): Likewise.
6432         (ILL_PRVOPC): Likewise.
6433         (ILL_PRVREG): Likewise.
6434         (ILL_COPROC): Likewise.
6435         (ILL_BADSTK): Likewise.
6436         (ILL_BADIADDR): Likewise.
6437         (ILL_BREAK): Likewise.
6438         (FPE_INTDIV): Likewise.
6439         (FPE_INTOVF): Likewise.
6440         (FPE_FLTDIV): Likewise.
6441         (FPE_FLTOVF): Likewise.
6442         (FPE_FLTUND): Likewise.
6443         (FPE_FLTRES): Likewise.
6444         (FPE_FLTINV): Likewise.
6445         (FPE_FLTSUB): Likewise.
6446         (FPE_DECOVF): Likewise.
6447         (FPE_DECDIV): Likewise.
6448         (FPE_DECERR): Likewise.
6449         (FPE_INVASC): Likewise.
6450         (FPE_INVDEC): Likewise.
6451         (SEGV_MAPERR): Likewise.
6452         (SEGV_ACCERR): Likewise.
6453         (SEGV_PSTKOVF): Likewise.
6454         (BUS_ADRALN): Likewise.
6455         (BUS_ADRERR): Likewise.
6456         (BUS_OBJERR): Likewise.
6457         (BUS_MCEERR_AR): Likewise.
6458         (BUS_MCEERR_AO): Likewise.
6459         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6460         (TRAP_TRACE): Likewise.
6461         (TRAP_BRANCH): Likewise.
6462         (TRAP_HWBKPT): Likewise.
6463         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6464         __USE_XOPEN2K8].
6465         (CLD_KILLED): Likewise.
6466         (CLD_DUMPED): Likewise.
6467         (CLD_TRAPPED): Likewise.
6468         (CLD_STOPPED): Likewise.
6469         (CLD_CONTINUED): Likewise.
6470         (POLL_IN): Likewise.
6471         (POLL_OUT): Likewise.
6472         (POLL_MSG): Likewise.
6473         (POLL_ERR): Likewise.
6474         (POLL_PRI): Likewise.
6475         (POLL_HUP): Likewise.
6476         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
6477         (ILL_ILLOPN): Likewise.
6478         (ILL_ILLADR): Likewise.
6479         (ILL_ILLTRP): Likewise.
6480         (ILL_PRVOPC): Likewise.
6481         (ILL_PRVREG): Likewise.
6482         (ILL_COPROC): Likewise.
6483         (ILL_BADSTK): Likewise.
6484         (FPE_INTDIV): Likewise.
6485         (FPE_INTOVF): Likewise.
6486         (FPE_FLTDIV): Likewise.
6487         (FPE_FLTOVF): Likewise.
6488         (FPE_FLTUND): Likewise.
6489         (FPE_FLTRES): Likewise.
6490         (FPE_FLTINV): Likewise.
6491         (FPE_FLTSUB): Likewise.
6492         (SEGV_MAPERR): Likewise.
6493         (SEGV_ACCERR): Likewise.
6494         (BUS_ADRALN): Likewise.
6495         (BUS_ADRERR): Likewise.
6496         (BUS_OBJERR): Likewise.
6497         (BUS_MCEERR_AR): Likewise.
6498         (BUS_MCEERR_AO): Likewise.
6499         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6500         (TRAP_TRACE): Likewise.
6501         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6502         __USE_XOPEN2K8].
6503         (CLD_KILLED): Likewise.
6504         (CLD_DUMPED): Likewise.
6505         (CLD_TRAPPED): Likewise.
6506         (CLD_STOPPED): Likewise.
6507         (CLD_CONTINUED): Likewise.
6508         (POLL_IN): Likewise.
6509         (POLL_OUT): Likewise.
6510         (POLL_MSG): Likewise.
6511         (POLL_ERR): Likewise.
6512         (POLL_PRI): Likewise.
6513         (POLL_HUP): Likewise.
6514         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
6515         (ILL_ILLOPN): Likewise.
6516         (ILL_ILLADR): Likewise.
6517         (ILL_ILLTRP): Likewise.
6518         (ILL_PRVOPC): Likewise.
6519         (ILL_PRVREG): Likewise.
6520         (ILL_COPROC): Likewise.
6521         (ILL_BADSTK): Likewise.
6522         (FPE_INTDIV): Likewise.
6523         (FPE_INTOVF): Likewise.
6524         (FPE_FLTDIV): Likewise.
6525         (FPE_FLTOVF): Likewise.
6526         (FPE_FLTUND): Likewise.
6527         (FPE_FLTRES): Likewise.
6528         (FPE_FLTINV): Likewise.
6529         (FPE_FLTSUB): Likewise.
6530         (SEGV_MAPERR): Likewise.
6531         (SEGV_ACCERR): Likewise.
6532         (BUS_ADRALN): Likewise.
6533         (BUS_ADRERR): Likewise.
6534         (BUS_OBJERR): Likewise.
6535         (BUS_MCEERR_AR): Likewise.
6536         (BUS_MCEERR_AO): Likewise.
6537         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6538         (TRAP_TRACE): 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/sparc/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/tile/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         (ILL_DBLFLT): Likewise.
6599         (ILL_HARDWALL): Likewise.
6600         (FPE_INTDIV): Likewise.
6601         (FPE_INTOVF): Likewise.
6602         (FPE_FLTDIV): Likewise.
6603         (FPE_FLTOVF): Likewise.
6604         (FPE_FLTUND): Likewise.
6605         (FPE_FLTRES): Likewise.
6606         (FPE_FLTINV): Likewise.
6607         (FPE_FLTSUB): Likewise.
6608         (SEGV_MAPERR): Likewise.
6609         (SEGV_ACCERR): Likewise.
6610         (BUS_ADRALN): Likewise.
6611         (BUS_ADRERR): Likewise.
6612         (BUS_OBJERR): Likewise.
6613         (BUS_MCEERR_AR): Likewise.
6614         (BUS_MCEERR_AO): Likewise.
6615         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6616         (TRAP_TRACE): Likewise.
6617         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6618         __USE_XOPEN2K8].
6619         (CLD_KILLED): Likewise.
6620         (CLD_DUMPED): Likewise.
6621         (CLD_TRAPPED): Likewise.
6622         (CLD_STOPPED): Likewise.
6623         (CLD_CONTINUED): Likewise.
6624         (POLL_IN): Likewise.
6625         (POLL_OUT): Likewise.
6626         (POLL_MSG): Likewise.
6627         (POLL_ERR): Likewise.
6628         (POLL_PRI): Likewise.
6629         (POLL_HUP): Likewise.
6630         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
6631         (ILL_ILLOPN): Likewise.
6632         (ILL_ILLADR): Likewise.
6633         (ILL_ILLTRP): Likewise.
6634         (ILL_PRVOPC): Likewise.
6635         (ILL_PRVREG): Likewise.
6636         (ILL_COPROC): Likewise.
6637         (ILL_BADSTK): Likewise.
6638         (FPE_INTDIV): Likewise.
6639         (FPE_INTOVF): Likewise.
6640         (FPE_FLTDIV): Likewise.
6641         (FPE_FLTOVF): Likewise.
6642         (FPE_FLTUND): Likewise.
6643         (FPE_FLTRES): Likewise.
6644         (FPE_FLTINV): Likewise.
6645         (FPE_FLTSUB): Likewise.
6646         (SEGV_MAPERR): Likewise.
6647         (SEGV_ACCERR): Likewise.
6648         (BUS_ADRALN): Likewise.
6649         (BUS_ADRERR): Likewise.
6650         (BUS_OBJERR): Likewise.
6651         (BUS_MCEERR_AR): Likewise.
6652         (BUS_MCEERR_AO): Likewise.
6653         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6654         (TRAP_TRACE): Likewise.
6655         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6656         __USE_XOPEN2K8].
6657         (CLD_KILLED): Likewise.
6658         (CLD_DUMPED): Likewise.
6659         (CLD_TRAPPED): Likewise.
6660         (CLD_STOPPED): Likewise.
6661         (CLD_CONTINUED): Likewise.
6662         (POLL_IN): Likewise.
6663         (POLL_OUT): Likewise.
6664         (POLL_MSG): Likewise.
6665         (POLL_ERR): Likewise.
6666         (POLL_PRI): Likewise.
6667         (POLL_HUP): Likewise.
6668         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
6669         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6670
6671         [BZ #16670]
6672         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
6673         before #include of <time.h>.
6674         [!__USE_XOPEN2K] (__need_timespec): Likewise.
6675         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
6676         (test-xfail-UNIX98/sched.h/conform): Likewise.
6677
6678 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6679
6680         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
6681         error absence of trapping exception support.
6682         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
6683
6684 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
6685
6686         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
6687         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
6688         * timezone/Makefile (testdata): Move definition above include of
6689         Rules.
6690         (test-zones): New variable.
6691         (tests-special): Add zone files.
6692         (build-testdata): Use $(evaluate-test).
6693
6694         * elf/Makefile (tests-special): Rename tests to end with .out.
6695         ($(objpfx)noload-mem): Likewise.
6696         ($(objpfx)tst-leaks1-mem): Likewise.
6697         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
6698         * iconv/Makefile (xtests-special): Change test-iconvconfig to
6699         $(objpfx)test-iconvconfig.out.
6700         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
6701         set -e inside subshell and redirect output to file.
6702         * iconvdata/Makefile (generated): Rename tests to end with .out.
6703         Correct type.
6704         (tests-special): Rename tests to end with .out.
6705         ($(objpfx)mtrace-tst-loading): Likewise.
6706         * intl/Makefile (generated): Likewise.
6707         (tests-special): Likewise.
6708         ($(objpfx)mtrace-tst-gettext): Likewise.
6709         * misc/Makefile (generated): Likewise.
6710         (tests-special): Likewise.
6711         ($(objpfx)tst-error1-mem): Likewise.
6712         * nptl/Makefile (tests-special): Likewise.
6713         ($(objpfx)tst-stack3-mem): Likewise.
6714         (generated): Likewise.
6715         * posix/Makefile (generated): Likewise.
6716         (tests-special): Likewise.
6717         (xtests-special): Likewise.
6718         ($(objpfx)tst-fnmatch-mem): Likewise.
6719         ($(objpfx)bug-regex2-mem): Likewise.
6720         ($(objpfx)bug-regex14-mem): Likewise.
6721         ($(objpfx)bug-regex21-mem): Likewise.
6722         ($(objpfx)bug-regex31-mem): Likewise.
6723         ($(objpfx)tst-vfork3-mem): Likewise.
6724         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6725         ($(objpfx)tst-pcre-mem): Likewise.
6726         ($(objpfx)tst-boost-mem): Likewise.
6727         ($(objpfx)bug-ga2-mem): Likewise.
6728         ($(objpfx)bug-glob2-mem): Likewise.
6729         * resolv/Makefile (generate): Likewise.
6730         (tests-special): Likewise.
6731         (xtests-special): Likewise.
6732         (generated): Likewise.
6733         ($(objpfx)mtrace-tst-leaks): Likewise.
6734         ($(objpfx)mtrace-tst-leaks2): Likewise.
6735
6736         * scripts/merge-test-results.sh: New file.
6737         * Makefile (tests-special-notdir): New variable.
6738         (tests): Run merge-test-results.sh.
6739         (xtests): Likewise.
6740         * Rules (tests-special-notdir): New variable.
6741         (xtests-special-notdir): Likewise.
6742         (tests): Run merge-test-results.sh
6743         (xtests): Likewise.
6744
6745         * Makeconfig (test-xfail-name): New variable.
6746         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
6747         compute variable name for expected failures.
6748         * conform/Makefile (conformtest-headers-data): New variable.
6749         (conformtest-standards): Likewise.
6750         (conformtest-headers-ISO): Likewise.
6751         (conformtest-headers-ISO99): Likewise.
6752         (conformtest-headers-ISO11): Likewise.
6753         (conformtest-headers-POSIX): Likewise.
6754         (conformtest-headers-XPG3): Likewise.
6755         (conformtest-headers-XPG4): Likewise.
6756         (conformtest-headers-UNIX98): Likewise.
6757         (conformtest-headers-XOPEN2K): Likewise.
6758         (conformtest-headers-POSIX2008): Likewise.
6759         (conformtest-headers-XOPEN2K8): Likewise.
6760         (conformtest-header-list-base): Likewise.
6761         (conformtest-header-list-tests): Likewise.
6762         (conformtest-header-base): Likewise.
6763         (conformtest-header-tests): Likewise.
6764         (tests-special): Add $(conformtest-header-list-tests).  If
6765         [$(fast-check) && !$(cross-compiling)], add
6766         $(conformtest-header-tests) instead of
6767         $(objpfx)run-conformtest.out.
6768         (generated): Add $(conformtest-header-list-base).  If
6769         [$(fast-check) && !$(cross-compiling)], add
6770         $(conformtest-header-base).  Remove previous setting.
6771         ($(conformtest-header-list-tests)): New target.
6772         (test-xfail-run-conformtest): Remove variable.
6773         ($(objpfx)run-conformtest.out): Remove target.
6774         (test-xfail-ISO11/complex.h/conform): New variable.
6775         (test-xfail-ISO11/stdalign.h/conform): Likewise.
6776         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
6777         (test-xfail-XPG3/varargs.h/conform): Likewise.
6778         (test-xfail-XPG4/varargs.h/conform): Likewise.
6779         (test-xfail-UNIX98/varargs.h/conform): Likewise.
6780         (test-xfail-XPG4/ndbm.h/conform): Likewise.
6781         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
6782         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
6783         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
6784         (test-xfail-XPG3/fcntl.h/conform): Likewise.
6785         (test-xfail-XPG3/ftw.h/conform): Likewise.
6786         (test-xfail-XPG3/grp.h/conform): Likewise.
6787         (test-xfail-XPG3/langinfo.h/conform): Likewise.
6788         (test-xfail-XPG3/limits.h/conform): Likewise.
6789         (test-xfail-XPG3/pwd.h/conform): Likewise.
6790         (test-xfail-XPG3/search.h/conform): Likewise.
6791         (test-xfail-XPG3/signal.h/conform): Likewise.
6792         (test-xfail-XPG3/stdio.h/conform): Likewise.
6793         (test-xfail-XPG3/stdlib.h/conform): Likewise.
6794         (test-xfail-XPG3/string.h/conform): Likewise.
6795         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
6796         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
6797         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
6798         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
6799         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
6800         (test-xfail-XPG3/sys/types.h/conform): Likewise.
6801         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
6802         (test-xfail-XPG3/termios.h/conform): Likewise.
6803         (test-xfail-XPG3/time.h/conform): Likewise.
6804         (test-xfail-XPG3/unistd.h/conform): Likewise.
6805         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
6806         (test-xfail-XPG4/fcntl.h/conform): Likewise.
6807         (test-xfail-XPG4/langinfo.h/conform): Likewise.
6808         (test-xfail-XPG4/netdb.h/conform): Likewise.
6809         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
6810         (test-xfail-XPG4/signal.h/conform): Likewise.
6811         (test-xfail-XPG4/stdio.h/conform): Likewise.
6812         (test-xfail-XPG4/stdlib.h/conform): Likewise.
6813         (test-xfail-XPG4/stropts.h/conform): Likewise.
6814         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
6815         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
6816         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
6817         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
6818         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
6819         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
6820         (test-xfail-XPG4/sys/time.h/conform): Likewise.
6821         (test-xfail-XPG4/sys/types.h/conform): Likewise.
6822         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
6823         (test-xfail-XPG4/termios.h/conform): Likewise.
6824         (test-xfail-XPG4/ucontext.h/conform): Likewise.
6825         (test-xfail-XPG4/unistd.h/conform): Likewise.
6826         (test-xfail-XPG4/utmpx.h/conform): Likewise.
6827         (test-xfail-POSIX/sched.h/conform): Likewise.
6828         (test-xfail-POSIX/signal.h/conform): Likewise.
6829         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6830         (test-xfail-POSIX/tar.h/conform): Likewise.
6831         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
6832         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
6833         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
6834         (test-xfail-UNIX98/netdb.h/conform): Likewise.
6835         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
6836         (test-xfail-UNIX98/sched.h/conform): Likewise.
6837         (test-xfail-UNIX98/signal.h/conform): Likewise.
6838         (test-xfail-UNIX98/stdio.h/conform): Likewise.
6839         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
6840         (test-xfail-UNIX98/stropts.h/conform): Likewise.
6841         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
6842         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
6843         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
6844         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
6845         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
6846         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
6847         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6848         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6849         (test-xfail-UNIX98/unistd.h/conform): Likewise.
6850         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
6851         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
6852         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
6853         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
6854         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
6855         (test-xfail-XOPEN2K/math.h/conform): Likewise.
6856         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
6857         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
6858         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
6859         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
6860         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6861         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
6862         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
6863         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
6864         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
6865         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
6866         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
6867         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
6868         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
6869         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6870         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
6871         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
6872         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6873         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
6874         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
6875         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
6876         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
6877         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
6878         (test-xfail-POSIX2008/signal.h/conform): Likewise.
6879         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
6880         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
6881         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6882         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
6883         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
6884         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
6885         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
6886         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
6887         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
6888         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6889         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
6890         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
6891         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
6892         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
6893         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
6894         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
6895         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
6896         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
6897         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
6898         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6899         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
6900         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
6901         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
6902         (conformtest-cc-flags): Likewise.
6903         ($(conformtest-header-tests): New target.
6904         * conform/check-header-lists.sh: New file.
6905         * conform/run-conformtest.sh: Remove.
6906
6907         * conform/conformtest.pl: Allow ' and \ in values given for
6908         constants.
6909         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
6910         inclusion.
6911         [POSIX] (sys/types.h): Likewise.
6912         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
6913         inclusion.
6914         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
6915         inclusion.
6916         * conform/data/signal.h-data (SIGIO): Remove expectation.
6917         [XPG3] (SIGBUS): Do not expect.
6918         [POSIX || XPG3] (SIGPOLL): Likewise.
6919         [POSIX || XPG3] (SIGPROF): Likewise.
6920         [POSIX || XPG3] (SIGSYS): Likewise.
6921         [XPG3] (SIGTRAP): Likewise.
6922         [POSIX || XPG3] (SIGURG): Likewise.
6923         [POSIX || XPG3] (SIGVTALRM): Likewise.
6924         [POSIX || XPG3] (SIGXCPU): Likewise.
6925         [POSIX || XPG3] (SIGXFSZ): Likewise.
6926         [POSIX] (SA_SIGINFO): Expect.
6927         [XPG3] (siginfo_t): Do not expect type or contents.
6928         [POSIX] (si_pid): Do not expect element.
6929         [POSIX] (si_uid): Likewise.
6930         [POSIX] (si_addr): Likewise.
6931         [POSIX] (si_status): Likewise.
6932         [POSIX] (si_band): Likewise.
6933         [XPG4] (si_value): Likewise.
6934         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
6935         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
6936         [POSIX || XPG3] (ILL_ILLADR): Likewise.
6937         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
6938         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
6939         [POSIX || XPG3] (ILL_PRVREG): Likewise.
6940         [POSIX || XPG3] (ILL_COPROC): Likewise.
6941         [POSIX || XPG3] (ILL_BADSTK): Likewise.
6942         [POSIX || XPG3] (FPE_INTDIV): Likewise.
6943         [POSIX || XPG3] (FPE_INTOVF): Likewise.
6944         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
6945         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
6946         [POSIX || XPG3] (FPE_FLTUND): Likewise.
6947         [POSIX || XPG3] (FPE_FLTRES): Likewise.
6948         [POSIX || XPG3] (FPE_FLTINV): Likewise.
6949         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
6950         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
6951         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
6952         [POSIX || XPG3] (BUS_ADRALN): Likewise.
6953         [POSIX || XPG3] (BUS_ADRERR): Likewise.
6954         [POSIX || XPG3] (BUS_OBJERR): Likewise.
6955         [POSIX || XPG3] (CLD_EXITED): Likewise.
6956         [POSIX || XPG3] (CLD_KILLED): Likewise.
6957         [POSIX || XPG3] (CLD_DUMPED): Likewise.
6958         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
6959         [POSIX || XPG3] (CLD_STOPPED): Likewise.
6960         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
6961         [POSIX || XPG3] (POLL_IN): Likewise.
6962         [POSIX || XPG3] (POLL_OUT): Likewise.
6963         [POSIX || XPG3] (POLL_MSG): Likewise.
6964         [POSIX || XPG3] (POLL_ERR): Likewise.
6965         [POSIX || XPG3] (POLL_PRI): Likewise.
6966         [POSIX || XPG3] (POLL_HUP): Likewise.
6967         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
6968         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
6969         (SIG*): Do not allow.
6970         [XPG3] (si_*): Likewise.
6971         [XPG3] (SI_*): Likewise.
6972         [XPG3 || XPG4] (sigev_*): Likewise.
6973         [XPG3 || XPG4] (SIGEV_*): Likewise.
6974         [XPG3 || XPG4] (sival_*): Likewise.
6975         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
6976         [POSIX || XPG3] (BUS_*): Likewise.
6977         [POSIX || XPG3] (CLD_*): Likewise.
6978         [POSIX || XPG3] (FPE_*): Likewise.
6979         [POSIX || XPG3] (ILL_*): Likewise.
6980         [POSIX || XPG3] (POLL_*): Likewise.
6981         [POSIX || XPG3] (SEGV_*): Likewise.
6982         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
6983         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
6984         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
6985         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
6986         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
6987         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
6988         Specify type and value.
6989         (TVERSLEN): Likewise.
6990         (REGTYPE): Likewise.
6991         (AREGTYPE): Likewise.
6992         (LNKTYPE): Likewise.
6993         (SYMTYPE): Likewise.
6994         (CHRTYPE): Likewise.
6995         (BLKTYPE): Likewise.
6996         (DIRTYPE): Likewise.
6997         (FIFOTYPE): Likewise.
6998         (CONTTYPE): Likewise.
6999         (TSUID): Likewise.
7000         (TSGID): Likewise.
7001         (TSVTX): Likewise.
7002         (TUREAD): Likewise.
7003         (TUWRITE): Likewise.
7004         (TUEXEC): Likewise.
7005         (TGREAD): Likewise.
7006         (TGWRITE): Likewise.
7007         (TGEXEC): Likewise.
7008         (TOREAD): Likewise.
7009         (TOWRITE): Likewise.
7010         (TOEXEC): Likewise.
7011         [POSIX] (TSVTX): Expect constant.
7012
7013 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
7014
7015         * Makefile (tests): Change dependencies to ....
7016         (tests-special): ... additions to this variable.
7017         (tests): Depend on $(tests-special).
7018         * Makerules (check-abi-list): New variable.
7019         (check-abi): Depend on $(check-abi-list).
7020         [$(subdir) = elf] (tests-special): Add
7021         $(objpfx)check-abi-libc.out.
7022         [$(build-shared) = yes && subdir] (tests-special): Add
7023         $(check-abi-list).
7024         [$(build-shared) = yes && subdir] (tests): Do not depend on
7025         check-abi.
7026         * Rules (tests): Depend on $(tests-special).
7027         (xtests): Depend on $(xtests-special).
7028         * catgets/Makefile (tests): Change dependencies to ....
7029         (tests-special): ... additions to this variable.
7030         * conform/Makefile (tests): Change dependencies to ....
7031         (tests-special): ... additions to this variable.
7032         * elf/Makefile (tests): Change dependencies to ....
7033         (tests-special): ... additions to this variable.
7034         * grp/Makefile (tests): Change dependencies to ....
7035         (tests-special): ... additions to this variable.
7036         * iconv/Makefile (xtests): Change dependencies to ....
7037         (xtests-special): ... additions to this variable.
7038         * iconvdata/Makefile (tests): Change dependencies to ....
7039         (tests-special): ... additions to this variable.
7040         * intl/Makefile (tests): Change dependencies to ....
7041         (tests-special): ... additions to this variable.  Also add
7042         $(objpfx)tst-gettext.out.
7043         * io/Makefile (tests): Change dependencies to ....
7044         (tests-special): ... additions to this variable.
7045         * libio/Makefile (tests): Change dependencies to ....
7046         (tests-special): ... additions to this variable.
7047         * malloc/Makefile (tests): Change dependencies to ....
7048         (tests-special): ... additions to this variable.
7049         * misc/Makefile (tests): Change dependencies to ....
7050         (tests-special): ... additions to this variable.
7051         * nptl/Makefile (tests): Change dependencies to ....
7052         (tests-special): ... additions to this variable.
7053         * nptl_db/Makefile (tests): Change dependencies to ....
7054         (tests-special): ... additions to this variable.
7055         * posix/Makefile (tests): Change dependencies to ....
7056         (tests-special): ... additions to this variable.
7057         (xtests): Change dependencies to ....
7058         (xtests-special): ... additions to this variable.
7059         * resolv/Makefile (tests): Change dependencies to ....
7060         (tests-special): ... additions to this variable.
7061         (xtests): Change dependencies to ....
7062         (xtests-special): ... additions to this variable.
7063         * stdio-common/Makefile (tests): Change dependencies to ....
7064         (tests-special): ... additions to this variable.
7065         (do-tst-unbputc): Remove target.
7066         (do-tst-printf): Likewise.
7067         * stdlib/Makefile (tests): Change dependencies to ....
7068         (tests-special): ... additions to this variable.
7069         * string/Makefile (tests): Change dependencies to ....
7070         (tests-special): ... additions to this variable.
7071         * sysdeps/x86/Makefile (tests): Change dependencies to ....
7072         (tests-special): ... additions to this variable.
7073
7074         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
7075         whole file.
7076         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
7077         whole file.
7078         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
7079         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
7080
7081         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
7082         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
7083         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
7084         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
7085         * conform/data/libgen.h-data [XPG3]: Likewise.
7086         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
7087         * conform/data/ndbm.h-data [XPG3]: Likewise.
7088         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
7089         * conform/data/netdb.h-data [XPG3]: Likewise.
7090         * conform/data/netinet/in.h-data [XPG3]: Likewise.
7091         * conform/data/poll.h-data [XPG3]: Likewise.
7092         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
7093         * conform/data/strings.h-data [XPG3]: Likewise.
7094         * conform/data/stropts.h-data [XPG3]: Likewise.
7095         * conform/data/sys/mman.h-data [XPG3]: Likewise.
7096         * conform/data/sys/resource.h-data [XPG3]: Likewise.
7097         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
7098         Likewise.
7099         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
7100         * conform/data/sys/time.h-data [XPG3]: Likewise.
7101         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
7102         * conform/data/sys/uio.h-data [XPG3]: Likewise.
7103         * conform/data/sys/un.h-data [XPG3]: Likewise.
7104         * conform/data/syslog.h-data [XPG3]: Likewise.
7105         * conform/data/ucontext.h-data [XPG3]: Likewise.
7106         * conform/data/utmpx.h-data [XPG3]: Likewise.
7107         * conform/data/varargs.h-data [UNIX98]: Enable file.
7108
7109         * manual/Makefile (INSTALL_INFO): Remove variable setting.
7110
7111         * math/libm-test.inc (struct test_f_f_data): Move expected results
7112         into structure for each rounding mode.
7113         (struct test_ff_f_data): Likewise.
7114         (struct test_ff_f_data_nexttoward): Likewise.
7115         (struct test_fi_f_data): Likewise.
7116         (struct test_fl_f_data): Likewise.
7117         (struct test_if_f_data): Likewise.
7118         (struct test_fff_f_data): Likewise.
7119         (struct test_c_f_data): Likewise.
7120         (struct test_f_f1_data): Likewise.
7121         (struct test_fF_f1_data): Likewise.
7122         (struct test_ffI_f1_data): Likewise.
7123         (struct test_c_c_data): Likewise.
7124         (struct test_cc_c_data): Likewise.
7125         (struct test_f_i_data): Likewise.
7126         (struct test_ff_i_data): Likewise.
7127         (struct test_f_l_data): Likewise.
7128         (struct test_f_L_data): Likewise.
7129         (struct test_fFF_11_data): Likewise.
7130         (RM_): New macro.
7131         (RM_FE_DOWNWARD): Likewise.
7132         (RM_FE_TONEAREST): Likewise.
7133         (RM_FE_TOWARDZERO): Likewise.
7134         (RM_FE_UPWARD): Likewise.
7135         (RUN_TEST_LOOP_f_f): Update references to expected results.
7136         (RUN_TEST_LOOP_2_f): Likewise.
7137         (RUN_TEST_LOOP_fff_f): Likewise.
7138         (RUN_TEST_LOOP_c_f): Likewise.
7139         (RUN_TEST_LOOP_f_f1): Likewise.
7140         (RUN_TEST_LOOP_fF_f1): Likewise.
7141         (RUN_TEST_LOOP_fI_f1): Likewise.
7142         (RUN_TEST_LOOP_ffI_f1): Likewise.
7143         (RUN_TEST_LOOP_c_c): Likewise.
7144         (RUN_TEST_LOOP_cc_c): Likewise.
7145         (RUN_TEST_LOOP_f_i): Likewise.
7146         (RUN_TEST_LOOP_f_i_tg): Likewise.
7147         (RUN_TEST_LOOP_ff_i_tg): Likewise.
7148         (RUN_TEST_LOOP_f_b): Likewise.
7149         (RUN_TEST_LOOP_f_b_tg): Likewise.
7150         (RUN_TEST_LOOP_f_l): Likewise.
7151         (RUN_TEST_LOOP_f_L): Likewise.
7152         (RUN_TEST_LOOP_fFF_11): Likewise.
7153         * math/gen-libm-test.pl (parse_args): Output four copies of
7154         expected results for each test.
7155
7156         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7157         (__ASSUME_UTIMES): Remove.
7158         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7159         (__ASSUME_UTIMES): Likewise.
7160
7161         * math/gen-auto-libm-tests.c: Update comment on output format.
7162         (output_for_one_input_case): Generate before-rounding and
7163         after-rounding information as conditions on output flags not
7164         floating-point format.
7165         * math/auto-libm-test-out: Regenerated.
7166         * math/gen-libm-test.pl (cond_value): New function.
7167         (or_cond_value): Use cond_value.
7168         (generate_testfile): Handle conditional exceptions.
7169
7170 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
7171
7172         * math/libm-test.inc (max_valid_error): New variable.
7173         (init_max_error): Take new argument specifying whether function
7174         results are exactly determined.  Set max_valid_error and bound
7175         other variables for errors based on this argument.
7176         (set_max_error): Do not record results above max_valid_error.
7177         (check_float_internal): Only accept errors of up to 0.5ulps if
7178         also at most max_valid_error.
7179         (START): Take new argument EXACT and pass it to init_max_error.
7180         (acos_test): Update call to START.
7181         (acos_test_tonearest): Likewise.
7182         (acos_test_towardzero): Likewise.
7183         (acos_test_downward): Likewise.
7184         (acos_test_upward): Likewise.
7185         (acosh_test): Likewise.
7186         (asin_test): Likewise.
7187         (asin_test_tonearest): Likewise.
7188         (asin_test_towardzero): Likewise.
7189         (asin_test_downward): Likewise.
7190         (asin_test_upward): Likewise.
7191         (asinh_test): Likewise.
7192         (atan_test): Likewise.
7193         (atanh_test): Likewise.
7194         (atan2_test): Likewise.
7195         (cabs_test): Likewise.
7196         (cacos_test): Likewise.
7197         (cacosh_test): Likewise.
7198         (carg_test): Likewise.
7199         (casin_test): Likewise.
7200         (casinh_test): Likewise.
7201         (catan_test): Likewise.
7202         (catanh_test): Likewise.
7203         (cbrt_test): Likewise.
7204         (ccos_test): Likewise.
7205         (ccosh_test): Likewise.
7206         (ceil_test): Likewise.
7207         (cexp_test): Likewise.
7208         (cimag_test): Likewise.
7209         (clog_test): Likewise.
7210         (clog10_test): Likewise.
7211         (conj_test): Likewise.
7212         (copysign_test): Likewise.
7213         (cos_test): Likewise.
7214         (cos_test_tonearest): Likewise.
7215         (cos_test_towardzero): Likewise.
7216         (cos_test_downward): Likewise.
7217         (cos_test_upward): Likewise.
7218         (cosh_test): Likewise.
7219         (cosh_test_tonearest): Likewise.
7220         (cosh_test_towardzero): Likewise.
7221         (cosh_test_downward): Likewise.
7222         (cosh_test_upward): Likewise.
7223         (cpow_test): Likewise.
7224         (cproj_test): Likewise.
7225         (creal_test): Likewise.
7226         (csin_test): Likewise.
7227         (csinh_test): Likewise.
7228         (csqrt_test): Likewise.
7229         (ctan_test): Likewise.
7230         (ctan_test_tonearest): Likewise.
7231         (ctan_test_towardzero): Likewise.
7232         (ctan_test_downward): Likewise.
7233         (ctan_test_upward): Likewise.
7234         (ctanh_test): Likewise.
7235         (ctanh_test_tonearest): Likewise.
7236         (ctanh_test_towardzero): Likewise.
7237         (ctanh_test_downward): Likewise.
7238         (ctanh_test_upward): Likewise.
7239         (erf_test): Likewise.
7240         (erfc_test): Likewise.
7241         (exp_test): Likewise.
7242         (exp_test_tonearest): Likewise.
7243         (exp_test_towardzero): Likewise.
7244         (exp_test_downward): Likewise.
7245         (exp_test_upward): Likewise.
7246         (exp10_test): Likewise.
7247         (exp10_test_tonearest): Likewise.
7248         (exp10_test_towardzero): Likewise.
7249         (exp10_test_downward): Likewise.
7250         (exp10_test_upward): Likewise.
7251         (pow10_test): Likewise.
7252         (exp2_test): Likewise.
7253         (expm1_test): Likewise.
7254         (expm1_test_tonearest): Likewise.
7255         (expm1_test_towardzero): Likewise.
7256         (expm1_test_downward): Likewise.
7257         (expm1_test_upward): Likewise.
7258         (fabs_test): Likewise.
7259         (fdim_test): Likewise.
7260         (floor_test): Likewise.
7261         (fma_test): Likewise.
7262         (fma_test_towardzero): Likewise.
7263         (fma_test_downward): Likewise.
7264         (fma_test_upward): Likewise.
7265         (fmax_test): Likewise.
7266         (fmin_test): Likewise.
7267         (fmod_test): Likewise.
7268         (fpclassify_test): Likewise.
7269         (frexp_test): Likewise.
7270         (hypot_test): Likewise.
7271         (ilogb_test): Likewise.
7272         (isfinite_test): Likewise.
7273         (finite_test): Likewise.
7274         (isgreater_test): Likewise.
7275         (isgreaterequal_test): Likewise.
7276         (isinf_test): Likewise.
7277         (isless_test): Likewise.
7278         (islessequal_test): Likewise.
7279         (islessgreater_test): Likewise.
7280         (isnan_test): Likewise.
7281         (isnormal_test): Likewise.
7282         (issignaling_test): Likewise.
7283         (isunordered_test): Likewise.
7284         (j0_test): Likewise.
7285         (j1_test): Likewise.
7286         (jn_test): Likewise.
7287         (ldexp_test): Likewise.
7288         (lgamma_test): Likewise.
7289         (gamma_test): Likewise.
7290         (lrint_test): Likewise.
7291         (lrint_test_tonearest): Likewise.
7292         (lrint_test_towardzero): Likewise.
7293         (lrint_test_downward): Likewise.
7294         (lrint_test_upward): Likewise.
7295         (llrint_test): Likewise.
7296         (llrint_test_tonearest): Likewise.
7297         (llrint_test_towardzero): Likewise.
7298         (llrint_test_downward): Likewise.
7299         (llrint_test_upward): Likewise.
7300         (log_test): Likewise.
7301         (log10_test): Likewise.
7302         (log1p_test): Likewise.
7303         (log2_test): Likewise.
7304         (logb_test): Likewise.
7305         (logb_test_downward): Likewise.
7306         (lround_test): Likewise.
7307         (llround_test): Likewise.
7308         (modf_test): Likewise.
7309         (nearbyint_test): Likewise.
7310         (nextafter_test): Likewise.
7311         (nexttoward_test): Likewise.
7312         (pow_test): Likewise.
7313         (pow_test_tonearest): Likewise.
7314         (pow_test_towardzero): Likewise.
7315         (pow_test_downward): Likewise.
7316         (pow_test_upward): Likewise.
7317         (remainder_test): Likewise.
7318         (drem_test): Likewise.
7319         (remainder_test_tonearest): Likewise.
7320         (drem_test_tonearest): Likewise.
7321         (remainder_test_towardzero): Likewise.
7322         (drem_test_towardzero): Likewise.
7323         (remainder_test_downward): Likewise.
7324         (drem_test_downward): Likewise.
7325         (remainder_test_upward): Likewise.
7326         (drem_test_upward): Likewise.
7327         (remquo_test): Likewise.
7328         (rint_test): Likewise.
7329         (rint_test_tonearest): Likewise.
7330         (rint_test_towardzero): Likewise.
7331         (rint_test_downward): Likewise.
7332         (rint_test_upward): Likewise.
7333         (round_test): Likewise.
7334         (scalb_test): Likewise.
7335         (scalbn_test): Likewise.
7336         (scalbln_test): Likewise.
7337         (signbit_test): Likewise.
7338         (sin_test): Likewise.
7339         (sin_test_tonearest): Likewise.
7340         (sin_test_towardzero): Likewise.
7341         (sin_test_downward): Likewise.
7342         (sin_test_upward): Likewise.
7343         (sincos_test): Likewise.
7344         (sinh_test): Likewise.
7345         (sinh_test_tonearest): Likewise.
7346         (sinh_test_towardzero): Likewise.
7347         (sinh_test_downward): Likewise.
7348         (sinh_test_upward): Likewise.
7349         (sqrt_test): Likewise.
7350         (sqrt_test_tonearest): Likewise.
7351         (sqrt_test_towardzero): Likewise.
7352         (sqrt_test_downward): Likewise.
7353         (sqrt_test_upward): Likewise.
7354         (tan_test): Likewise.
7355         (tan_test_tonearest): Likewise.
7356         (tan_test_towardzero): Likewise.
7357         (tan_test_downward): Likewise.
7358         (tan_test_upward): Likewise.
7359         (tanh_test): Likewise.
7360         (tgamma_test): Likewise.
7361         (trunc_test): Likewise.
7362         (y0_test): Likewise.
7363         (y1_test): Likewise.
7364         (yn_test): Likewise.
7365         (significand_test): Likewise.
7366
7367         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
7368         individual tests in comment.
7369         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
7370         (prev_max_error): New variable.
7371         (prev_real_max_error): Likewise.
7372         (prev_imag_max_error): Likewise.
7373         (compare_ulp_data): Don't refer to test names in comment.
7374         (find_test_ulps): Remove function.
7375         (find_function_ulps): Likewise.
7376         (find_complex_function_ulps): Likewise.
7377         (init_max_error): Take function name as argument.  Look up ulps
7378         for that function.
7379         (print_ulps): Remove function.
7380         (print_max_error): Use prev_max_error instead of calling
7381         find_function_ulps.
7382         (print_complex_max_error): Use prev_real_max_error and
7383         prev_imag_max_error instead of calling find_complex_function_ulps.
7384         (check_float_internal): Take max_ulp parameter instead of calling
7385         find_test_ulps.  Don't call print_ulps.
7386         (check_float): Update call to check_float_internal.
7387         (check_complex): Update calls to check_float_internal.
7388         (START): Pass argument to init_max_error.
7389         * math/gen-libm-test.pl (%results): Don't include "kind"
7390         information.
7391         (parse_ulps): Don't handle ulps of individual tests.
7392         (print_ulps_file): Likewise.
7393         (output_ulps): Likewise.
7394         * math/README.libm-test: Update.
7395         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
7396         individual tests.
7397         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
7398         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
7399         * sysdeps/arm/libm-test-ulps: Likewise.
7400         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
7401         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
7402         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
7403         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
7404         * sysdeps/microblaze/libm-test-ulps: Likewise.
7405         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
7406         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7407         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7408         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
7409         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7410         * sysdeps/sh/libm-test-ulps: Likewise.
7411         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7412         * sysdeps/tile/libm-test-ulps: Likewise.
7413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7414
7415 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
7416
7417         * math/libm-test.inc (print_complex_max_error): Check separately
7418         whether real and imaginary errors are within allowed range and
7419         pass 0 to print_complex_function_ulps instead of value within
7420         allowed range.
7421
7422 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
7423
7424         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
7425         formatting.
7426         (get_handles_fopen): Likewise.
7427         (do_write_test): Likewise.
7428
7429         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
7430
7431         * libio/fileops.c (do_ftell): Use cached offset when
7432         available.
7433         * libio/iofwide.c (do_ftell_wide): Likewise.
7434         * libio/iofdopen.c (_IO_new_fdopen): Don't use
7435         _IO_file_attach.
7436         * libio/wfileops.c (_IO_fwide): Don't cache offset.
7437
7438         [BZ #16532]
7439         * libio/libioP.h (get_file_offset): New function.
7440         * libio/fileops.c (get_file_offset): Likewise.
7441         (do_ftell): Likewise.
7442         (_IO_new_file_seekoff): Split out ftell logic.
7443         * libio/wfileops.c (do_ftell_wide): Likewise.
7444         (_IO_wfile_seekoff): Split out ftell logic.
7445         * libio/tst-ftell-active-handler.c: New test case.
7446         * libio/Makefile (tests): Add it.
7447
7448 2014-03-03  Roland McGrath  <roland@hack.frob.com>
7449
7450         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
7451         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
7452
7453 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
7454
7455         [BZ #16639]
7456         * nscd/connections.c (nscd_init): Call do_exit.
7457         (start_threads): Call do_exit and notify_parent.
7458         (begin_drop_privileges): Call do_exit.
7459         (finish_drop_privileges): Likewise.
7460         * nscd/selinux.c (preserve_capabilities): Likewise.
7461         (install_real_capabilities): Likewise.
7462         (nscd_selinux_enabled): Likewise.
7463         (avc_create_thread): Likewise.
7464         (avc_alloc_lock): Likewise.
7465         (nscd_avc_init): Likewise.
7466         * nscd/nscd.c (parent_fd): New static variable.
7467         (main): Create a pipe between parent and child processes.
7468         Skip closing parent_fd.
7469         (monitor_child): New function.
7470         (do_exit): Likewise.
7471         (notify_parent): Likewise.
7472         * nscd/nscd.h (notify_parent): Likewise.
7473         (do_exit): Likewise.
7474
7475 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
7476
7477         * malloc/malloc.c (__libc_calloc): Revert last change.
7478
7479 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7480
7481         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7482
7483 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7484
7485         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
7486         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
7487         implementation.
7488         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
7489         (__libc_ifunc_impl_list): Likewise.
7490         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
7491         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
7492         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
7493         * string/strrchr.c: Define STRRCHR.
7494
7495 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
7496
7497         * benchtest/bench-strtok.c (simple_strtok): Delete.
7498         (strtok_string): Use as benchmark.
7499         * string/strtok (STRTOK): New macro.
7500
7501 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
7502
7503         * manual/threads.texi: Add header and standard comments to all
7504         functions.
7505
7506         * elf/dl-lookup.c (check_match): New function.
7507         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
7508         (do_lookup_x): Remove nested function check_match. Use non-nested
7509         function check_match.
7510
7511 2014-02-28  Roland McGrath  <roland@hack.frob.com>
7512
7513         * csu/Makefile (generated, before-compile): Use += rather than =.
7514         * catgets/Makefile (generated, generated-dirs): Likewise.
7515         * debug/Makefile (generated): Likewise.
7516         * dlfcn/Makefile (generated): Likewise.
7517         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
7518         * iconvdata/Makefile (before-compile, generated): Likewise.
7519         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
7520         * libio/Makefile (generated): Likewise.
7521         * malloc/Makefile (generated): Likewise.
7522         * manual/Makefile (generated, generated-dirs): Likewise.
7523         * misc/Makefile (generated): Likewise.
7524         * posix/Makefile (generated): Likewise.
7525         * resolv/Makefile (generated): Likewise.
7526         * sunrpc/Makefile (generated, generated-dirs): Likewise.
7527         * timezone/Makefile (generated, generated-dirs): Likewise.
7528
7529         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
7530
7531 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7532
7533         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
7534         power8 implementation.
7535         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
7536         file: POWER8 llround ifunc implementation.
7537         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
7538         (__lllround): Add POWER8 implementation.
7539         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
7540         POWER8 llround implementation.
7541
7542         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
7543         power8 implementation.
7544         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
7545         file: POWER8 llrint ifunc implementation.
7546         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
7547         Add POWER8 implementation.
7548         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
7549         POWER8 llrint implementation.
7550
7551         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
7552         power8 implementation.
7553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
7554         file: POWER8 finite ifunc implementation.
7555         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
7556         Add POWER8 implementation.
7557         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
7558         Likewise.
7559         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
7560         POWER8 finite implementation.
7561         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
7562
7563         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
7564         power8 implementation.
7565         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
7566         file: POWER8 isinf ifunc implementation.
7567         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
7568         POWER8 implementation.
7569         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
7570         Likewise.
7571         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
7572         isinf implementation.
7573         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
7574
7575         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
7576         (INIT_ARCH): Add hwcap2 initialization.
7577         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
7578         power8 implementation.
7579         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
7580         file: POWER8 isnan ifunc implementation.
7581         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
7582         POWER8 implementation.
7583         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
7584         Likewise.
7585         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
7586         isnan implementation.
7587         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
7588
7589 2014-02-27  Joey Ye  <joey.ye@arm.com>
7590
7591         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
7592         (_FP_NANFRAC_Q): Set to zero.
7593
7594 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7595
7596         [BZ #16623]
7597         * math/auto-libm-test-in: New test inputs.
7598         * math/auto-libm-test-out: Regenerate.
7599         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
7600         and DA.
7601         (__cos): Likewise.
7602         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
7603
7604 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
7605
7606         * scripts/evaluate-test.sh: Take new argument indicating whether
7607         failure is expected.
7608         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
7609         indicating whether failure is expected.
7610         * conform/Makefile (test-xfail-run-conformtest): New variable.
7611         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
7612         level.
7613         * posix/Makefile (test-xfail-annexc): New variable.
7614         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
7615
7616 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
7617
7618         * argp/Makefile: Include Makeconfig immediately after defining
7619         subdir.
7620         * assert/Makefile: Likewise.
7621         * benchtests/Makefile: Likewise.
7622         * catgets/Makefile: Likewise.
7623         * conform/Makefile: Likewise.
7624         * crypt/Makefile: Likewise.
7625         * csu/Makefile: Likewise.
7626         (all): Remove target.
7627         * ctype/Makefile: Include Makeconfig immediately after defining
7628         subdir.
7629         * debug/Makefile: Likewise.
7630         * dirent/Makefile: Likewise.
7631         * dlfcn/Makefile: Likewise.
7632         * gmon/Makefile: Likewise.
7633         * gnulib/Makefile: Likewise.
7634         * grp/Makefile: Likewise.
7635         * gshadow/Makefile: Likewise.
7636         * hesiod/Makefile: Likewise.
7637         * hurd/Makefile: Likewise.
7638         (all): Remove target.
7639         * iconvdata/Makefile: Include Makeconfig immediately after
7640         defining subdir.
7641         * inet/Makefile: Likewise.
7642         * intl/Makefile: Likewise.
7643         * io/Makefile: Likewise.
7644         * libio/Makefile: Likewise.
7645         (all): Remove target.
7646         * locale/Makefile: Include Makeconfig immediately after defining
7647         subdir.
7648         * login/Makefile: Likewise.
7649         * mach/Makefile: Likewise.
7650         (all): Remove target.
7651         * malloc/Makefile: Include Makeconfig immediately after defining
7652         subdir.
7653         (all): Remove target.
7654         * manual/Makefile: Include Makeconfig immediately after defining
7655         subdir.
7656         * math/Makefile: Likewise.
7657         * misc/Makefile: Likewise.
7658         * nis/Makefile: Likewise.
7659         * nss/Makefile: Likewise.
7660         * po/Makefile: Likewise.
7661         (all): Remove target.
7662         * posix/Makefile: Include Makeconfig immediately after defining
7663         subdir.
7664         * pwd/Makefile: Likewise.
7665         * resolv/Makefile: Likewise.
7666         * resource/Makefile: Likewise.
7667         * rt/Makefile: Likewise.
7668         * setjmp/Makefile: Likewise.
7669         * shadow/Makefile: Likewise.
7670         * signal/Makefile: Likewise.
7671         * socket/Makefile: Likewise.
7672         * soft-fp/Makefile: Likewise.
7673         * stdio-common/Makefile: Likewise.
7674         * stdlib/Makefile: Likewise.
7675         * streams/Makefile: Likewise.
7676         * string/Makefile: Likewise.
7677         * sunrpc/Makefile: Likewise.
7678         (all): Remove target.
7679         * sysvipc/Makefile: Include Makeconfig immediately after defining
7680         subdir.
7681         * termios/Makefile: Likewise.
7682         * time/Makefile: Likewise.
7683         * timezone/Makefile: Likewise.
7684         (all): Remove target.
7685         * wcsmbs/Makefile: Include Makeconfig immediately after defining
7686         subdir.
7687         * wctype/Makefile: Likewise.
7688
7689 2014-02-26  Steve Ellcey  <sellcey@mips.com>
7690
7691         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
7692         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
7693         (libc_feholdexcept_setround_mips): Ditto.
7694         (libc_feholdsetround): New.
7695         (libc_feholdsetroundf): New.
7696         (libc_feholdsetroundl): New.
7697         (libc_feupdateenv_test_mips): New.
7698         (libc_feupdateenv_test): New.
7699         (libc_feupdateenv_testf): New.
7700         (libc_feupdateenv_testl): New.
7701         (libc_feresetround): New.
7702         (libc_feresetroundf): New.
7703         (libc_feresetroundl): New.
7704         (libc_fetestexcept_mips): New.
7705         (libc_fetestexcept): New.
7706         (libc_fetestexceptf): New.
7707         (libc_fetestexceptl): New.
7708         (HAVE_RM_CTX): New.
7709         (libc_feholdexcept_setround_mips_ctx): New.
7710         (libc_feholdexcept_setround_ctx): New.
7711         (libc_feholdexcept_setroundf_ctx): New.
7712         (libc_feholdexcept_setroundl_ctx): New.
7713         (libc_fesetenv_mips_ctx): New.
7714         (libc_fesetenv_ctx): New.
7715         (libc_fesetenv_ctxf): New.
7716         (libc_fesetenv_ctxl): New.
7717         (libc_feupdateenv_mips_ctx): New.
7718         (libc_feupdateenv_ctx): New.
7719         (libc_feupdateenvf_ctx): New.
7720         (libc_feupdateenvl_ctx): New.
7721         (libc_feholdsetround_mips_ctx): New.
7722         (libc_feholdsetround_ctx): New.
7723         (libc_feholdsetroundf_ctx): New.
7724         (libc_feholdsetroundl_ctx): New.
7725         (libc_feresetround_mips_ctx): New.
7726         (libc_feresetround_ctx): New.
7727         (libc_feresetroundf_ctx): New.
7728         (libc_feresetroundl_ctx): New.
7729
7730 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
7731
7732         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
7733
7734         * manual/ipc.texi: New file.
7735         * manual/Makefile (chapters): Add ipc.
7736         * manual/job.texi: Add "Inter-Process Communication" to next.
7737         * manual/process.texi: Add "Inter-Process Communication" to prev.
7738
7739 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7740
7741         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7742
7743 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
7744
7745         * malloc/malloc.c (__libc_calloc): Simplify implementation.
7746
7747         * manual/arith.texi: Fix spaces after sentences.
7748         * manual/charset.texi: Likewise.
7749         * manual/errno.texi: Likewise.
7750         * manual/install.texi: Likewise.
7751         * manual/llio.texi: Likewise.
7752         * manual/locale.texi: Likewise.
7753         * manual/maint.texi: Likewise.
7754         * manual/math.texi: Likewise.
7755         * manual/memory.texi: Likewise.
7756         * manual/message.texi: Likewise.
7757         * manual/probes.texi: Likewise.
7758         * manual/resource.texi: Likewise.
7759         * manual/signal.texi: Likewise.
7760         * manual/socket.texi: Likewise.
7761         * manual/stdio.texi: Likewise.
7762         * manual/string.texi: Likewise.
7763         * manual/time.texi: Likewise.
7764         * manual/users.texi: Likewise.
7765
7766 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
7767
7768         [BZ #16632]
7769         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
7770         _DEFAULT_SOURCE is defined.
7771
7772 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
7773             Carlos O'Donell  <carlos@redhat.com>
7774
7775         [BZ #16613]
7776         * elf/dl-tls.c (_dl_count_modids): New function.
7777         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
7778         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
7779         audit library and increment generation counter.
7780         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
7781         * elf/tst-audit9.c: New file.
7782         * elf/tst-auditmod9a.c: New file.
7783         * elf/tst-auditmod9b.c: New file.
7784         * elf/Makefile: Add rules to build and run tst-audit9.
7785
7786 2014-02-25  Florian Weimer  <fweimer@redhat.com>
7787
7788         [BZ #15347]
7789         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
7790
7791 2014-02-25  Will Newton  <will.newton@linaro.org>
7792
7793         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
7794         (__longjmp): Restore sp and lr before restoring callee
7795         saved registers.  Add longjmp and longjmp_target
7796         SystemTap probe point.
7797         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
7798         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
7799         Define to zero to match jmpbuf layout.
7800         * sysdeps/arm/setjmp.S: Include stap-probe.h.
7801         (__sigsetjmp): Save sp and lr before saving callee
7802         saved registers.  Add setjmp SystemTap probe point.
7803
7804 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
7805
7806         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7807
7808 2014-02-24  Andreas Schwab  <schwab@suse.de>
7809
7810         [BZ #15804]
7811         * elf/pldd.c (wait_for_ptrace_stop): New function.
7812         (main): Call it after attaching.
7813
7814 2014-02-22  Roland McGrath  <roland@hack.frob.com>
7815
7816         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
7817         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
7818         Versions files is now verboten.
7819         * hurd/Versions (libc: GLIBC_2.0):
7820         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
7821         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
7822         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
7823         * mach/Versions: Likewise.
7824
7825         * csu/Versions: Remove unused %include.
7826         * resolv/Versions: Likewise.
7827
7828 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
7829
7830         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
7831         ($(objpfx)check-local-headers.out): Likewise.
7832         ($(objpfx)begin-end-check.out): Likewise.
7833         * Makerules (check-abi-%.out): Likewise.
7834         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
7835         ($(objpfx)test2.cat): Likewise.
7836         ($(objpfx)de/libc.cat): Likewise.
7837         ($(objpfx)test-gencat.out): Likewise.
7838         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
7839         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
7840         ($(objpfx)noload-mem): Likewise.
7841         ($(objpfx)tst-pathopt.out): Likewise.
7842         ($(objpfx)tst-rtld-load-self.out): Likewise.
7843         ($(objpfx)tst-array1-cmp.out): Likewise.
7844         ($(objpfx)tst-array1-static-cmp.out): Likewise.
7845         ($(objpfx)tst-array2-cmp.out): Likewise.
7846         ($(objpfx)tst-array3-cmp.out): Likewise.
7847         ($(objpfx)tst-array4-cmp.out): Likewise.
7848         ($(objpfx)tst-array5-cmp.out): Likewise.
7849         ($(objpfx)tst-array5-static-cmp.out): Likewise.
7850         ($(objpfx)check-textrel.out): Likewise.
7851         ($(objpfx)check-execstack.out): Likewise.
7852         ($(objpfx)check-localplt.out): Likewise.
7853         ($(objpfx)order2-cmp.out): Likewise.
7854         ($(objpfx)tst-leaks1-mem): Likewise.
7855         ($(objpfx)tst-leaks1-static-mem): Likewise.
7856         ($(objpfx)tst-initorder-cmp.out): Likewise.
7857         ($(objpfx)tst-initorder2-cmp.out): Likewise.
7858         ($(objpfx)tst-unused-dep.out): Likewise.
7859         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
7860         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
7861         * iconv/Makefile (test-iconvconfig): Likewise.
7862         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
7863         ($(objpfx)iconv-test.out): Likewise.
7864         ($(objpfx)tst-tables.out): Likewise.
7865         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
7866         ($(objpfx)tst-gettext.out): Likewise.
7867         ($(objpfx)tst-translit.out): Likewise.
7868         ($(objpfx)tst-gettext2.out): Likewise.
7869         ($(objpfx)tst-gettext4.out): Likewise.
7870         ($(objpfx)tst-gettext6.out): Likewise.
7871         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
7872         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
7873         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
7874         ($(objpfx)tst-fopenloc-mem.out): Likewise.
7875         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
7876         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
7877         * posix/Makefile ($(objpfx)globtest.out): Likewise.
7878         ($(objpfx)wordexp-tst.out): Likewise.
7879         ($(objpfx)annexc.out): Likewise.
7880         ($(objpfx)tst-fnmatch-mem): Likewise.
7881         ($(objpfx)bug-regex2-mem): Likewise.
7882         ($(objpfx)bug-regex14-mem): Likewise.
7883         ($(objpfx)bug-regex21-mem): Likewise.
7884         ($(objpfx)bug-regex31-mem): Likewise.
7885         ($(objpfx)tst-vfork3-mem): Likewise.
7886         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
7887         ($(objpfx)tst-pcre-mem): Likewise.
7888         ($(objpfx)tst-boost-mem): Likewise.
7889         ($(objpfx)tst-getconf.out): Likewise.
7890         ($(objpfx)bug-ga2-mem): Likewise.
7891         ($(objpfx)bug-glob2-mem): Likewise.
7892         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
7893         ($(objpfx)mtrace-tst-leaks2): Likewise.
7894         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
7895         ($(objpfx)tst-printf.out): Likewise.
7896         ($(objpfx)tst-setvbuf1.out): Likewise.
7897         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
7898         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
7899         ($(objpfx)tst-fmtmsg.out): Likewise.
7900         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
7901         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
7902
7903         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
7904         * bits/sigaction.h [__USE_MISC]: Likewise.
7905         * bits/waitstatus.h: Update #endif comments.
7906         * ctype/ctype.h: Likewise.
7907         * dirent/dirent.h: Likewise.
7908         [__USE_MISC]: Remove redundant conditionals.
7909         * grp/grp.h: Update #endif comments.
7910         [__USE_GNU]: Remove redundant conditionals.
7911         [__USE_MISC]: Likewise.
7912         * inet/netinet/in.h [__USE_GNU]: Likewise.
7913         * io/sys/stat.h [__USE_MISC]: Likewise.
7914         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
7915         * libio/bits/stdio.h: Update #endif comments.
7916         [__USE_MISC]: Remove redundant conditionals.
7917         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
7918         * libio/stdio.h: Update #endif comments.
7919         [__USE_MISC]: Remove redundant conditionals.
7920         * math/bits/math-finite.h [__USE_MISC]: Likewise.
7921         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
7922         * math/math.h: Update #else and #endif comments.
7923         [__USE_MISC]: Remove redundant conditionals.
7924         * misc/sys/uio.h: Update #endif comments.
7925         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
7926         * posix/glob.h [__USE_MISC]: Likewise.
7927         * posix/sys/types.h: Update #endif comments.
7928         [__USE_MISC]: Remove redundant conditionals.
7929         * posix/sys/wait.h: Update #endif comments.
7930         [__USE_MISC]: Remove redundant conditionals.
7931         * posix/unistd.h: Update #endif comments.
7932         [__USE_MISC]: Remove redundant conditionals.
7933         * pwd/pwd.h [__USE_GNU]: Likewise.
7934         [__USE_MISC]: Likewise.
7935         * resolv/netdb.h [__USE_GNU]: Likewise.
7936         * signal/signal.h: Update #endif comments.
7937         [__USE_MISC]: Remove redundant conditionals.
7938         * stdlib/stdlib.h: Update #else and #endif comments.
7939         [__USE_MISC]: Remove redundant conditionals.
7940         [__USE_GNU]: Likewise.
7941         * string/bits/string2.h [__USE_MISC]: Likewise.
7942         * string/string.h: Update #endif comments.
7943         [__USE_MISC]: Remove redundant conditionals.
7944         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
7945         Likewise.
7946         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
7947         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
7948         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
7949         Likewise.
7950         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
7951         Likewise.
7952         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
7953         comments.
7954         [__USE_MISC]: Remove redundant conditionals.
7955         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
7956         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
7957         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
7958         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
7959         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
7960         Likewise.
7961         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
7962         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
7963         Likewise.
7964         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
7965         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
7966         Likewise.
7967         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
7968         Likewise.
7969         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
7970         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
7971         Likewise.
7972         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
7973         Likewise.
7974         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
7975         * sysdeps/x86/bits/string.h: Update #endif comments.
7976         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
7977         conditionals.
7978         * time/sys/time.h: Update #endif comments.
7979         * time/time.h: Likewise.
7980         [__USE_MISC]: Remove redundant conditionals.
7981
7982 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
7983
7984         [BZ #16600]
7985         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
7986
7987 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
7988
7989         * Versions.def (librt): Add GLIBC_2.17.
7990
7991 2014-02-21  Adam Conrad  <adconrad@0c3.net>
7992
7993         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
7994         synonym for _SYS_AUXV_H to allow direct inclusion.
7995         * sysdeps/sparc/bits/hwcap.h: Likewise.
7996         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
7997         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
7998         * sysdeps/sparc/sysdep.h: Likewise.
7999
8000 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8001
8002         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
8003
8004 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8005
8006         * benchtests/bench-strrchr.c: Print length instead of position.
8007
8008 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
8009
8010         [BZ #16611]
8011         * sysdeps/unix/sysv/linux/kernel-features.h
8012         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
8013         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
8014         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
8015         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
8016         Likewise.
8017         [__i386__ || __powerpc__ || __sh__ || __sparc__]
8018         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
8019         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
8020         (__ASSUME_SENDMMSG): Define instead of using previous
8021         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
8022         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
8023         (__ASSUME_SENDMMSG_SYSCALL): Define.
8024         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8025         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
8026         Likewise.
8027         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8028         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
8029         Likewise.
8030         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
8031         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
8032         Likewise.
8033         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
8034         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
8035         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
8036         [__ASSUME_SENDMMSG]: Change conditionals to
8037         [__ASSUME_SENDMMSG_SOCKETCALL].
8038         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8039         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
8040         Define.
8041         * sysdeps/unix/sysv/linux/mips/kernel-features.h
8042         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
8043         Likewise.
8044         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
8045         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
8046         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
8047         [!__ASSUME_SENDMMSG]: Change conditional to
8048         [!__ASSUME_SENDMMSG_SOCKETCALL].
8049         * sysdeps/unix/sysv/linux/tile/kernel-features.h
8050         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
8051         Define.
8052
8053         [BZ #16610]
8054         * sysdeps/unix/sysv/linux/kernel-features.h
8055         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
8056         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
8057         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
8058         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
8059         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
8060         [__i386__ || __sparc__]
8061         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
8062         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
8063         (__ASSUME_RECVMMSG): Define instead of using previous
8064         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
8065         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
8066         (__ASSUME_RECVMMSG_SYSCALL): Define.
8067         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8068         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8069         Likewise.
8070         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8071         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8072         Likewise.
8073         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
8074         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8075         Likewise.
8076         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
8077         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
8078         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
8079         [__ASSUME_RECVMMSG]: Change condition to
8080         [__ASSUME_RECVMMSG_SOCKETCALL].
8081         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8082         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8083         Define.
8084         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
8085         * sysdeps/unix/sysv/linux/mips/kernel-features.h
8086         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8087         Likewise.
8088         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
8089         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
8090         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
8091         [!__ASSUME_RECVMMSG]: Change condition to
8092         [!__ASSUME_RECVMMSG_SOCKETCALL].
8093         * sysdeps/unix/sysv/linux/tile/kernel-features.h
8094         (__ASSUME_RECVMMSG_SYSCALL): Define.
8095
8096         [BZ #16609]
8097         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
8098         __powerpc__ || __s390__ || __sh__ || __sparc__]
8099         (__ASSUME_SOCKETCALL): Define.
8100         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
8101         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
8102         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
8103         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
8104         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
8105         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
8106         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
8107         (__ASSUME_ACCEPT4): Define instead of using previous
8108         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
8109         __powerpc__ || __sparc__ || __s390__)] condition.
8110         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
8111         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
8112         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
8113         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
8114         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
8115         [!__ASSUME_ACCEPT4]: Change condition to
8116         [!__ASSUME_ACCEPT4_SOCKETCALL].
8117         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8118         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
8119         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
8120         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8121         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
8122         __ASSUME_ACCEPT4_SYSCALL.
8123         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
8124         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
8125         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
8126         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
8127         __ASSUME_ACCEPT4_SYSCALL.
8128         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
8129         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
8130         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
8131         [__ASSUME_ACCEPT4]: Change condition to
8132         [__ASSUME_ACCEPT4_SOCKETCALL].
8133         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8134         (__ASSUME_SOCKETCALL): Define.
8135         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
8136         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8137         (__ASSUME_SOCKETCALL): Define.
8138         (__ASSUME_ACCEPT4): Remove.
8139         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
8140         Define.
8141         * sysdeps/unix/sysv/linux/mips/kernel-features.h
8142         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
8143         Likewise.
8144         * sysdeps/unix/sysv/linux/tile/kernel-features.h
8145         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
8146
8147         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
8148         macro.
8149         (HWCAP_ARM_LPAE): Likewise.
8150         (HWCAP_ARM_EVTSTRM): Likewise.
8151         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
8152         Add vpfd32, lpae and evtstrm.
8153         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
8154         Increase to 22.
8155
8156 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
8157
8158         * math/auto-libm-test-in: Add tests of clog10.
8159         * math/auto-libm-test-out: Regenerated.
8160         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
8161         * sysdeps/i386/fpu/libm-test-ulps: Update.
8162         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8163
8164 2014-02-18  Andreas Schwab  <schwab@suse.de>
8165
8166         [BZ #16574]
8167         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
8168         Store non-zero if the second buffer was newly allocated.
8169         (send_dg): Likewise.
8170         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
8171         to send_vc and send_dg.
8172         (res_nsend): Pass NULL for ansp2_malloced.
8173         * resolv/res_query.c (__libc_res_nquery): Add parameter
8174         answerp2_malloced and pass it down to __libc_res_nsend.
8175         (res_nquery): Pass additional NULL to __libc_res_nquery.
8176         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
8177         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
8178         second answer buffer if answerp2_malloced was set.
8179         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
8180         (__libc_res_nquerydomain): Add parameter
8181         answerp2_malloced and pass it down to __libc_res_nquery.
8182         (res_nquerydomain): Pass additional NULL to
8183         __libc_res_nquerydomain.
8184         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
8185         additional NULL to __libc_res_nsend and __libc_res_nquery.
8186         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
8187         additional NULL to __libc_res_nsearch.
8188         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
8189         parameter of __libc_res_nsearch to check for separately allocated
8190         second buffer.
8191         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
8192         __libc_res_nquery.
8193         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
8194         additional NULL to __libc_res_nquery.
8195         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
8196         __libc_res_nsearch.
8197         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
8198         * include/resolv.h: Update prototypes of __libc_res_nquery,
8199         __libc_res_nsearch, __libc_res_nsend.
8200
8201 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
8202
8203         * math/auto-libm-test-in: Add tests of fma.
8204         * math/auto-libm-test-out: Regenerated.
8205         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
8206         (fma_towardzero_test_data): Likewise.
8207         (fma_downward_test_data): Likewise.
8208         (fma_upward_test_data): Likewise.
8209         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
8210         mpc_mode.
8211         (rounding_modes): Add values for new field.
8212         (func_calc_method): Add value mpfr_fff_f.
8213         (func_calc_desc): Add mpfr_fff_f union field.
8214         (test_function): Add field exact_args.
8215         (FUNC): Add macro argument EXACT_ARGS.
8216         (FUNC_mpfr_f_f): Update call to FUNC.
8217         (FUNC_mpfr_f_f): Likewise.
8218         (FUNC_mpfr_ff_f): Likewise.
8219         (FUNC_mpfr_if_f): Likewise.
8220         (FUNC_mpc_c_f): Likewise.
8221         (FUNC_mpc_c_c): Likewise.
8222         (test_functions): Add fma.  Update calls to FUNC.
8223         (handle_input_arg): Add argument exact_args.
8224         (add_test): Update call to handle_input_arg.
8225         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
8226         (output_for_one_input_case): Update call to calc_generic_results.
8227         Recalculate exact zero results in each rounding mode.
8228
8229         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
8230         non-negative before setting low bit.
8231         * math/auto-libm-test-in: Mark one asin test possibly having
8232         spurious underflow.
8233         * math/auto-libm-test-out: Regenerated.
8234         * sysdeps/i386/fpu/libm-test-ulps: Update.
8235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8236
8237 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
8238
8239         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
8240         * sysdeps/unix/sysv/linux/microblaze: Move directory from
8241         ports/sysdeps/unix/sysv/linux/microblaze.
8242         * README: Add missing listing for microblaze*-*-linux-gnu.
8243
8244 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
8245
8246         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
8247         * sysdeps/unix/sysv/linux/ia64: Move directory from
8248         ports/sysdeps/unix/sysv/linux/ia64.
8249         * README: Update listing for ia64-*-linux-gnu.
8250
8251 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
8252             Joseph Myers  <joseph@codesourcery.com>
8253
8254         * Makeconfig (test-name): New variable.
8255         (evaluate-test): Likewise.
8256         * Makerules (do-test-clean): Remove .test-result files.
8257         (common-mostlyclean): Likewise.
8258         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
8259         * scripts/evaluate-test.sh: New file.
8260
8261 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
8262
8263         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
8264         separate $(objpfx)tst-fopenloc-cmp.out and
8265         $(objpfx)tst-fopenloc-mem.out targets.
8266         (tests): Update dependencies.
8267         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
8268         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
8269         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
8270         (tst-rxspencer-no-utf8-ARGS): New variable.
8271         (tst-rxspencer-no-utf8-ENV): Likewise.
8272         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
8273         instead of $(objpfx)tst-rxspencer-mem.
8274         ($(objpfx)tst-rxspencer-mem): Change target to
8275         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
8276         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
8277         * posix/tst-rxspencer-no-utf8.c: New file.
8278
8279         * elf/Makefile ($(objpfx)order.out): Remove rule.
8280         [$(run-built-tests) = yes] (tests): Depend on
8281         $(objpfx)order-cmp.out.
8282         ($(objpfx)order-cmp.out): New rule.
8283         [$(run-built-tests) = yes] (tests): Depend on
8284         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
8285         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
8286         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
8287         $(objpfx)tst-array5-static-cmp.out.
8288         ($(objpfx)tst-array1.out): Remove rule.
8289         ($(objpfx)tst-array1-cmp.out): New rule.
8290         ($(objpfx)tst-array1-static.out): Remove rule.
8291         ($(objpfx)tst-array1-static-cmp.out): New rule.
8292         ($(objpfx)tst-array2.out): Remove rule.
8293         ($(objpfx)tst-array2-cmp.out): New rule.
8294         ($(objpfx)tst-array3.out): Remove rule.
8295         ($(objpfx)tst-array3-cmp.out): New rule.
8296         ($(objpfx)tst-array4.out): Remove rule.
8297         ($(objpfx)tst-array4-cmp.out): New rule.
8298         ($(objpfx)tst-array5.out): Remove rule.
8299         ($(objpfx)tst-array5-cmp.out): New rule.
8300         ($(objpfx)tst-array5-static.out): Remove rule.
8301         ($(objpfx)tst-array5-static-cmp.out): New rule.
8302         [$(run-built-tests) = yes] (tests): Depend on
8303         $(objpfx)order2-cmp.out.
8304         ($(objpfx)order2.out): Remove rule.
8305         ($(objpfx)order2-cmp.out): New rule.
8306         ($(objpfx)tst-initorder.out): Remove rule.
8307         [$(run-built-tests) = yes] (tests): Depend on
8308         $(objpfx)tst-initorder-cmp.out.
8309         ($(objpfx)tst-initorder-cmp.out): New rule.
8310         ($(objpfx)tst-initorder2.out): Remove rule.
8311         [$(run-built-tests) = yes] (tests): Depend on
8312         $(objpfx)tst-initorder2-cmp.out.
8313         ($(objpfx)tst-initorder2-cmp.out): New rule.
8314         [$(run-built-tests) = yes] (tests): Depend on
8315         $(objpfx)tst-unused-dep-cmp.out.
8316         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
8317         ($(objpfx)tst-unused-dep-cmp.out): New rule.
8318         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
8319         on $(objpfx)tst-setvbuf1-cmp.out.
8320         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
8321         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
8322         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
8323         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
8324         ($(objpfx)tst-svc.out): Remove rule.
8325         ($(objpfx)tst-svc-cmp.out): New rule.
8326
8327 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
8328
8329         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
8330         * ctype/ctype.h [__USE_MISC]: Likewise.
8331         * dirent/dirent.h [__USE_MISC]: Likewise.
8332         * grp/grp.h [__USE_MISC]: Likewise.
8333         * io/fcntl.h [__USE_MISC]: Likewise.
8334         * io/sys/stat.h [__USE_MISC]: Likewise.
8335         * libio/stdio.h [__USE_MISC]: Likewise.
8336         * posix/unistd.h [__USE_MISC]: Likewise.
8337         * pwd/pwd.h [__USE_MISC]: Likewise.
8338         * stdlib.h [__USE_MISC]: Likewise.
8339         * string/bits/string2.h [__USE_MISC]: Likewise.
8340         * string/string.h [__USE_MISC]: Likewise.
8341         * time/time.h [__USE_MISC]: Likewise.
8342
8343 2014-02-13  Andreas Schwab  <schwab@suse.de>
8344
8345         [BZ #16574]
8346         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
8347         second answer buffer if it was separately allocated.
8348
8349 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
8350
8351         * sysdeps/mips/math-tests.h: Include <features.h>.
8352         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
8353         (ROUNDING_TESTS_long_double): Do not define.
8354         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
8355         (EXCEPTION_TESTS_long_double): Likewise.
8356         * sysdeps/mips/mips64/libm-test-ulps: Update.
8357
8358         * include/features.h (__USE_BSD): Remove macro definitions.
8359         (__USE_SVID): Likewise.
8360         (_BSD_SOURCE): Likewise.
8361         (_SVID_SOURCE): Likewise.
8362         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
8363         from definition of _DEFAULT_SOURCE.
8364         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
8365         [_DEFAULT_SOURCE].
8366         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
8367         * bits/mman.h [__USE_BSD]: Likewise.
8368         * bits/termios.h [__USE_BSD]: Likewise.
8369         * bits/waitstatus.h [__USE_BSD]: Likewise.
8370         * ctype/ctype.h [__USE_SVID]: Likewise.
8371         * dirent/dirent.h [__USE_BSD]: Likewise.
8372         * grp/grp.h [__USE_SVID]: Likewise.
8373         [__USE_BSD]: Likewise.
8374         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
8375         * io/fcntl.h [__USE_BSD]: Likewise.
8376         * io/ftw.h [__USE_BSD]: Likewise.
8377         * io/sys/stat.h [__USE_BSD]: Likewise.
8378         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
8379         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
8380         * libio/stdio.h [__USE_SVID]: Likewise.
8381         [__USE_BSD]: Likewise.
8382         * math/math.h [__USE_SVID]: Likewise.
8383         [__USE_BSD]: Likewise.
8384         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
8385         * misc/bits/syslog.h [__USE_BSD]: Likewise.
8386         * misc/search.h [__USE_SVID]: Likewise.
8387         * misc/sys/mman.h [__USE_BSD]: Likewise.
8388         * misc/sys/syslog.h [__USE_BSD]: Likewise.
8389         * misc/sys/uio.h [__USE_BSD]: Likewise.
8390         * posix/bits/unistd.h [__USE_BSD]: Likewise.
8391         * posix/glob.h [__USE_BSD]: Likewise.
8392         * posix/regex.h [__USE_BSD]: Likewise.
8393         * posix/sys/types.h [__USE_BSD]: Likewise.
8394         [__USE_SVID]: Likewise.
8395         * posix/sys/utsname.h [__USE_SVID]: Likewise.
8396         * posix/sys/wait.h [__USE_BSD]: Likewise.
8397         [__USE_SVID]: Likewise.
8398         * posix/unistd.h [__USE_BSD]: Likewise.
8399         [__USE_SVID]: Likewise.
8400         * pwd/pwd.h [__USE_SVID]: Likewise.
8401         * resolv/netdb.h [__USE_BSD]: Likewise.
8402         * setjmp/setjmp.h [__USE_BSD]: Likewise.
8403         * signal/signal.h [__USE_BSD]: Likewise.
8404         [__USE_SVID]: Likewise.
8405         * socket/sys/socket.h [__USE_BSD]: Likewise.
8406         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
8407         * stdlib/stdlib.h [__USE_BSD]: Likewise.
8408         [__USE_SVID]: Likewise.
8409         * string/bits/string2.h [__USE_BSD]: Likewise.
8410         [__USE_SVID]: Likewise.
8411         * string/bits/string3.h [__USE_BSD]: Likewise.
8412         * string/endian.h [__USE_BSD]: Likewise.
8413         * string/string.h [__USE_SVID]: Likewise.
8414         [__USE_BSD]: Likewise.
8415         * string/strings.h [__USE_BSD]: Likewise.
8416         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
8417         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
8418         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
8419         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
8420         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
8421         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
8422         Likewise.
8423         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
8424         Likewise.
8425         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
8426         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
8427         Likewise.
8428         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
8429         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
8430         Likewise.
8431         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
8432         Likewise.
8433         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
8434         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
8435         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
8436         Likewise.
8437         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
8438         Likewise.
8439         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
8440         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
8441         * termios/termios.h [__USE_BSD]: Likewise.
8442         * time/sys/time.h [__USE_BSD]: Likewise.
8443         * time/time.h [__USE_BSD]: Likewise.
8444         [__USE_SVID]: Likewise.
8445
8446         * Makefile (subdir_targets): Remove subdir_lint.out.
8447
8448         * stdio-common/Makefile (do-tst-unbputc): Remove target.
8449         (do-tst-printf): Likewise.
8450         (tests): Depend directly on $(objpfx)tst-unbputc.out and
8451         $(objpfx)tst-printf.out.
8452
8453         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
8454
8455         * Makerules (check-abi-%): Change target to
8456         $(objpfx)check-abi-%.out.
8457         (check-abi target): Update dependencies.
8458         (check-abi-pattern variable): Redirect output of diff to $@.
8459         (check-abi variable): Likewise.
8460         * elf/Makefile (check-abi): Update dependencies.
8461
8462         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
8463         unused.
8464         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
8465         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
8466         subnormal range.
8467         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
8468         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
8469         value has largest subnormal exponent.
8470         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
8471         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
8472         * sysdeps/aarch64/soft-fp/sfp-machine.h
8473         (_FP_TININESS_AFTER_ROUNDING): New macro.
8474         * sysdeps/alpha/soft-fp/sfp-machine.h
8475         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8476         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
8477         Likewise.
8478         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
8479         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8480         * sysdeps/mips/soft-fp/sfp-machine.h
8481         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8482         * sysdeps/powerpc/soft-fp/sfp-machine.h
8483         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8484         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
8485         Likewise.
8486         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
8487         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8488         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
8489         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8490         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
8491         Likewise.
8492
8493 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
8494
8495         [BZ #16545]
8496         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
8497         model 1.
8498
8499 2014-02-12  Richard Henderson  <rth@redhat.com>
8500
8501         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
8502         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
8503         * sysdeps/unix/sysv/linux/alpha: Move directory from
8504         ports/sysdeps/unix/sysv/linux/alpha.
8505         * README: Update listing for alpha-*-linux-gnu.
8506
8507 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
8508
8509         * include/features.h: Update comment documenting feature test
8510         macros.
8511         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
8512         _DEFAULT_SOURCE.
8513         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
8514         (_SVID_SOURCE): Likewise.
8515         (_DEFAULT_SOURCE): Update description of default features.
8516         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
8517         with _GNU_SOURCE.
8518         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
8519         (S_ISVTX): Likewise.
8520         * manual/math.texi (Mathematical Constants): Likewise.
8521         * manual/signal.texi (Interrupted Primitives): Likewise.
8522         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
8523         * math/test-matherr.c (_SVID_SOURCE): Do not define.
8524         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
8525         Don't refer to _SVID_SOURCE in warning text.
8526
8527         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8528
8529         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
8530         already defined.
8531         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
8532         * sysdeps/mips/dl-lookup.c: Remove.
8533         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
8534
8535 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
8536
8537         [BZ #16447]
8538         * math/auto-libm-test-in: Add testcase for expl.
8539         * math/auto-libm-test-out: Regenerate.
8540         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
8541         calculation of unsafe.
8542         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
8543
8544 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8545
8546         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
8547         * sysdeps/unix/sysv/linux/aarch64: Move directory from
8548         ports/sysdeps/unix/sysv/linux/aarch64.
8549         * README: Update listing for aarch64*-*-linux-gnu.
8550
8551 2014-02-11  Will Newton  <will.newton@linaro.org>
8552
8553         * manual/probes.texi (Mathematical Function Probes): Use
8554         "triggered" instead of "hit".
8555
8556         * manual/probes.texi (Internal Probes): Add documentation
8557         of setjmp, longjmp and longjmp_target probes.
8558
8559         * include/stap-probe.h: Add comment about probe argument
8560         format.
8561
8562         * malloc/mtrace.c (attribute_hidden): Remove unused macro
8563         definition.  (tr_where, tr_freehook, tr_mallochook,
8564         tr_reallochook, tr_memalignhook): Use ANSI protoype.
8565
8566 2014-02-11  David S. Miller  <davem@davemloft.net>
8567
8568         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
8569         processing int_tests.
8570
8571 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
8572
8573         * sysdeps/mips: Move directory from ports/sysdeps/mips.
8574         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
8575         * sysdeps/unix/sysv/linux/mips: Move directory from
8576         ports/sysdeps/unix/sysv/linux/mips.
8577         * README: Update listing for mips-*-linux-gnu and
8578         mips64-*-linux-gnu.
8579
8580 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
8581
8582         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
8583         * sysdeps/unix/sysv/linux/m68k: Move directory from
8584         ports/sysdeps/unix/sysv/linux/m68k.
8585         * README: Update listing for m68k-*-linux-gnu.
8586
8587 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
8588
8589         * sysdeps/tile: Move directory from ports/sysdeps/tile.
8590         * sysdeps/unix/sysv/linux/generic: Move directory from
8591         ports/sysdeps/unix/sysv/linux/generic.
8592         * sysdeps/unix/sysv/linux/tile: Move directory from
8593         ports/sysdeps/unix/sysv/linux/tile.
8594         * README: Update listing for tile*-*-linux-gnu.
8595
8596 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
8597
8598         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
8599         __builtin_expect.
8600         * benchtests/bench-memmem.c (simple_memmem): Likewise.
8601         * catgets/open_catalog.c (__open_catalog): Likewise.
8602         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
8603         * debug/confstr_chk.c: Likewise.
8604         * debug/fread_chk.c (__fread_chk): Likewise.
8605         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
8606         * debug/getgroups_chk.c: Likewise.
8607         * debug/mbsnrtowcs_chk.c: Likewise.
8608         * debug/mbsrtowcs_chk.c: Likewise.
8609         * debug/mbstowcs_chk.c: Likewise.
8610         * debug/memcpy_chk.c: Likewise.
8611         * debug/memmove_chk.c: Likewise.
8612         * debug/mempcpy_chk.c: Likewise.
8613         * debug/memset_chk.c: Likewise.
8614         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
8615         * debug/strcat_chk.c (__strcat_chk): Likewise.
8616         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
8617         * debug/strncat_chk.c (__strncat_chk): Likewise.
8618         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
8619         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
8620         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
8621         * debug/wcpncpy_chk.c: Likewise.
8622         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
8623         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
8624         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
8625         * debug/wcsncpy_chk.c: Likewise.
8626         * debug/wcsnrtombs_chk.c: Likewise.
8627         * debug/wcsrtombs_chk.c: Likewise.
8628         * debug/wcstombs_chk.c: Likewise.
8629         * debug/wmemcpy_chk.c: Likewise.
8630         * debug/wmemmove_chk.c: Likewise.
8631         * debug/wmempcpy_chk.c: Likewise.
8632         * debug/wmemset_chk.c: Likewise.
8633         * dirent/scandirat.c (SCANDIRAT): Likewise.
8634         * dlfcn/dladdr1.c (dladdr1): Likewise.
8635         * dlfcn/dladdr.c (dladdr): Likewise.
8636         * dlfcn/dlclose.c (dlclose_doit): Likewise.
8637         * dlfcn/dlerror.c (__dlerror): Likewise.
8638         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8639         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
8640         * dlfcn/dlopen.c (dlopen_doit): Likewise.
8641         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
8642         * dlfcn/dlsym.c (dlsym_doit): Likewise.
8643         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
8644         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
8645         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
8646         Likewise.
8647         * elf/dl-conflict.c: Likewise.
8648         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
8649         * elf/dl-dst.h: Likewise.
8650         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
8651         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
8652         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
8653         * elf/dl-init.c (call_init, _dl_init): Likewise.
8654         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
8655         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
8656         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
8657         Likewise.
8658         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
8659         Likewise.
8660         * elf/dl-minimal.c (__libc_memalign): Likewise.
8661         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
8662         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8663         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8664         * elf/dl-sym.c (do_sym): Likewise.
8665         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
8666         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
8667         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
8668         * elf/dl-writev.h (_dl_writev): Likewise.
8669         * elf/ldconfig.c (search_dir): Likewise.
8670         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
8671         (dl_main): Likewise.
8672         * elf/setup-vdso.h (setup_vdso): Likewise.
8673         * grp/compat-initgroups.c (compat_call): Likewise.
8674         * grp/fgetgrent.c (fgetgrent): Likewise.
8675         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
8676         * grp/putgrent.c (putgrent): Likewise.
8677         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
8678         Likewise.
8679         * hurd/hurdinit.c: Likewise.
8680         * iconvdata/8bit-gap.c (struct): Likewise.
8681         * iconvdata/ansi_x3.110.c : Likewise.
8682         * iconvdata/big5.c : Likewise.
8683         * iconvdata/big5hkscs.c : Likewise.
8684         * iconvdata/cp1255.c: Likewise.
8685         * iconvdata/cp1258.c : Likewise.
8686         * iconvdata/cp932.c : Likewise.
8687         * iconvdata/euc-cn.c: Likewise.
8688         * iconvdata/euc-jisx0213.c : Likewise.
8689         * iconvdata/euc-jp.c: Likewise.
8690         * iconvdata/euc-jp-ms.c : Likewise.
8691         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
8692         * iconvdata/gb18030.c : Likewise.
8693         * iconvdata/gbbig5.c (const): Likewise.
8694         * iconvdata/gbgbk.c: Likewise.
8695         * iconvdata/gbk.c : Likewise.
8696         * iconvdata/ibm1364.c : Likewise.
8697         * iconvdata/ibm930.c : Likewise.
8698         * iconvdata/ibm932.c: Likewise.
8699         * iconvdata/ibm933.c : Likewise.
8700         * iconvdata/ibm935.c : Likewise.
8701         * iconvdata/ibm937.c : Likewise.
8702         * iconvdata/ibm939.c : Likewise.
8703         * iconvdata/ibm943.c: Likewise.
8704         * iconvdata/iso_11548-1.c: Likewise.
8705         * iconvdata/iso-2022-cn.c : Likewise.
8706         * iconvdata/iso-2022-cn-ext.c : Likewise.
8707         * iconvdata/iso-2022-jp-3.c: Likewise.
8708         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
8709         * iconvdata/iso-2022-kr.c : Likewise.
8710         * iconvdata/iso646.c (gconv_end): Likewise.
8711         * iconvdata/iso_6937-2.c : Likewise.
8712         * iconvdata/iso_6937.c : Likewise.
8713         * iconvdata/iso8859-1.c: Likewise.
8714         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
8715         * iconvdata/shift_jisx0213.c : Likewise.
8716         * iconvdata/sjis.c : Likewise.
8717         * iconvdata/t.61.c : Likewise.
8718         * iconvdata/tcvn5712-1.c : Likewise.
8719         * iconvdata/tscii.c: Likewise.
8720         * iconvdata/uhc.c : Likewise.
8721         * iconvdata/unicode.c (gconv_end): Likewise.
8722         * iconvdata/utf-16.c (gconv_end): Likewise.
8723         * iconvdata/utf-32.c (gconv_end): Likewise.
8724         * iconvdata/utf-7.c (base64): Likewise.
8725         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8726         * iconv/gconv_close.c (__gconv_close): Likewise.
8727         * iconv/gconv_open.c (__gconv_open): Likewise.
8728         * iconv/gconv_simple.c (internal_ucs4_loop_single)
8729         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
8730         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
8731         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
8732         (ucs4le_internal_loop_single): Likewise.
8733         * iconv/iconv.c (iconv): Likewise.
8734         * iconv/iconv_close.c: Likewise.
8735         * iconv/loop.c (SINGLE): Likewise.
8736         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
8737         * include/atomic.h: Likewise.
8738         * inet/inet6_option.c (option_alloc): Likewise.
8739         * intl/bindtextdom.c (set_binding_values): Likewise.
8740         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
8741         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8742         * intl/localealias.c (read_alias_file): Likewise.
8743         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8744         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
8745         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
8746         * libio/fmemopen.c (fmemopen): Likewise.
8747         * libio/iofgets.c (_IO_fgets): Likewise.
8748         * libio/iofgets_u.c (fgets_unlocked): Likewise.
8749         * libio/iofgetws.c (fgetws): Likewise.
8750         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8751         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8752         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
8753         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
8754         * locale/findlocale.c (_nl_find_locale): Likewise.
8755         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8756         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
8757         Likewise.
8758         * locale/setlocale.c (setlocale): Likewise.
8759         * login/programs/pt_chown.c (main): Likewise.
8760         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
8761         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
8762         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
8763         (mmap, mmap64, mremap, munmap): Likewise.
8764         * math/e_exp2l.c: Likewise.
8765         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
8766         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
8767         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
8768         * math/s_catan.c (__catan): Likewise.
8769         * math/s_catanf.c (__catanf): Likewise.
8770         * math/s_catanh.c (__catanh): Likewise.
8771         * math/s_catanhf.c (__catanhf): Likewise.
8772         * math/s_catanhl.c (__catanhl): Likewise.
8773         * math/s_catanl.c (__catanl): Likewise.
8774         * math/s_ccosh.c (__ccosh): Likewise.
8775         * math/s_ccoshf.c (__ccoshf): Likewise.
8776         * math/s_ccoshl.c (__ccoshl): Likewise.
8777         * math/s_cexp.c (__cexp): Likewise.
8778         * math/s_cexpf.c (__cexpf): Likewise.
8779         * math/s_cexpl.c (__cexpl): Likewise.
8780         * math/s_clog10.c (__clog10): Likewise.
8781         * math/s_clog10f.c (__clog10f): Likewise.
8782         * math/s_clog10l.c (__clog10l): Likewise.
8783         * math/s_clog.c (__clog): Likewise.
8784         * math/s_clogf.c (__clogf): Likewise.
8785         * math/s_clogl.c (__clogl): Likewise.
8786         * math/s_csin.c (__csin): Likewise.
8787         * math/s_csinf.c (__csinf): Likewise.
8788         * math/s_csinh.c (__csinh): Likewise.
8789         * math/s_csinhf.c (__csinhf): Likewise.
8790         * math/s_csinhl.c (__csinhl): Likewise.
8791         * math/s_csinl.c (__csinl): Likewise.
8792         * math/s_csqrt.c (__csqrt): Likewise.
8793         * math/s_csqrtf.c (__csqrtf): Likewise.
8794         * math/s_csqrtl.c (__csqrtl): Likewise.
8795         * math/s_ctan.c (__ctan): Likewise.
8796         * math/s_ctanf.c (__ctanf): Likewise.
8797         * math/s_ctanh.c (__ctanh): Likewise.
8798         * math/s_ctanhf.c (__ctanhf): Likewise.
8799         * math/s_ctanhl.c (__ctanhl): Likewise.
8800         * math/s_ctanl.c (__ctanl): Likewise.
8801         * math/w_pow.c: Likewise.
8802         * math/w_powf.c: Likewise.
8803         * math/w_powl.c: Likewise.
8804         * math/w_scalb.c (sysv_scalb): Likewise.
8805         * math/w_scalbf.c (sysv_scalbf): Likewise.
8806         * math/w_scalbl.c (sysv_scalbl): Likewise.
8807         * misc/error.c (error_tail): Likewise.
8808         * misc/pselect.c (__pselect): Likewise.
8809         * nis/nis_callback.c (__nis_create_callback): Likewise.
8810         * nis/nis_call.c (__nisfind_server): Likewise.
8811         * nis/nis_creategroup.c (nis_creategroup): Likewise.
8812         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
8813         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
8814         * nis/nis_getservlist.c (nis_getservlist): Likewise.
8815         * nis/nis_lookup.c (nis_lookup): Likewise.
8816         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
8817         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
8818         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
8819         * nis/nis_xdr.c (xdr_endpoint): Likewise.
8820         * nis/nss_compat/compat-grp.c (getgrent_next_file)
8821         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
8822         * nis/nss_compat/compat-initgroups.c (add_group)
8823         (internal_getgrent_r): Likewise.
8824         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
8825         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
8826         * nis/nss_compat/compat-spwd.c (getspent_next_file)
8827         (internal_getspnam_r): Likewise.
8828         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
8829         (_nss_nis_getaliasbyname_r): Likewise.
8830         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
8831         (_nss_nis_getntohost_r): Likewise.
8832         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
8833         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
8834         (_nss_nis_getgrgid_r): Likewise.
8835         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
8836         (internal_nis_gethostent_r, internal_gethostbyname2_r)
8837         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
8838         (_nss_nis_gethostbyname4_r): Likewise.
8839         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
8840         (initgroups_netid): Likewise.
8841         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
8842         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
8843         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
8844         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
8845         (_nss_nis_getprotobynumber_r): Likewise.
8846         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
8847         (_nss_nis_getsecretkey): Likewise.
8848         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
8849         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
8850         (_nss_nis_getpwuid_r): Likewise.
8851         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
8852         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
8853         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
8854         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
8855         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
8856         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
8857         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
8858         Likewise.
8859         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
8860         (_nss_nisplus_getntohost_r): Likewise.
8861         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
8862         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8863         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
8864         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
8865         Likewise.
8866         * nis/nss_nisplus/nisplus-initgroups.c
8867         (_nss_nisplus_initgroups_dyn): Likewise.
8868         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
8869         (_nss_nisplus_getnetbyaddr_r): Likewise.
8870         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
8871         (_nss_nisplus_getprotobynumber_r): Likewise.
8872         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
8873         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
8874         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
8875         Likewise.
8876         * nis/nss_nisplus/nisplus-service.c
8877         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
8878         (_nss_nisplus_getservbyport_r): Likewise.
8879         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
8880         (_nss_nisplus_getspnam_r): Likewise.
8881         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
8882         Likewise.
8883         * nscd/aicache.c (addhstaiX): Likewise.
8884         * nscd/cache.c (cache_search, prune_cache): Likewise.
8885         * nscd/connections.c (register_traced_file, send_ro_fd)
8886         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
8887         (main_loop_epoll): Likewise.
8888         * nscd/grpcache.c (addgrbyX): Likewise.
8889         * nscd/hstcache.c (addhstbyX): Likewise.
8890         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8891         * nscd/mem.c (gc, mempool_alloc): Likewise.
8892         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
8893         (addinnetgrX): Likewise.
8894         * nscd/nscd-client.h (__nscd_acquire_maplock)
8895         (__nscd_drop_map_ref): Likewise.
8896         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8897         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8898         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
8899         Likewise.
8900         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8901         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8902         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
8903         (__nscd_get_map_ref): Likewise.
8904         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8905         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
8906         Likewise.
8907         * nscd/pwdcache.c (addpwbyX): Likewise.
8908         * nscd/selinux.c (preserve_capabilities): Likewise.
8909         * nscd/servicescache.c (addservbyX): Likewise.
8910         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
8911         * posix/fnmatch.c (fnmatch): Likewise.
8912         * posix/getopt.c (_getopt_internal_r): Likewise.
8913         * posix/glob.c (glob, glob_in_dir): Likewise.
8914         * posix/wordexp.c (exec_comm_child): Likewise.
8915         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
8916         (getanswer_r, gaih_getanswer_slice): Likewise.
8917         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
8918         * resolv/res_init.c: Likewise.
8919         * resolv/res_mkquery.c (res_nmkquery): Likewise.
8920         * resolv/res_query.c (__libc_res_nquery): Likewise.
8921         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
8922         Likewise.
8923         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
8924         * stdio-common/perror.c (perror): Likewise.
8925         * stdio-common/printf_fp.c (___printf_fp): Likewise.
8926         * stdio-common/tmpnam.c (tmpnam): Likewise.
8927         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
8928         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
8929         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
8930         Likewise.
8931         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8932         * stdlib/putenv.c (putenv): Likewise.
8933         * stdlib/setenv.c (__add_to_environ): Likewise.
8934         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8935         * stdlib/strtol_l.c (INTERNAL): Likewise.
8936         * string/memmem.c (memmem): Likewise.
8937         * string/strerror.c (strerror): Likewise.
8938         * string/strnlen.c (__strnlen): Likewise.
8939         * string/test-memmem.c (simple_memmem): Likewise.
8940         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
8941         * sunrpc/pm_getport.c (__get_socket): Likewise.
8942         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
8943         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8944         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
8945         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
8946         Likewise.
8947         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8948         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
8949         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
8950         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
8951         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
8952         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
8953         Likewise.
8954         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
8955         Likewise.
8956         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8957         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8958         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
8959         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8960         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8961         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
8962         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
8963         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
8964         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8965         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8966         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8967         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
8968         Likewise.
8969         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
8970         Likewise.
8971         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
8972         Likewise.
8973         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
8974         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8975         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
8976         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
8977         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8978         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
8979         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
8980         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
8981         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
8982         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
8983         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
8984         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8985         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
8986         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
8987         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8988         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8989         Likewise.
8990         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
8991         Likewise.
8992         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
8993         Likewise.
8994         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
8995         Likewise.
8996         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8997         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8998         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
8999         Likewise.
9000         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
9001         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
9002         * sysdeps/posix/opendir.c (__opendirat): Likewise.
9003         * sysdeps/posix/sleep.c: Likewise.
9004         * sysdeps/posix/tempname.c: Likewise.
9005         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
9006         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
9007         Likewise.
9008         * sysdeps/powerpc/powerpc32/dl-machine.h
9009         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
9010         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
9011         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
9012         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
9013         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
9014         Likewise.
9015         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
9016         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
9017         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
9018         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
9019         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
9020         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
9021         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
9022         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
9023         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9024         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
9025         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
9026         (elf_machine_lazy_rel): Likewise.
9027         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
9028         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
9029         (elf_machine_lazy_rel): Likewise.
9030         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
9031         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
9032         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
9033         * sysdeps/unix/grantpt.c (grantpt): Likewise.
9034         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
9035         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
9036         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
9037         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9038         Likewise.
9039         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9040         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9041         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
9042         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
9043         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9044         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9045         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
9046         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
9047         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9048         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
9049         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
9050         Likewise.
9051         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
9052         (__posix_fallocate64_l64): Likewise.
9053         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
9054         (posix_fallocate): Likewise.
9055         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
9056         Likewise.
9057         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9058         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
9059         (getifaddrs_internal): Likewise.
9060         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
9061         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
9062         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
9063         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
9064         * sysdeps/unix/sysv/linux/posix_fallocate64.c
9065         (__posix_fallocate64_l64): Likewise.
9066         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
9067         Likewise.
9068         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9069         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
9070         (__get_clockfreq): Likewise.
9071         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
9072         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
9073         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
9074         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9075         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9076         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
9077         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
9078         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
9079         Likewise.
9080         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
9081         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
9082         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9083         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
9084         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
9085         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
9086         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
9087         Likewise.
9088         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
9089         (posix_fallocate): Likewise.
9090         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9091         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
9092         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
9093         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
9094         (elf_machine_rela, elf_machine_rela_relative)
9095         (elf_machine_lazy_rel): Likewise.
9096         * time/asctime.c (asctime_internal): Likewise.
9097         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
9098         * time/tzset.c (__tzset_parse_tz): Likewise.
9099         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
9100         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
9101         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
9102         * wcsmbs/wcsmbsload.h: Likewise.
9103
9104         [BZ #15894]
9105         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
9106
9107         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
9108         (arena_get2): Remove THREAD_STATS conditionals.
9109         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
9110         (__malloc_stats, int): Likewise.
9111
9112 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
9113
9114         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
9115         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
9116
9117         * manual/setjmp.texi: Fix typos/grammar errors.
9118
9119         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
9120         Only return early when n is <= 0.  Delete unused return statement.
9121
9122         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
9123         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
9124         * debug/tst-longjmp_chk3.c: New file.
9125
9126         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
9127         (test_main): Replace code with set_fortify_handler call.
9128         * debug/test-strcpy_chk.c: Likewise.
9129         * debug/tst-chk1.c: Likewise.
9130         * debug/tst-longjmp_chk.c: Likewise.
9131         * test-skeleton.c: Include fcntl.h & paths.h
9132         (set_fortify_handler): Define.
9133
9134         * debug/tst-longjmp_chk.c: Add header comment and include
9135         ../test-skeleton.c.
9136         (do_test): Mark static.
9137         (TEST_FUNCTION): Define.
9138
9139         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
9140         (IP_PMTUDISC_INTERFACE): Likewise.
9141         (IP_MULTICAST_IF): Likewise.
9142         (IP_MULTICAST_TTL): Likewise.
9143         (IP_MULTICAST_LOOP): Likewise.
9144         (IP_ADD_MEMBERSHIP): Likewise.
9145         (IP_DROP_MEMBERSHIP): Likewise.
9146         (IP_UNBLOCK_SOURCE): Likewise.
9147         (IP_BLOCK_SOURCE): Likewise.
9148         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
9149         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
9150         (IP_MSFILTER): Likewise.
9151         (MCAST_JOIN_GROUP): Likewise.
9152         (MCAST_BLOCK_SOURCE): Likewise.
9153         (MCAST_UNBLOCK_SOURCE): Likewise.
9154         (MCAST_LEAVE_GROUP): Likewise.
9155         (MCAST_JOIN_SOURCE_GROUP): Likewise.
9156         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
9157         (MCAST_MSFILTER): Likewise.
9158         (IP_MULTICAST_ALL): Likewise.
9159         (IP_UNICAST_IF): Likewise.
9160
9161         * timezone/Makefile: Delete $(have-ksh) check.
9162         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
9163         * timezone/tzselect.ksh: Add +x mode bits.
9164
9165         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
9166         (ANON_INODE_FS_MAGIC): Likewise.
9167         (BDEVFS_MAGIC): Likewise.
9168         (BINFMTFS_MAGIC): Likewise.
9169         (BTRFS_TEST_MAGIC): Likewise.
9170         (CRAMFS_MAGIC_WEND): Likewise.
9171         (DEBUGFS_MAGIC): Likewise.
9172         (ECRYPTFS_SUPER_MAGIC): Likewise.
9173         (EXT3_SUPER_MAGIC): Likewise.
9174         (EXT4_SUPER_MAGIC): Likewise.
9175         (FUTEXFS_SUPER_MAGIC): Likewise.
9176         (HOSTFS_SUPER_MAGIC): Likewise.
9177         (HUGETLBFS_MAGIC): Likewise.
9178         (MINIX3_SUPER_MAGIC): Likewise.
9179         (MTD_INODE_FS_MAGIC): Likewise.
9180         (NILFS_SUPER_MAGIC): Likewise.
9181         (OPENPROM_SUPER_MAGIC): Likewise.
9182         (PIPEFS_MAGIC): Likewise.
9183         (PSTOREFS_MAGIC): Likewise.
9184         (QNX6_SUPER_MAGIC): Likewise.
9185         (RAMFS_MAGIC): Likewise.
9186         (REISERFS_SUPER_MAGIC_STRING): Likewise.
9187         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
9188         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
9189         (SECURITYFS_MAGIC): Likewise.
9190         (SELINUX_MAGIC): Likewise.
9191         (SMACK_MAGIC): Likewise.
9192         (SOCKFS_MAGIC): Likewise.
9193         (SQUASHFS_MAGIC): Likewise.
9194         (STACK_END_MAGIC): Likewise.
9195         (TMPFS_MAGIC): Likewise.
9196         (USBDEVICE_SUPER_MAGIC): Likewise.
9197         (V9FS_MAGIC): Likewise.
9198         (XENFS_SUPER_MAGIC): Likewise.
9199         (CRAMFS_MAGIC): Fix typo in comment.
9200         (EXT2_SUPER_MAGIC): Update comment.
9201         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
9202
9203 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
9204
9205         * sysdeps/arm: Move directory from ports/sysdeps/arm.
9206         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
9207         * sysdeps/unix/sysv/linux/arm: Move directory from
9208         ports/sysdeps/unix/sysv/linux/arm.
9209         * README: Update listing for arm-*-linux-gnueabi.
9210
9211         * README: Remove mention of am33.
9212
9213 2014-02-07  Roland McGrath  <roland@hack.frob.com>
9214
9215         * bits/sigset.h (__sigemptyset): Use a statement expression rather
9216         than the comma operator, to avoid "rhs of comma has no effect"
9217         compiler warnings.
9218         (__sigfillset, __sigandset, __sigorset): Likewise.
9219         * include/signal.h (__sigemptyset): Likewise.
9220         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
9221
9222 2014-02-07  Allan McRae  <allan@archlinux.org>
9223
9224         * version.h (RELEASE): Set to "development".
9225         (VERSION): Set to "2.19.90"
9226         * NEWS: Add 2.20 section.
9227
9228 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
9229
9230         [BZ #16529]
9231         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
9232
9233 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
9234
9235         * manual/contrib.texi: Update entry for Carlos O'Donell,
9236         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
9237
9238 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
9239
9240         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
9241
9242         * sysdeps/unix/sysv/linux/kernel-features.h
9243         [__LINUX_KERNEL_VERSION >= 0x020621]
9244         (__ASSUME_PROC_PID_TASK_COMM): Define.
9245
9246 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9247
9248         [BZ #16398]
9249         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
9250         conversion when destination buffer does not have enough space.
9251         * libio/tst-ftell-partial-wide.c: New test case.
9252         * libio/Makefile (tests): Add tst-ftell-partial-wide.
9253
9254         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
9255         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
9256         Leonard and Allan McRae.
9257
9258 2014-02-04  David S. Miller  <davem@davemloft.net>
9259
9260         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
9261         32-bit.
9262
9263 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9264
9265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
9266         New file
9267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
9268         New file
9269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
9270         New file.
9271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
9272         New file.
9273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
9274         New file.
9275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
9276         New file.
9277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
9278         New file.
9279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
9280         New file.
9281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
9282         New file.
9283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
9284         New file.
9285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
9286         New file.
9287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
9288         New file.
9289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
9290         New file.
9291
9292 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9293
9294         * nptl/shlib-versions: Change powerpc*le start to 2.17.
9295         * shlib-versions: Likewise.
9296
9297 2014-02-04  Roland McGrath  <roland@hack.frob.com>
9298             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9299
9300         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
9301         (abilist-pattern): New variable, set to %-le.abilist.
9302
9303         * Makerules (abilist-pattern): New variable.
9304         (vpath): Use $(abilist-pattern) in place of %.abilist.
9305         (check-abi-% pattern rule): Likewise.
9306         (check-abi, update-abi): Likewise.
9307
9308 2014-02-04  Eric Wong  <normalperson@yhbt.net>
9309
9310         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9311
9312 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
9313
9314         * manual/startup.texi: Add next, previous, and top entries for
9315         the `Program Arguments' and `Environment Variables' nodes.
9316
9317 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
9318
9319         * manual/macros.texi: Add comments before MTASC-safety macros.
9320
9321         * manual/users.texi: Document MTASC-safety properties.
9322
9323         * manual/threads.texi (pthread_key_create, pthread_key_delete)
9324         (pthread_getspecific, pthread_setspecific): Format with
9325         @deftypefun, and add @safety note.
9326         * manual/signal.texi: Move comments that analyze the above
9327         functions to their home place.
9328
9329 2014-02-03  Allan McRae  <allan@archlinux.org>
9330
9331         * po/sl.po: Update Slovenian translation from translation project.
9332
9333 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
9334
9335         * manual/time.texi (timegm): Add missing blank after @c.
9336         Reported by Joseph Myers <joseph@codesourcery.com>.
9337
9338 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
9339
9340         * manual/check-safety.sh: New.
9341         * manual/Makefile ($(objpfx)stamp-summary): Run it.
9342
9343         * manual/terminal.texi: Document MTASC-safety properties.
9344
9345         * manual/filesys.texi: Document MTASC-safety properties.
9346
9347         * manual/errno.texi: Document MTASC-safety properties.
9348
9349         * manual/intro.texi: Document safety identifiers and
9350         conditionals.
9351
9352         * manual/string.texi (wcstok): Fix prototype.
9353         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
9354
9355         * manual/time.texi: Document MTASC-safety properties.
9356
9357         * manual/string.texi: Document MTASC-safety properties.
9358
9359         * manual/threads.texi: Document MTASC-safety properties.
9360
9361         * manual/stdio.texi: Document MTASC-safety properties.
9362
9363         * manual/syslog.texi: Document MTASC-safety properties.
9364
9365         * manual/sysinfo.texi: Document MTASC-safety properties.
9366
9367         * manual/startup.texi: Document MTASC-safety properties.
9368
9369         * manual/socket.texi: Document MTASC-safety properties.
9370
9371         * manual/signal.texi: Document MTASC-safety properties.
9372
9373 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
9374
9375         * manual/setjmp.texi: Document MTASC-safety properties.
9376
9377         * manual/search.texi: Document MTASC-safety properties.
9378
9379         * manual/resource.texi: Document MTASC-safety properties.
9380
9381         * manual/process.texi: Document MTASC-safety properties.
9382
9383         * manual/platform.texi: Document MTASC-safety properties.
9384
9385         * manual/pipe.texi: Document MTASC-safety properties.
9386
9387         * manual/pattern.texi: Document MTASC-safety properties.
9388
9389         * manual/message.texi: Document MTASC-safety properties.
9390
9391         [BZ #12751]
9392         * manual/memory.texi: Document MTASC-safety properties.
9393
9394         * manual/math.texi: Document MTASC-safety properties.
9395
9396         * manual/locale.texi: Document MTASC-safety properties.
9397
9398         * manual/llio.texi: Document MTASC-safety properties.
9399
9400         * manual/libdl.texi: New.
9401
9402         * manual/lang.texi: Document MTASC-safety properties.
9403
9404         * manual/job.texi: Document MTASC-safety properties.
9405
9406         * manual/getopt.texi: Document MTASC-safety properties.
9407
9408         * manual/ctype.texi: Document MTASC-safety properties.
9409
9410 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
9411
9412         [BZ #16046]
9413         * csu/libc-tls.c (static_map): Remove variable.
9414         (__libc_setup_tls): Use main executable's link map for TLS data.
9415         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
9416         casing for LM_ID_BASE and GL(dl_nns).
9417         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
9418         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
9419         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
9420         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
9421         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
9422         member.
9423         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
9424         l_phnum members.
9425
9426 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
9427
9428         * manual/debug.texi: Document MTASC-safety properties.
9429
9430 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
9431
9432         [BZ #16510]
9433         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
9434         of __x86_64__ when disabling x87 inline functions.
9435
9436 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
9437
9438         * manual/charset.texi: Document MTASC-safety properties.
9439
9440         * manual/crypt.texi: Document MTASC-safety properties.
9441
9442         * manual/conf.texi: Document MTASC-safety properties.
9443
9444         * manual/arith.texi: Document MTASC-safety properties.
9445
9446         * manual/argp.texi: Document MTASC-safety properties.
9447
9448         * manual/macros.texi: Introduce macros to document multi
9449         thread, asynchronous signal and asynchronous cancellation
9450         safety properties.
9451         * manual/intro.texi: Introduce the properties themselves.
9452
9453 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9454
9455         * sysdeps/sh/sh4/Makefile: New file.
9456
9457 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
9458
9459         * math/gen-libm-test.pl ($srcdir): New variable.
9460         ($auto_input): Use it.
9461
9462 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
9463
9464         [BZ #16506]
9465         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
9466         access beyond array bounds when parsing netgroups file.
9467
9468         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
9469         the old buffer before realloc.
9470
9471 2014-01-27  Allan McRae  <allan@archlinux.org>
9472
9473         * po/fr.po: Update French translation from translation project.
9474
9475 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9476
9477         * sysdeps/sh/libm-test-ulps: Regenerate.
9478
9479 2014-01-24  David S. Miller  <davem@davemloft.net>
9480
9481         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
9482
9483 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9484
9485         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
9486         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
9487
9488 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
9489
9490         [BZ #16474]
9491         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
9492         string pointers after reallocation.
9493
9494 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9495
9496         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
9497         __SH4A__ instead of __SH_FPU_ANY__.
9498
9499 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9500
9501         * sysdeps/sh/fpu_control.h: New file.
9502         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
9503         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
9504         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
9505         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
9506         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
9507         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
9508         * sysdeps/sh/sys/ucontext.h: Remove.
9509         * sysdeps/sh/sys: Remove directory.
9510
9511 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9512
9513         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
9514         s390/sys/ucontext.h.
9515         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9516         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
9517
9518 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
9519
9520         [BZ #15605]
9521         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
9522
9523 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9524
9525         [BZ#16431]
9526         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
9527         Adjust the vDSO correctly for internal calls.
9528         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
9529
9530 2014-01-20  Allan McRae  <allan@archlinux.org>
9531
9532         * po/ca.po: Update Catalan translation from translation project.
9533
9534 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
9535
9536         * sysdeps/s390/sotruss-lib.c: New file.
9537
9538 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9539
9540         [BZ#16430]
9541         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
9542         (__GI___gettimeofday): Alias for a different internal symbol to avoid
9543         local calls issues by not having a PLT stub required for IFUNC calls.
9544         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
9545
9546 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
9547
9548         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
9549         * math/test-fpucw-static.c: Likewise.
9550
9551 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9552
9553         [BZ #16453]
9554         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
9555
9556 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9557
9558         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
9559         implementation for powerpc.
9560
9561 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
9562
9563         [BZ #14782]
9564         * sysdeps/posix/system.c (__libc_system): Do not enable
9565         asynchronous cancellation.
9566
9567 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9568
9569         [BZ #16427]
9570         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
9571         handling only for numbers special also in the IEEE case.
9572
9573 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9574
9575         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9576
9577 2014-01-11  Allan McRae  <allan@archlinux.org>
9578
9579         * po/bg.po: Update Bulgarian translation from translation project.
9580
9581         * po/de.po: Update German translation from translation project.
9582
9583 2014-01-10  Roland McGrath  <roland@hack.frob.com>
9584
9585         * sysdeps/generic/gcc-compat.h: New file.
9586
9587 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9588
9589         * benchtests/asin-inputs: Correct slow inputs.
9590         * benchtests/acos-inputs: Likewise.
9591
9592 2014-01-10  Allan McRae  <allan@archlinux.org>
9593
9594         * po:sv.po: Update Swedish translation from translation project.
9595
9596         * po/vi.po: Update Vietnamese translation from translation project.
9597
9598         * po/eo.po: Update Esperanto translation from translation project.
9599
9600         * po/cs.po: Update Czech translation from translation project.
9601
9602         * po/nl.po: Update Dutch translation from translation project.
9603
9604         * po/pl.po: Update Polish translation from translation project.
9605
9606         * po/ru.po: Update Russian translation from translation project.
9607
9608         * po/uk.po: Update Ukrainian translation from translation project.
9609
9610 2014-01-08  Brooks Moses  <bmoses@google.com>
9611
9612         * elf/dl-load.c: Fix comment typo.
9613
9614 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
9615
9616         * po/header.pot: Rename to...
9617         * po/pot.header: ... this.
9618         * po/Makefile: Use pot.header.
9619
9620 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
9621             Maxim Kuvyrkov  <maxim@kugelworks.com>
9622
9623         [BZ #16394]
9624         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
9625         SRC and DEST against LEN.
9626
9627 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9628
9629         [BZ #16414]
9630         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
9631         implementation.
9632         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
9633
9634 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9635
9636         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9637
9638 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
9639
9640         [BZ #16408]
9641         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
9642         for large positive arguments.
9643
9644 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
9645
9646         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9647
9648         * math/auto-libm-test-in: Mark various tests with
9649         xfail-rounding:ldbl-128ibm.
9650         * math/auto-libm-test-out: Regenerated.
9651
9652         [BZ #16407]
9653         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
9654         Increase overflow threshold.
9655
9656 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
9657
9658         [BZ #14286]
9659         * stdio-common/vfprintf.c: Check for integer overflow.
9660
9661 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9662
9663         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
9664         the first argument and return value of __tls_get_addr_internal.
9665
9666 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9667
9668         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
9669         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
9670
9671 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9672
9673         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
9674         * sysdeps/s390/rtld-global-offsets.sym: New file.
9675         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
9676         GLIBC_2.19 symbol.
9677         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
9678         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
9679         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
9680         ... this.
9681         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
9682         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
9683         ... this.
9684         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9685         Regenerate.
9686         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9687         Regenerate.
9688         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
9689         halfs of GPRs for high_gprs contexts.
9690         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
9691         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
9692         field.
9693         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
9694         uc_flags field.
9695         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
9696         64 bit versions:
9697         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
9698         for high GPRs (uc_high_gprs) and for future extensions
9699         (__reserved).
9700         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
9701         for future extensions (__reserved).
9702         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
9703         64 bit versions:
9704         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
9705         SC_HIGHGPRS offset definition.
9706         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
9707         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
9708
9709         * Versions.def: Add GLIBC_2.19 for libpthread.
9710         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
9711         siglongjmp for libpthread with GLIBC_2.19 symver.
9712         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
9713         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
9714         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
9715         * sysdeps/s390/__longjmp.c: New file.
9716         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
9717         * sysdeps/s390/longjmp.c: New file.
9718         * sysdeps/s390/setjmp.S: New file.
9719         * sysdeps/s390/sigjmp.S: New file.
9720         * sysdeps/s390/v1-longjmp.c: New file.
9721         * sysdeps/s390/v1-setjmp.h: New file.
9722         * sysdeps/s390/v1-sigjmp.c: New file.
9723         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
9724         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
9725         GLIBC_2.19 version.
9726         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
9727         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
9728         versioned symbols for ____longjmp_chk.
9729         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
9730         Likewise.
9731         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9732         Regenerate.
9733         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9734         Regenerate.
9735         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9736         Regenerate.
9737         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9738         Regenerate.
9739         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
9740         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
9741         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
9742         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
9743         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
9744         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
9745         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
9746         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
9747         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
9748         * sysdeps/s390/rtld-__longjmp.c: New file.
9749         * sysdeps/s390/rtld-setjmp.S: New file.
9750
9751 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
9752
9753         [BZ #16400]
9754         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9755         Return -__logl (x) for small positive arguments without evaluating
9756         a polynomial.
9757
9758 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
9759
9760         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
9761         Rename to ...
9762         (__ptrace_peeksiginfo_args): ... this.
9763         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9764         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9765         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9766
9767 2014-01-06  Allan McRae  <allan@archlinux.org>
9768
9769         * inet/netinet/in.h: Fix typo in comment.
9770
9771 2014-01-05  Andreas Jaeger  <aj@suse.de>
9772
9773         * sysdeps/i386/fpu/libm-test-ulps: Update.
9774
9775 2014-01-05  Allan McRae  <allan@archlinux.org>
9776
9777         * po/libc.pot: Regenerated.
9778
9779         * malloc/memusagestat.c: Fix gettext call formatting.
9780
9781 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
9782
9783         * nscd/nscd.c: Improve usage() output.
9784
9785 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
9786
9787         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
9788         * sysdeps/unix/sysv/linux/configure: Regenerated.
9789         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
9790         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
9791
9792 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9793
9794         [BZ #16390]
9795         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
9796         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
9797
9798 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9799
9800         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
9801         extra tokens at end of #undef directive.
9802         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
9803         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
9804         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
9805
9806 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9807
9808         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9809
9810         * math/auto-libm-test-in: Mark various tests with
9811         xfail-rounding:ldbl-128ibm.
9812         * math/auto-libm-test-out: Regenerated.
9813
9814 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
9815
9816         [BZ #16386]
9817         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
9818         numbers with subnormal high part when calculating exponent.
9819
9820         [BZ #16385]
9821         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
9822         fabs.
9823
9824         [BZ #16384]
9825         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
9826         M_LN2l.
9827         (__ieee754_acoshl): Use __log1pl not __log1p.
9828
9829 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
9830
9831         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
9832         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
9833         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
9834         (grow_heap, heap_trim, _int_new_arena, get_free_list)
9835         (reused_arena, arena_get2): Convert to GNU style.
9836         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
9837         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
9838         (memalign_check, __malloc_set_state): Likewise.
9839         * malloc/mallocbug.c (main): Likewise.
9840         * malloc/malloc.c (__malloc_assert, malloc_init_state)
9841         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
9842         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
9843         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
9844         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
9845         (__posix_memalign, malloc_info): Likewise.
9846         * malloc/malloc.h: Likewise.
9847         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
9848         (mallochook, memalignhook, reallochook, mabort): Likewise.
9849         * malloc/mcheck.h: Likewise.
9850         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
9851         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
9852         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
9853         * malloc/morecore.c (__default_morecore): Likewise.
9854         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
9855         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
9856         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
9857         (print_and_abort): Likewise.
9858         * malloc/obstack.h: Likewise.
9859         * malloc/set-freeres.c (__libc_freeres): Likewise.
9860         * malloc/tst-mallocstate.c (main): Likewise.
9861         * malloc/tst-mtrace.c (main): Likewise.
9862         * malloc/tst-realloc.c (do_test): Likewise.
9863
9864 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9865
9866         [BZ #16366]
9867         * nscd/netgroupcache.c (do_notfound): New function.
9868         (addgetnetgrentX): Use it.
9869
9870         [BZ # 16365]
9871         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
9872         NSS_STATUS_NOTFOUND.
9873
9874 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
9875
9876         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
9877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9878
9879 2014-01-01  Allan McRae  <allan@archlinux.org>
9880
9881         * scripts/update-copyrights: Update configure input file suffix.
9882
9883         * NEWS: Update copyright year.
9884         * catgets/gencat.c: Likewise.
9885         * csu/version.c: Likewise.
9886         * debug/catchsegv.sh: Likewise.
9887         * debug/pcprofiledump.c: Likewise.
9888         * debug/xtrace.sh: Likewise.
9889         * elf/ldconfig.c: Likewise.
9890         * elf/ldd.bash.in: Likewise.
9891         * elf/pldd.c: Likewise.
9892         * elf/sotruss.ksh: Likewise.
9893         * elf/sprof.c: Likewise.
9894         * iconv/iconv_prog.c: Likewise.
9895         * iconv/iconvconfig.c: Likewise.
9896         * locale/programs/locale.c: Likewise.
9897         * locale/programs/localedef.c: Likewise.
9898         * login/programs/pt_chown.c: Likewise.
9899         * malloc/memusage.sh: Likewise.
9900         * malloc/memusagestat.c: Likewise.
9901         * malloc/mtrace.pl: Likewise.
9902         * manual/libc.texinfo: Likewise.
9903         * nscd/nscd.c: Likewise.
9904         * nss/getent.c: Likewise.
9905         * nss/makedb.c: Likewise.
9906         * posix/getconf.c: Likewise.
9907         * scripts/test-installation.pl: Likewise.
9908
9909         * All files with FSF copyright notices: Update copyright dates
9910         using scripts/update-copyrights.
9911         * intl/plural.c: Regenerated.
9912         * locale/programs/charmap-kw.h: Likewise.
9913         * locale/programs/locfile-kw.h: Likewise.
9914
9915 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
9916
9917         * sysdeps/unix/sysv/linux/configure: Regenerated.
9918         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
9919         the linux/fanotify.h header.
9920         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
9921         HAVE_LINUX_FANOTIFY_H is defined.
9922
9923 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9924
9925         * benchtests/cos-inputs: New inputs.
9926         * benchtests/sin-inputs: Likewise.
9927
9928         * benchtests/atan-inputs: New inputs. Fix name of multiple
9929         precision fallback inputs.
9930
9931         * benchtests/atanh-inputs: New inputs.
9932         * benchtests/tanh-inputs: Likewise.
9933
9934         * benchtests/acosh-inputs: New inputs.
9935         * benchtests/asinh-inputs: Likewise.
9936
9937         * benchtests/cosh-inputs: New inputs.
9938         * benchtests/sinh-inputs: Likewise.
9939
9940         * benchtests/acos-inputs: Add more inputs.
9941         * benchtests/asin-inputs: Likewise.
9942
9943 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
9944
9945         [BZ #16375]
9946         * manual/arith.texi: Fix spelling.
9947         * manual/charset.texi: Likewise.
9948         * manual/errno.texi: Likewise.
9949         * manual/filesys.texi: Likewise.
9950         * manual/lang.texi: Likewise.
9951         * manual/llio.texi: Likewise.
9952         * manual/locale.texi: Likewise.
9953         * manual/message.texi: Likewise.
9954         * manual/resource.texi: Likewise.
9955         * manual/search.texi: Likewise.
9956         * manual/setjmp.texi: Likewise.
9957         * manual/stdio.texi: Likewise.
9958         * manual/string.texi: Likewise.
9959         * manual/sysinfo.texi: Likewise.
9960         * manual/time.texi: Likewise.
9961
9962 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
9963
9964         * po/sl.po: New file.
9965
9966 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
9967
9968         * .gitignore: Add core/.gdbinit/.gdb_history.
9969
9970 2013-12-27  Allan McRae  <allan@archlinux.org>
9971
9972         [BZ #16369]
9973         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
9974         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
9975
9976 2013-12-24  Brooks Moses  <bmoses@google.com>
9977
9978         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
9979         all compilers that claim C++98 compliance, not just GCC.
9980         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
9981         Likewise.
9982
9983 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9984
9985         * NEWS: Restore accidentally deleted bug-fix entries.
9986
9987 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9988             Ondřej Bílka  <neleai@seznam.cz>
9989
9990         [BZ #15073]
9991         * malloc/malloc.c (_int_free): Perform sanity check only if we
9992         have_lock.
9993
9994 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
9995
9996         [BZ #12986]
9997         * manual/stdio.texi (String Input Conversions): Clarify that character
9998         classes are not supported.
9999
10000 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10001
10002         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10003
10004 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
10005
10006         [BZ #16337]
10007         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
10008         Calculate results for small negative arguments directly rather
10009         than using reflection formula with special underflow handling.
10010
10011         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
10012         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
10013         sysdeps/unix/bsd/bsd4.4/syscalls.list.
10014         (fchflags): Likewise.
10015         (revoke): Likewise.
10016         (setlogin): Likewise.
10017         (sigaltstack): Likewise.
10018         (wait4): Likewise.
10019         (sigblock): Remove.
10020         (sigsetmask): Likewise.
10021         (wait3): Likewise.
10022         (waitpid): Likewise.
10023         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
10024         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
10025         file.
10026         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
10027         * sysdeps/unix/bsd/Makefile: ... here.
10028         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
10029         * sysdeps/unix/bsd/Versions: ... here.
10030         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
10031         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
10032         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
10033         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
10034         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
10035         * sysdeps/unix/bsd/sigblock.c: ... here.
10036         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
10037         * sysdeps/unix/bsd/sigsetmask.c: ... here.
10038         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
10039         * sysdeps/unix/bsd/sigvec.c: ... here.
10040         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
10041         * sysdeps/unix/bsd/tcdrain.c: ... here.
10042         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
10043         * sysdeps/unix/bsd/tcgetattr.c: ... here.
10044         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
10045         * sysdeps/unix/bsd/tcsetattr.c: ... here.
10046         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
10047         * sysdeps/unix/bsd/wait.c: ... here.
10048         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
10049         * sysdeps/unix/bsd/wait3.c: ... here.
10050         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
10051         * sysdeps/unix/bsd/waitpid.c: ... here.
10052
10053 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
10054
10055         [BZ #16356]
10056         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
10057         round-to-nearest for [!USE_AS_EXPM1L].
10058         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
10059         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
10060         more tests of exp and exp10.  Expect some exp10 tests to miss
10061         exceptions or fail in directed rounding modes.
10062         * math/auto-libm-test-out: Regenerated.
10063         * math/libm-test.inc (exp10_tonearest_test_data): New array.
10064         (exp10_test_tonearest): New function.
10065         (exp10_towardzero_test_data): New array.
10066         (exp10_test_towardzero): New function.
10067         (exp10_downward_test_data): New array.
10068         (exp10_test_downward): New function.
10069         (exp10_upward_test_data): New array.
10070         (exp10_test_upward): New function.
10071         (main): Call the new functions.
10072         * sysdeps/i386/fpu/libm-test-ulps: Update.
10073         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10074
10075 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
10076
10077         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10078         asinh, atan, atan2, atanh, cbrt, cos and cosh.
10079         * math/auto-libm-test-out: Regenerated.
10080         * math/libm-test.inc (acosh_test_data): Add more tests.
10081         (atanh_test_data): Likewise.
10082         (ceil_test_data): Likewise.
10083         (copysign_test_data): Likewise.
10084         * sysdeps/i386/fpu/libm-test-ulps: Update.
10085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10086
10087         * timezone/checktab.awk: Update from tzcode 2013i.
10088         * timezone/private.h: Likewise.
10089         * timezone/scheck.c: Likewise.
10090         * timezone/tzfile.h: Likewise.
10091         * timezone/tzselect.ksh: Likewise.
10092         * timezone/zdump.c: Likewise.
10093         * timezone/zic.c: Likewise.
10094
10095         * math/auto-libm-test-in: Add tests of cpow.
10096         * math/auto-libm-test-out: Regenerated.
10097         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
10098         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10099         mpc_cc_c.
10100         (func_calc_desc): Add mpc_cc_c union field.
10101         (test_functions): Add cpow.
10102         (special_fill_2pi): New function.
10103         (special_real_inputs): Add 2pi.
10104         (calc_generic_results): Handle mpc_cc_c.
10105         * sysdeps/i386/fpu/libm-test-ulps: Update.
10106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10107
10108         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
10109         csqrt, ctan and ctanh.
10110         * math/auto-libm-test-out: Regenerated.
10111         * math/libm-test.inc (TEST_COND_x86_64): New macro.
10112         (TEST_COND_x86): Likewise.
10113         (ccos_test_data): Use AUTO_TESTS_c_c.
10114         (ccosh_test_data): Likewise.
10115         (cexp_test_data): Likewise.
10116         (clog_test_data): Likewise.
10117         (csqrt_test_data): Likewise.
10118         (ctan_test_data): Likewise.
10119         (ctan_tonearest_test_data): Likewise.
10120         (ctan_towardzero_test_data): Likewise.
10121         (ctan_downward_test_data): Likewise.
10122         (ctan_upward_test_data): Likewise.
10123         (ctanh_test_data): Likewise.
10124         (ctanh_tonearest_test_data): Likewise.
10125         (ctanh_towardzero_test_data): Likewise.
10126         (ctanh_downward_test_data): Likewise.
10127         (ctanh_upward_test_data): Likewise.
10128         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10129         mpc_c_c.
10130         (func_calc_desc): Add mpc_c_c union field.
10131         (FUNC_mpc_c_c): New macro.
10132         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
10133         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
10134         ctanh.
10135         (special_fill_min_subnorm_p120): New function.
10136         (special_real_inputs): Add min_subnorm_p120.
10137         (calc_generic_results): Handle mpc_c_c.
10138         * sysdeps/i386/fpu/libm-test-ulps: Update.
10139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10140
10141 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
10142
10143         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
10144         (do_sin_slow): New functions.
10145         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
10146         (cslow2, csloww1, csloww2): Use the new functions.
10147
10148         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
10149         Use M to change sign of result instead of X.  Assume X is
10150         positive.
10151         (csloww1): Likewise.
10152         (__sin): Adjust.
10153         (__cos): Adjust.
10154
10155         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
10156         arguments A and DA.
10157         (__sin): Adjust.
10158         (__cos): Likewise.
10159
10160         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
10161         (__cos): Likewise.
10162         (sloww1): Don't adjust sign of DX.
10163         (csloww1): Likewise.
10164         (sloww2): Use X directly and don't adjust sign of DX.
10165         (csloww2): Likewise.
10166
10167 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
10168
10169         * math/auto-libm-test-in: Add tests of cabs and carg.
10170         * math/auto-libm-test-out: Regenerated.
10171         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
10172         (carg_test_data): Likewise.
10173         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10174         mpc_c_f.
10175         (func_calc_desc): Add mpc_c_f union field.
10176         (test_functions): Add cabs and carg.
10177         (calc_generic_results): Handle mpc_c_f.
10178
10179         * sysdeps/powerpc/powerpc32/libgcc-compat.S
10180         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
10181         as a macro and a compat symbol.
10182         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
10183         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
10184         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
10185         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
10186         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
10187         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
10188         not use .hidden.
10189         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
10190         Likewise.
10191         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
10192         Likewise.
10193         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
10194         Likewise.
10195         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
10196         Likewise.
10197         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
10198         Likewise.
10199         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
10200         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
10201         from GLIBC_2.3.2.
10202
10203 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10204
10205         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10206
10207 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
10208
10209         * manual/texinfo.tex: Update to version 2013-11-26.10 with
10210         trailing whitespace removed.
10211         * scripts/config.guess: Update to version 2013-11-29.
10212         * scripts/config.sub: Update to version 2013-10-01.
10213
10214         * math/auto-libm-test-in: Add tests of sincos.
10215         * math/auto-libm-test-out: Regenerated.
10216         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
10217         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10218         mpfr_f_11.
10219         (func_calc_desc): Add mpfr_f_11 union field.
10220         (test_functions): Add sincos.
10221         (calc_generic_results): Handle mpfr_f_11.
10222         * sysdeps/i386/fpu/libm-test-ulps: Update.
10223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10224
10225 2013-12-19  Andreas Schwab  <schwab@suse.de>
10226
10227         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
10228         CALL_MCOUNT.
10229         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
10230         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
10231         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
10232
10233 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
10234
10235         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
10236         * sysdeps/i386/fpu/libm-test-ulps: Update.
10237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10238
10239         [BZ #16293]
10240         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
10241         round-to-nearest mode when using frndint.
10242         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
10243         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
10244         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
10245         Likewise.
10246         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
10247         sinh test to fail.
10248         * math/auto-libm-test-out: Regenerated.
10249         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
10250         (TEST_COND_x86): Likewise.
10251         (expm1_tonearest_test_data): New array.
10252         (expm1_test_tonearest): New function.
10253         (expm1_towardzero_test_data): New array.
10254         (expm1_test_towardzero): New function.
10255         (expm1_downward_test_data): New array.
10256         (expm1_test_downward): New function.
10257         (expm1_upward_test_data): New array.
10258         (expm1_test_upward): New function.
10259         (main): Run the new test functions.
10260         * sysdeps/i386/fpu/libm-test-ulps: Update.
10261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10262
10263         * include/features.h: Update comment documenting feature test
10264         macros.  Mention _DEFAULT_SOURCE in comment.
10265         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
10266         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
10267         _BSD_SOURCE and _SVID_SOURCE.
10268         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
10269         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
10270         !_SVID_SOURCE]: Likewise.
10271         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
10272         (__USE_POSIX_IMPLICITLY): Define.
10273         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
10274         (_POSIX_SOURCE): Undefine and redefine.
10275         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
10276         (_POSIX_C_SOURCE): Likewise.
10277         * manual/creature.texi (_DEFAULT_SOURCE): Document.
10278         (Feature Test Macros): Update documentation of default features.
10279
10280 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10281
10282         * benchtests/Makefile: Add bench-strtok.
10283         * benchtests/bench-strtok.c: New file: strtok benchtest.
10284
10285 2013-12-19  Allan McRae  <allan@archlinux.org>
10286
10287         * manual/install.texi: Suppress menu for plain text output.
10288         * INSTALL: Regenerated.
10289
10290 2013-12-18  Brooks Moses  <bmoses@google.com>
10291
10292         [BZ #15846]
10293         * misc/getauxval.c: Include errno.h.
10294         (__getauxval): Set errno to ENOENT if the requested type is not
10295         found.
10296         * misc/sys/auxv.h (getauxval): Document that it may set errno;
10297         don't declare with __attribute_const__.
10298         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
10299         * manual/startup.texi: Document that getauxval sets errno.
10300
10301 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
10302
10303         * math/auto-libm-test-in: Add tests of jn and yn.
10304         * math/auto-libm-test-out: Regenerated.
10305         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
10306         (yn_test_data): Likewise.
10307         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10308         mpfr_if_f.
10309         (func_calc_desc): Add mpfr_if_f union field.
10310         (FUNC_mpfr_if_f): New macro.
10311         (test_functions): Add jn and yn.
10312         (calc_generic_results): Assert type of second input for
10313         mpfr_ff_f.  Handle mpfr_if_f.
10314         (output_for_one_input_case): Disable all checking for arguments
10315         fitting floating-point types in case of an integer argument.
10316         * sysdeps/i386/fpu/libm-test-ulps: Update.
10317         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10318
10319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
10320         Don't expect fegetround reference in libm.so.
10321
10322 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10323
10324         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
10325         $(config-cflags-nofma).
10326
10327 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
10328
10329         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
10330         * math/auto-libm-test-out: Regenerated.
10331
10332         [BZ #16338]
10333         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
10334         to determine exponent and adjust argument to have exponent of -1.
10335         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
10336         log2.
10337         * math/auto-libm-test-out: Regenerated.
10338         * sysdeps/i386/fpu/libm-test-ulps: Update.
10339         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10340
10341 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
10342
10343         * manual/probes.texi: Remove cases when per-thread arenas are
10344         disabled.
10345
10346 2013-12-18  Andreas Schwab  <schwab@suse.de>
10347
10348         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
10349         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
10350         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
10351         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
10352         * sysdeps/i386/i686/multiarch/Makefile: Update.
10353         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
10354
10355 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
10356
10357         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
10358         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
10359
10360 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10361
10362         [BZ #15968]
10363         Support TZ transition times < 00:00:00.
10364         This is needed for version-3 tz-format files; it supports time
10365         stamps past 2037 for America/Godthab (the only entry in the tz
10366         database for which this change is relevant).
10367         * manual/time.texi (TZ Variable): Document transition times
10368         from -167:59:59 through -00:00:01.
10369         * time/tzset.c (tz_rule): Time of day is now signed.
10370         (__tzset_parse_tz): Parse negative time of day.
10371
10372         Document TZ transition times >= 25:00:00.
10373         * manual/time.texi (TZ Variable): Document transition times from
10374         25:00:00 through 167:59:59.  These are already supported, and this
10375         support will help with version-3 tz-format files.
10376
10377         * manual/time.texi (TZ Variable): Modernize North America example
10378         to reflect current (i.e., 2007-and-later) daylight saving rules.
10379
10380         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
10381
10382 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
10383
10384         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
10385         * sysdeps/unix/bsd/bits/stat.h: Likewise.
10386         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
10387         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
10388         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
10389         * sysdeps/unix/bsd/bsdstat.h: Likewise.
10390         * sysdeps/unix/bsd/clock.c: Likewise.
10391         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
10392         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
10393         * sysdeps/unix/bsd/init-posix.c: Likewise.
10394         * sysdeps/unix/bsd/poll.c: Likewise.
10395         * sysdeps/unix/bsd/ptsname.c: Likewise.
10396         * sysdeps/unix/bsd/seekdir.c: Likewise.
10397         * sysdeps/unix/bsd/setegid.c: Likewise.
10398         * sysdeps/unix/bsd/seteuid.c: Likewise.
10399         * sysdeps/unix/bsd/setgid.c: Likewise.
10400         * sysdeps/unix/bsd/setrgid.c: Likewise.
10401         * sysdeps/unix/bsd/setruid.c: Likewise.
10402         * sysdeps/unix/bsd/setsid.c: Likewise.
10403         * sysdeps/unix/bsd/setuid.c: Likewise.
10404         * sysdeps/unix/bsd/sigaction.c: Likewise.
10405         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
10406         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
10407         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
10408         * sysdeps/unix/bsd/telldir.c: Likewise.
10409         * sysdeps/unix/bsd/times.c: Likewise.
10410         * sysdeps/unix/bsd/usleep.c: Likewise.
10411
10412         * misc/Makefile (install-lib): Remove libbsd-compat.a.
10413         ($(objpfx)libbsd-compat.a): Remove rule.
10414
10415         * include/features.h (__FAVOR_BSD): Do not define.
10416         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
10417         features conflicting with POSIX.
10418         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
10419         (_BSD_SOURCE): Remove description of not being a subset of other
10420         feature test macros.
10421         * manual/job.texi (getpgrp): Do not document BSD version.
10422         (getpgid): Do not document by reference to BSD getpgrp.
10423         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
10424         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
10425         * signal/signal.h [__FAVOR_BSD]: Likewise.
10426         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
10427         instead of making contents conditional on [__FAVOR_BSD].
10428         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
10429
10430 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10431
10432         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10433
10434 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
10435
10436         [BZ #16314]
10437         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
10438         values below 2**-450, not 2**-500.
10439         * math/auto-libm-test-in: Don't allow spurious underflow from
10440         hypot.
10441         * math/auto-libm-test-out: Regenerated.
10442
10443         [BZ #16316]
10444         [BZ #16330]
10445         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
10446         values of ha and hb and sort them after adjusting subnormal
10447         arguments.
10448         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10449         Likewise.
10450         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
10451         values of ea and eb and sort them after adjusting subnormal
10452         arguments.
10453         * math/auto-libm-test-in: Do not expect some hypot tests of
10454         subnormals to fail.  Add more hypot tests.
10455         * math/auto-libm-test-out: Regenerated.
10456
10457 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10458
10459         [BZ #13304]
10460         * sysdeps/sh/s_fma.c: New file.
10461         * sysdeps/sh/s_fmaf.c: New file.
10462         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
10463         version.
10464         * sysdeps/sh/Implies: Add sh/soft-fp.
10465
10466 2013-12-16  Roland McGrath  <roland@hack.frob.com>
10467
10468         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
10469         level of indirection to members `objname', `errstring', `malloced'.
10470         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
10471         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
10472         it as the __longjmp argument (just pass 1 instead).
10473         (_dl_catch_error): Initialize C with argument pointers and address of
10474         volatile local ERRCODE rather than copying values out of C at return.
10475
10476 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
10477
10478         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
10479         * math/auto-libm-test-out: Regenerated.
10480         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
10481         (hypot_test_data): Likewise.
10482         (pow_test_data): Likewise.
10483         (pow_tonearest_test_data): Likewise.
10484         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10485         mpfr_ff_f.
10486         (func_calc_desc): Add mpfr_ff_f union field.
10487         (FUNC_mpfr_ff_f): New macro.
10488         (test_functions): Add atan2, hypot and pow.
10489         (special_fill_min): New function.
10490         (special_fill_minus_min): Likewise.
10491         (special_fill_min_subnorm): Likewise.
10492         (special_fill_minus_min_subnorm): Likewise.
10493         (special_real_inputs): Add min, -min, min_subnorm and
10494         -min_subnorm.
10495         (calc_generic_results): Handle mpfr_ff_f.
10496         * sysdeps/i386/fpu/libm-test-ulps: Update.
10497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10498
10499 2013-12-16  Will Newton  <will.newton@linaro.org>
10500
10501         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
10502         (Aligned Memory Blocks): Add documentation for aligned_alloc
10503         and suggest it as an alternative to posix_memalign.
10504         (Hooks for Malloc): Document __memalign_hook is also called
10505         for aligned_alloc.  (Summary of Malloc): Add summary for
10506         aligned alloc.  Document __memalign_hook is also called
10507         for aligned_alloc.
10508
10509 2013-12-16  Will Newton  <will.newton@linaro.org>
10510
10511         * manual/memory.texi (Malloc Examples): Clarify default
10512         alignment documentation.  Suggest posix_memalign rather
10513         than memalign or valloc.
10514         (Aligned Memory Blocks): Remove suggestion to use memalign
10515         or valloc.  Remove obsolete comment about BSD.
10516         Document memalign errno values and mark the function obsolete.
10517         Document posix_memalign returned error codes.  Mark valloc
10518         as obsolete.  (Hooks for Malloc): __memalign_hook is also
10519         called for posix_memalign and valloc.
10520         (Summary of Malloc): Add posix_memalign to function summary.
10521         __memalign_hook is also called for posix_memalign and valloc.
10522
10523 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10524
10525         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
10526         TAYLOR_SIN.
10527         (__sin): Adjust.
10528         (__cos): Likewise.
10529         (sloww): Use mynumber union.  Expand ternary operator into
10530         if-else statements.
10531         (cslow): use mynumber union.
10532
10533 2013-12-16  Allan McRae  <allan@archlinux.org>
10534
10535         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
10536         * configure: Regenerated.
10537
10538         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
10539
10540         [BZ #14120]
10541         * configure.ac: Added --enable-maintainer-mode. Check for
10542         autoconf when enabled.
10543         * configure: Regenerated.
10544
10545         * nscd/nscd.service: New file.
10546         * nscd/nscd.tmpfiles: New file.
10547
10548 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
10549
10550         [BZ #12100]
10551         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
10552         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
10553         * sysdeps/x86_64/multiarch/strstr.c: ... here.
10554         (strstr): Add __strstr_sse2_unaligned ifunc.
10555         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
10556         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
10557         (strcasestr): Remove __strcasestr_sse42 ifunc.
10558         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
10559         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
10560         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
10561
10562 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10563
10564         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
10565         * sysdeps/sh/bits/fenv.h: ... here.
10566         * sysdeps/sh/sh4/fpu/bits: Remove directory.
10567
10568 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10569
10570         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
10571
10572         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
10573         hypotf multiarch implementations.
10574         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
10575         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
10576         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
10577         multiarch hypot for PPC64.
10578         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
10579         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
10580         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
10581         multiarch hypotf for PPC64.
10582
10583         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
10584         modff multiarch implementations.
10585         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
10586         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
10587         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
10588         multiarch modf for PPC64.
10589         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
10590         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
10591         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
10592         multiarch modff for PPC64.
10593
10594         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
10595         and logl multiarch implementations.
10596         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
10597         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
10598         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
10599         multiarch logb for PPC64.
10600         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
10601         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
10602         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
10603         multiarch logb for PPC64.
10604         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
10605         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
10606         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
10607         multiarch logb for PPC64.
10608
10609         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
10610         isinff multiarch implementation.
10611         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
10612         file.
10613         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
10614         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
10615         multiarch isinf for PPC64.
10616         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
10617         file.
10618         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
10619         multiarch isinff for PPC64.
10620
10621         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
10622         finitef multiarch implementation.
10623         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
10624         file.
10625         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
10626         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
10627         multiarch finite for PPC64.
10628         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
10629         file.
10630         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
10631         multiarch finitef for PPC64.
10632
10633         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
10634         lrint multiarch implementation.
10635         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
10636         file.
10637         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
10638         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
10639         multiarch llrint for PPC64.
10640         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
10641         multiarch lrint for PPC64.
10642
10643         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
10644         copysignf multiarch implementation.
10645         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
10646         file.
10647         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
10648         file.
10649         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
10650         multiarch copysign for PPC64.
10651         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
10652         multiarch copysignf for PPC64.
10653
10654         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
10655         multiarch implementation.
10656         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
10657         file.
10658         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
10659         file.
10660         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
10661         file.
10662         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
10663         file.
10664         multiarch llround for PPC64.
10665         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
10666         multiarch trunc for PPC64.
10667         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
10668         multiarch truncf for PPC64.
10669
10670         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
10671         multiarch implementation.
10672         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
10673         file.
10674         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
10675         file.
10676         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
10677         file.
10678         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
10679         file.
10680         multiarch llround for PPC64.
10681         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
10682         multiarch round for PPC64.
10683         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
10684         multiarch roundf for PPC64.
10685
10686         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
10687         multiarch implementation.
10688         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
10689         file.
10690         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
10691         file.
10692         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
10693         file.
10694         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
10695         file.
10696         multiarch llround for PPC64.
10697         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
10698         multiarch floor for PPC64.
10699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
10700         multiarch floorf for PPC64.
10701
10702         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
10703         multiarch implementation.
10704         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
10705         file.
10706         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
10707         file.
10708         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
10709         file.
10710         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
10711         file.
10712         multiarch llround for PPC64.
10713         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
10714         multiarch ceil for PPC64.
10715         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
10716         multiarch ceilf for PPC64.
10717
10718         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
10719         multiarch implementation.
10720         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
10721         file.
10722         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
10723         file.
10724         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
10725         file.
10726         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
10727         multiarch llround for PPC64.
10728         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
10729         multiarch lround for PPC64.
10730
10731         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
10732         multiarch implementation.
10733         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
10734         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
10735         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
10736         file.
10737         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
10738         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
10739         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
10740         multiarch isnan for PPC64.
10741         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
10742         multiarch isnanf for PPC64.
10743
10744         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
10745         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
10746         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
10747         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
10748         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
10749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
10750
10751         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
10752         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10753         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10754         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10755
10756         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
10757         multiarch implementations.
10758         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10759         (__libc_ifunc_impl_list): Likewise.
10760         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
10761         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
10762         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
10763         multiarch stpcpy for PPC64.
10764
10765         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
10766         multiarch implementations.
10767         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10768         (__libc_ifunc_impl_list): Likewise.
10769         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
10770         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
10771         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
10772         multiarch strcpy for PPC64.
10773
10774         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
10775         redefine function name.
10776         (_wordcopy_fwd_dest_aligned): Likewise.
10777         (_wordcopy_bwd_aligned): Likewise.
10778         (_wordcopy_bwd_dest_aligned): Likewise.
10779         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
10780         multiarch implementations.
10781         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10782         (__libc_ifunc_impl_list): Likewise.
10783         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
10784         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
10785         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
10786         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
10787         multiarch wcscpy for PPC64.
10788
10789         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
10790         multiarch implementations.
10791         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10792         (__libc_ifunc_impl_list): Likewise.
10793         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
10794         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
10795         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
10796         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
10797         multiarch wcscpy for PPC64.
10798
10799         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
10800         multiarch implementations.
10801         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10802         (__libc_ifunc_impl_list): Likewise.
10803         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
10804         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
10805         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
10806         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
10807         multiarch wcsrchr for PPC64.
10808
10809         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
10810         multiarch implementations.
10811         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10812         (__libc_ifunc_impl_list): Likewise.
10813         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
10814         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
10815         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
10816         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
10817         multiarch wcschr for PPC64.
10818
10819         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
10820         multiarch implementations.
10821         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10822         (__libc_ifunc_impl_list): Likewise.
10823         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
10824         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
10825         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
10826         multiarch strchrnul for PPC64.
10827
10828         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
10829         implementations.
10830         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10831         (__libc_ifunc_impl_list): Likewise.
10832         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
10833         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
10834         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
10835         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
10836         strchr for PPC64.
10837
10838         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
10839         implementations.
10840         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10841         (__libc_ifunc_impl_list): Likewise.
10842         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
10843         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
10844         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
10845         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
10846         strncmp for PPC64.
10847
10848         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
10849         multiarch implementations.
10850         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10851         (__libc_ifunc_impl_list): Likewise.
10852         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
10853         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
10854         strncasecmp for PPC64.
10855         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
10856         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
10857         multiarch strncasecmp_l for PPC64.
10858
10859         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
10860         multiarch implementations.
10861         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10862         (__libc_ifunc_impl_list): Likewise.
10863         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
10864         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
10865         multiarch strcasecmp for PPC64.
10866         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
10867         file.
10868         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
10869         multiarch strcasecmp_l for PPC64.
10870
10871         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
10872         implementations.
10873         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10874         (__libc_ifunc_impl_list): Likewise.
10875         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
10876         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
10877         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
10878         strnlen for PPC64.
10879
10880         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
10881         implementations.
10882         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10883         (__libc_ifunc_impl_list): Likewise.
10884         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
10885         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
10886         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
10887         strlen for PPC64.
10888
10889         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
10890         implementations.
10891         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10892         (__libc_ifunc_impl_list): Likewise.
10893         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
10894         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
10895         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
10896         rawmemrchr for PPC64.
10897
10898         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
10899         implementation.
10900         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10901         (__libc_ifunc_impl_list): Likewise.
10902         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
10903         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
10904         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
10905         memrchr for PPC64.
10906
10907         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
10908         implementation.
10909         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10910         (__libc_ifunc_impl_list): Likewise.
10911         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
10912         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
10913         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
10914         memchr for PPC64.
10915
10916         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
10917         implementation.
10918         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10919         (__libc_ifunc_impl_list): Likewise.
10920         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
10921         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
10922         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
10923         mempcpy for PPC64.
10924
10925         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
10926         avoid cretion of __bzero symbol.
10927         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
10928         Likewise.
10929         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
10930         Likewise.
10931         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
10932         Likewise.
10933         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
10934         multiarch implementations.
10935         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10936         (__libc_ifunc_impl_list): Likewise.
10937         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
10938         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
10939         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
10940         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
10941         bzero for PPC32.
10942         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
10943         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
10944         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
10945         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
10946         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
10947         memset for PPC64.
10948         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
10949
10950         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
10951         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
10952         implementations.
10953         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10954         (__libc_ifunc_impl_list): Likewise.
10955         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
10956         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
10957         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
10958         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
10959         memcmp for PPC64.
10960
10961         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
10962         multiarch for POWER/PPC64.
10963         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
10964         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
10965         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
10966         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
10967         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
10968         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
10969         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
10970         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
10971         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
10972         memcpy for PPC64.
10973
10974         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
10975         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
10976         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
10977         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
10978         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
10979         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
10980         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
10981         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
10982         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
10983         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
10984         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
10985         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
10986         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
10987         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
10988         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
10989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
10990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
10991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
10992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
10993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
10994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
10995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
10996
10997 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10998
10999         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
11000
11001 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
11002
11003         * benchtests/Makefile (bench): Add exp2 and log2.
11004         (LDLIBS-bench-exp2): Add -lm.
11005         (LDLIBS-bench-log2): Likewise.
11006         * benchtests/exp2-inputs: New inputs file.
11007         * benchtests/log2-inputs: New inputs file.
11008         * benchtests/log-inputs: Add new inputs.
11009         * benchtests/tan-inputs: Likewise.
11010
11011 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11012
11013         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
11014         definition...
11015         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
11016         (csloww2): ... from here.
11017
11018         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
11019         instead of structures.
11020         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
11021         (POLYNOMIAL): Likewise.
11022         (TAYLOR_SLOW): Likewise.
11023         (__sin): Likewise.
11024         (__cos): Likewise.
11025         (slow1): Likewise.
11026         (slow2): Likewise.
11027         (sloww): Likewise.
11028         (sloww1); Likewise.
11029         (sloww2): Likewise.
11030         (bsloww1): Likewise.
11031         (bsloww2): Likewise.
11032         (cslow2): Likewise.
11033         (csloww): Likewise.
11034         (csloww1): Likewise.
11035         (csloww2): Likewise.
11036
11037 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
11038
11039         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
11040         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
11041         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
11042         * malloc/hooks.c (realloc_check): Likewise.
11043
11044         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
11045         * malloc/arena.c: Remove PER_THREAD conditional.
11046         [!PER_THREAD]: Remove code.
11047         (ptmalloc_unlock_all2): Likewise.
11048         (ptmalloc_init): Likewise.
11049         (_int_new_arena): Likewise.
11050         (arena_get2): Likewise.
11051         * malloc/hooks.c (__malloc_get_state): Likewise.
11052         (__malloc_set_state): Likewise.
11053         * malloc/malloc.c: Likewise.
11054         (struct malloc_state): Likewise.
11055         (struct malloc_par): Likewise.
11056         (__libc_realloc): Likewise.
11057         (__libc_mallopt): Likewise.
11058
11059 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11060
11061         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
11062
11063 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
11064
11065         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
11066         macro to a function.  Check for zero perturb_byte.
11067         (_int_malloc, _int_free): Remove zero perturb_byte checks.
11068
11069         * malloc/malloc.c: (force_reg): Remove.
11070         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
11071         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
11072         force_reg by atomic_forced_read.
11073         * malloc/arena.c (ptmalloc_init): Likewise.
11074         * malloc/hooks.c (top_check): Likewise.
11075
11076 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11077
11078         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11079
11080 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
11081
11082         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11083
11084 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
11085
11086         * math/auto-libm-test-in: Add tests of lgamma.
11087         * math/auto-libm-test-out: Regenerated.
11088         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
11089         (M_LOG_2_SQRT_PIl): Likewise.
11090         (lgamma_test_data): Use AUTO_TESTS_f_f1.
11091         * math/gen-auto-libm-tests.c (func_calc_method): Add value
11092         mpfr_f_f1.
11093         (func_calc_desc): Add mpfr_f_f1 union field.
11094         (ARGS1): New macro.
11095         (ARGS2): Likewise.
11096         (ARGS3): Likewise.
11097         (ARGS4): Likewise.
11098         (RET1): Likewise.
11099         (RET2): Likewise.
11100         (CALC): Likewise.
11101         (FUNC): Likewise.
11102         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
11103         (test_functions): Add lgamma.
11104         (calc_generic_results): Handle mpfr_f_f1.
11105         * sysdeps/i386/fpu/libm-test-ulps: Update.
11106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11107
11108 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11109
11110         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
11111         __mpn_add_n for PowerPC64/POWER7.
11112         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
11113         __mpn_sub_n for PowerPC64/POWER7.
11114
11115         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
11116         __mpn_addmul_1 for PowerPC64.
11117         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
11118         __mpn_submul_1 for PowerPC64.
11119         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
11120         for PowerPC64.
11121         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
11122         for PowerPC64.
11123
11124 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
11125
11126         [BZ #15089]
11127         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
11128
11129 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11130
11131         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
11132
11133         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
11134         add multiarch folders.
11135         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
11136         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
11137         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
11138         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
11139         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
11140         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
11141         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
11142         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
11143         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
11144         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
11145         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
11146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
11147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
11148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
11149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
11150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
11151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
11152
11153         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
11154         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
11155         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
11156         New file.
11157         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
11158         New file.
11159         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
11160         multiarch __ieee754_hypot for PowerPC32.
11161         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
11162         New file.
11163         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
11164         New file.
11165         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
11166         multiarch __ieee754_hypotf for PowerPC32.
11167
11168         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
11169         long_double_symbol only if __logbl is defined.
11170         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
11171         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
11172         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
11173         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
11174         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
11175         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
11176         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
11177         path for implementation.
11178         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
11179         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
11180         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
11181         logb, and logbl multiarch implementations for PowerPC32.
11182         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
11183         file.
11184         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
11185         file.
11186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
11187         multiarch logb for PowerPC32.
11188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
11189         file.
11190         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
11191         file.
11192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
11193         multiarch logbf for PowerPC32.
11194         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
11195         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
11196         file.
11197         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
11198         multiarch logbl implementation for PowerPC32.
11199
11200         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
11201         and modff multiarch implementations.
11202         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
11203         New file.
11204         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
11205         New file.
11206         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
11207         multiarch modf for PowerPC32.
11208         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
11209         New file.
11210         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
11211         New file.
11212         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
11213         multiarch modff for PowerPC32.
11214
11215         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
11216         and lrintf multiarch implementations.
11217         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
11218         New file.
11219         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
11220         New file.
11221         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
11222         multiarch lrint for PowerPC32.
11223         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
11224         file: multiarch lrintf for PowerPC32.
11225
11226         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
11227         and lroundf multiarch implementations.
11228         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
11229         New file.
11230         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
11231         New file.
11232         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
11233         New file.
11234         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
11235         multiarch lround for PowerPC32.
11236         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
11237         file: multiarch lroundf for PowerPC32.
11238
11239         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
11240         copysign and copysignf multiarch implementations.
11241         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
11242         New file.
11243         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
11244         New file.
11245         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
11246         file: multiarch copysign for PowerPC32.
11247         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
11248         file: multiarch copysignf for PowerPC32.
11249
11250         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
11251         and truncf multiarch implementations.
11252         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
11253         New file.
11254         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
11255         file.
11256         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
11257         multiarch trunc for PowerPC32.
11258         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
11259         New file.
11260         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
11261         New file.
11262         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
11263         multiarch truncf for PowerPC32.
11264
11265         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
11266         and roundf multiarch implementations.
11267         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
11268         New file.
11269         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
11270         file.
11271         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
11272         multiarch round for PowerPC32.
11273         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
11274         New file.
11275         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
11276         New file.
11277         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
11278         multiarch roundf for PowerPC32.
11279
11280         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
11281         and floorf multiarch implementations.
11282         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
11283         New file.
11284         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
11285         file.
11286         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
11287         multiarch floor for PowerPC32.
11288         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
11289         New file.
11290         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
11291         New file.
11292         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
11293         multiarch floorf for PowerPC32.
11294
11295         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
11296         and ceilf multiarch implementations.
11297         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
11298         New file.
11299         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
11300         file.
11301         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
11302         multiarch ceil for PowerPC32.
11303         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
11304         New file.
11305         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
11306         file.
11307         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
11308         multiarch ceilf for PowerPC32.
11309
11310         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
11311         is defined.
11312         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
11313         FINITEF is defined.
11314         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
11315         and finitef multiarch implementations.
11316         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
11317         New file.
11318         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
11319         file.
11320         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
11321         multiarch finite for PowerPC32.
11322         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
11323         New file.
11324         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
11325         file: multiarch finitef for PowerPC32.
11326
11327         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
11328         and isinff multiarch implementations.
11329         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
11330         file.
11331         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
11332         file.
11333         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
11334         multiarch isinf for PowerPC32.
11335         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
11336         New file.
11337         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
11338         multiarch isinff for PowerPC32.
11339
11340         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
11341         alias when __isnan is defined.
11342         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
11343         and isnanf multiarch implementations.
11344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
11345         file.
11346         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
11347         file.
11348         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
11349         file.
11350         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
11351         file.
11352         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
11353         multiarch isnan for PowerPC32.
11354         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
11355         New file.
11356         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
11357         New file.
11358         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
11359         multiarch isnanf for PowerPC32.
11360
11361         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
11362         and sqrtf multiarch implementations.
11363         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
11364         file.
11365         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
11366         file.
11367         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
11368         multiarch sqrt for PowerPC32.
11369         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
11370         file.
11371         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
11372         file.
11373         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
11374         multiarch sqrtf for PowerPC32.
11375
11376         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
11377         and llroundf multiarch implementations.
11378         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
11379         New file.
11380         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
11381         New file.
11382         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
11383         New file.
11384         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
11385         file: multiarch llround for PowerPC32.
11386         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
11387         file: multiarch llroundf for PowerPC32.
11388
11389         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
11390         multiarch PowerPC32 fpu implementations.
11391         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
11392         New file.
11393         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
11394         New file.
11395         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
11396         multiarch llrint for PowerPC32.
11397         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
11398         New file.
11399         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
11400         New file.
11401         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
11402         file.
11403
11404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
11405
11406         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
11407         file.
11408         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
11409         file.
11410         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
11411         file.
11412         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
11413         multiarch wordcopy for PPC32.
11414         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
11415         wordcopy objects.
11416         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11417         (__libc_ifunc_impl_list): Likewise.
11418         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
11419         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
11420         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
11421         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
11422         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
11423         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
11424
11425         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
11426         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
11427         file.
11428         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
11429         file.
11430         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
11431         file.
11432         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
11433         multiarch wcscpy for PPC32.
11434         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
11435         multiarch objects.
11436         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11437         (__libc_ifunc_impl_list): Likewise.
11438         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
11439         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
11440         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
11441         sysdeps/powerpc/power6/wcscpy.c.
11442
11443         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
11444         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
11445         file.
11446         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
11447         file.
11448         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
11449         file.
11450         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
11451         multiarch wcsrchr for PPC32.
11452         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
11453         multiarch objects.
11454         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11455         (__libc_ifunc_impl_list): Likewise.
11456         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
11457         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
11458         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
11459         sysdeps/powerpc/power6/wcsrchr.c.
11460
11461         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
11462         file.
11463         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
11464         file.
11465         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
11466         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
11467         multiarch wcschr for PPc32.
11468         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
11469         multiarch objects.
11470         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11471         (__libc_ifunc_impl_list): Likewise.
11472         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
11473         * sysdeps/powerpc/power6/wcschr.c: ... to here.
11474         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
11475         sysdeps/powerpc/power6/wcschr.c.
11476
11477         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
11478         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
11479         file.
11480         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
11481         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
11482         file: multiarch strchr for PPC32.
11483         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
11484         multiarch objects.
11485         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11486         (__libc_ifunc_impl_list): Likewise.
11487
11488         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
11489         name.
11490         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
11491         file.
11492         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
11493         file.
11494         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
11495         multiarch strchrnul for PPC32.
11496         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
11497         multiarch objects.
11498         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11499         (__libc_ifunc_impl_list): Likewise.
11500
11501         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
11502         file.
11503         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
11504         multiarch strncasecmp for PPC32.
11505         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
11506         file.
11507         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
11508         multiarch strncasecmp_l for PPC32.
11509         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
11510         strncasecmp multiarch objects.
11511         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11512         (__libc_ifunc_impl_list): Likewise.
11513
11514         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
11515         file.
11516         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
11517         multiarch strncasecmp for PPC32.
11518         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
11519         New file.
11520         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
11521         multiarch strcasecmp_l for PPC32.
11522         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
11523         multiarch objects.
11524         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11525         (__libc_ifunc_impl_list): Likewise.
11526
11527         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
11528         file.
11529         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
11530         file.
11531         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
11532         multiarch strncmp for PPC32.
11533         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
11534         multiarch objects.
11535         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11536         (__libc_ifunc_impl_list): Likewise.
11537
11538         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
11539         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
11540         file.
11541         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
11542         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
11543         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
11544         multiarch objects.
11545         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11546         (__libc_ifunc_impl_list): Likewise.
11547
11548         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
11549         file.
11550         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
11551         file.
11552         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
11553         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
11554         multiarch objects.
11555         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11556         (__libc_ifunc_impl_list): Likewise.
11557
11558         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
11559         file.
11560         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
11561         file.
11562         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
11563         multiarch rawmemchr for PPC32.
11564         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
11565         multiarch objects.
11566         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11567         (__libc_ifunc_impl_list): Likewise.
11568
11569         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
11570         file.
11571         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
11572         file.
11573         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
11574         file: memrchr multiarch for PPC32.
11575         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
11576         multiarch objects.
11577         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11578         (__libc_ifunc_impl_list): Likewise.
11579
11580         * string/memchr.c (__memchr): Using macro to redefine symbol name.
11581         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
11582         file.
11583         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
11584         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
11585         multiarch memchr for PPC32.
11586         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
11587         multiarch objects.
11588         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11589         (__libc_ifunc_impl_list): Likewise.
11590
11591         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
11592         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
11593         file.
11594         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
11595         file.
11596         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
11597         file: multiarch mempcpy for PPC32.
11598         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
11599         multiarch objects.
11600         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11601         (__libc_ifunc_impl_list): Likewise.
11602
11603         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
11604         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
11605         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
11606         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
11607         multiarch bzero for PPC32.
11608         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
11609         file.
11610         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
11611         file.
11612         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
11613         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
11614         file: multiarch memset for PPC32.
11615         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
11616         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
11617         memset multiarch objects.
11618         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11619         (__libc_ifunc_impl_list): Likewise.
11620
11621         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
11622         file.
11623         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
11624         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
11625         memcmp for PPC32.
11626         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
11627         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
11628         multiarch objects.
11629         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11630         (__libc_ifunc_impl_list): Likewise.
11631
11632         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
11633         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
11634         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
11635         file.
11636         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
11637         file.
11638         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
11639         file.
11640         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
11641         multiarch memcpy for PPC32.
11642         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
11643         multiarch objects.
11644         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11645         (__libc_ifunc_impl_list): Likewise.
11646
11647         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
11648         support multiarch for POWER/PPC32.
11649         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
11650         Likewise.
11651         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
11652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
11653         Implies file to make multiarch folder appers before the fpu and
11654         default folder for power4 configuration.
11655
11656 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11657
11658         * scripts/bench.pl: Append volatile keyword to type.
11659
11660 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11661
11662         * sysdeps/sh/sotruss-lib.c: New file.
11663         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
11664
11665 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11666
11667         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11668
11669 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
11670
11671         [BZ #6810]
11672         * math/w_tgamma.c: Include <errno.h>.
11673         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
11674         * math/w_tgammaf.c: Include <errno.h>.
11675         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
11676         * math/w_tgammal.c: Include <errno.h>.
11677         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
11678         * math/auto-libm-test-in: Do not allow missing errno on tgamma
11679         underflow.  Add more tgamma tests.
11680         * math/auto-libm-test-out: Regenerated.
11681         * sysdeps/i386/fpu/libm-test-ulps: Update.
11682         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11683
11684         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
11685         sin, sinh, tan, tanh, tgamma, y0 and y1.
11686         * math/auto-libm-test-out: Regenerated.
11687         * math/libm-test.inc (TEST_COND_x86_64): New macro.
11688         (TEST_COND_x86): Likewise.
11689         (M_E2l): Remove macro.
11690         (M_E3l): Likewise.
11691         (M_2_SQRT_PIl): Likewise.
11692         (M_SQRT_PIl): Likewise.
11693         (M_1_DIV_El): Likewise.
11694         (log_test_data): Use AUTO_TESTS_f_f.
11695         (log10_test_data): Likewise.
11696         (log1p_test_data): Likewise.
11697         (log2_test_data): Likewise.
11698         (sin_test_data): Likewise.
11699         (sin_tonearest_test_data): Likewise.
11700         (sin_towardzero_test_data): Likewise.
11701         (sin_downward_test_data): Likewise.
11702         (sin_upward_test_data): Likewise.
11703         (sinh_test_data): Likewise.
11704         (sinh_tonearest_test_data): Likewise.
11705         (sinh_towardzero_test_data): Likewise.
11706         (sinh_downward_test_data): Likewise.
11707         (sinh_upward_test_data): Likewise.
11708         (tan_test_data): Likewise.
11709         (tan_tonearest_test_data): Likewise.
11710         (tan_towardzero_test_data): Likewise.
11711         (tan_downward_test_data): Likewise.
11712         (tan_upward_test_data): Likewise.
11713         (tanh_test_data): Likewise.
11714         (tgamma_test_data): Likewise.
11715         (y0_test_data): Likewise.
11716         (y1_test_data): Likewise.
11717         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
11718         (special_real_inputs): Add pi/4.
11719         * sysdeps/i386/fpu/libm-test-ulps: Update.
11720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11721
11722 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11723
11724         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
11725         "longjmp_target" static probes.
11726         (__longjmp): Rename to __longjmp_symbol.
11727         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11728         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
11729         on which longjmp to generate.
11730         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11731         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
11732         probe.
11733         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11734         (__sigjmp_save): Rename to __sigjmp_save_symbol.
11735         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
11736         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
11737         and __sigjmp_save_symbol based on which sigsetjmp to generated.
11738         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
11739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
11740         __longjmp_symbol based on which __longjmp to generate.
11741         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
11742         probe.
11743         (setjmp): Rename to setjmp_symbol.
11744         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11745         (_setjmp): Rename to _setjmp_symbol.
11746         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11747         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
11748         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
11749         which setjmp to generate.
11750         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
11751         "longjmp_target" static probes.
11752
11753 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
11754
11755         * benchtests/README: Add note about output arguments.
11756         * benchtests/bench-sincos.c: Remove file.
11757         * benchtests/sincos-inputs: New file.
11758         * scripts/bench.pl: Identify output arguments and define
11759         static variables for them.
11760
11761         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
11762
11763         [BZ #15941]
11764         * Makefile (INSTALL): Add install-plain.texi as the primary
11765         dependency.
11766         * manual/install-plain.texi: New file.
11767         * manual/install.texi: Include node directive only for
11768         non-plaintext output.
11769
11770 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
11771
11772         * stdlib/longlong.h: Update from GCC.
11773
11774         [BZ #6807]
11775         [BZ #15901]
11776         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
11777         * math/w_j0f.c (y0f): Likewise.
11778         * math/w_j0l.c (__y0l): Likewise.
11779         * math/w_j1.c (y1): Likewise.
11780         * math/w_j1f.c (y1f): Likewise.
11781         * math/w_j1l.c (__y1l): Likewise
11782         * math/w_jn.c (yn): Likewise.
11783         * math/w_jnf.c (ynf): Likewise.
11784         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
11785         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
11786         value for Bessel function domain errors outside _SVID_ mode.
11787         Adjust sign of return value for yn (negative integer, 0).
11788         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
11789         by zero in return for negative x and set sign appropriately for
11790         negative n.
11791         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
11792         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11793         * math/libm-test.inc (y0_test_data): Add more tests and adjust
11794         expectations in error cases.
11795         (y1_test_data): Likewise.
11796         (yn_test_data): Likewise.
11797         * sysdeps/i386/fpu/libm-test-ulps: Update.
11798         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11799
11800 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11801
11802         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
11803         "64" to "64-v1".  Add "64-v2".
11804         (abi-64-options): Rename to ...
11805         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
11806         (abi-64-condition): Rename to ...
11807         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
11808         (abi-64-ld-soname): Rename to ...
11809         (abi-64-v1-ld-soname): ... this.
11810         (abi-64-v2-options): Define.
11811         (abi-64-v2-condition): Likewise.
11812         (abi-64-v2-ld-soname): Likewise.
11813         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
11814         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
11815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
11816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
11817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
11818
11819 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11820             Alan Modra  <amodra@gmail.com>
11821
11822         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
11823         New versions for use with the ELFv2 ABI.
11824         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
11825         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
11826         declaration.
11827         (struct La_ppc64v2_retval): Likewise.
11828         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
11829         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
11830         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
11831         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
11832         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
11833         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11834         Do not save or restore CR.
11835         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
11836         (_dl_profile_resolve): Do no save or restore CR.  Support extended
11837         return values for ELFv2 ABI.  Fix location of FPR return registers.
11838         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
11839         updated values for _CALL_ELF == 2.
11840         (La_regs, La_retval, int_retval): Likewise.
11841
11842 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11843
11844         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
11845         (FRAME_MIN_SIZE_PARM): Likewise.
11846         (FRAME_BACKCHAIN): Likewise.
11847         (FRAME_CR_SAVE): Likewise.
11848         (FRAME_LR_SAVE): Likewise.
11849         (FRAME_TOC_SAVE): Likewise.
11850         (FRAME_PARM_SAVE): Likewise.
11851         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
11852         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
11853         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11854         (call_mcount_parm_offset): New macro.
11855         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
11856         (PROF): Use symbolic stack frame offsets.
11857         (TAIL_CALL_SYSCALL_ERROR): Likewise.
11858         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
11859         Redefine in terms of FRAME_MIN_SIZE.
11860         (_dl_runtime_resolve): Use symbolic stack frame offsets.
11861         (_dl_profile_resolve): Likewise.  Update comment.
11862         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
11863         symbols stack frame offsets.
11864         (__sigsetjmp): Likewise.
11865         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11866         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
11867         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
11868         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
11869
11870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
11871         (FRAME_BACKCHAIN): Remove.
11872         (FRAME_CR_SAVE): Likewise.
11873         (FRAME_LR_SAVE): Likewise.
11874         (FRAME_COMPILER_DW): Likewise.
11875         (FRAME_LINKER_DW): Likewise.
11876         (FRAME_TOC_SAVE): Likewise.
11877         (FRAME_PARM_SAVE): Likewise.
11878         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
11879         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
11880         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
11882         (CHECK_SP): Use symbolic stack frame offsets.
11883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
11884         zone" instead of caller's parameter save area for temp storage.
11885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11886         Likewise.  Also, use symbolic stack frame offsets.
11887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
11888         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
11889         our own stack frame instead of the caller's.
11890         (__socket): Use symbolic stack frame offsets.
11891
11892 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11893             Alan Modra  <amodra@gmail.com>
11894
11895         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
11896         Define.
11897         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
11898         (PPC64_LOCAL_ENTRY_OFFSET): Define.
11899         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
11900         New function.
11901         (elf_machine_fixup_plt): Call it.
11902         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
11903         reloc arguments.
11904         (elf_machine_rela): Update call to elf_machine_plt_conflict.
11905         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11906         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
11907         r2 before calling target.
11908
11909 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11910             Alan Modra  <amodra@gmail.com>
11911
11912         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
11913         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
11914         versions of macros to support ELFv2 ABI.
11915         (LOCALENTRY): New macro.
11916         (ENTRY, EALIGN): Use it.
11917         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
11918         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
11919         fall through into ENTRY entry point.
11920         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
11921         Only define if _CALL_ELF != 2.
11922
11923         (elf_machine_matches_host): Verify ABI version matches.
11924         (RTLD_START): Use LOCALENTRY.
11925         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
11926         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
11927         (PLT_ENTRY_WORDS): New macro.
11928         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
11929         (elf_machine_runtime_setup): Support ELFv2 ABI.
11930         (elf_machine_fixup_plt): Likewise.
11931         (elf_machine_plt_conflict): Likewise.
11932         (resolve_ifunc): Likewise.
11933         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
11934         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11935         Likewise.
11936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11937         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
11938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11939         (makecontext): Support ELFv2 ABI.
11940         * elf/elf.h (EF_PPC64_ABI): Define.
11941
11942 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11943
11944         * sysdeps/powerpc/powerpc64/sysdep.h
11945         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
11946         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
11947         (ENTRY) [ASSEMBLER]: ... but instead here ...
11948         (EALIGN) [ASSEMBLER]: ... and here.
11949         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
11950         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
11951         (ENTRY_2) [!ASSEMBLER]: Use it.
11952         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
11953         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
11954         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11955         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
11956         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
11957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
11958         Use PPC64_LOAD_FUNCPTR.
11959
11960         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
11961
11962 2013-12-04  Alan Modra  <amodra@gmail.com>
11963
11964         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
11965         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
11966         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
11967         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
11968
11969         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
11970         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
11971         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
11972         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
11973         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
11974         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
11975
11976 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11977
11978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11979         (__makecontext): Fix incorrect CFI when backtracing out of
11980         context created via makecontext.
11981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
11982         (__setcontext): Fix incorrect CFI during switch to new context.
11983         (__novec_setcontext): Likewise.
11984
11985 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11986
11987         [BZ #4772]
11988         * time/strptime_l.c (__strptime_internal): Allow modifiers
11989         in strptime.
11990         * time/tst-strptime.c (day_tests): Add testcase.
11991
11992 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11993
11994         * scripts/bench.pl: Skip over blank lines.
11995
11996 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
11997
11998         [BZ #926]
11999         * manual/time.texi (Calendar Time): Clarify what timezone functions
12000         use.
12001
12002 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12003
12004         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12005
12006 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
12007
12008         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
12009         implementation.
12010         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
12011         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
12012         * debug/memset_chk.c (__memset_chk): Likewise.
12013         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
12014         * debug/strncpy_chk.c: Likewise.
12015
12016 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
12017
12018         [BZ #15268]
12019         [BZ #15425]
12020         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
12021         (__ieee754_exp): For possibly underflowing results, check size of
12022         result and force underflow exception if required.
12023         * math/auto-libm-test-in: Add more tests of exp.
12024         * math/auto-libm-test-out: Regenerated.
12025         * sysdeps/i386/fpu/libm-test-ulps: Update.
12026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12027
12028         [BZ #16283]
12029         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
12030         * math/w_exp2f.c (__exp2f): Likewise.
12031         * math/w_exp2l.c (__exp2l): Likewise.
12032         * math/auto-libm-test-in: Do not allow missing errno on exp2
12033         underflow.
12034         * math/auto-libm-test-out: Regenerated.
12035
12036 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
12037
12038         [BZ #16274]
12039         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
12040         handle filename validation.
12041         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
12042         (do_open): Delete.
12043
12044 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
12045
12046         [BZ #6786]
12047         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
12048         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
12049         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
12050         <float.h>.
12051         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
12052         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
12053         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
12054         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
12055         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
12056         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
12057         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
12058         * math/auto-libm-test-in: Don't allow missing errno from erfc.
12059         Add more erfc tests.
12060         * math/auto-libm-test-out: Regenerated.
12061         * sysdeps/i386/fpu/libm-test-ulps: Update.
12062         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12063
12064         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
12065         exp2, expm1, j0 and j1.
12066         * math/auto-libm-test-out: Regenerated.
12067         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
12068         (erfc_test_data): Likewise.
12069         (exp_test_data): Likewise.
12070         (exp_tonearest_test_data): Likewise.
12071         (exp_towardzero_test_data): Likewise.
12072         (exp_downward_test_data): Likewise.
12073         (exp_upward_test_data): Likewise.
12074         (exp10_test_data): Likewise.
12075         (exp2_test_data): Likewise.
12076         (expm1_test_data): Likewise.
12077         (j0_test_data): Likewise.
12078         (j1_test_data): Likewise.
12079         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
12080         (input_flag_type): Add flag_xfail_rounding.
12081         (input_flags): Add xfail-rounding.
12082         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
12083         (output_for_one_input_case): Handle flag_xfail_rounding.
12084         * sysdeps/i386/fpu/libm-test-ulps: Update.
12085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12086
12087 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
12088
12089         [BZ #16289]
12090         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
12091         division by 0.
12092
12093 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
12094
12095         [BZ #16195]
12096         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
12097         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
12098         (STAP_PROBE0): New macro.
12099         (STAP_PROBE1): Likewise.
12100         (STAP_PROBE2): Likewise.
12101         (STAP_PROBE3): Likewise.
12102         (STAP_PROBE4): Likewise.
12103
12104 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
12105
12106         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
12107
12108 2013-12-02  Steve Ellcey  <sellcey@mips.com>
12109
12110         * benchtests/Makefile (bench): Add sqrt.
12111         (LDLIBS-bench-sqrt): New.
12112         * benchtests/sqrt-input: New.
12113
12114 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
12115
12116         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
12117         (GAIH_EAI): Likewise.
12118         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
12119         (gaih_inet): Likewise.
12120         (getaddrinfo): Don't use GAIH_EAI.
12121
12122         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
12123         (struct gaih): Remove definition.
12124
12125 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
12126
12127         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
12128         Use HERRNOP directly.
12129
12130 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12131
12132         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12133
12134 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
12135
12136         * math/gen-auto-libm-tests.c (test_functions): Add more
12137         single-argument functions.
12138         (special_fill_pi_2): New function.
12139         (special_fill_minus_pi_2): Likewise.
12140         (special_fill_pi_6): Likewise.
12141         (special_fill_minus_pi_6): Likewise.
12142         (special_fill_pi_3): Likewise.
12143         (special_fill_2pi_3): Likewise.
12144         (special_fill_e): Likewise.
12145         (special_fill_1_e): Likewise.
12146         (special_fill_e_minus_1): Likewise.
12147         (special_real_inputs): Add more special inputs.
12148         (output_for_one_input_case): Do not require ERANGE on underflow to
12149         zero if round-to-nearest result does not underflow to zero, unless
12150         exact results required.
12151         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
12152         atan, atanh, cbrt, cos and cosh.
12153         * math/auto-libm-test-out: Regenerated.
12154         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
12155         (acos_tonearest_test_data): Likewise.
12156         (acos_towardzero_test_data): Likewise.
12157         (acos_downward_test_data): Likewise.
12158         (acos_upward_test_data): Likewise.
12159         (acosh_test_data): Likewise.
12160         (asin_test_data): Likewise.
12161         (asin_tonearest_test_data): Likewise.
12162         (asin_towardzero_test_data): Likewise.
12163         (asin_upward_test_data): Likewise.
12164         (asinh_test_data): Likewise.
12165         (atan_test_data): Likewise.
12166         (atanh_test_data): Likewise.
12167         (cbrt_test_data): Likewise.
12168         (cos_test_data): Likewise.
12169         (cos_tonearest_test_data): Likewise.
12170         (cos_towardzero_test_data): Likewise.
12171         (cos_downward_test_data): Likewise.
12172         (cos_upward_test_data): Likewise.
12173         (cosh_test_data): Likewise.
12174         (cosh_tonearest_test_data): Likewise.
12175         (cosh_towardzero_test_data): Likewise.
12176         (cosh_downward_test_data): Likewise.
12177         (cosh_upward_test_data): Likewise.
12178         * sysdeps/i386/fpu/libm-test-ulps: Update.
12179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12180
12181 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
12182
12183         [BZ #6787]
12184         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
12185         * math/w_exp10f.c (__exp10f): Likewise.
12186         * math/w_exp10l.c (__exp10l): Likewise.
12187         * math/libm-test.inc (exp10_test_data): Add more tests and expect
12188         errno settings in existing tests.
12189
12190         [BZ #14032]
12191         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
12192         precision control set to double precision.
12193         * sysdeps/i386/fpu/w_sqrt.c: New file.
12194         * math/auto-libm-test-in: Add more tests.
12195         * math/auto-libm-test-out: Update.
12196
12197         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
12198         (sqrt_test_tonearest): New function.
12199         (sqrt_towardzero_test_data): New variable.
12200         (sqrt_test_towardzero): New function.
12201         (sqrt_downward_test_data): New variable.
12202         (sqrt_test_downward): New function.
12203         (sqrt_upward_test_data): New variable.
12204         (sqrt_test_upward): New function.
12205         (main): Call the new functions.
12206
12207         * math/gen-auto-libm-tests.c: New file.
12208         * math/auto-libm-test-in: Likewise.
12209         * math/auto-libm-test-out: New generated file.
12210         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
12211         variables.
12212         (%beautify): Add generated representations of zero.
12213         (top level): Set $auto_input and call parse_auto_input.
12214         (beautify): Remove trailing "f" from hex float constants.
12215         (parse_args): Handle XFAIL_TEST.
12216         (convert_condition): New function.
12217         (or_value): Likewise.
12218         (or_cond_value): Likewise.
12219         (generate_testfile): Handle AUTO_TESTS_* lines.
12220         (parse_auto_input): New function.
12221         * math/libm-test.inc (XFAIL_TEST): New macro.
12222         (ERRNO_UNCHANGED): Update value.
12223         (ERRNO_EDOM): Likewise.
12224         (ERRNO_ERANGE): Likewise.
12225         (IGNORE_RESULT): Likewise.
12226         (TEST_COND_flt_32): New macro.
12227         (TEST_COND_dbl_64): Likewise.
12228         (TEST_COND_ldbl_96_intel): Likewise.
12229         (TEST_COND_ldbl_96_m68k): Likewise.
12230         (TEST_COND_ldbl_128): Likewise.
12231         (TEST_COND_ldbl_128ibm): Likewise.
12232         (TEST_COND_long32): Likewise.
12233         (TEST_COND_long64): Likewise.
12234         (TEST_COND_before_rounding): Likewise.
12235         (TEST_COND_after_rounding): Likewise.
12236         (enable_test): Handle XFAIL_TEST flag.
12237         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
12238         with finite results.
12239         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
12240         auto-libm-test-out.
12241
12242 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
12243             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12244
12245         [BZ #16214]
12246         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
12247         __tls_get_addr_internal instead of __tls_get_offset in order to
12248         avoid GOT pointer dependency.  Make rtld export
12249         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
12250         __tls_get_addr since we are a __tls_get_offset platform.
12251         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
12252         GOT pointer being set up before.
12253         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
12254
12255 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
12256
12257         * manual/math.texi (Errors in Math Functions): Document accuracy
12258         goals.
12259
12260         [BZ #15004]
12261         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
12262         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
12263         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12264         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12265         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12266         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12267         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12268         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12269         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12270         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12271         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12272         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12273         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12274         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12275         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12276         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12277
12278         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
12279         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
12280         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
12281         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
12282         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
12283         Likewise.
12284         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
12285         Likewise.
12286         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
12287         Likewise.
12288         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
12289         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
12290         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
12291         atomic-feupdateenv and flt-rounds.
12292         * sysdeps/powerpc/nofpu/Versions (libc): Add
12293         __atomic_feholdexcept, __atomic_feclearexcept,
12294         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
12295         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
12296         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
12297         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
12298         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
12299         here.
12300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
12301         Update.
12302
12303         * manual/arith.texi (FP Exceptions): Document that exceptions may
12304         not be raised when matherr is used.
12305         (Math Error Reporting): Document overflow in directed rounding
12306         modes.  Document that errno may not be set when finite values are
12307         returned on overflow.  Document intent to set errno on underflow
12308         only for underflow to zero.
12309
12310         [BZ #16271]
12311         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
12312         round-to-nearest then adjust result for other rounding modes.
12313         * include/fenv.h (fegetround): Use libm_hidden_proto.
12314         * math/fegetround.c (fegetround): Use libm_hidden_def.
12315         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
12316         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
12317         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
12318         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
12319         Likewise.
12320         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
12321         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
12322         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
12323         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
12324
12325 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12326
12327         [BZ #16077]
12328         * nss/Versions (libnss_files): Add
12329         _nss_files_gethostbyname3_r.
12330         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
12331         New function.
12332         (HOST_DB_LOOKUP): Remove macro.
12333         (_nss_files_gethostbyname_r): Implement function without the
12334         HOST_DB_LOOKUP macro.
12335         (_nss_files_gethostbyname2_r): Likewise.
12336
12337 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
12338
12339         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
12340
12341 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
12342
12343         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
12344         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
12345         warning.
12346
12347 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12348
12349         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
12350         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
12351         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
12352         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
12353         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
12354         __fe_nomask_env_priv and attribute_hidden.
12355         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
12356         (libc_feupdateenv_test_ppc): Likewise.
12357         (libc_feresetround_ppc): Likewise.
12358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12359         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
12360         compat_symbol macro.
12361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12362         (__fe_nomask_env): Likewise.
12363         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
12364
12365 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
12366
12367         * string/Makefile: Remove ifunc tests.
12368         * string/test-string.h: Define TEST_IFUNC.
12369         * string/test-bcopy-ifunc.c: Remove.
12370         * string/test-bzero-ifunc.c: Likewise.
12371         * string/test-memccpy-ifunc.c: Likewise.
12372         * string/test-memchr-ifunc.c: Likewise.
12373         * string/test-memcmp-ifunc.c: Likewise.
12374         * string/test-memcpy-ifunc.c: Likewise.
12375         * string/test-memmem-ifunc.c: Likewise.
12376         * string/test-memmove-ifunc.c: Likewise.
12377         * string/test-mempcpy-ifunc.c: Likewise.
12378         * string/test-memrchr-ifunc.c: Likewise.
12379         * string/test-memset-ifunc.c: Likewise.
12380         * string/test-rawmemchr-ifunc.c: Likewise.
12381         * string/test-stpcpy-ifunc.c: Likewise.
12382         * string/test-stpncpy-ifunc.c: Likewise.
12383         * string/test-strcasecmp-ifunc.c: Likewise.
12384         * string/test-strcasestr-ifunc.c: Likewise.
12385         * string/test-strcat-ifunc.c: Likewise.
12386         * string/test-strchr-ifunc.c: Likewise.
12387         * string/test-strchrnul-ifunc.c: Likewise.
12388         * string/test-strcmp-ifunc.c: Likewise.
12389         * string/test-strcpy-ifunc.c: Likewise.
12390         * string/test-strcspn-ifunc.c: Likewise.
12391         * string/test-strlen-ifunc.c: Likewise.
12392         * string/test-strncasecmp-ifunc.c: Likewise.
12393         * string/test-strncat-ifunc.c: Likewise.
12394         * string/test-strncmp-ifunc.c: Likewise.
12395         * string/test-strncpy-ifunc.c: Likewise.
12396         * string/test-strnlen-ifunc.c: Likewise.
12397         * string/test-strpbrk-ifunc.c: Likewise.
12398         * string/test-strrchr-ifunc.c: Likewise.
12399         * string/test-strspn-ifunc.c: Likewise.
12400         * string/test-strstr-ifunc.c: Likewise.
12401
12402 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
12403
12404         * benchtests/Makefile: Remove ifunc tests.
12405         * benchtests/bench-string.h: Define TEST_IFUNC.
12406         * benchtests/bench-bcopy-ifunc.c: Remove.
12407         * benchtests/bench-bzero-ifunc.c: Likewise.
12408         * benchtests/bench-memccpy-ifunc.c: Likewise.
12409         * benchtests/bench-memchr-ifunc.c: Likewise.
12410         * benchtests/bench-memcmp-ifunc.c: Likewise.
12411         * benchtests/bench-memcpy-ifunc.c: Likewise.
12412         * benchtests/bench-memmem-ifunc.c: Likewise.
12413         * benchtests/bench-memmove-ifunc.c: Likewise.
12414         * benchtests/bench-mempcpy-ifunc.c: Likewise.
12415         * benchtests/bench-memrchr-ifunc.c: Likewise.
12416         * benchtests/bench-memset-ifunc.c: Likewise.
12417         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
12418         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
12419         * benchtests/bench-stpcpy-ifunc.c: Likewise.
12420         * benchtests/bench-stpncpy-ifunc.c: Likewise.
12421         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
12422         * benchtests/bench-strcasestr-ifunc.c: Likewise.
12423         * benchtests/bench-strcat-ifunc.c: Likewise.
12424         * benchtests/bench-strchr-ifunc.c: Likewise.
12425         * benchtests/bench-strchrnul-ifunc.c: Likewise.
12426         * benchtests/bench-strcmp-ifunc.c: Likewise.
12427         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
12428         * benchtests/bench-strcpy-ifunc.c: Likewise.
12429         * benchtests/bench-strcspn-ifunc.c: Likewise.
12430         * benchtests/bench-strlen-ifunc.c: Likewise.
12431         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
12432         * benchtests/bench-strncat-ifunc.c: Likewise.
12433         * benchtests/bench-strncmp-ifunc.c: Likewise.
12434         * benchtests/bench-strncpy-ifunc.c: Likewise.
12435         * benchtests/bench-strnlen-ifunc.c: Likewise.
12436         * benchtests/bench-strpbrk-ifunc.c: Likewise.
12437         * benchtests/bench-strrchr-ifunc.c: Likewise.
12438         * benchtests/bench-strsep-ifunc.c: Likewise.
12439         * benchtests/bench-strspn-ifunc.c: Likewise.
12440         * benchtests/bench-strstr-ifunc.c: Likewise.
12441
12442 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
12443
12444         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
12445
12446 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
12447
12448         * resolv/netdb.h: Use __glibc_reserved instead __unused.
12449         * rt/aio.h: Likewise.
12450         * sysdeps/gnu/bits/utmp.h: Likewise.
12451         * sysdeps/gnu/bits/utmpx.h: Likewise.
12452         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
12453         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
12454         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
12455         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
12456         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
12457         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
12458         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
12459         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
12460         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
12461         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
12462         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
12463         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
12464         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
12465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
12466         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
12467         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
12468         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
12469         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
12470         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
12471         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
12472         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
12473         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
12474         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
12475         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12476         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
12477         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12478         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
12479         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
12480         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
12481         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
12482         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
12483         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
12484         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
12485         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
12486         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12487         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
12488         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
12489         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
12490         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
12491         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
12492         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
12493         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
12494
12495 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
12496
12497         [BZ #16245]
12498         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
12499         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
12500
12501 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
12502
12503         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
12504         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
12505         Likewise.
12506
12507 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12508
12509         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
12510         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
12511         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
12512         (__fesetround): Remove define.
12513         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
12514         rounding and exceptions handling.
12515         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
12516         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
12517         (__fe_nomask_env): Likewise.
12518         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
12519         __fegetround instead of fegetround.
12520         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
12521         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
12522
12523 2013-11-21  Roland McGrath  <roland@hack.frob.com>
12524
12525         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
12526         it's there.
12527
12528         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
12529
12530 2013-11-21  Meador Inge  <meadori@codesourcery.com>
12531
12532         [BZ #11157]
12533         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
12534         (encrypt_r): Likewise.
12535         * malloc/obstack.h (obstack_free): Likewise.
12536         * posix/unistd.h (encrypt): Likewise.
12537
12538 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
12539
12540         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
12541         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
12542         DL_CALL_DT_FINI() that call the functions directly.
12543         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
12544         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
12545         * elf/dl-fini.c: Likewise.
12546
12547 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
12548
12549         * malloc/hooks.c (memalign_check): Add alignment rounding.
12550         * malloc/malloc.c (_mid_memalign): New function.
12551         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
12552         Implement by calling _mid_memalign.
12553         * manual/probes.texi (Memory Allocation Probes): Remove
12554         memory_valloc_retry and memory_pvalloc_retry.
12555
12556 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12557
12558         * locale/programs/locarchive.c (open_archive): Add const
12559         qualifier to ARCHIVEFNAME and copy default fname to
12560         DEFAULT_FNAME.
12561
12562         [BZ #15601]
12563         * libio/tst-widetext.input: Rename Oriya to Odia.
12564         * locale/iso-639.def: Likewise.
12565
12566         * manual/probes.texi (Mathematical Function Probes): Add
12567         documentation for sin, cos, asin and acos probes.
12568         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
12569         (__sin32): Add slowasin probe.
12570         (__cos32): Add slowacos probe.
12571         (__mpsin): Add slowsin probe.
12572         (__mpcos): Add slowcos probe.
12573
12574 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
12575
12576         [BZ #15483]
12577         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
12578         thread-local __sim_exceptions_thread and global
12579         __sim_exceptions_global.
12580         (__sim_disabled_exceptions): Change to thread-local
12581         __sim_disabled_exceptions_thread and global
12582         __sim_disabled_exceptions_global.
12583         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
12584         and global __sim_round_mode_global.
12585         (__simulate_exceptions): Use thread-local floating-point state and
12586         set global state from it as needed.
12587         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
12588         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
12589         __sim_round_mode_thread.
12590         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
12591         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
12592         and global __sim_exceptions_global.
12593         (__sim_disabled_exceptions): Change to thread-local
12594         __sim_disabled_exceptions_thread and global
12595         __sim_disabled_exceptions_global.
12596         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
12597         and global __sim_round_mode_global.
12598         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
12599         (SIM_SET_GLOBAL): Likewise.
12600         * sysdeps/powerpc/soft-fp/sfp-machine.h
12601         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
12602         __sim_round_mode_thread.
12603         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
12604         __sim_disabled_exceptions_thread.
12605         (__sim_exceptions): Change to __sim_exceptions_thread.
12606         (__sim_disabled_exceptions): Change to
12607         __sim_disabled_exceptions_thread.
12608         (__sim_round_mode): Change to __sim_round_mode_thread.
12609         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
12610         thread-local floating-point state and set global state from it as
12611         needed.
12612         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
12613         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
12614         (__sim_disabled_exceptions): Remove extern declaration.
12615         (feenableexcept): Use thread-local floating-point state and set
12616         global state from it as needed.
12617         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
12618         extern declaration.
12619         (__sim_disabled_exceptions): Likewise.
12620         (__sim_round_mode): Likewise.
12621         (__fegetenv): Use thread-local floating-point state.
12622         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
12623         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
12624         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
12625         floating-point state and set global state from it as needed.
12626         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
12627         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
12628         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
12629         Likewise.
12630         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
12631         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
12632         Likewise.
12633         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
12634         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
12635         Use __sim_round_mode_thread.
12636         * math/test-fenv-tls.c: New file.
12637         * math/Makefile (tests): Add test-fenv-tls.
12638         ($(objpfx)test-fenv-tls): Depend on
12639         $(common-objpfx)nptl/libpthread.so.
12640
12641 2013-11-19  Andreas Schwab  <schwab@suse.de>
12642
12643         * locale/programs/locale.c (show_info): Decode wordarray elements.
12644         * locale/categories.def (LC_MONETARY): Add element for
12645         _NL_MONETARY_CRNCYSTR.
12646         * locale/C-monetary.c (conversion_rate): New variable.
12647         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
12648         element.
12649
12650 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
12651
12652         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
12653         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
12654
12655 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12656
12657         * elf/Makefile (tst-auxv): New test.
12658         * elf/tst-auxv.c: New
12659         * elf/rtld.c (dl_main): Adjust AT_EXECFN
12660
12661 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
12662
12663         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
12664         (hidden_proto): Caller changed.
12665         (hidden_tls_proto): New macro.
12666         (libc_hidden_tls_proto): Likewise.
12667         (rtld_hidden_tls_proto): Likewise.
12668         (libm_hidden_tls_proto): Likewise.
12669         (libresolv_hidden_tls_proto): Likewise.
12670         (librt_hidden_tls_proto): Likewise.
12671         (libdl_hidden_tls_proto): Likewise.
12672         (libnss_files_hidden_tls_proto): Likewise.
12673         (libnsl_hidden_tls_proto): Likewise.
12674         (libnss_nisplus_hidden_tls_proto): Likewise.
12675         (libutil_hidden_tls_proto): Likewise.
12676
12677 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
12678
12679         [BZ #10253]
12680         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
12681         (decompose_rpath): Defer expansion to fillin_rpath.
12682         (_dl_init_paths): Pass linkmap to fillin_rpath.
12683
12684 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12685
12686         * benchtests/Makefile: Add strsep.
12687         * benchtests/bench-strsep.c: New file: strsep benchtest.
12688         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
12689
12690 2013-11-18  Andreas Schwab  <schwab@suse.de>
12691
12692         * locale/programs/locale.c (show_info) [case byte]: Check for
12693         '\377' instead of '\177'.
12694         * locale/C-monetary.c (not_available): Always use "\377".
12695         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
12696         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
12697         detect unavailable sign_posn locale elements.
12698         * locale/localeconv.c (__localeconv): For grouping and
12699         mon_grouping handle "\177" and "\377" like no grouping.
12700         (INT_ELEM): New macro.  Use it to set all numeric members.
12701         * locale/programs/ld-monetary.c (monetary_read)
12702         <tok_mon_grouping>: Normalize single -1 to the empty string.
12703         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
12704         Likewise.
12705
12706 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12707
12708         [BZ #16055]
12709         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
12710         when we match (nil).
12711         * stdio-common/tst-sscanf.c (struct test): Add testcase.
12712
12713 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
12714
12715         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
12716         (NO_TEST_INLINE): Update value.
12717         (ERRNO_UNCHANGED): Likewise.
12718         (ERRNO_EDOM): Likewise.
12719         (ERRNO_ERANGE): Likewise.
12720         (IGNORE_RESULT): Likewise.
12721         (check_float_internal): Check signs of NaN results if
12722         TEST_NAN_SIGN used.
12723         (check_complex): Pass TEST_NAN_SIGN flag through to second
12724         check_float_internal call.
12725         (copysign_test_data): Add tests with quiet NaNs as second
12726         argument.  Use TEST_NAN_SIGN.
12727         (fabs_test_data): Add test of negative quiet NaN argument.  Use
12728         TEST_NAN_SIGN.
12729         (signbit_test_data): Add tests of quiet NaN argument.
12730         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
12731
12732         * math/gen-libm-test.pl (show_exceptions): Take extra argument
12733         $ignore_result.
12734         (parse_args): Handle function results specified as IGNORE.
12735         * math/libm-test.inc (IGNORE_RESULT): New macro.
12736         (check_float_internal): Do not check numerical result if flag
12737         IGNORE_RESULT set.
12738         (check_complex): Pass through IGNORE_RESULT to second
12739         check_float_internal call.
12740         (check_int): Do not check numerical result if flag IGNORE_RESULT
12741         set.
12742         (check_long): Likewise.
12743         (check_bool): Likewise.
12744         (check_longlong): Likewise.
12745         (lrint_test_data): Add tests of infinite and NaN arguments.
12746         (lrint_tonearest_test_data): Likewise.
12747         (lrint_towardzero_test_data): Likewise.
12748         (lrint_downward_test_data): Likewise.
12749         (lrint_upward_test_data): Likewise.
12750         (llrint_test_data): Likewise.
12751         (llrint_tonearest_test_data): Likewise.
12752         (llrint_towardzero_test_data): Likewise.
12753         (llrint_downward_test_data): Likewise.
12754         (llrint_upward_test_data): Likewise.
12755         (lround_test_data): Likewise.
12756         (llround_test_data): Likewise.
12757
12758         * math/libm-test.inc (NO_TEST_INLINE): New macro.
12759         (ERRNO_UNCHANGED): Update value.
12760         (ERRNO_EDOM): Likewise.
12761         (ERRNO_ERANGE): Likewise.
12762         (NO_TEST_INLINE_FLOAT): New macro.
12763         (NO_TEST_INLINE_DOUBLE): Likewise.
12764         (enable_test): New function.
12765         (RUN_TEST_f_f): Check enable_test before running test.
12766         (RUN_TEST_2_f): Likewise.
12767         (RUN_TEST_fff_f): Likewise.
12768         (RUN_TEST_c_f): Likewise.
12769         (RUN_TEST_f_f1): Likewise.
12770         (RUN_TEST_fF_f1): Likewise.
12771         (RUN_TEST_fI_f1): Likewise.
12772         (RUN_TEST_ffI_f1): Likewise.
12773         (RUN_TEST_c_c): Likewise.
12774         (RUN_TEST_cc_c): Likewise.
12775         (RUN_TEST_f_i): Likewise.
12776         (RUN_TEST_f_i_tg): Likewise.
12777         (RUN_TEST_ff_i_tg): Likewise.
12778         (RUN_TEST_f_b): Likewise.
12779         (RUN_TEST_f_b_tg): Likewise.
12780         (RUN_TEST_f_l): Likewise.
12781         (RUN_TEST_f_L): Likewise.
12782         (RUN_TEST_fFF_11): Likewise.
12783         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
12784         conditionals.
12785         (cosh_test_data): Likewise.
12786         (exp_test_data): Likewise.
12787         (expm1_test_data): Likewise.
12788         (hypot_test_data): Likewise.
12789         (pow_test_data): Likewise.
12790         (sinh_test_data): Likewise.
12791         (tanh_test_data): Likewise.
12792         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
12793         flags argument.
12794
12795         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
12796         tests with quiet NaN input and output.
12797         (acosh_test_data): Likewise.
12798         (asin_test_data): Likewise.
12799         (asinh_test_data): Likewise.
12800         (atan_test_data): Likewise.
12801         (atanh_test_data): Likewise.
12802         (atan2_test_data): Likewise.
12803         (cbrt_test_data): Likewise.
12804         (cos_test_data): Likewise.
12805         (cosh_test_data): Likewise.
12806         (erf_test_data): Likewise.
12807         (erfc_test_data): Likewise.
12808         (exp_test_data): Likewise.
12809         (exp10_test_data): Likewise.
12810         (exp2_test_data): Likewise.
12811         (expm1_test_data): Likewise.
12812         (hypot_test_data): Likewise.
12813         (j0_test_data): Likewise.
12814         (j1_test_data): Likewise.
12815         (jn_test_data): Likewise.
12816         (lgamma_test_data): Likewise.
12817         (log_test_data): Likewise.
12818         (log10_test_data): Likewise.
12819         (log1p_test_data): Likewise.
12820         (log2_test_data): Likewise.
12821         (pow_test_data): Likewise.
12822         (scalb_test_data): Likewise.
12823         (sin_test_data): Likewise.
12824         (sincos_test_data): Likewise.
12825         (sinh_test_data): Likewise.
12826         (tan_test_data): Likewise.
12827         (tanh_test_data): Likewise.
12828         (tgamma_test_data): Likewise.
12829         (y0_test_data): Likewise.
12830         (y1_test_data): Likewise.
12831         (yn_test_data): Likewise.
12832
12833         [BZ #16167]
12834         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
12835         argument being NaN and avoid computations with second argument in
12836         that case.
12837         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
12838         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12839         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12840
12841 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
12842
12843         * locale/iso-639.def: Add Chitwani Tharu (the).
12844
12845 2013-11-14  Andreas Schwab  <schwab@suse.de>
12846
12847         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
12848         word instead of empty string.
12849
12850 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12851
12852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12853         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
12854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12855         (__fe_nomask_env): Likewise.
12856
12857 2013-11-13  Steve Ellcey  <sellcey@mips.com>
12858
12859         * benchtests/bench-timing.h: Include time.h.
12860
12861 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
12862
12863         [BZ #15997]
12864         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
12865         to 3.4.0 for x32.
12866         * sysdeps/unix/sysv/linux/configure: Regenerated.
12867
12868 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
12869
12870         [BZ #16151]
12871         * stdlib/strtod_l.c (round_and_return): Do not consider
12872         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
12873         exponent one less than half the least subnormal exponent.
12874         * stdlib/test-strtod-round-data: Add more tests.
12875         * stdlib/tst-strtod-round.c (tests): Regenerated.
12876
12877 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12878
12879         [BZ #14143]
12880         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
12881         (__fe_mask_env): Likewise.
12882         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
12883         libm_hidden_proto and add function prototype.
12884         (__fe_mask_env): Add function prototype.
12885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12886         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
12887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12888         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
12889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12890         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
12891
12892 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12893
12894         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
12895         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
12896
12897 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12898
12899         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
12900         of htab_find_slot().
12901
12902 2013-11-11  David S. Miller  <davem@davemloft.net>
12903
12904         [BZ #16150]
12905         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
12906         symbol in the non-vis3 case in static builds.
12907         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
12908         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
12909         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
12910         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
12911
12912 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12913
12914         [BZ #387]
12915         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
12916         it is empty.
12917
12918 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12919
12920         * benchtests/Makefile: Add bench-strtod.
12921         * benchtests/bench-strtod.c: New file: strtod benchtest
12922
12923 2013-11-11  Andreas Schwab  <schwab@suse.de>
12924
12925         [BZ #16153]
12926         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
12927         terminating NUL in key length.
12928
12929 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12930
12931         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
12932         Add artificial ODP entry for vDSO symbol for PPC64.
12933         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
12934         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
12935
12936 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12937
12938         [BZ #15374]
12939         * nss/getent.c (services_keys): Recognize services starting with digit.
12940
12941 2013-11-06  David S. Miller  <davem@davemloft.net>
12942
12943         [BZ #15985]
12944         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
12945         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
12946
12947 2013-11-06  Will Newton  <will.newton@linaro.org>
12948
12949         * manual/memory.texi (Malloc Examples): Remove register
12950         keyword from examples.
12951
12952 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
12953
12954         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
12955
12956 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
12957
12958         [BZ #6981]
12959         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
12960         depending on [__GCC_IEC_559 > 0].
12961         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
12962         depending on [__GCC_IEC_559_COMPLEX > 0].
12963
12964 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
12965
12966         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
12967         to iso-639.def.
12968
12969 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
12970
12971         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
12972
12973 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
12974
12975         [BZ #16112]
12976         * malloc/malloc (malloc_info): Do not handle first bin as
12977         special case.
12978
12979 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
12980
12981         * locale/iso-639.def: Add Central Nahuatl (nhn).
12982
12983 2013-11-01  Bruno Haible  <bruno@clisp.org>
12984
12985         [BZ #7003]
12986         * manual/math.texi (BSD Random): Specify range upper bound as
12987         in POSIX.
12988
12989 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
12990
12991         * locale/iso-639.def: Add Meadow Mari (mhr).
12992
12993 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
12994
12995         [BZ #14752], [BZ #15763]
12996         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
12997         Validate name.
12998         * rt/tst_shm.c: Add test for escaping directory.
12999
13000 2013-10-31  Andreas Schwab  <schwab@suse.de>
13001
13002         [BZ #15917]
13003         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
13004         followed by 'x' as part of digit sequence.
13005         * stdio-common/tst-sscanf.c (double_tests2): New tests.
13006
13007 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
13008
13009         [BZ #16037]
13010         * configure.ac: allow GNU Make 4.0 and greater.
13011         * configure: Regenerated.
13012
13013 2013-10-30  Will Newton  <will.newton@linaro.org>
13014
13015         [BZ #16038]
13016         * malloc/hooks.c (memalign_check): Limit alignment to the
13017         maximum representable power of two.
13018         * malloc/malloc.c (__libc_memalign): Likewise.
13019         * malloc/tst-memalign.c (do_test): Add test for very
13020         large alignment values.
13021         * malloc/tst-posix_memalign.c (do_test): Likewise.
13022
13023 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
13024
13025         [BZ #11087]
13026         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
13027         (munmap_chunk): Likewise.
13028         (mremap_chunk): Likewise.
13029
13030 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
13031
13032         [BZ #15799]
13033         * stdlib/div.c (div): Remove obsolete code.
13034         * stdlib/ldiv.c (ldiv): Likewise.
13035         * stdlib/lldiv.c (lldiv): Likewise.
13036
13037 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
13038
13039         [BZ #16071]
13040         * nss/nss_files/files-XXX.c (get_contents_ret): New
13041         enumerator.
13042         (get_contents): New function.
13043         (internal_getent): Use it.  Expand size of LINEBUFLEN.
13044
13045 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
13046
13047         * configure.in: Moved to ...
13048         * configure.ac: ... here. Change reference to configure.in
13049         to configure.ac.
13050         * sysdeps/arm/preconfigure.ac: ... here.
13051         configure.in to configure.ac.
13052         * sysdeps/gnu/configure.in: Moved to ...
13053         * sysdeps/gnu/configure.ac: ... here.
13054         * sysdeps/i386/configure.in: Moved to ...
13055         * sysdeps/i386/configure.ac: ... here.
13056         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
13057         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
13058         * sysdeps/mach/configure.in: Moved to ...
13059         * sysdeps/mach/configure.ac: ... here.
13060         * sysdeps/mach/hurd/configure.in: Moved to ...
13061         * sysdeps/mach/hurd/configure.ac: ... here.
13062         * sysdeps/powerpc/configure.in: Moved to ...
13063         * sysdeps/powerpc/configure.ac: ... here.
13064         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
13065         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
13066         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
13067         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
13068         * sysdeps/s390/s390-32/configure.in: Moved to ...
13069         * sysdeps/s390/s390-32/configure.ac: ... here.
13070         * sysdeps/s390/s390-64/configure.in: Moved to ...
13071         * sysdeps/s390/s390-64/configure.ac: ... here.
13072         * sysdeps/sh/configure.in: Moved to ...
13073         * sysdeps/sh/configure.ac: ... here.
13074         * sysdeps/sparc/configure.in: Moved to ...
13075         * sysdeps/sparc/configure.ac: ... here.
13076         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
13077         * sysdeps/unix/sysv/linux/configure.ac: ... here.
13078         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
13079         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
13080         * sysdeps/x86_64/configure.in: Moved to ...
13081         * sysdeps/x86_64/configure.ac: ... here.
13082         * sysdeps/x86_64/preconfigure.in: Moved to ...
13083         * sysdeps/x86_64/preconfigure.ac: ... here.
13084         * aclocal.m4: Change reference to configure.in to configure.ac.
13085         * config.h.in: Likewise.
13086         * manual/install.texi: Likewise.
13087         * manual/maint.texi: Likewise.
13088         * Makefile: Likewise.
13089         * malloc/Makefile: Likewise.
13090         * nscd/Makefile: Likewise.
13091         * Makeconfig: Change reference to configure.in and
13092         preconfigure.in to configure.ac and preconfigure.ac
13093         respectively.
13094         * INSTALL: Regenerated.
13095         * configure: Likewise.
13096         * sysdeps/gnu/configure: Likewise.
13097         * sysdeps/i386/configure: Likewise.
13098         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
13099         * sysdeps/mach/configure: Likewise.
13100         * sysdeps/mach/hurd/configure: Likewise.
13101         * sysdeps/powerpc/configure: Likewise.
13102         * sysdeps/powerpc/powerpc32/configure: Likewise.
13103         * sysdeps/powerpc/powerpc64/configure: Likewise.
13104         * sysdeps/s390/s390-32/configure: Likewise.
13105         * sysdeps/s390/s390-64/configure: Likewise.
13106         * sysdeps/sh/configure: Likewise.
13107         * sysdeps/sparc/configure: Likewise.
13108         * sysdeps/unix/sysv/linux/configure: Likewise.
13109         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
13110         * sysdeps/x86_64/configure: Likewise.
13111         * sysdeps/x86_64/preconfigure: Likewise.
13112
13113 2013-10-29  Andreas Schwab  <schwab@suse.de>
13114
13115         * stdio-common/Makefile (tst-swscanf-ENV): Define.
13116
13117 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13118
13119         * benchtests/pow-inputs: Add new inputs.
13120
13121         * benchtests/exp-inputs: Add new inputs.
13122
13123         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
13124         conditional check for return value.
13125         (__cos32): Likewise.
13126
13127 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13128
13129         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
13130         to provide a boost for large inputs with word alignment.
13131         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
13132         implementation based on optimized PPC64 strcpy.
13133         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
13134         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
13135         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
13136         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
13137
13138 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
13139
13140         [BZ #2801]
13141         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
13142
13143 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
13144
13145         [BZ #14876]
13146         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
13147         * time/tst-strptime.c (day_tests): Add testcase.
13148
13149 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
13150
13151         [BZ #14029]
13152         * manual/pattern.texi: Acknowledge that fnmatch can fail.
13153
13154 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
13155
13156         [BZ #16074]
13157         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
13158         MAP_FAILED on error.
13159
13160 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
13161
13162         [BZ #16072]
13163         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
13164         heap for large requests.
13165
13166 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
13167
13168         [BZ #9954]
13169         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
13170         result if the result has no associated interface.
13171         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
13172         interface for all 127.X.Y.Z addresses.
13173
13174 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
13175
13176         * locale/iso-639.def: Add Ligurian (lij)
13177
13178 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
13179
13180         [BZ #15825]
13181         * sunrpc/rpc_main.c: Document rpcgen -5.
13182
13183 2013-10-19  Michael Stahl  <mstahl@redhat.com>
13184
13185         * elf/rtld.c (do_preload): Print the reason why preloading failed.
13186
13187 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
13188
13189         [BZ #10278]
13190         * posix/glob.c: Match only directories when trailing slash is present.
13191         * posix/tst-gnuglob.c (my_opendir): Do not open files.
13192         (main): Add testcase.
13193
13194 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
13195
13196         [BZ #15670]
13197         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
13198
13199 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
13200
13201         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
13202         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
13203         AUTH_DES and cindex for FIPS 140-2.
13204         (DES Encryption): Add cindex FIPS 46-3.
13205
13206         * locale/locarchive.h (struct locarhandle): Add fname.
13207         * locale/programs/localedef.c (main): Pass ARGV[remaining]
13208         if an optional argument was specified to --list-archive,
13209         otherwise NULL.
13210         * locale/programs/locarchive.c (show_archive_content): Take new
13211         argument fname and pass it via ah.fname to open_archive.
13212         * locale/programs/localedef.h: Update decl.
13213         (open_archive): If AH->fname is non-null, open that file
13214         rather than the default file name, and don't ignore ENOENT.
13215         (create_archive): Set AH.fname to NULL.
13216         (delete_locales_from_archive): Likewise.
13217         (add_locales_to_archive): Likewise.
13218         * locale/programs/locfile.c (write_all_categories): Likewise.
13219
13220 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
13221             Aldy Hernandez  <aldyh@redhat.com>
13222
13223         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
13224         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
13225         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
13226         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
13227         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
13228         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
13229         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
13230         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
13231         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
13232         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
13233         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
13234         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
13235         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
13236         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
13237         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
13238         Likewise.
13239         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
13240         Likewise.
13241         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
13242         Likewise.
13243         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
13244         Likewise.
13245         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
13246         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
13247         Likewise.
13248         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
13249         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
13250         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
13251         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
13252         Likewise.
13253         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
13254         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
13255         * sysdeps/powerpc/preconfigure: Likewise.
13256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13257         Likewise.
13258         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
13259         Replace contents of file by #include of <fenv_libc.h>.
13260         * sysdeps/powerpc/soft-fp/sfp-machine.h
13261         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
13262         and <sys/prctl.h>.
13263         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
13264         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
13265         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
13266         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
13267         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
13268         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
13269         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
13270         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
13271         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
13272         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
13273         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
13274         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
13275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
13276         Allow copysignl PLT reference to be missing.
13277
13278 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
13279             Joseph Myers  <joseph@codesourcery.com
13280
13281         [BZ #15948]
13282         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
13283         single character.
13284         (add_to_tablewc): Assert sequence of wide characters is nonempty.
13285
13286 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13287
13288         * elf/tst-tls-dlinfo.c: Don't include tls.h.
13289         * elf/tst-tls1.c: Likewise.
13290         * elf/tst-tls10.h: Likewise.
13291         * elf/tst-tls14.c: Likewise.
13292         * elf/tst-tls2.c: Likewise.
13293         * elf/tst-tls3.c: Likewise.
13294         * elf/tst-tls4.c: Likewise.
13295         * elf/tst-tls5.c: Likewise.
13296         * elf/tst-tls6.c: Likewise.
13297         * elf/tst-tls7.c: Likewise.
13298         * elf/tst-tls8.c: Likewise.
13299         * elf/tst-tls9.c: Likewise.
13300         * elf/tst-tlsmod1.c: Likewise.
13301         * elf/tst-tlsmod13.c: Likewise.
13302         * elf/tst-tlsmod13a.c: Likewise.
13303         * elf/tst-tlsmod14a.c: Likewise.
13304         * elf/tst-tlsmod16a.c: Likewise.
13305         * elf/tst-tlsmod16b.c: Likewise.
13306         * elf/tst-tlsmod2.c: Likewise.
13307         * elf/tst-tlsmod3.c: Likewise.
13308         * elf/tst-tlsmod4.c: Likewise.
13309         * elf/tst-tlsmod5.c: Likewise.
13310         * elf/tst-tlsmod6.c: Likewise.
13311
13312 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
13313
13314         [BZ #12486]
13315         * malloc/malloc.c: remove checks for statistics.
13316
13317 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
13318
13319         [BZ #15277]
13320         * inet/inet_net.c (inet_network): Detect additional invalid strings.
13321         * inet/tst-network.c: Add testcase.
13322
13323 2013-10-17  Andreas Schwab  <schwab@suse.de>
13324
13325         [BZ #15218]
13326         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
13327         to determine canonical name.
13328
13329 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
13330
13331         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
13332         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
13333         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13334         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
13335         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13336         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13337         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13338         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
13339         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13340         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13341         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
13342         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13343         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13344         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13345         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
13346         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
13347         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13348         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13349         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13350         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13351         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13352         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13353         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13354         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
13355         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
13356         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13357         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13358         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
13359         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13360         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
13361         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13362         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13363         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
13364         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13365         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13366         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13367         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13368         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13369         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13370         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13371         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13372         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
13373         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
13374         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13375         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13376         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13377         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13378         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13379         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
13380         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13381         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
13382         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13383         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
13384         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
13385         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13386         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13387         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13388         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13389
13390 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
13391
13392         [BZ #16041]
13393         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
13394         make result into a quiet NaN.
13395
13396 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
13397
13398         * soft-fp/adddf3.c: Fix horizontal whitespace.
13399         * soft-fp/addsf3.c: Likewise.
13400         * soft-fp/addtf3.c: Likewise.
13401         * soft-fp/divdf3.c: Likewise.
13402         * soft-fp/divsf3.c: Likewise.
13403         * soft-fp/divtf3.c: Likewise.
13404         * soft-fp/double.h: Likewise.
13405         * soft-fp/eqdf2.c: Likewise.
13406         * soft-fp/eqsf2.c: Likewise.
13407         * soft-fp/eqtf2.c: Likewise.
13408         * soft-fp/extenddftf2.c: Likewise.
13409         * soft-fp/extended.h: Likewise.
13410         * soft-fp/extendsfdf2.c: Likewise.
13411         * soft-fp/extendsftf2.c: Likewise.
13412         * soft-fp/extendxftf2.c: Likewise.
13413         * soft-fp/fixdfdi.c: Likewise.
13414         * soft-fp/fixdfsi.c: Likewise.
13415         * soft-fp/fixdfti.c: Likewise.
13416         * soft-fp/fixsfdi.c: Likewise.
13417         * soft-fp/fixsfsi.c: Likewise.
13418         * soft-fp/fixsfti.c: Likewise.
13419         * soft-fp/fixtfdi.c: Likewise.
13420         * soft-fp/fixtfsi.c: Likewise.
13421         * soft-fp/fixtfti.c: Likewise.
13422         * soft-fp/fixunsdfdi.c: Likewise.
13423         * soft-fp/fixunsdfsi.c: Likewise.
13424         * soft-fp/fixunsdfti.c: Likewise.
13425         * soft-fp/fixunssfdi.c: Likewise.
13426         * soft-fp/fixunssfsi.c: Likewise.
13427         * soft-fp/fixunssfti.c: Likewise.
13428         * soft-fp/fixunstfdi.c: Likewise.
13429         * soft-fp/fixunstfsi.c: Likewise.
13430         * soft-fp/fixunstfti.c: Likewise.
13431         * soft-fp/floatdidf.c: Likewise.
13432         * soft-fp/floatdisf.c: Likewise.
13433         * soft-fp/floatditf.c: Likewise.
13434         * soft-fp/floatsidf.c: Likewise.
13435         * soft-fp/floatsisf.c: Likewise.
13436         * soft-fp/floatsitf.c: Likewise.
13437         * soft-fp/floattidf.c: Likewise.
13438         * soft-fp/floattisf.c: Likewise.
13439         * soft-fp/floattitf.c: Likewise.
13440         * soft-fp/floatundidf.c: Likewise.
13441         * soft-fp/floatundisf.c: Likewise.
13442         * soft-fp/floatunditf.c: Likewise.
13443         * soft-fp/floatunsidf.c: Likewise.
13444         * soft-fp/floatunsisf.c: Likewise.
13445         * soft-fp/floatunsitf.c: Likewise.
13446         * soft-fp/floatuntidf.c: Likewise.
13447         * soft-fp/floatuntisf.c: Likewise.
13448         * soft-fp/floatuntitf.c: Likewise.
13449         * soft-fp/fmadf4.c: Likewise.
13450         * soft-fp/fmasf4.c: Likewise.
13451         * soft-fp/fmatf4.c: Likewise.
13452         * soft-fp/gedf2.c: Likewise.
13453         * soft-fp/gesf2.c: Likewise.
13454         * soft-fp/getf2.c: Likewise.
13455         * soft-fp/ledf2.c: Likewise.
13456         * soft-fp/lesf2.c: Likewise.
13457         * soft-fp/letf2.c: Likewise.
13458         * soft-fp/muldf3.c: Likewise.
13459         * soft-fp/mulsf3.c: Likewise.
13460         * soft-fp/multf3.c: Likewise.
13461         * soft-fp/negdf2.c: Likewise.
13462         * soft-fp/negsf2.c: Likewise.
13463         * soft-fp/negtf2.c: Likewise.
13464         * soft-fp/op-1.h: Likewise.
13465         * soft-fp/op-2.h: Likewise.
13466         * soft-fp/op-4.h: Likewise.
13467         * soft-fp/op-8.h: Likewise.
13468         * soft-fp/op-common.h: Likewise.
13469         * soft-fp/quad.h: Likewise.
13470         * soft-fp/single.h: Likewise.
13471         * soft-fp/soft-fp.h: Likewise.
13472         * soft-fp/sqrtdf2.c: Likewise.
13473         * soft-fp/sqrtsf2.c: Likewise.
13474         * soft-fp/sqrttf2.c: Likewise.
13475         * soft-fp/subdf3.c: Likewise.
13476         * soft-fp/subsf3.c: Likewise.
13477         * soft-fp/subtf3.c: Likewise.
13478         * soft-fp/truncdfsf2.c: Likewise.
13479         * soft-fp/trunctfdf2.c: Likewise.
13480         * soft-fp/trunctfsf2.c: Likewise.
13481         * soft-fp/trunctfxf2.c: Likewise.
13482         * soft-fp/unorddf2.c: Likewise.
13483         * soft-fp/unordsf2.c: Likewise.
13484         * soft-fp/unordtf2.c: Likewise.
13485
13486 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
13487
13488         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
13489         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
13490
13491 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
13492
13493         * elf/dl-libc.c: Clear initfini list after freeing.
13494
13495 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
13496
13497         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
13498         * soft-fp/addsf3.c: Likewise.
13499         * soft-fp/addtf3.c: Likewise.
13500         * soft-fp/divdf3.c: Likewise.
13501         * soft-fp/divsf3.c: Likewise.
13502         * soft-fp/divtf3.c: Likewise.
13503         * soft-fp/double.h: Likewise.
13504         * soft-fp/eqdf2.c: Likewise.
13505         * soft-fp/eqsf2.c: Likewise.
13506         * soft-fp/eqtf2.c: Likewise.
13507         * soft-fp/extenddftf2.c: Likewise.
13508         * soft-fp/extended.h: Likewise.
13509         * soft-fp/extendsfdf2.c: Likewise.
13510         * soft-fp/extendsftf2.c: Likewise.
13511         * soft-fp/extendxftf2.c: Likewise.
13512         * soft-fp/fixdfdi.c: Likewise.
13513         * soft-fp/fixdfsi.c: Likewise.
13514         * soft-fp/fixdfti.c: Likewise.
13515         * soft-fp/fixsfdi.c: Likewise.
13516         * soft-fp/fixsfsi.c: Likewise.
13517         * soft-fp/fixsfti.c: Likewise.
13518         * soft-fp/fixtfdi.c: Likewise.
13519         * soft-fp/fixtfsi.c: Likewise.
13520         * soft-fp/fixtfti.c: Likewise.
13521         * soft-fp/fixunsdfdi.c: Likewise.
13522         * soft-fp/fixunsdfsi.c: Likewise.
13523         * soft-fp/fixunsdfti.c: Likewise.
13524         * soft-fp/fixunssfdi.c: Likewise.
13525         * soft-fp/fixunssfsi.c: Likewise.
13526         * soft-fp/fixunssfti.c: Likewise.
13527         * soft-fp/fixunstfdi.c: Likewise.
13528         * soft-fp/fixunstfsi.c: Likewise.
13529         * soft-fp/fixunstfti.c: Likewise.
13530         * soft-fp/floatdidf.c: Likewise.
13531         * soft-fp/floatdisf.c: Likewise.
13532         * soft-fp/floatditf.c: Likewise.
13533         * soft-fp/floatsidf.c: Likewise.
13534         * soft-fp/floatsisf.c: Likewise.
13535         * soft-fp/floatsitf.c: Likewise.
13536         * soft-fp/floattidf.c: Likewise.
13537         * soft-fp/floattisf.c: Likewise.
13538         * soft-fp/floattitf.c: Likewise.
13539         * soft-fp/floatundidf.c: Likewise.
13540         * soft-fp/floatundisf.c: Likewise.
13541         * soft-fp/floatunsidf.c: Likewise.
13542         * soft-fp/floatunsisf.c: Likewise.
13543         * soft-fp/floatuntidf.c: Likewise.
13544         * soft-fp/floatuntisf.c: Likewise.
13545         * soft-fp/floatuntitf.c: Likewise.
13546         * soft-fp/fmadf4.c: Likewise.
13547         * soft-fp/fmasf4.c: Likewise.
13548         * soft-fp/fmatf4.c: Likewise.
13549         * soft-fp/gedf2.c: Likewise.
13550         * soft-fp/gesf2.c: Likewise.
13551         * soft-fp/getf2.c: Likewise.
13552         * soft-fp/ledf2.c: Likewise.
13553         * soft-fp/lesf2.c: Likewise.
13554         * soft-fp/letf2.c: Likewise.
13555         * soft-fp/muldf3.c: Likewise.
13556         * soft-fp/mulsf3.c: Likewise.
13557         * soft-fp/multf3.c: Likewise.
13558         * soft-fp/negdf2.c: Likewise.
13559         * soft-fp/negsf2.c: Likewise.
13560         * soft-fp/negtf2.c: Likewise.
13561         * soft-fp/op-1.h: Likewise.
13562         * soft-fp/op-2.h: Likewise.
13563         * soft-fp/op-4.h: Likewise.
13564         * soft-fp/op-8.h: Likewise.
13565         * soft-fp/op-common.h: Likewise.
13566         * soft-fp/quad.h: Likewise.
13567         * soft-fp/single.h: Likewise.
13568         * soft-fp/soft-fp.h: Likewise.
13569         * soft-fp/sqrtdf2.c: Likewise.
13570         * soft-fp/sqrtsf2.c: Likewise.
13571         * soft-fp/sqrttf2.c: Likewise.
13572         * soft-fp/subdf3.c: Likewise.
13573         * soft-fp/subsf3.c: Likewise.
13574         * soft-fp/subtf3.c: Likewise.
13575         * soft-fp/truncdfsf2.c: Likewise.
13576         * soft-fp/trunctfdf2.c: Likewise.
13577         * soft-fp/trunctfsf2.c: Likewise.
13578         * soft-fp/trunctfxf2.c: Likewise.
13579         * soft-fp/unorddf2.c: Likewise.
13580         * soft-fp/unordsf2.c: Likewise.
13581         * soft-fp/unordtf2.c: Likewise.
13582
13583 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
13584
13585         [BZ #15672]
13586         * misc/error.c (error_tail): Fix possible buffer overflow.
13587
13588 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
13589
13590         [BZ #13028]
13591         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
13592         address.
13593
13594 2013-10-14  P. J. McDermott  <pj@pehjota.net>
13595
13596         [BZ #832]
13597         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
13598         testing pipefail option.
13599
13600 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
13601
13602         * soft-fp/double.h: Indent preprocessor directives inside #if.
13603         * soft-fp/extended.h: Likewise.
13604         * soft-fp/op-2.h: Likewise.
13605         * soft-fp/op-4.h: Likewise.
13606         * soft-fp/op-common.h: Likewise.
13607         * soft-fp/quad.h: Likewise.
13608         * soft-fp/single.h: Likewise.
13609         * soft-fp/soft-fp.h: Likewise.
13610
13611 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
13612
13613         * iconv/iconv_prog.c: Fix typos.
13614         * stdio-common/psiginfo-data.h: Likewise.
13615
13616 2013-10-12   Reuben Thomas <rrt@sc3d.org>
13617
13618         [BZ #15764]
13619         * locale/setlocale.c: Fix typo.
13620
13621 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
13622
13623         [BZ #16036]
13624         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
13625         signaling NaN arguments.
13626         * soft-fp/unordsf2.c (__unordsf2): Likewise.
13627         * soft-fp/unordtf2.c (__unordtf2): Likewise.
13628
13629         [BZ #14910]
13630         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
13631         unordered operands.
13632         * soft-fp/gesf2.c (__gesf2): Likewise.
13633         * soft-fp/getf2.c (__getf2): Likewise.
13634         * soft-fp/ledf2.c (__ledf2): Likewise.
13635         * soft-fp/lesf2.c (__lesf2): Likewise.
13636         * soft-fp/letf2.c (__letf2): Likewise.
13637
13638         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
13639         * soft-fp/eqsf2.c (__eqsf2): Likewise.
13640         * soft-fp/eqtf2.c (__eqtf2): Likewise.
13641         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
13642         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
13643         * soft-fp/fixdfti.c (__fixdfti): Likewise.
13644         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
13645         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
13646         * soft-fp/fixsfti.c (__fixsfti): Likewise.
13647         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
13648         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
13649         * soft-fp/fixtfti.c (__fixtfti): Likewise.
13650         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
13651         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
13652         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
13653         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
13654         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
13655         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
13656         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
13657         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
13658         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
13659         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
13660         * soft-fp/floatdisf.c (__floatdisf): Likewise.
13661         * soft-fp/floatsisf.c (__floatsisf): Likewise.
13662         * soft-fp/floattidf.c (__floattidf): Likewise.
13663         * soft-fp/floattisf.c (__floattisf): Likewise.
13664         * soft-fp/floattitf.c (__floattitf): Likewise.
13665         * soft-fp/floatundidf.c (__floatundidf): Likewise.
13666         * soft-fp/floatundisf.c (__floatundisf): Likewise.
13667         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
13668         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
13669         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
13670         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
13671         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
13672         * soft-fp/gesf2.c (__gesf2): Likewise.
13673         * soft-fp/getf2.c (__getf2): Likewise.
13674         * soft-fp/ledf2.c (__ledf2): Likewise.
13675         * soft-fp/lesf2.c (__lesf2): Likewise.
13676         * soft-fp/letf2.c (__letf2): Likewise.
13677
13678         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
13679         Undefine and redefine.
13680         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
13681         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
13682         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
13683         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
13684         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13685         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
13686         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13687         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
13688         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13689         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
13690         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13691         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
13692         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13693         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
13694         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13695
13696         [BZ #16032]
13697         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
13698         without decrementing exponent if mantissa >= that for the
13699         denominator, not >.
13700         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
13701         denominator, not >.  Decrement exponent in < case instead of
13702         incrementing in >= case.
13703         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
13704         without decrementing exponent if mantissa >= that for the
13705         denominator, not >.
13706
13707         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
13708         computing saturated result for unsigned overflow.
13709
13710 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13711             Jeff Law  <law@redhat.com>
13712
13713         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
13714         (atan2Mp): Add systemtap probe marker.
13715         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
13716         (__ieee754_log): Add systemtap probe marker.
13717         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
13718         (atanMp): Add systemtap probe marker.
13719         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
13720         (tanMp): Add systemtap probe marker.
13721         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
13722         (__slowexp): Add systemtap probe marker.
13723         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
13724         (__slowpow): Add systemtap probe marker.
13725         * manual/probes.texi: Document probes.
13726
13727 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
13728
13729         [BZ #15362]
13730         * libio/fileops.c (_IO_new_file_write): Return count of bytes
13731         written.
13732         (_IO_new_file_xsputn): Don't return EOF if nothing has been
13733         written.
13734         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
13735         written to buffer but not flushed.
13736         * libio/iofwrite_u.c:  Likewise.
13737         * libio/iopadn.c:  Return bytes returned even if EOF was
13738         encountered.
13739         * libio/iowpadn.c:  Likewise.
13740         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
13741         if _IO_padn does not write the whole buffer.
13742         [!COMPILE_WPRINTF] (PAD): Likewise.
13743
13744 2013-10-10  David S. Miller  <davem@davemloft.net>
13745
13746         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
13747         directory block.
13748
13749 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13750
13751         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
13752         instead of FSF address.
13753         * soft-fp/fixdfti.c: Likewise.
13754         * soft-fp/fixsfti.c: Likewise.
13755         * soft-fp/fixtfti.c: Likewise.
13756         * soft-fp/fixunsdfti.c: Likewise.
13757         * soft-fp/fixunssfti.c: Likewise.
13758         * soft-fp/fixunstfti.c: Likewise.
13759         * soft-fp/floattidf.c: Likewise.
13760         * soft-fp/floattisf.c: Likewise.
13761         * soft-fp/floattitf.c: Likewise.
13762         * soft-fp/floatuntidf.c: Likewise.
13763         * soft-fp/floatuntisf.c: Likewise.
13764         * soft-fp/floatuntitf.c: Likewise.
13765         * soft-fp/trunctfxf2.c: Likewise.
13766
13767         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
13768         * soft-fp/fixdfti.c: Likewise.
13769         * soft-fp/fixsfti.c: Likewise.
13770         * soft-fp/fixtfti.c: Likewise.
13771         * soft-fp/fixunsdfti.c: Likewise.
13772         * soft-fp/fixunssfti.c: Likewise.
13773         * soft-fp/fixunstfti.c: Likewise.
13774         * soft-fp/floattidf.c: Likewise.
13775         * soft-fp/floattisf.c: Likewise.
13776         * soft-fp/floattitf.c: Likewise.
13777         * soft-fp/floatuntidf.c: Likewise.
13778         * soft-fp/floatuntisf.c: Likewise.
13779         * soft-fp/floatuntitf.c: Likewise.
13780         * soft-fp/trunctfxf2.c: Likewise.
13781
13782 2013-10-10  David S. Miller  <davem@davemloft.net>
13783
13784         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13785
13786 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
13787
13788         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13789         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
13790         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
13791         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
13792         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
13793         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
13794         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
13795
13796         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
13797         for NaNs before doing comparisons on argument.
13798         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
13799         Likewise.
13800
13801 2013-10-10  Will Newton  <will.newton@linaro.org>
13802
13803         * malloc/hooks.c (memalign_check): Ensure the value of bytes
13804         passed to _int_memalign does not overflow.
13805
13806 2013-10-10  Torvald Riegel  <triegel@redhat.com>
13807
13808         * scripts/bench.pl: Add include-sources directive.
13809         * benchtests/README: Update documentation.
13810
13811 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13812
13813         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
13814         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
13815         instead of FP_INIT_ROUNDMODE.
13816         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
13817         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
13818
13819         [BZ #16034]
13820         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
13821         copy class of input value.
13822         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
13823         not handle exceptions.
13824         * soft-fp/negsf2.c (__negsf2): Likewise.
13825         * soft-fp/negtf2.c (__negtf2): Likewise.
13826         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
13827
13828 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
13829
13830         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
13831         semicolon.  From Linux kernel.
13832
13833 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
13834
13835         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
13836
13837 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
13838
13839         [BZ #156]
13840         * manual/socket.texi: Added statement about buffer
13841         for gethostbyname2_r.
13842
13843 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
13844
13845         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
13846         Use .p2align directive instead, throughout.
13847         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
13848         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
13849         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
13850         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13851         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13852         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13853         * sysdeps/x86_64/strchr.S: Likewise.
13854         * sysdeps/x86_64/strrchr.S: Likewise.
13855
13856 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
13857
13858         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
13859
13860         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
13861
13862         * sysdeps/generic/math_private.h (__mpsin1): Remove
13863         declaration.
13864         (__mpcos1): Likewise.
13865         (__mpsin): New argument __range_reduce.
13866         (__mpcos): Likewise.
13867         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13868         (slow): Use __mpsin and __mpcos.
13869         (slow1): Likewise.
13870         (slow2): Likewise.
13871         (sloww): Likewise.
13872         (sloww1): Likewise.
13873         (sloww2): Likewise.
13874         (bsloww): Likewise.
13875         (bsloww1): Likewise.
13876         (bsloww2): Likewise.
13877         (cslow2): Likewise.
13878         (csloww): Likewise.
13879         (csloww1): Likewise.
13880         (csloww2): Likewise.
13881         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
13882         range_reduce.  Merge in __mpsin1.
13883         (__mpcos): Likewise.
13884         (__mpsin1): Remove.
13885         (__mpcos1): Likewise.
13886
13887 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
13888
13889         * locale/loadlocale.c (_nl_intern_locale_data): Use
13890         LOCFILE_ALIGNED_P.
13891         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
13892         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
13893         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
13894         obstack data is appropriately aligned.
13895         (obstack_int32_grow_fast): Likewise.
13896         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
13897         * locale/programs/locfile.c (add_locale_uint32): Likewise.
13898         (add_locale_uint32_array): Likewise.
13899
13900 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
13901
13902         * benchtests/Makefile: Remove ARGLIST and RET variables.
13903         ($(objpfx)bench-%.c): Pass only function name to the script.
13904         * benchtests/README: Update documentation.
13905         * benchtests/acos-inputs: Add new directives.
13906         * benchtests/acosh-inputs: Likewise.
13907         * benchtests/asin-inputs: Likewise.
13908         * benchtests/asinh-inputs: Likewise.
13909         * benchtests/atan-inputs: Likewise.
13910         * benchtests/atanh-inputs: Likewise.
13911         * benchtests/cos-inputs: Likewise.
13912         * benchtests/cosh-inputs: Likewise.
13913         * benchtests/exp-inputs: Likewise.
13914         * benchtests/log-inputs: Likewise.
13915         * benchtests/pow-inputs: Likewise.
13916         * benchtests/rint-inputs: Likewise.
13917         * benchtests/sin-inputs: Likewise.
13918         * benchtests/sinh-inputs: Likewise.
13919         * benchtests/tan-inputs: Likewise.
13920         * benchtests/tanh-inputs: Likewise.
13921         * scripts/bench.pl: Add support for new directives.
13922
13923 2013-10-07  Alan Modra  <amodra@gmail.com>
13924
13925         * README: Fix careless merge.
13926
13927 2013-10-05  Alan Modra  <amodra@gmail.com>
13928
13929         * NEWS: Mention powerpc64le support and bugs fixed.
13930         * README: Both big-endian and little-endian powerpc64 supported.
13931
13932 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13933
13934         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
13935         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
13936         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
13937         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
13938
13939 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
13940
13941         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
13942         match prototype.
13943
13944 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
13945
13946         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
13947         Move -mhard-float appending from
13948         ports/sysdeps/powerpc/powerpc32/Makefile.
13949         [$(with-fp) = yes] (ASFLAGS): Likewise.
13950         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
13951         * sysdeps/powerpc/nofpu: Move directory from
13952         ports/sysdeps/powerpc/nofpu.
13953         * sysdeps/powerpc/soft-fp: Move directory from
13954         ports/sysdeps/powerpc/soft-fp.
13955         * sysdeps/powerpc/powerpc32/405: Move directory from
13956         ports/sysdeps/powerpc/powerpc32/405.
13957         * sysdeps/powerpc/powerpc32/440: Move directory from
13958         ports/sysdeps/powerpc/powerpc32/440.
13959         * sysdeps/powerpc/powerpc32/464: Move directory from
13960         ports/sysdeps/powerpc/powerpc32/464.
13961         * sysdeps/powerpc/powerpc32/476: Move directory from
13962         ports/sysdeps/powerpc/powerpc32/476.
13963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
13964         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
13965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
13966         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
13967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
13968         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
13969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
13970         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
13971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
13972         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
13973         * README: Update for powerpc-*-linux-gnu software floating point
13974         support in libc.
13975
13976         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
13977         case to powerpc/powerpc32*.
13978         * sysdeps/unix/sysv/linux/configure: Regenerated.
13979
13980         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
13981         (_FPU_MASK_OM): Define as 0x04.
13982         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
13983         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
13984         0x00c10080.
13985         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
13986         0x0000003c.
13987         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
13988
13989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
13990         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13991         getcontext_e500.
13992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
13993         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13994         setcontext_e500.
13995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
13996         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
13997         and setcontext_e500.
13998
13999 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
14000
14001         * locale/iso-3166.def: Update iso-1366.def and related occurrences
14002
14003 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14004
14005         * manual/threads.texi (Default Thread Attributes): Fix typo.
14006
14007 2013-10-04  Will Newton  <will.newton@linaro.org>
14008
14009         * malloc/Makefile: Add tst-memalign.
14010         * malloc/tst-memalign.c: New file.
14011
14012         * malloc/tst-posix_memalign.c: Add comments.
14013         (do_test): Add comments and call free on all potentially
14014         allocated pointers. Add space after cast.
14015
14016         * malloc/tst-pvalloc.c: Add comments.
14017         (do_test): Add comments and call free on all potentially
14018         allocated pointers. Remove duplicate check for NULL pointer.
14019         Add space after cast.
14020
14021         * malloc/tst-valloc.c: Add comments.
14022         (do_test): Add comments and call free on all potentially
14023         allocated pointers. Remove duplicate check for NULL pointer.
14024         Add space after cast.
14025
14026 2013-10-04  Alan Modra  <amodra@gmail.com>
14027
14028         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
14029         Use stdint types in rather than __attribute__((mode())).
14030         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
14031
14032 2013-10-04  Alan Modra  <amodra@gmail.com>
14033
14034         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
14035         Correct handling of unaligned relocs for little-endian.
14036         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
14037
14038 2013-10-04  Alan Modra  <amodra@gmail.com>
14039
14040         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
14041         * configure: Regenerate.
14042         * nptl/shlib-versions: Powerpc*le starts at 2.18.
14043         * shlib-versions: Likewise.
14044
14045 2013-10-04  Alan Modra  <amodra@gmail.com>
14046
14047         * string/tester.c (test_memrchr): Increment reported test cycle.
14048
14049 2013-10-04  Alan Modra  <amodra@gmail.com>
14050
14051         * string/test-memcpy.c (do_one_test): When reporting errors, print
14052         string address and don't overrun end of string.
14053
14054 2013-10-04  Alan Modra  <amodra@gmail.com>
14055
14056         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
14057         insrdi.  Make better use of reg selection to speed exit slightly.
14058         Schedule entry path a little better.  Remove useless "are we done"
14059         checks on entry to main loop.  Handle wrapping around zero address.
14060         Correct main loop count.  Handle single left-over word from main
14061         loop inline rather than by using loop_small.  Remove extra word
14062         case in loop_small caused by wrong loop count.  Add little-endian
14063         support.
14064         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
14065         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
14066         cache hint.
14067         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
14068         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
14069         support.  Avoid rlwimi.
14070         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
14071
14072 2013-10-04  Alan Modra  <amodra@gmail.com>
14073
14074         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
14075         insrdi.  Formatting.
14076         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
14077         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14078         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
14079         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
14080         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14081         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
14082
14083 2013-10-04  Alan Modra  <amodra@gmail.com>
14084
14085         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
14086         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14087         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
14088         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
14089         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
14090         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
14091         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14092         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
14093         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
14094         use of regs.  Use power7 mtocrf.  Tidy function tails.
14095
14096 2013-10-04  Alan Modra  <amodra@gmail.com>
14097
14098         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
14099         Formatting.  Consistently use rXXX register defines or rN defines.
14100         Use early exit labels that avoid restoring unused non-volatile regs.
14101         Make cr field use more consistent with rWORDn compares.  Rename
14102         regs used as shift registers for unaligned loop, using rN defines
14103         for short lifetime/multiple use regs.
14104         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
14105         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
14106         addi 1,1,64 to pop stack frame.  Simplify return value code.
14107         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14108
14109 2013-10-04  Alan Modra  <amodra@gmail.com>
14110
14111         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
14112         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
14113         rather than rlwimi.
14114         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
14115         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
14116         little-endian support.  Correct typos.
14117         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
14118         rather than rlwimi.
14119         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
14120         in loop and entry code to keep "and." results.
14121         (strchr): Add little-endian support.  Comment.  Move cntlzd
14122         earlier in tail.
14123         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
14124
14125 2013-10-04  Alan Modra  <amodra@gmail.com>
14126
14127         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
14128         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
14129         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14130         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
14131
14132 2013-10-04  Alan Modra  <amodra@gmail.com>
14133
14134         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
14135         (rTMP): Define as r11.
14136         (strcmp): Add little-endian support.  Optimise tail.
14137         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
14138         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
14139         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
14140         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14141         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
14142         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14143         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14144
14145 2013-10-04  Alan Modra  <amodra@gmail.com>
14146
14147         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
14148         little-endian support.  Remove unnecessary "are we done" tests.
14149         Handle "s" wrapping around zero and extremely large "size".
14150         Correct main loop count.  Handle single left-over word from main
14151         loop inline rather than by using small_loop.  Correct comments.
14152         Delete "zero" tail, use "end_max" instead.
14153         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
14154
14155 2013-10-04  Alan Modra  <amodra@gmail.com>
14156
14157         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
14158         support.  Don't branch over align.
14159         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
14160         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
14161         support.  Rearrange tmp reg use to suit.  Comment.
14162         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
14163
14164 2013-10-04  Alan Modra  <amodra@gmail.com>
14165
14166         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
14167
14168 2013-10-04  Alan Modra  <amodra@gmail.com>
14169
14170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
14171         conditional form of branch and link when obtaining pc.
14172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
14173
14174 2013-10-04  Alan Modra  <amodra@gmail.com>
14175
14176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
14177         HIWORD/LOWORD.
14178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
14179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
14180
14181 2013-10-04  Alan Modra  <amodra@gmail.com>
14182
14183         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
14184         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
14185         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
14186         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
14187         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
14188         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
14189         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
14190         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
14191         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
14192         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
14193
14194 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
14195             Alistair Popple <alistair@ozlabs.au.ibm.com>
14196             Alan Modra <amodra@gmail.com>
14197
14198         [BZ #15723]
14199         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
14200         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
14201         _dl_hwcap access for little-endian.
14202         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
14203         destroy vmx regs when saving unaligned.
14204         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
14205         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
14206         destroy vmx regs when saving unaligned.
14207
14208 2013-10-04  Alan Modra  <amodra@gmail.com>
14209
14210         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
14211         Don't use a union to pack hi/low value.
14212
14213 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
14214
14215         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
14216         for little-endian.
14217         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
14218         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
14219         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
14220         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
14221         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
14222
14223 2013-10-04  Alan Modra  <amodra@gmail.com>
14224
14225         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
14226         constants to usual value for .cst8 section, and remove redundant
14227         high address load.
14228         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
14229         constant for 0x1p52.  Load little-endian words of double from
14230         correct stack offsets.
14231
14232 2013-10-04  Alan Modra  <amodra@gmail.com>
14233
14234         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
14235         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
14236         words of double from correct stack offsets.
14237         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
14238         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
14239         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
14240         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
14241         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
14242         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
14243         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
14244         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
14245         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
14246         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
14247         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
14248         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
14249         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14250         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14251         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14252         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
14253         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
14254
14255 2013-10-04  Alan Modra  <amodra@gmail.com>
14256
14257         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
14258         64-bit int/double union.
14259         (_FPU_SETCW): Likewise.
14260         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
14261         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
14262
14263 2013-10-04  Alan Modra  <amodra@gmail.com>
14264
14265         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
14266         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
14267
14268 2013-10-04  Alan Modra  <amodra@gmail.com>
14269
14270         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
14271         use vector int constants.
14272         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
14273
14274 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
14275
14276         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
14277         array with long long.
14278         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
14279         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
14280         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
14281         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
14282         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
14283         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
14284         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
14285         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
14286         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
14287         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
14288         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
14289         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
14290         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
14291
14292 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
14293
14294         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
14295         (__signbit): Likewise.  Correct for little-endian.
14296         (__signbitl): Call __signbit.
14297         (lrint): Correct for little-endian.
14298         (lrintf): Call lrint.
14299
14300 2013-10-04  Alan Modra  <amodra@gmail.com>
14301
14302         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
14303         union 32-bit int array member with 64-bit int array.
14304         (t515, tm256): Double rather than long double.
14305         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
14306
14307 2013-10-04  Alan Modra  <amodra@gmail.com>
14308
14309         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
14310         Delete.
14311         (IEEE854_LONG_DOUBLE_BIAS): Delete.
14312         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
14313         version of math_ldbl.h.
14314
14315 2013-10-04  Alan Modra  <amodra@gmail.com>
14316
14317         [BZ #15734], [BZ #15735]
14318         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
14319         all uses of ieee875 long double macros and unions.  Simplify test
14320         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
14321         ldbl_extract_mantissa value for ix,iy exponents.  Properly
14322         normalize after ldbl_extract_mantissa, and don't add hidden bit
14323         already handled.  Don't treat low word of ieee854 mantissa like
14324         low word of IBM long double and mask off bit when testing for
14325         zero.
14326         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
14327         all uses of ieee875 long double macros and unions.  Simplify tests
14328         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
14329         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
14330         two1022, instead use their values.  Recognise that tests for large
14331         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
14332         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
14333         Rewrite all uses of ieee875 long double macros and unions.  Simplify
14334         test for 0.0L and nan.  Correct negation.
14335         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
14336         ieee875 long double macros and unions.  Correct output for large
14337         magnitude x.  Correct absolute value calculation.
14338         (__erfcl): Likewise.
14339         * math/libm-test.inc: Add tests for errors discovered in IBM long
14340         double versions of fmodl, remainderl, erfl and erfcl.
14341
14342 2013-10-04  Alan Modra  <amodra@gmail.com>
14343
14344         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
14345         all uses of ieee854 long double macros and unions.  Simplify tests
14346         for long doubles that are fully specified by the high double.
14347         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
14348         Likewise.
14349         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
14350         Remove dead code too.
14351         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14352         (__ieee754_ynl): Likewise.
14353         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
14354         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
14355         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14356         Remove dead code too.
14357         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
14358         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
14359         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
14360         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
14361         Simplify.
14362         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
14363         Simplify.
14364         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
14365         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
14366         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
14367         Comment on variable precision.
14368         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
14369         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
14370         Likewise.
14371         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
14372         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
14373         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
14374         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
14375         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
14376
14377 2013-10-04  Alan Modra  <amodra@gmail.com>
14378
14379         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
14380         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
14381         all uses of ieee854 long double macros and unions.
14382         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14383         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14384         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
14385         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
14386         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
14387         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
14388         Likewise.
14389         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
14390         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
14391         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
14392         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
14393         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
14394         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
14395         Simplify sign and nan test too.
14396         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
14397         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
14398         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
14399         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
14400         Likewise.
14401         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
14402         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
14403         Likewise.
14404         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14405         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
14406         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
14407         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
14408         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
14409         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
14410
14411 2013-10-04  Alan Modra  <amodra@gmail.com>
14412
14413         * stdio-common/printf_size.c (__printf_size): Don't use
14414         union ieee854_long_double in fpnum union.
14415         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
14416         signbit macro to retrieve sign from long double.
14417         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
14418         retrieve sign from long double.
14419         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
14420         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
14421         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
14422         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
14423         * math/test-misc.c (main): Don't use union ieee854_long_double.
14424
14425 2013-10-04  Alan Modra  <amodra@gmail.com>
14426
14427         [BZ #15680]
14428         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
14429         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
14430         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
14431         calculation.  Remove unnecessary test for denormal exponent.
14432         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
14433         Correct handling of denormals.  Avoid undefined shift behaviour.
14434         Correct normalisation of low mantissa when low double is denormal.
14435         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
14436         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
14437         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
14438         Correct normalisation of low mantissa.  Test for overflow of high
14439         mantissa and normalise.
14440         (ldbl_nearbyint): Use more readable constant for two52.
14441         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
14442         (__mpn_construct_long_double): Fix test for overflow of high
14443         mantissa and correct normalisation.  Avoid undefined shift.
14444
14445 2013-10-04  Alan Modra  <amodra@gmail.com>
14446
14447         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14448         (union ibm_extended_long_double): Define as an array of ieee754_double.
14449         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
14450         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
14451         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
14452         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
14453         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14454         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
14455         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
14456         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
14457         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14458         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
14459         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
14460
14461 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
14462
14463         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
14464         page size instead of calling getpagesize.
14465
14466         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
14467         (LOCFILE_ALIGN_MASK): Likewise.
14468         (LOCFILE_ALIGN_UP): Likewise.
14469         (LOCFILE_ALIGNED_P): Likewise.
14470         * locale/programs/ld-collate.c (collate_output): Use the new
14471         macros instead of __alignof__ (int32_t).
14472         * locale/weight.h (findidx): Likewise.
14473
14474 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
14475
14476         [BZ #431]
14477         * manual/string.texi: Fix strncat and wcsncat.
14478
14479 2013-10-03  Brooks Moses  <bmoses@google.com>
14480
14481         [BZ #15915]
14482         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
14483         * Makerules: ...here, and adjust associated comments.
14484
14485 2013-10-02  Will Newton  <will.newton@linaro.org>
14486
14487         * malloc/Makefile: Add tst-pvalloc.
14488         * malloc/tst-pvalloc.c: New file.
14489
14490 2013-10-02  Will Newton  <will.newton@linaro.org>
14491
14492         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
14493         improve test coverage.
14494
14495 2013-10-02  Will Newton  <will.newton@linaro.org>
14496
14497         * malloc/Makefile: Add tst-posix_memalign.
14498         * malloc/tst-posix_memalign.c: New file.
14499
14500 2013-10-01  Eric Blake  <eblake@redhat.com>
14501
14502         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
14503         Use __THROWNL rather than __THROW on static functions.
14504
14505 2013-09-30  Petr Machata  <pmachata@redhat.com>
14506
14507         * elf/elf.h (R_AARCH64_ABS16): New macro.
14508         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
14509         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
14510         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
14511         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
14512         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
14513         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
14514         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
14515         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
14516         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
14517         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
14518         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
14519         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
14520         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
14521         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
14522         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
14523         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
14524         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
14525         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
14526         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
14527         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
14528         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
14529         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
14530         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
14531         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
14532         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
14533         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
14534         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
14535         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
14536         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
14537         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
14538         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
14539         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
14540         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
14541         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
14542         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
14543         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
14544         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
14545         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
14546         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
14547         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
14548         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
14549         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
14550         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
14551         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
14552         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
14553         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
14554         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
14555         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
14556         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
14557         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
14558         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
14559         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
14560         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
14561         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
14562         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
14563         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
14564         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
14565         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
14566         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
14567         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
14568         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
14569         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
14570         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
14571         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
14572         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
14573         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
14574         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
14575         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
14576         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
14577         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
14578         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
14579         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
14580         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
14581         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
14582         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
14583         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
14584         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
14585         (R_AARCH64_TLSDESC_LDR): Likewise.
14586         (R_AARCH64_TLSDESC_ADD): Likewise.
14587         (R_AARCH64_TLSDESC_CALL): Likewise.
14588
14589 2013-09-30  Andreas Schwab  <schwab@suse.de>
14590
14591         [BZ #15048]
14592         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
14593         the nss database lookup.
14594         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14595         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14596
14597 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
14598
14599         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
14600
14601 2013-09-28  P. J. McDermott  <pj@pehjota.net>
14602
14603         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
14604         ${Bash-specific parameter/pattern/string} parameter expansion.
14605         * sysdeps/unix/make-syscalls.sh: Likewise.
14606
14607 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14608
14609         * sysdeps/sh/stackguard-macros.h: New file.
14610
14611 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
14612
14613         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
14614         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
14615         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
14616         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
14617         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14618         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
14619
14620 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14621
14622         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
14623         Fix thread ID register.
14624
14625 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
14626
14627         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
14628         [POSIX || UNIX98]: Require rather than permitting all symbols from
14629         <time.h>.
14630         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
14631         element of struct sched_param.
14632         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
14633         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
14634         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
14635         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
14636         constant.
14637
14638 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
14639
14640         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
14641         argument calculation.
14642
14643 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14644
14645         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
14646         Expect macro.
14647         [POSIX] (pthread_attr_t): Do not require type.
14648         [POSIX] (pthread_cond_t): Likewise.
14649         [POSIX] (pthread_condattr_t): Likewise.
14650         [POSIX] (pthread_key_t): Likewise.
14651         [POSIX] (pthread_mutex_t): Likewise.
14652         [POSIX] (pthread_mutexattr_t): Likewise.
14653         [POSIX] (pthread_once_t): Likewise.
14654         [POSIX] (pthread_t): Likewise.
14655         [POSIX-based standards] (pthread_atfork): Expect function.
14656
14657 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14658             Richard Sandiford  <richard@codesourcery.com>
14659
14660         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
14661         (swap_endianness_p): New extern variable.
14662         (set_big_endian): New inline function.
14663         (maybe_swap_uint32): Likewise.
14664         (maybe_swap_uint32_array): Likewise.
14665         (maybe_swap_uint32_obstack): Likewise.
14666         * locale/programs/locfile.c: Include <stdbool.h>.
14667         (swap_endianness_p): New variable.
14668         (add_locale_uint32): Call maybe_swap_uint32.
14669         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
14670         (write_locale_data): Call maybe_swap_uint32_array.
14671         * locale/programs/ld-collate.c (obstack_int32_grow): Call
14672         maybe_swap_uint32.
14673         (obstack_int32_grow_fast): Likewise.
14674         (output_weightwc): Call maybe_swap_uint32_obstack.
14675         (collate_output): Likewise.
14676         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
14677         (OPT_LITTLE_ENDIAN): Likewise.
14678         (options): Add --little-endian and --big-endian options.
14679         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
14680         * locale/programs/locarchive.c: Include "locfile.h".
14681         (GET): New macro.
14682         (SET): Likewise.
14683         (INC): Likewise.
14684         (create_archive): Use the new macros to access fields of
14685         structures directly mapped from or written to locale archives.
14686         (oldlocrecentcmp): Likewise.
14687         (enlarge_archive): Likewise.
14688         (insert_name): Likewise.
14689         (add_alias): Likewise.
14690         (add_locale): Likewise.
14691         (delete_locales_from_archive): Likewise.
14692         (show_archive_content): Likewise.
14693         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
14694         locale data.
14695
14696 2013-09-24  Roland McGrath  <roland@hack.frob.com>
14697
14698         * manual/freemanuals.texi: Updated from (newly) canonical copy at
14699         http://www.gnu.org/doc/freemanuals.texi.
14700         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
14701
14702 2013-09-24  Will Newton  <will.newton@linaro.org>
14703
14704         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
14705         macro.
14706
14707 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
14708
14709         * locale/hashval.h (compute_hashval): Interpret bytes of key as
14710         unsigned char.
14711
14712 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
14713
14714         * manual/threads.texi (POSIX Threads): Fix a typo.
14715
14716 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14717
14718         [BZ #14547]
14719         * string/tst-strcoll-overflow.c: New test case.
14720         * string/Makefile (xtests): Add tst-strcoll-overflow.
14721         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
14722         cache if string sizes may cause integer overflow.
14723
14724         [BZ #14547]
14725         * string/strcoll_l.c (coll_seq): New members rule, idx,
14726         save_idx and back_us.
14727         (get_next_seq_nocache): New function.
14728         (do_compare_nocache): New function.
14729         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
14730         when malloc fails.
14731
14732 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
14733
14734         [BZ #15754]
14735         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
14736         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
14737         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
14738
14739         [BZ #15754]
14740         * elf/Makefile (tests): Add tst-ptrguard1.
14741         (tests-static): Add tst-ptrguard1-static.
14742         (tst-ptrguard1-ARGS): Define.
14743         (tst-ptrguard1-static-ARGS): Define.
14744         * elf/tst-ptrguard1.c: New file.
14745         * elf/tst-ptrguard1-static.c: New file.
14746         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
14747         * sysdeps/i386/stackguard-macros.h: Likewise.
14748         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14749         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14750         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14751         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14752         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14753         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14754
14755 2013-09-23  Hector Marco  <hecmargi@upv.es>
14756             Ismael Ripoll  <iripoll@disca.upv.es>
14757             Carlos O'Donell  <carlos@redhat.com>
14758
14759         [BZ #15754]
14760         * sysdeps/generic/stackguard-macros.h: Define
14761         __pointer_chk_guard_local and POINTER_CHK_GUARD.
14762         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
14763         Define __pointer_chk_guard_local.
14764         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
14765         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
14766
14767 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
14768
14769         [BZ #15859]
14770         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
14771
14772 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
14773
14774         * include/string.h (__ffs): Declare as hidden.
14775         * string/ffs.c (__ffs): Define as hidden.
14776         * sysdeps/i386/ffs.c (__ffs): Likewise.
14777         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14778         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
14779         * sysdeps/s390/ffs.c (__ffs): Likewise.
14780         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
14781
14782 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
14783
14784         * NEWS: Mention malloc probes.
14785
14786         * malloc/arena.c (new_heap): New memory_heap_new probe.
14787         (grow_heap): New memory_heap_more probe.
14788         (shrink_heap): New memory_heap_less probe.
14789         (heap_trim): New memory_heap_free probe.
14790         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
14791         (systrim): New memory_sbrk_less probe.
14792         * manual/probes.texi: Document them.
14793
14794         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
14795         * manual/probes.texi: Document it.
14796
14797         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
14798         (__libc_realloc): Add memory_realloc_retry probe.
14799         (__libc_memalign): Add memory_memalign_retry probe.
14800         (__libc_valloc): Add memory_valloc_retry probe.
14801         (__libc_pvalloc): Add memory_pvalloc_retry probe.
14802         (__libc_calloc): Add memory_calloc_retry probe.
14803         * manual/probes.texi: Document them.
14804
14805         * malloc/arena.c (get_free_list): Add probe
14806         memory_arena_reuse_free_list.
14807         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
14808         and memory_arena_reuse.
14809         (arena_get2) [!PER_THREAD]: Likewise.
14810         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
14811         memory_arena_reuse_realloc.
14812         * manual/probes.texi: Document them.
14813
14814         * malloc/malloc.c (__libc_free): Add
14815         memory_mallopt_free_dyn_thresholds probe.
14816         (__libc_mallopt): Add multiple memory_mallopt probes.
14817         * manual/probes.texi: Document them.
14818
14819         * malloc/malloc.c: Include stap-probe.h.
14820         (__libc_mallopt): Add memory_mallopt probe.
14821         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
14822         * manual/probes.texi: New.
14823         * manual/Makefile (chapters): Add probes.
14824         * manual/threads.texi: Set next node.
14825
14826 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
14827
14828         [BZ #15963, #13985]
14829         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
14830         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
14831         Add `Chinese' to `nan' entry name.
14832
14833 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14834
14835         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
14836         (POLYNOMIAL): Likewise.
14837         (TAYLOR_SINCOS): Likewise.
14838         (TAYLOR_SLOW): Likewise.
14839         (__sin): Use TAYLOR_SINCOS.
14840         (__cos): Likewise.
14841         (slow): Use TAYLOR_SLOW.
14842         (sloww): Likewise.
14843         (bsloww): Likewise.
14844         (csloww): Likewise.
14845
14846 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14847
14848         * stdlib/strtod_l.c: Fix buffer overrun.
14849
14850 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14851
14852         * benchtests/Makefile (bench): Add sincos.
14853         * benchtests/bench-sincos.c: New file.
14854
14855         * math/libm-test.inc (cos_test_data): New test inputs.
14856         (sin_test_data): Likewise.
14857
14858         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
14859         macro.
14860         (__sin): Use it.
14861         (__cos): Likewise.
14862         (slow1): Likewise.
14863         (slow2): Likewise.
14864         (sloww1): Likewise.
14865         (sloww2): Likewise.
14866         (bsloww1): Likewise.
14867         (bsloww2): Likewise.
14868         (cslow2): Likewise.
14869         (csloww1): Likewise.
14870         (csloww2): Likewise.
14871
14872         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
14873         function.
14874         (__sin): Use it.
14875         (__cos): Likewise.
14876
14877         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
14878         gotos.
14879         (__cos): Likewise.
14880
14881 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
14882
14883         * config.h.in (HAVE_MIPS_NAN2008): New macro.
14884         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
14885         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
14886         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
14887         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
14888         * elf/cache.c (print_entry): Handle the new cache flags.
14889
14890 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14891             Aldy Hernandez  <aldyh@redhat.com>
14892
14893         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
14894         Change condition to [_SOFT_FLOAT].
14895         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
14896         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
14897         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
14898         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
14899         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
14900         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
14901         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
14902         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
14903         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
14904         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
14905         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
14906         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
14907         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
14908         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
14909         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
14910         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
14911         declaration.
14912
14913 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14914
14915         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
14916         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14917         (__longjmp): Use LOAD_GP to load saved GPRs.
14918         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
14919         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14920         (__sigsetjmp): Use SAVE_GP to save GPRs.
14921
14922         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
14923         Do not append -msoft-float.
14924         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
14925
14926 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14927
14928         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
14929
14930 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
14931
14932         [BZ #15966]
14933         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
14934         (_FPU_GETCW): Use initial "__" on variable and field names but not
14935         on macro parameter name.
14936         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
14937         parentheses around reference to macro parameter.
14938
14939 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
14940
14941         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
14942         prototype.
14943         (ctype_startup): Use uint32_t in cast and sizeof for
14944         ctype->charnames.
14945
14946 2013-09-11  Jia Liu  <proljc@gmail.com>
14947
14948         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
14949         __daddr_t_defined.
14950         [__FreeBSD__]: Likewise.
14951
14952 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
14953
14954         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14955         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
14956         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
14957         (strchr): Remove __strchr_sse42 ifunc selection.
14958         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
14959         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
14960
14961 2013-09-11  Will Newton  <will.newton@linaro.org>
14962
14963         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
14964         parameter to RES. Remove hardcoded 1000 value.
14965         * benchtests/bench-skeleton.c (main): Pass RES parameter
14966         to TIMING_INIT and multiply result by 1000.
14967
14968 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14969
14970         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14971
14972 2013-09-11  Andreas Schwab  <schwab@suse.de>
14973
14974         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
14975         if not defined.
14976         (O_TMPFILE) [__USE_GNU]: Define.
14977         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
14978         Define.
14979
14980 2013-09-11  Will Newton  <will.newton@linaro.org>
14981
14982         [BZ #15857]
14983         * malloc/malloc.c (__libc_memalign): Check the value of bytes
14984         does not overflow.
14985
14986 2013-09-11  Will Newton  <will.newton@linaro.org>
14987
14988         [BZ #15856]
14989         * malloc/malloc.c (__libc_valloc): Check the value of bytes
14990         does not overflow.
14991
14992 2013-09-11  Will Newton  <will.newton@linaro.org>
14993
14994         [BZ #15855]
14995         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
14996         does not overflow.
14997
14998 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
14999
15000         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
15001         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15002         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15003         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15004         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15005
15006 2013-09-10  Allan McRae  <allan@archlinux.org>
15007
15008         [BZ #15748]
15009         * manual/arith.texi (Parsing of Floats): Clarify
15010         cross-reference.
15011
15012         [BZ #15849]
15013         * manual/install.texi (Running make install): Mention
15014         --enable-pt-chown.
15015         * INSTALL: Regenerated.
15016
15017 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
15018
15019         * csu/init-first.c (_init): Remove the !SHARED condition around
15020         FPU control word initialization.
15021         * elf/dl-support.c (_dl_fpu_control): New variable.
15022         (_dl_aux_init) <AT_FPUCW>: Initialize it.
15023         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
15024         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
15025         * math/test-fpucw-static.c: New file.
15026         * math/test-fpucw-ieee.c: New file.
15027         * math/test-fpucw-ieee-static.c: New file.
15028         * math/Makefile (tests): Add `test-fpucw-ieee' and
15029         `$(tests-static)'.
15030         (tests-static): New variable.
15031         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
15032         dependency to...
15033         [($(build-shared),yes)]
15034         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
15035         ... this.
15036         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
15037         New dependency.
15038
15039 2013-09-09  Allan McRae  <allan@archlinux.org>
15040
15041         [BZ #15939]
15042         * manual/string.texi (Collation Functions): Fix typo in
15043         strcoll example.
15044         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
15045
15046         [BZ #15893]
15047         * stdlib/isomac.c (get_null_defines): Fix memory leak.
15048
15049         [BZ #15892]
15050         * libio/memstream.c (open_memstream): Fix memory leak.
15051         * libio/wmemstream.c (open_wmemstream): Likewise.
15052
15053         [BZ #15895]
15054         * nscd/netgroupcache.c: Fix nesting of ifdefs.
15055
15056 2013-09-09  Will Newton  <will.newton@linaro.org>
15057
15058         * malloc/Makefile: Add tst-realloc to tests.
15059         * malloc/tst-realloc.c: New file.
15060
15061 2013-09-09  Allan McRae  <allan@archlinux.org>
15062
15063         [BZ #15844]
15064         * COPYING: Update from GNU website to fix FSF address.
15065         * COPYING.LIB: Likewise.
15066
15067 2013-09-06  David S. Miller  <davem@davemloft.net>
15068
15069         * po/zh_TW.po: Update Chinese (traditional) translation from
15070         translation project.
15071
15072 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
15073             Joseph Myers  <joseph@codesourcery.com>
15074
15075         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
15076         "localeinfo.h".
15077         (obstack_chunk_alloc): New macro.
15078         (obstack_chunk_free): Likewise.
15079         (record_offset): New function.
15080         (init_locale_data): Likewise.
15081         (align_locale_data): Likewise.
15082         (add_locale_empty): Likewise.
15083         (add_locale_raw_data): Likewise.
15084         (add_locale_raw_obstack): Likewise.
15085         (add_locale_string): Likewise.
15086         (add_locale_wstring): Likewise.
15087         (add_locale_uint32): Likewise.
15088         (add_locale_uint32_array): Likewise.
15089         (add_locale_char): Likewise.
15090         (start_locale_structure): Likewise.
15091         (end_locale_structure): Likewise.
15092         (start_locale_prelude): Likewise.
15093         (end_locale_prelude): Likewise.
15094         (write_locale_data): Take locale_file structure rather than an
15095         iovec.
15096         * locale/programs/locfile.h: Include "obstack.h".
15097         (struct locale_file): Change to store locale file contents instead
15098         of header.
15099         (init_locale_data): New prototype.
15100         (align_locale_data): Likewise.
15101         (add_locale_empty): Likewise.
15102         (add_locale_raw_data): Likewise.
15103         (add_locale_raw_obstack): Likewise.
15104         (add_locale_string): Likewise.
15105         (add_locale_wstring): Likewise.
15106         (add_locale_uint32): Likewise.
15107         (add_locale_uint32_array): Likewise.
15108         (add_locale_char): Likewise.
15109         (start_locale_structure): Likewise.
15110         (end_locale_structure): Likewise.
15111         (start_locale_prelude): Likewise.
15112         (end_locale_prelude): Likewise.
15113         (write_locale_data): Update prototype.
15114         * locale/programs/3level.h (struct TABLE): Remove result field.
15115         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
15116         Use new locale_file interface.
15117         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
15118         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
15119         * locale/programs/ld-address.c (address_output): Use new
15120         locale_file interface.
15121         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
15122         NO_ADD_LOCALE.
15123         (collate_finish): Don't call collseq_table_finalize.
15124         (collate_output): Use new locale_file interface.
15125         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
15126         in file.
15127         (NO_FINALIZE): Change to NO_ADD_LOCALE.
15128         (TABLE): Move defines earlier in file.
15129         (ELEMENT): Likewise.
15130         (DEFAULT): Likewise.
15131         (wctrans_table_add): Move macro and inline function earlier in
15132         file.
15133         (struct wctype_table): Move type earlier in file.
15134         (add_locale_wctype_table): New static prototype.
15135         (struct locale_ctype_t): Use logical types instead of struct iovec
15136         pointers for members.
15137         (ctype_output): Use new locale_file interface.
15138         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
15139         new locale_file interface.
15140         (allocate_arrays): Update for use of new locale_file interface.
15141         * locale/programs/ld-identification.c (identification_output): Use
15142         new locale_file interface.
15143         * locale/programs/ld-measurement.c (measurement_output): Likewise.
15144         * locale/programs/ld-messages.c (messages_output): Likewise.
15145         * locale/programs/ld-monetary.c (monetary_output): Likewise.
15146         * locale/programs/ld-name.c (name_output): Likewise.
15147         * locale/programs/ld-numeric.c (numeric_output): Likewise.
15148         * locale/programs/ld-paper.c (paper_output): Likewise.
15149         * locale/programs/ld-telephone.c (telephone_output): Likewise.
15150         * locale/programs/ld-time.c (time_output): Likewise.
15151
15152 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15153
15154         * benchtests/Makefile: Add memrchr benchmark.
15155         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
15156         benchmark as memrchr.
15157         * benchtests/bench-memrchr-ifunc.c: New file.
15158         * benchtests/bench-memrchr.c: New file.
15159
15160 2013-09-06   Will Newton  <will.newton@linaro.org>
15161
15162         * benchtests/Makefile (string-bench): Add memcpy.
15163
15164 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
15165             Cong Wang  <amwang@redhat.com>
15166
15167         [BZ #15850]
15168         * sysdeps/unix/sysv/linux/bits/in.h
15169         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
15170         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
15171         before __USE_KERNEL_IPV6_DEFS uses.
15172         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
15173         IPPROTO_BEETPH.
15174         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
15175         sockaddr_in6, or ipv6_mreq.
15176
15177 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15178
15179         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
15180         memory access for final bytes in some large inputs.
15181         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
15182
15183 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15184
15185         * string/test-memrchr.c: New file.
15186         * string/test-memrchr-ifunc.c: New file.
15187         * string/Makefile: Add new memrchr testcase.
15188
15189 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
15190
15191         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
15192         fanotify_init returns EPERM.
15193
15194 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
15195
15196         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
15197         errors.
15198         (top level): Treat second token from macro or constant entries for
15199         allowed headers as allowed.
15200         * include/complex.h: Condition internal declarations on
15201         [!_ISOMAC].
15202         * include/fenv.h: Condition include of <stdbool.h> and internal
15203         declarations on [!_ISOMAC].
15204
15205 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
15206
15207         [BZ #15923]
15208         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
15209
15210 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
15211
15212         * configure.in (--enable-versioning): Remove configure option.
15213         (libc_cv_asm_symver_directive): Remove configure test.
15214         (libc_cv_ld_version_script_option): Likewise.
15215         (VERSIONING): Remove variable and AC_SUBST.
15216         (DO_VERSIONING): Remove AC_DEFINE.
15217         * configure: Regenerated.
15218         * config.h.in (DO_VERSIONING): Remove macro.
15219         * Makerules [$(versioning) = yes]: Change conditionals to
15220         [$(build-shared) = yes].
15221         * config.make.in (versioning): Remove variable.
15222         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
15223         [$(build-shared) = yes].
15224         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
15225         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
15226         * elf/Makefile [$(versioning) = yes]: Change conditionals to
15227         [$(build-shared) = yes].
15228         * extra-lib.mk [$(versioning) = yes]: Likewise.
15229         * hurd/Makefile [$(versioning) = yes]: Likewise.
15230         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
15231         [SHARED].
15232         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
15233         [SHARED].
15234         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
15235         [SHARED && !NO_HIDDEN].
15236         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
15237         [SHARED].
15238         [SHARED && DO_VERSIONING]: Likewise..
15239         * libio/Makefile [$(versioning) = yes]: Change conditionals to
15240         [$(build-shared) = yes].
15241         * manual/install.texi (--disable-versioning): Remove
15242         documentation.
15243         * INSTALL: Regenerated.
15244         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
15245         to [SHARED].
15246         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
15247         [$(build-shared) = yes].
15248         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
15249         * sysdeps/i386/i686/multiarch/strstr-c.c
15250         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
15251         [SHARED && !NO_HIDDEN].
15252         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
15253         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
15254         * sysdeps/powerpc/powerpc32/dl-machine.c
15255         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
15256         * sysdeps/powerpc/powerpc32/sysdep.h
15257         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
15258         to [SHARED && PIC && !NO_HIDDEN].
15259         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
15260         conditional to [SHARED].
15261
15262 2013-09-04   Will Newton  <will.newton@linaro.org>
15263
15264         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
15265         * benchtests/bench-string.h: Include bench-timing.h instead
15266         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
15267         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
15268         call to HP_TIMING_DIFF_INIT.
15269         * benchtests/bench-memccpy.c: Use bench-timing.h macros
15270         instead of hp-timing.h macros.
15271         * benchtests/bench-memchr.c: Likewise.
15272         * benchtests/bench-memcmp.c: Likewise.
15273         * benchtests/bench-memcpy.c: Likewise.
15274         * benchtests/bench-memmem.c: Likewise.
15275         * benchtests/bench-memmove.c: Likewise.
15276         * benchtests/bench-memset.c: Likewise.
15277         * benchtests/bench-rawmemchr.c: Likewise.
15278         * benchtests/bench-strcasecmp.c: Likewise.
15279         * benchtests/bench-strcasestr.c: Likewise.
15280         * benchtests/bench-strcat.c: Likewise.
15281         * benchtests/bench-strchr.c: Likewise.
15282         * benchtests/bench-strcmp.c: Likewise.
15283         * benchtests/bench-strcpy.c: Likewise.
15284         * benchtests/bench-strcpy_chk.c: Likewise.
15285         * benchtests/bench-strlen.c: Likewise.
15286         * benchtests/bench-strncasecmp.c: Likewise.
15287         * benchtests/bench-strncat.c: Likewise.
15288         * benchtests/bench-strncmp.c: Likewise.
15289         * benchtests/bench-strncpy.c: Likewise.
15290         * benchtests/bench-strnlen.c: Likewise.
15291         * benchtests/bench-strpbrk.c: Likewise.
15292         * benchtests/bench-strrchr.c: Likewise.
15293         * benchtests/bench-strspn.c: Likewise.
15294         * benchtests/bench-strstr.c: Likewise.
15295
15296 2013-09-04  Will Newton  <will.newton@linaro.org>
15297
15298         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
15299
15300 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
15301
15302         [BZ #15427]
15303         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
15304         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
15305         * math/libm-test.inc (lgamma_test_data): Add more tests.
15306         * sysdeps/i386/fpu/libm-test-ulps: Update.
15307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15308
15309 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
15310
15311         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
15312         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
15313         Add ifunc.
15314         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
15315         Add strcmp-sse2-unaligned
15316         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
15317
15318 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
15319
15320         * Versions.def (libc): Add GLIBC_2.19.
15321
15322 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
15323
15324         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
15325         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
15326
15327 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
15328
15329         [BZ #14155]
15330         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
15331         intermediate calculations in recurrence.
15332         (__ieee754_ynf): Likewise.
15333         * math/libm-test.inc (jn_test_data): Do not allow spurious
15334         underflow exception.  Add more tests.
15335         (yn_test_data): Add more tests.
15336         * sysdeps/i386/fpu/libm-test-ulps: Update.
15337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15338
15339 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
15340
15341         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
15342
15343 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
15344
15345         * csu/init-first.c: Fix then/than typos.
15346         * locale/programs/ld-collate.c: Likewise.
15347         * locale/programs/linereader.h: Likewise.
15348         * manual/charset.texi: Likewise.
15349         * manual/filesys.texi: Likewise.
15350         * manual/stdio.texi: Likewise.
15351         * manual/string.texi: Likewise.
15352         * stdlib/fmtmsg.c: Likewise.
15353         * sysdeps/i386/stpncpy.S: Likewise.
15354         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
15355         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
15356         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
15357         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
15358
15359 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
15360
15361         * elf/dl-open.c: Fix typos.
15362         * iconvdata/gbbig5.c: Likewise.
15363         * iconvdata/iso-2022-jp.c: Likewise.
15364         * iconv/gconv_int.h: Likewise.
15365         * iconv/loop.c: Likewise.
15366         * nis/rpcsvc/nis.h: Likewise.
15367         * resolv/ns_name.c: Likewise.
15368         * stdio-common/vfscanf.c: Likewise.
15369         * streams/stropts.h: Likewise.
15370         * sunrpc/rpc_thread.c: Likewise.
15371         * sysdeps/i386/strpbrk.S: Likewise.
15372         * sysdeps/ieee754/k_standard.c: Likewise.
15373         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15374         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15375         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
15376         * sysdeps/mach/hurd/profil.c: Likewise.
15377         * sysdeps/s390/dl-procinfo.h: Likewise.
15378         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
15379         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
15380         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
15381         * sysdeps/x86_64/dl-trampoline.S: Likewise.
15382         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15383
15384 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
15385
15386         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
15387         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
15388
15389 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
15390
15391         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
15392         aix specific files.
15393         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
15394         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
15395         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
15396         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
15397         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
15398         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
15399         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
15400         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
15401
15402 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
15403             Roland McGrath  <roland@hack.frob.com>
15404
15405         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
15406         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15407
15408 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15409
15410         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
15411         __executable_start symbol instead of _start.
15412
15413 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
15414
15415         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
15416         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
15417         Move macros to...
15418         * sysdeps/gnu/ldsodefs.h: ... this new file.
15419
15420         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
15421         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
15422         instead of ELFOSABI_LINUX.
15423
15424         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
15425         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
15426         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
15427         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
15428         Likewise.
15429         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
15430         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
15431         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
15432         Likewise.
15433         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
15434         (ibm_extended_long_double): Add ieee_nan member.
15435         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
15436         (do_test): New function.
15437
15438         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
15439         TEST_TRUNC.
15440         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
15441         functions, renamed from truncdfsf_test, trunctfsf_test,
15442         trunctfdf_test.
15443         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
15444         functions.
15445         (do_test): Run all these.
15446
15447 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
15448
15449         * argp/argp-help.c: Fix typos.
15450         * argp/argp-parse.c: Likewise.
15451         * debug/backtracesyms.c: Likewise.
15452         * elf/elf.h: Likewise.
15453         * malloc/malloc.c: Likewise.
15454         * nis/nis_print.c: Likewise.
15455         * resolv/res_comp.c: Likewise.
15456         * stdlib/stdlib.h: Likewise.
15457         * sunrpc/clnt_tcp.c: Likewise.
15458         * sunrpc/clnt_udp.c: Likewise.
15459         * sunrpc/clnt_unix.c: Likewise.
15460         * sysdeps/unix/bsd/ptsname.c: Likewise.
15461         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
15462         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
15463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
15464         Likewise.
15465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
15466         Likewise.
15467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
15468         Likewise.
15469         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
15470
15471 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15472
15473         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
15474         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
15475
15476 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
15477
15478         [BZ #15897]
15479         * dlfcn/Makefile (tests): Add bug-dl-leaf.
15480         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
15481         ($(objpfx)bug-dl-leaf): New rule.
15482         ($(objpfx)bug-dl-leaf.so): Likewise.
15483         ($(objpfx)bug-dl-leaf.out): Likewise.
15484         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
15485         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
15486         * dlfcn/bug-dl-leaf.c: New test.
15487         * dlfcn/bug-dl-leaf-lib.c: Likewise.
15488         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
15489         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
15490         (dlclose): Likewise.
15491         (dlmopen): Likewise.
15492
15493 2013-08-27  Roland McGrath  <roland@hack.frob.com>
15494
15495         * include/netdb.h [!_ISOMAC]:
15496         Don't include <tls.h>.
15497         (h_errno, __libc_h_errno): Move declaration and macros out of
15498         [_LIBC_REENTRANT].
15499
15500         * include/resolv.h [_RESOLV_H_]:
15501         Don't include <tls.h>.
15502         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
15503         * resolv/res_libc.c: Don't include <tls.h>.
15504         (_res): Use __attribute__ ((nocommon)) in place of
15505         __attribute__ ((section (".bss"))).
15506
15507         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
15508         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
15509
15510         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
15511
15512         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
15513         only under [SIOCGIFCONF && SIOCGIFNETMASK].
15514
15515         * resolv/res_mkquery.c: Include <sys/time.h>.
15516
15517         * inet/ifreq.c: Moved to ...
15518         * sysdeps/unix/ifreq.c: ... here.
15519         * inet/ifreq.c: New file, true stub version.
15520
15521         * socket/sa_len.c: New file.
15522         * socket/Makefile (aux): Add it.
15523         * sysdeps/unix/sysv/linux/Makefile
15524         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
15525         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
15526         and #include <socket/sa_len.c>.
15527         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
15528         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
15529
15530         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
15531         * bits/socket.h: ... here.
15532
15533         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
15534         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
15535         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
15536
15537 2013-08-27  Andreas Schwab  <schwab@suse.de>
15538
15539         [BZ #15736]
15540         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
15541         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
15542         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
15543         * string/test-strcasecmp.c (test_main): Run tests in several
15544         locales.
15545         * string/test-strncasecmp.c (test_main): Likewise.
15546
15547         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
15548         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
15549         to __strcasecmp_nonascii and __strncasecmp_nonascii.
15550         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
15551         (__strncasecmp_ssse3) [PIC]: Likewise.
15552
15553 2013-08-26  Roland McGrath  <roland@hack.frob.com>
15554
15555         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
15556
15557         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
15558         instead of explicitly declaring xdecrypt.
15559         * nis/nss_nis/nis-publickey.c: Likewise.
15560
15561 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15562
15563         [BZ #15890]
15564         * nscd/aicache.c: Include res_hconf.h.
15565         (addhstaiX): Initialize res_hconf.
15566
15567 2013-08-26  Andreas Schwab  <schwab@suse.de>
15568
15569         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
15570         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
15571
15572 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15573
15574         * nscd/aicache.c (addhstaiX): Fix indentation.
15575
15576 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
15577
15578         * configure.ac: Quote $build_pt_chown test.
15579         * configure: Regenerated.
15580
15581 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
15582
15583         [BZ #15532]
15584         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
15585         * math/s_cexpf.c (__cexpf): Likewise.
15586         * math/s_cexpl.c (__cexpl): Likewise.
15587         * math/libm-test.inc (cexp_test_data): Correct expected return
15588         value for NaN + i0.  Add another test.
15589
15590 2013-08-22  David S. Miller  <davem@davemloft.net>
15591
15592         * po/ca.po: Update Catalan translation from translation project.
15593         * po/uk.po: Add Ukrainian translations from translation project.
15594
15595 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
15596
15597         [BZ #15797]
15598         * math/s_fdim.c (__fdim): Check for infinite arguments if result
15599         is infinite, not alongside NaN test.
15600         * math/s_fdimf.c (__fdimf): Likewise.
15601         * math/s_fdiml.c (__fdiml): Likewise.
15602         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
15603         errno is unchanged.
15604
15605 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
15606
15607         * argp/argp-help.c: Fix typos.
15608         * crypt/speeds.c: Likewise.
15609         * csu/check_fds.c: Likewise.
15610         * elf/dl-load.c: Likewise.
15611         * elf/dl-open.c: Likewise.
15612         * elf/reldep3.c: Likewise.
15613         * elf/reldep.c: Likewise.
15614         * elf/sprof.c: Likewise.
15615         * iconv/iconv_charmap.c: Likewise.
15616         * iconv/skeleton.c: Likewise.
15617         * iconv/strtab.c: Likewise.
15618         * io/lockf64.c: Likewise.
15619         * libio/libioP.h: Likewise.
15620         * resolv/gai_notify.c: Likewise.
15621         * resolv/ns_name.c: Likewise.
15622         * resolv/ns_samedomain.c: Likewise.
15623         * resolv/res_send.c: Likewise.
15624         * stdlib/random.c: Likewise.
15625         * sunrpc/rpc/xdr.h: Likewise.
15626         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
15627         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
15628         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
15629         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
15630         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
15631         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
15632         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
15633         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
15634         * sysdeps/mach/hurd/check_fds.c: Likewise.
15635         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
15636         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
15637         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15638         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
15639         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
15640         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
15641         * sysdeps/pthread/aio_notify.c: Likewise.
15642         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
15643         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
15644         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
15645         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15646         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
15647
15648 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15649
15650         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
15651         version if bit_Slow_SSE4_2 is set.
15652         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15653         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15654
15655 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15656
15657         [BZ #15867]
15658         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
15659         trampoline stack frame information.
15660         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
15661         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
15662         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
15663         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
15664         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
15665         * sysdeps/unix/sysv/linux/powerpc/init-first.c
15666         (_libc_vdso_platform_setup): Initialize the signal trampolines.
15667         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
15668         sa_flags value.
15669         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
15670         interrupting a syscall and set with option SA_SIGINFO.
15671
15672 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15673
15674         [BZ #15531]
15675         * math/s_cproj.c (__cproj): Only return an infinity if one part of
15676         argument is infinite.
15677         * math/s_cprojf.c (__cprojf): Likewise.
15678         * math/s_cprojl.c (__cprojl): Likewise.
15679         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
15680         * math/libm-test.inc (cproj_test_data): Add more tests.
15681
15682         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
15683
15684         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
15685         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
15686         size.  Use __ffs to determine corresponding shift.
15687
15688 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15689             Roland McGrath  <roland@hack.frob.com>
15690
15691         * Makefile (INSTALL): Remove trailing blank lines from output of
15692         makeinfo.
15693
15694 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15695
15696         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
15697         Align 32 bit compat elf_greg to 8 bytes.
15698
15699 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15700
15701         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
15702
15703 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
15704
15705         * string/strcoll_l.c (coll_seq): New structure.
15706         (get_next_seq_cached): New function.
15707         (get_next_seq): New function.
15708         (do_compare): New function.
15709         (STRCOLL): Use GNU style definition.  Simplify implementation
15710         by using get_next_seq, get_next_seq_cached and do_compare.
15711
15712 2013-08-16  Florian Weimer  <fweimer@redhat.com>
15713
15714         [BZ #14699]
15715         CVE-2013-4237
15716         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
15717         member.
15718         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
15719         member.
15720         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
15721         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
15722         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
15723         conditional.
15724         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
15725         GETDENTS_64BIT_ALIGNED.
15726         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15727         * manual/filesys.texi (Reading/Closing Directory): Document
15728         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
15729         strongly.
15730         * manual/conf.texi (Limits for Files): Add portability note to
15731         NAME_MAX, PATH_MAX.
15732         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
15733
15734 2013-08-13  Andreas Schwab  <schwab@suse.de>
15735
15736         [BZ #15749]
15737         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
15738         of fabs.
15739         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
15740         LDBL_MAX_EXP >= 16384]: Add tests for it.
15741
15742 2013-08-12  David S. Miller  <davem@davemloft.net>
15743
15744         * version.h (RELEASE): Set to "development".
15745         (VERSION): Set to "2.18.90".
15746         * NEWS: Add 2.19 section.
15747
15748 2013-08-03  David S. Miller  <davem@davemloft.net>
15749
15750         * po/ko.po: Update Korean translation from translation project.
15751
15752 2013-08-01  David S. Miller  <davem@davemloft.net>
15753
15754         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
15755         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
15756         Bilka.
15757
15758 2013-07-30  David S. Miller  <davem@davemloft.net>
15759
15760         * po/fr.po: Update French translation from translation project.
15761
15762 2013-07-28  David S. Miller  <davem@davemloft.net>
15763
15764         * po/cs.po: Update Czech translation from translation project.
15765
15766         * po/sv.po: Update Swedish translation from translation project.
15767
15768 2013-07-27  David S. Miller  <davem@davemloft.net>
15769
15770         * po/eo.po: Update Esperanto translation from translation project.
15771
15772         * po/vi.po: Update Vietnamese translation from translation project.
15773
15774         * po/de.po: Update German translation from translation project.
15775
15776 2013-07-26  David S. Miller  <davem@davemloft.net>
15777
15778         * po/bg.po: Update Bulgarian translation from translation project.
15779
15780         * po/nl.po: Update Dutch translation from translation project.
15781         * po/pl.po: Update Polish translation from translation project.
15782         * po/ru.po: Update Russian translation from translation project.
15783
15784 2013-07-24  David S. Miller  <davem@davemloft.net>
15785
15786         * po/libc.pot: Update.
15787
15788 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15789
15790         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
15791         variable page size.
15792         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
15793         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
15794         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
15795
15796 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15797
15798         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
15799
15800 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15801             Andreas Schwab  <schwab@suse.de>
15802             Roland McGrath  <roland@hack.frob.com>
15803             Joseph Myers  <joseph@codesourcery.com>
15804             Carlos O'Donell  <carlos@redhat.com>
15805
15806         [BZ #15755]
15807         * config.h.in: Define HAVE_PT_CHOWN.
15808         * config.make.in (build-pt-chown): New variable.
15809         * configure.in (--enable-pt_chown): New configure option.
15810         * configure: Regenerate.
15811         * login/Makefile: Include Makeconfig.  Build pt_chown only if
15812         build-pt-chown is enabled.
15813         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
15814         pt_chown to fix pty ownership.
15815         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
15816         CLOSE_ALL_FDS.
15817         * manual/install.texi (Configuring and compiling): Mention
15818         --enable-pt_chown. Add @findex for grantpt.
15819         * INSTALL: Regenerate.
15820
15821 2013-07-20  David S. Miller  <davem@davemloft.net>
15822
15823         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
15824         difference between 32-bit and 64-bit.
15825
15826 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
15827
15828         [BZ #15711]
15829         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
15830         Avoid system header dependency with -ffreestanding.
15831         ($(objpfx)bits/syscall%d): Likewise.
15832
15833 2013-07-13  David S. Miller  <davem@davemloft.net>
15834
15835         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
15836         underflows from atanl/atan2l due to bug 15319.
15837         (casinh_test_data): Likewise.
15838
15839 2013-07-07  David S. Miller  <davem@davemloft.net>
15840
15841         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
15842
15843 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
15844
15845         * sysdeps/i386/fpu/libm-test-ulps: Update.
15846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15847
15848 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15849
15850         * configure.in (--enable-lock-elision): Fix message text.
15851         * INSTALL: Regenerate.
15852         * configure: Regenerate.
15853
15854 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15855
15856         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15857
15858 2013-07-03  Andreas Jaeger  <aj@suse.de>
15859
15860         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
15861         define.
15862         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
15863         (ptrace_peeksiginfo_args): Add.
15864         (__ptrace_peeksiginfo_flags): Add.
15865         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15866         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15867         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15868
15869 2013-07-03  Allan McRae  <allan@archlinux.org>
15870
15871         * sysdeps/i386/fpu/libm-test-ulps: Update.
15872
15873 2013-07-02  David S. Miller  <davem@davemloft.net>
15874
15875         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15876
15877 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
15878
15879         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15880
15881 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15882
15883         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
15884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15885
15886 2013-07-02  Andi Kleen <ak@linux.intel.com>
15887
15888         * config.h.in (ENABLE_LOCK_ELISION): Add.
15889         * configure.in (--enable-lock-elision): Add option.
15890         * manual/install.texi: Document --enable lock elision.
15891         * configure: Regenerate
15892         * INSTALL: Regenerate.
15893
15894 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
15895
15896         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
15897         SSE4.2 strcasecmp for libc.a.
15898         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
15899
15900 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15901
15902         [BZ #13304]
15903         * soft-fp/op-common.h (_FP_FMA): New macro.
15904         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
15905         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
15906         (_FP_MUL_MEAT_1_imm): ... here.
15907         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
15908         (_FP_MUL_MEAT_1_wide): ... here.
15909         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
15910         (_FP_MUL_MEAT_1_hard): ... here.
15911         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
15912         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
15913         (_FP_MUL_MEAT_2_wide): ... here.
15914         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
15915         (_FP_MUL_MEAT_2_wide_3mul): ... here.
15916         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
15917         (_FP_MUL_MEAT_2_gmp): ... here.
15918         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
15919         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
15920         (_FP_MUL_MEAT_4_wide): ... here.
15921         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
15922         (_FP_MUL_MEAT_4_gmp): ... here.
15923         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
15924         (_FP_WFRACBITS_DW_S): Likewise.
15925         (_FP_WFRACXBITS_DW_S): Likewise.
15926         (_FP_HIGHBIT_DW_S): Likewise.
15927         (FP_FMA_S): Likewise.
15928         (_FP_FRAC_HIGH_DW_S): Likewise.
15929         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
15930         (_FP_WFRACBITS_DW_D): Likewise.
15931         (_FP_WFRACXBITS_DW_D): Likewise.
15932         (_FP_HIGHBIT_DW_D): Likewise.
15933         (FP_FMA_D): Likewise.
15934         (_FP_FRAC_HIGH_DW_D): Likewise.
15935         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
15936         (_FP_WFRACBITS_DW_E): Likewise.
15937         (_FP_WFRACXBITS_DW_E): Likewise.
15938         (_FP_HIGHBIT_DW_E): Likewise.
15939         (FP_FMA_E): Likewise.
15940         (_FP_FRAC_HIGH_DW_E): Likewise.
15941         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
15942         (_FP_WFRACBITS_DW_Q): Likewise.
15943         (_FP_WFRACXBITS_DW_Q): Likewise.
15944         (_FP_HIGHBIT_DW_Q): Likewise.
15945         (FP_FMA_Q): Likewise.
15946         (_FP_FRAC_HIGH_DW_Q): Likewise.
15947         * soft-fp/fmasf4.c: New file.
15948         * soft-fp/fmadf4.c: Likewise.
15949         * soft-fp/fmatf4.c: Likewise.
15950
15951 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15952
15953         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15954         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
15955         Silvermont.
15956         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
15957         macro.
15958         (index_Slow_SSE4_2): Likewise.
15959         (index_Prefer_PMINUB_for_stringop): Likewise.
15960         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
15961         bit_Slow_SSE4_2 is set.
15962         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
15963         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15964
15965 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15966
15967         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
15968         rtld_global._dl_hwcap2.
15969         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
15970         POWER8.
15971         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
15972         POWER8 feature descriptions defined in _dl_hwcap2.
15973         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
15974         string handling for POWER8 feature bits.
15975         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
15976         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
15977         _dl_powerpc_cap_flags.
15978         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
15979         * sysdeps/powerpc/rtld-global-offsets.sym
15980         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
15981         _dl_hwcap2 in the rtld_global_ro structure.
15982
15983 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15984
15985         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
15986         hardware capabilities in support of AT_HWCAP2.
15987         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
15988         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
15989         GLRO(dl_hwcap2).
15990         (_dl_show_auxv): Add support for calling _dl_procinfo to display
15991         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
15992         explicitly the unknown a_type display mechanism is used.
15993         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
15994         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
15995         struct member.
15996         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
15997         to macro prototype for AT_HWCAP2 support.
15998         * sysdeps/i386/dl-procinfo.h: Likewise.
15999         * sysdeps/s390/dl-procinfo.h: Likewise.
16000         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
16001         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
16002         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
16003         return -1 for unknown a_type display fallback.
16004         * sysdeps/sparc/dl-procinfo.h: Likewise.
16005         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
16006         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
16007
16008 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
16009
16010         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
16011         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
16012
16013 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
16014
16015         [BZ #12492]
16016         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
16017         mprotect making __stack_prot writable.
16018
16019 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
16020             Joseph Myers  <joseph@codesourcery.com>
16021
16022         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
16023         as being properly aligned.
16024
16025 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
16026
16027         * dlfcn/modstatic5.c: New file.
16028         * dlfcn/tststatic5.c: New file.
16029         * dlfcn/Makefile (tests): Add tststatic5.
16030         (tests-static): Likewise.
16031         (modules-names): Add modstatic5.
16032         (tststatic5-ENV): New variable.
16033         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
16034
16035         [BZ #15022]
16036         * elf/dl-support.c (_dl_main_map): New variable.
16037         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
16038         (_dl_nns, _dl_load_adds): Set to 1.
16039         (_dl_initial_searchlist): Refer to _dl_main_map.
16040         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
16041         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
16042         call to _dl_get_origin.
16043         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
16044         around call_map.
16045         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
16046         * dlfcn/modstatic3.c: New file.
16047         * dlfcn/tststatic3.c: New file.
16048         * dlfcn/tststatic4.c: New file.
16049         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
16050         (tests-static): Likewise.
16051         (modules-names): Add modstatic3.
16052         (tststatic3-ENV, tststatic4-ENV): New variables.
16053         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
16054         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
16055
16056 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
16057
16058         * configure.in (CC): Require GCC version 4.4 or later.
16059         * configure: Regenerated.
16060         * manual/install.texi (Tools for Compilation): Update GCC version
16061         requirement.
16062         * INSTALL: Regenerated.
16063
16064 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16065
16066         [BZ #15674]
16067         * string/test-memcmp.c (check2): New.
16068         (main): Call check2.
16069
16070         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
16071
16072 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
16073
16074         [BZ #15022]
16075         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
16076         over to...
16077         (dl_open_worker) [!SHARED]: ... here.
16078
16079 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16080
16081         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
16082
16083 2013-06-25  Richard Henderson  <rth@redhat.com>
16084
16085         * locale/programs/locarchive.c: Include <libc-internal.h>
16086
16087 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
16088
16089         * manual/texinfo.tex: Update to version 2013-06-21.17, with
16090         trailing whitespace removed.
16091
16092 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
16093
16094         [BZ #10283]
16095         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
16096         * locale/programs/locarchive.c: Include libc-mmap.h.
16097         (prepare_address_space): Take two new outputs (the mmap base and len).
16098         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
16099         values.
16100         (create_archive): Declare new mmap base and len values for
16101         prepare_address_space, and store the result in ah.
16102         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
16103         (enlarge_archive): If ah->mmap_base is not NULL, use that and
16104         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
16105         Declare new mmap base and len values for
16106         prepare_address_space, and store the result in new_ah.
16107         (open_archive): Declare new mmap base and len values for
16108         prepare_address_space, and store the result in ah.
16109         (close_archive): If ah->mmap_base is not NULL, use that and
16110         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
16111         * sysdeps/generic/libc-mmap.h: New file.
16112
16113 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
16114
16115         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
16116         (ALIGN_UP): Likewise.
16117         (PTR_ALIGN_DOWN): Likewise.
16118         (PTR_ALIGN_UP): Likewise.
16119
16120 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16121
16122         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
16123         entry mapped to PPC_PLATFORM_POWER8.
16124         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
16125         POWER8.
16126         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
16127         (_dl_string_platform): Add case for exporting platform position for
16128         POWER8.
16129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
16130         search path to sysdeps/powerpc/powerpc32/power8 directory.
16131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
16132         search path to sysdeps/powerpc/powerpc64/power8 directory.
16133         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
16134         power7 directories.
16135         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
16136         power7 directories.
16137
16138 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
16139
16140         * INSTALL: Regenerate.
16141
16142         * nscd/connections.c (nscd_init): Fix comment.
16143
16144 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
16145
16146         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
16147
16148         [BZ #15667]
16149         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
16150         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
16151
16152 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
16153
16154         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
16155         DL_DST_REQ_STATIC.
16156         (DL_DST_REQ_STATIC): Remove macro.
16157
16158 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
16159
16160         [BZ #7006]
16161         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
16162         with a shift of 0 bits.
16163
16164 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
16165
16166         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
16167         $(tststatic-ENV).
16168
16169 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16170
16171         [BZ #15655]
16172         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
16173
16174 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16175
16176         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
16177         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
16178         accepts -fno-tree-loop-distribute-patterns.
16179         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
16180         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
16181         recursive call.
16182         * string/memset.c (memset): Likewise.
16183         * string/test-memmove.c (simple_memmove): Disable loop transformation
16184         to library calls.
16185         * string/test-memset.c (simple_memset): Likewise.
16186         * benchtests/bench-memmove.c (simple_memmove): Likewise.
16187         * benchtests/bench-memset.c (simple_memset): Likewise.
16188         * configure: Regenerated.
16189
16190 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
16191
16192         * math/test-misc.c (main): Ignore fesetround failure when failures
16193         of subsequent rounding tests would be ignored.
16194
16195         [BZ #15654]
16196         * math/fedisblxcpt.c (fedisableexcept): Return 0.
16197         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
16198         * math/fegetenv.c (__fegetenv): Return 0.
16199         * math/fegetexcept.c (fegetexcept): Return 0.
16200         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
16201         FE_TONEAREST.
16202         * math/feholdexcpt.c (feholdexcept): Return 0.
16203         * math/fesetenv.c (__fesetenv): Return 0.
16204         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
16205         argument FE_TONEAREST.
16206         * math/feupdateenv.c (__feupdateenv): Return 0.
16207         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
16208
16209 2013-06-18  Roland McGrath  <roland@hack.frob.com>
16210
16211         * elf/rtld-Rules (rtld-compile-command.S): New variable.
16212         (rtld-compile-command.s, rtld-compile-command.c): New variables.
16213         ($(objpfx)rtld-%.os rules): Use them.
16214
16215 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16216
16217         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
16218         fields.
16219
16220 2013-06-17  Roland McGrath  <roland@hack.frob.com>
16221
16222         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
16223         length of target pattern, then descending length of dependency pattern.
16224         * configure.in (AWK): Require gawk 3.1.2 or newer.
16225         * manual/install.texi (Tools for Compilation): Say that we do.
16226         * configure: Regenerated.
16227
16228         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
16229         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
16230         * scripts/sysd-rules.awk: ... this new script.
16231         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
16232         than a glob-style pattern.
16233
16234 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
16235
16236         * math/test-misc.c (main): Do not treat incorrectly rounded
16237         conversions as failure unless ROUNDING_TESTS passes.
16238
16239 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
16240
16241         [BZ #15631]
16242         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
16243         restore exception state around main square root computation, then
16244         check for inexactness explicitly.
16245
16246         * math/libm-test.inc (fma_test_data): Add another test.
16247
16248 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
16249
16250         * manual/threads.texi (Non-POSIX Extensions): New document
16251         node.  Document pthread_getattr_default_np and
16252         pthread_setattr_default_np.
16253
16254         * Versions.def (libpthread): Add GLIBC_2.18.
16255         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
16256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
16257         Likewise.
16258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16259         Likewise.
16260         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16261         Likewise.
16262         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16263         Likewise.
16264         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
16265         Likewise.
16266         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
16267         Likewise.
16268         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
16269         Likewise.
16270         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
16271         Likewise.
16272         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
16273         Likewise.
16274
16275 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16276
16277         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16278         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
16279
16280 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
16281             H.J. Lu  <hjl.tools@gmail.com>
16282
16283         [BZ #15627]
16284         * sysdeps/x86_64/rtld-memset.c: Remove file.
16285         * sysdeps/x86_64/rtld-memset.S: New file.
16286
16287 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
16288
16289         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
16290         (test_in_one_mode): Take arguments for whether the rounding mode
16291         is supported for each floating-point type.
16292         (do_test): Pass new arguments to test_in_one_mode using
16293         ROUNDING_TESTS.
16294
16295 2013-06-13  Roland McGrath  <roland@hack.frob.com>
16296
16297         * posix/tst-waitid.c (do_test): Distinguish different instances of
16298         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
16299         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
16300         before entering the kernel for waitpid.
16301
16302 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
16303
16304         * NEWS: Fix note on clock function precision.  Text by Roland
16305         McGrath.
16306
16307 2013-06-13  Roland McGrath  <roland@hack.frob.com>
16308
16309         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
16310         it into place only when and if the sanity check passes.
16311
16312 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
16313
16314         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
16315         output for whether conversion result is exact.  Take argument
16316         indicating whether type is IBM long double.
16317         (round_for_all): Change need_exact field to ibm_ld.
16318         * stdlib/tst-strtod-round.c (struct exactness): New type.
16319         (struct test): Change bool ld_ok field to struct exactness exact.
16320         (TEST): Update all definitions for change to field.
16321         (tests): Regenerate array contents.
16322         (test_in_one_mode): Take pointer to new field instead of old ld_ok
16323         field value.  Check for IBM long double here.
16324         (do_test): Update calls to test_in_one_mode.
16325
16326 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
16327
16328         [BZ #12515]
16329         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
16330         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
16331
16332 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16333
16334         [BZ #15605]
16335         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
16336         generated by the compiler on loop optimizations.
16337         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
16338         general definitions.
16339
16340 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
16341
16342         * math/bug-nextafter.c: Include <math-tests.h>.
16343         (main): Only test for exceptions if EXCEPTION_TESTS is true for
16344         the relevant type.
16345         * math/bug-nexttoward.c: Include <math-tests.h>.
16346         (main): Only test for exceptions if EXCEPTION_TESTS is true for
16347         the relevant type.
16348         * math/test-misc.c: Include <math-tests.h>.
16349         (main): Only test for exceptions if EXCEPTION_TESTS is true for
16350         the relevant type.
16351
16352 2013-06-12  Andreas Jaeger  <aj@suse.de>
16353
16354         * po/ia.po: Update Interlingua translation from translation
16355         project.
16356
16357 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
16358
16359         * include/fenv.h: Include stdbool.h.
16360         (struct rm_ctx): New structure.
16361         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
16362         Define macro.
16363         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
16364         (SET_RESTORE_ROUNDF): Likewise.
16365         (SET_RESTORE_ROUNDL): Likewise.
16366         (SET_RESTORE_ROUND_NOEX): Likewise.
16367         (SET_RESTORE_ROUND_NOEXF): Likewise.
16368         (SET_RESTORE_ROUND_NOEXL): Likewise.
16369         (SET_RESTORE_ROUND_53BIT): Likewise.
16370         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
16371         (libc_feresetround_noexf_ctx): Likewise.
16372         (libc_feresetround_noexl_ctx): Likewise.
16373         (libc_feholdsetround_53bit_ctx): Likewise.
16374         (libc_feresetround_53bit_ctx): Likewise.
16375         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
16376         (libc_feholdexcept_setround_sse_ctx): New function.
16377         (libc_fesetenv_sse_ctx): Likewise.
16378         (libc_feupdateenv_sse_ctx): Likewise.
16379         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
16380         (libc_feholdexcept_setround_387_ctx): Likewise.
16381         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
16382         (libc_feholdsetround_387_prec_ctx): Likewise.
16383         (libc_feholdsetround_387_ctx): Likewise.
16384         (libc_feholdsetround_387_53bit_ctx): Likewise.
16385         (libc_feholdsetround_sse_ctx): Likewise.
16386         (libc_feresetround_sse_ctx): Likewise.
16387         (libc_feresetround_387_ctx): Likewise.
16388         (libc_feupdateenv_387_ctx): Likewise.
16389         (libc_feholdexcept_setroundf_ctx): Define macro.
16390         (libc_fesetenvf_ctx): Likewise.
16391         (libc_feupdateenvf_ctx): Likewise.
16392         (libc_feholdsetroundf_ctx): Likewise.
16393         (libc_feresetroundf_ctx): Likewise.
16394         (libc_feholdexcept_setround_ctx): Likewise.
16395         (libc_fesetenv_ctx): Likewise.
16396         (libc_feupdateenv_ctx): Likewise.
16397         (libc_feholdsetround_ctx): Likewise.
16398         (libc_feresetround_ctx): Likewise.
16399         (libc_feholdexcept_setroundl_ctx): Likewise.
16400         (libc_feupdateenvl_ctx): Likewise.
16401         (libc_feholdsetroundl_ctx): Likewise.
16402         (libc_feresetroundl_ctx): Likewise.
16403         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
16404         (libc_feresetround_53bit_ctx): Likewise.
16405
16406 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16407
16408         * locale/iso-639.def: Convert to UTF-8.
16409
16410 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
16411
16412         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
16413         (EXCEPTION_TESTS_double): Likewise.
16414         (EXCEPTION_TESTS_long_double): Likewise.
16415         (EXCEPTION_TESTS): Likewise.
16416         * math/libm-test.inc (test_exceptions): Only test exceptions if
16417         EXCEPTION_TESTS (FLOAT).
16418
16419 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16420
16421         * benchtests/Makefile (string-bench): Add strcpy_chk and
16422         stpcpy_chk.
16423         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
16424         * benchtests/bench-stpcpy_chk.c: New file.
16425         * benchtests/bench-strcpy_chk-ifunc.c: New file.
16426         * benchtests/bench-strcpy_chk.c: New file.
16427         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
16428         code.
16429         (do_test): Likewise.
16430
16431 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16432
16433         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
16434         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
16435         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
16436         with tabs where appropriate.
16437         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
16438         dl-procinfo.h.
16439         [PPC_PLATFORM_PPC440]: Likewise.
16440         [PPC_PLATFORM_PPC464]: Likewise.
16441         [PPC_PLATFORM_PPC476]: Likewise.
16442         (_dl_string_platform): Add support for detecting ppc405, ppc440,
16443         ppc464, and ppc476 platform strings merging from ports/
16444         dl-procinfo.h.
16445
16446 2013-06-11  Andreas Schwab  <schwab@suse.de>
16447
16448         [BZ #14991]
16449         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
16450         (from_ucs4_idx): Regenerate.
16451         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
16452         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
16453         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
16454         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
16455         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
16456         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
16457         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
16458         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
16459         from FROM_LOOP and TO_LOOP specific macros.
16460         (BODY): Handle combining characters.
16461         * iconvdata/BIG5HKSCS.irreversible: Update.
16462         * iconvdata/BIG5HKSCS.precomposed: New file.
16463         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
16464         characters.
16465         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
16466
16467 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16468
16469         * include/sys/time.h: Fix indentation and add copyright header.
16470
16471         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
16472         (do_test): Likewise.
16473         * string/test-memchr.c (do_one_test): Likewise.
16474         (do_test): Likewise.
16475         * string/test-memcmp.c (do_one_test): Likewise.
16476         (do_test): Likewise.
16477         * string/test-memcpy.c (do_one_test): Likewise.
16478         (do_test): Likewise.
16479         * string/test-memmem.c (do_one_test): Likewise.
16480         (do_test): Likewise.
16481         (do_random_tests): Likewise.
16482         * string/test-memmove.c (do_one_test): Likewise.
16483         (do_test): Likewise.
16484         * string/test-memset.c (do_one_test): Likewise.
16485         (do_test): Likewise.
16486         * string/test-rawmemchr.c (do_one_test): Likewise.
16487         (do_test): Likewise.
16488         * string/test-strcasecmp.c (do_one_test): Likewise.
16489         (do_test): Likewise.
16490         * string/test-strcasestr.c (do_one_test): Likewise.
16491         (do_test): Likewise.
16492         * string/test-strcat.c (do_one_test): Likewise.
16493         (do_test): Likewise.
16494         * string/test-strchr.c (do_one_test): Likewise.
16495         (do_test): Likewise.
16496         * string/test-strcmp.c (do_one_test): Likewise.
16497         (do_test): Likewise.
16498         * string/test-strcpy.c (do_one_test): Likewise.
16499         (do_test): Likewise.
16500         * string/test-string.h: Likewise.
16501         (test_init): Likewise.
16502         * string/test-strlen.c (do_one_test): Likewise.
16503         (do_test): Likewise.
16504         * string/test-strncasecmp.c (do_one_test): Likewise.
16505         (do_test): Likewise.
16506         * string/test-strncat.c (do_one_test): Likewise.
16507         (do_test): Likewise.
16508         * string/test-strncmp.c (do_one_test): Likewise.
16509         (do_test_limit): Likewise.
16510         (do_test): Likewise.
16511         * string/test-strncpy.c (do_one_test): Likewise.
16512         (do_test): Likewise.
16513         * string/test-strnlen.c (do_one_test): Likewise.
16514         (do_test): Likewise.
16515         * string/test-strpbrk.c (do_one_test): Likewise.
16516         (do_test): Likewise.
16517         * string/test-strrchr.c (do_one_test): Likewise.
16518         (do_test): Likewise.
16519         * string/test-strspn.c (do_one_test): Likewise.
16520         (do_test): Likewise.
16521         * string/test-strstr.c (do_one_test): Likewise.
16522         (do_test): Likewise.
16523
16524         * benchtests/Makefile (string-bench): Add string benchmarks.
16525         * benchtests/bench-bcopy-ifunc.c: New file.
16526         * benchtests/bench-bcopy.c: New file.
16527         * benchtests/bench-bzero-ifunc.c: New file.
16528         * benchtests/bench-bzero.c: New file.
16529         * benchtests/bench-memccpy-ifunc.c: New file.
16530         * benchtests/bench-memccpy.c: New file.
16531         * benchtests/bench-memchr-ifunc.c: New file.
16532         * benchtests/bench-memchr.c: New file.
16533         * benchtests/bench-memcmp-ifunc.c: New file.
16534         * benchtests/bench-memcmp.c: New file.
16535         * benchtests/bench-memmem-ifunc.c: New file.
16536         * benchtests/bench-memmem.c: New file.
16537         * benchtests/bench-memmove-ifunc.c: New file.
16538         * benchtests/bench-memmove.c: New file.
16539         * benchtests/bench-mempcpy-ifunc.c: New file.
16540         * benchtests/bench-mempcpy.c: New file.
16541         * benchtests/bench-memset-ifunc.c: New file.
16542         * benchtests/bench-memset.c: New file.
16543         * benchtests/bench-rawmemchr-ifunc.c: New file.
16544         * benchtests/bench-rawmemchr.c: New file.
16545         * benchtests/bench-stpcpy-ifunc.c: New file.
16546         * benchtests/bench-stpcpy.c: New file.
16547         * benchtests/bench-stpncpy-ifunc.c: New file.
16548         * benchtests/bench-stpncpy.c: New file.
16549         * benchtests/bench-strcasecmp-ifunc.c: New file.
16550         * benchtests/bench-strcasecmp.c: New file.
16551         * benchtests/bench-strcasestr-ifunc.c: New file.
16552         * benchtests/bench-strcasestr.c: New file.
16553         * benchtests/bench-strcat-ifunc.c: New file.
16554         * benchtests/bench-strcat.c: New file.
16555         * benchtests/bench-strchr-ifunc.c: New file.
16556         * benchtests/bench-strchr.c: New file.
16557         * benchtests/bench-strchrnul-ifunc.c: New file.
16558         * benchtests/bench-strchrnul.c: New file.
16559         * benchtests/bench-strcmp-ifunc.c: New file.
16560         * benchtests/bench-strcmp.c: New file.
16561         * benchtests/bench-strcpy-ifunc.c: New file.
16562         * benchtests/bench-strcpy.c: New file.
16563         * benchtests/bench-strcspn-ifunc.c: New file.
16564         * benchtests/bench-strcspn.c: New file.
16565         * benchtests/bench-strlen-ifunc.c: New file.
16566         * benchtests/bench-strlen.c: New file.
16567         * benchtests/bench-strncasecmp-ifunc.c: New file.
16568         * benchtests/bench-strncasecmp.c: New file.
16569         * benchtests/bench-strncat-ifunc.c: New file.
16570         * benchtests/bench-strncat.c: New file.
16571         * benchtests/bench-strncmp-ifunc.c: New file.
16572         * benchtests/bench-strncmp.c: New file.
16573         * benchtests/bench-strncpy-ifunc.c: New file.
16574         * benchtests/bench-strncpy.c: New file.
16575         * benchtests/bench-strnlen-ifunc.c: New file.
16576         * benchtests/bench-strnlen.c: New file.
16577         * benchtests/bench-strpbrk-ifunc.c: New file.
16578         * benchtests/bench-strpbrk.c: New file.
16579         * benchtests/bench-strrchr-ifunc.c: New file.
16580         * benchtests/bench-strrchr.c: New file.
16581         * benchtests/bench-strspn-ifunc.c: New file.
16582         * benchtests/bench-strspn.c: New file.
16583         * benchtests/bench-strstr-ifunc.c: New file.
16584         * benchtests/bench-strstr.c: New file.
16585
16586         * benchtests/Makefile: Disable parallel execution of targets.
16587         (string-bench): Add memcpy.
16588         (benchset): New variable to store a list of benchmark sets.
16589         (bench-func): Renamed from bench.
16590         (bench-set): New target.
16591         (bench): Depend on bench-func and bench-set.
16592         * benchtests/README: Add section on benchmark sets.
16593         * benchtests/bench-memcpy-ifunc.c: New file.
16594         * benchtests/bench-memcpy.c: New file.
16595         * benchtests/bench-string.h: New file.
16596
16597 2013-06-11  Andreas Schwab  <schwab@suse.de>
16598
16599         [BZ #15577]
16600         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
16601         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
16602         values in the triple.
16603         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
16604         terminator in the group key.
16605
16606 2013-06-11  Andreas Jaeger  <aj@suse.de>
16607
16608         * po/zh_TW.po: Update Chinese (traditional) translation from
16609         translation project.
16610
16611 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16612
16613         * include/time.h (__clock_gettime): Add libc_hidden_proto.
16614         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
16615         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
16616         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
16617         (clock_getcpuclockid): Likewise.
16618         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
16619         Add weak_alias and libc_hidden_def.
16620         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
16621         * rt/clock_gettime.c (clock_gettime): Rename to
16622         __clock_gettime.  Add weak_alias and libc_hidden_def.
16623         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
16624         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
16625         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
16626         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
16627         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
16628         Likewise.
16629         * rt/clock_settime.c (clock_settime): Rename to
16630         __clock_settime.  Add weak_alias and libc_hidden_def.
16631         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
16632
16633 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
16634
16635         * mach/err_boot.sub: Remove trailing whitespace.
16636         * mach/err_ipc.sub: Likewise.
16637         * mach/err_mach.sub: Likewise.
16638
16639         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
16640         (ROUNDING_TESTS_double): Likewise.
16641         (ROUNDING_TESTS_long_double): Likewise.
16642         (ROUNDING_TESTS): Likewise.
16643         * math/libm-test.inc: Include <math-tests.h>.
16644         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
16645         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
16646         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
16647         (IF_ROUND_INIT_FE_UPWARD): Likewise.
16648
16649 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16650
16651         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
16652         of assigning.
16653
16654 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
16655
16656         * sysdeps/gnu/errlist.awk: Do not generate space at end of
16657         otherwise empty TRANS lines.
16658         * sysdeps/gnu/errlist.c: Regenerated.
16659
16660         * catgets/gencat.c (error_print): Use (void) in function
16661         definition.
16662         * crypt/crypt_util.c (__init_des): Likewise.
16663         * crypt/speeds.c (Stop): Likewise.
16664         (main): Likewise.
16665         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
16666         * inet/ruserpass.c (token): Likewise.
16667         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
16668         * intl/localealias.c (extend_alias_table): Likewise.
16669         * intl/plural-exp.c (init_germanic_plural): Likewise.
16670         * libio/fcloseall.c (__fcloseall): Likewise.
16671         * libio/genops.c (_IO_flush_all): Likewise.
16672         (_IO_flush_all_linebuffered): Likewise.
16673         (_IO_cleanup): Likewise.
16674         (_IO_iter_begin): Likewise.
16675         (_IO_iter_end): Likewise.
16676         (_IO_list_lock): Likewise.
16677         (_IO_list_unlock): Likewise.
16678         (_IO_list_resetlock): Likewise.
16679         * libio/getchar.c (getchar): Likewise.
16680         * libio/getchar_u.c (getchar_unlocked): Likewise.
16681         * libio/getwchar.c (getwchar): Likewise.
16682         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
16683         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
16684         * login/getpt.c (__getpt): Likewise.
16685         * login/tst-utmp.c (main): Likewise.
16686         * malloc/hooks.c (__malloc_check_init): Likewise.
16687         * malloc/malloc.c (__malloc_stats): Likewise.
16688         * malloc/mtrace.c (tr_break): Likewise.
16689         (mtrace): Likewise.
16690         (muntrace): Likewise.
16691         * misc/fstab.c (endfsent): Likewise.
16692         * misc/getclktck.c (__getclktck): Likewise.
16693         * misc/getdtsz.c (__getdtablesize): Likewise.
16694         * misc/gethostid.c (gethostid): Likewise.
16695         * misc/getpagesize.c (__getpagesize): Likewise.
16696         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
16697         (__get_nprocs): Likewise.
16698         (__get_phys_pages): Likewise.
16699         (__get_avphys_pages): Likewise.
16700         * misc/getttyent.c (getttyent): Likewise.
16701         (setttyent): Likewise.
16702         (endttyent): Likewise.
16703         * misc/getusershell.c (getusershell): Likewise.
16704         (endusershell): Likewise.
16705         (setusershell): Likewise.
16706         (initshells): Likewise.
16707         * misc/hsearch.c (__hdestroy): Likewise.
16708         * misc/sync.c (sync): Likewise.
16709         * misc/syslog.c (closelog_internal): Likewise.
16710         (closelog): Likewise.
16711         * misc/ttyslot.c (ttyslot): Likewise.
16712         * misc/vhangup.c (vhangup): Likewise.
16713         * posix/fork.c (__fork): Likewise.
16714         * posix/getegid.c (__getegid): Likewise.
16715         * posix/geteuid.c (__geteuid): Likewise.
16716         * posix/getgid.c (__getgid): Likewise.
16717         * posix/getpid.c (__getpid): Likewise.
16718         * posix/getppid.c (__getppid): Likewise.
16719         * posix/getuid.c (__getuid): Likewise.
16720         * posix/pause.c (pause): Likewise.
16721         * posix/setpgrp.c (setpgrp): Likewise.
16722         * posix/setsid.c (__setsid): Likewise.
16723         * posix/test-vfork.c (noop): Likewise.
16724         * resolv/gethnamaddr.c (_endhtent): Likewise.
16725         (_gethtent): Likewise.
16726         (ht_endhostent): Likewise.
16727         (gethostent): Likewise.
16728         (dns_service): Likewise.
16729         * stdlib/drand48.c (drand48): Likewise.
16730         * stdlib/lrand48.c (lrand48): Likewise.
16731         * stdlib/mrand48.c (mrand48): Likewise.
16732         * stdlib/rand.c (rand): Likewise.
16733         * stdlib/random.c (__random): Likewise.
16734         * stdlib/setenv.c (clearenv): Likewise.
16735         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
16736         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
16737         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
16738         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
16739         (__get_nprocs): Likewise.
16740         (__get_phys_pages): Likewise.
16741         (__get_avphys_pages): Likewise.
16742         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
16743         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
16744         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
16745         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
16746         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
16747         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
16748         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
16749         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
16750         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
16751         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
16752         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
16753         * sysdeps/mach/hurd/sync.c (sync): Likewise.
16754         * sysdeps/posix/clock.c (clock): Likewise.
16755         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
16756         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
16757         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
16758         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
16759         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
16760         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
16761         (__get_nprocs_conf): Likewise.
16762         (__get_phys_pages): Likewise.
16763         (__get_avphys_pages): Likewise.
16764         * time/clock.c (clock): Likewise.
16765         * time/tzset.c (__tzname_max): Likewise.
16766
16767 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
16768
16769         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
16770         (__bswap_32): Do not use "register".
16771         * crypt/crypt.c (_ufc_doit_r): Likewise.
16772         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
16773         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
16774         * gmon/gmon.c (__monstartup): Likewise.
16775         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
16776         * hurd/hurdmalloc.c (more_memory): Likewise.
16777         (malloc): Likewise.
16778         (free): Likewise.
16779         (realloc): Likewise.
16780         (malloc_fork_prepare): Likewise.
16781         (malloc_fork_parent): Likewise.
16782         (malloc_fork_child): Likewise.
16783         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
16784         (_svcauth_des): Likewise.
16785         * inet/inet_lnaof.c (inet_lnaof): Likewise.
16786         * inet/inet_net.c (inet_network): Likewise.
16787         * inet/inet_netof.c (inet_netof): Likewise.
16788         * inet/rcmd.c (__validuser2_sa): Likewise.
16789         * io/fts.c (fts_open): Likewise.
16790         (fts_load): Likewise.
16791         (fts_close): Likewise.
16792         (fts_read): Likewise.
16793         (fts_children): Likewise.
16794         (fts_build): Likewise.
16795         (fts_stat): Likewise.
16796         (fts_sort): Likewise.
16797         (fts_alloc): Likewise.
16798         (fts_lfree): Likewise.
16799         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
16800         (_IO_file_xsgetn): Likewise.
16801         (_IO_file_xsgetn_mmap): Likewise.
16802         * libio/iofopncook.c (_IO_cookie_read): Likewise.
16803         (_IO_cookie_write): Likewise.
16804         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
16805         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
16806         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
16807         * malloc/obstack.c (_obstack_begin): Likewise.
16808         (_obstack_begin_1): Likewise.
16809         (_obstack_newchunk): Likewise.
16810         (_obstack_allocated_p): Likewise.
16811         (obstack_free): Likewise.
16812         (_obstack_memory_used): Likewise.
16813         * misc/getttyent.c (getttynam): Likewise.
16814         (getttyent): Likewise.
16815         (skip): Likewise.
16816         (value): Likewise.
16817         * misc/getusershell.c (initshells): Likewise.
16818         * misc/syslog.c (__vsyslog_chk): Likewise.
16819         * misc/ttyslot.c (ttyslot): Likewise.
16820         * nis/nis_hash.c (__nis_hash): Likewise.
16821         * posix/fnmatch_loop.c (FCT): Likewise.
16822         * posix/getconf.c (print_all): Likewise.
16823         (main): Likewise.
16824         * posix/getopt.c (exchange): Likewise.
16825         * posix/glob.c (globfree): Likewise.
16826         (prefix_array): Likewise.
16827         (__glob_pattern_type): Likewise.
16828         * resolv/arpa/nameser.h (NS_GET16): Likewise.
16829         (NS_GET32): Likewise.
16830         (NS_PUT16): Likewise.
16831         (NS_PUT32): Likewise.
16832         * resolv/gethnamaddr.c (getanswer): Likewise.
16833         (gethostbyname2): Likewise.
16834         (gethostbyaddr): Likewise.
16835         (_gethtent): Likewise.
16836         (_gethtbyname2): Likewise.
16837         (_gethtbyaddr): Likewise.
16838         * resolv/ns_print.c (dst_s_get_int16): Likewise.
16839         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
16840         * resolv/res_init.c (__res_vinit): Likewise.
16841         (net_mask): Likewise.
16842         * resolv/res_mkquery.c (outchar): Likewise.
16843         (PRINT): Likewise.
16844         * stdio-common/printf_fp.c (outchar): Likewise.
16845         (PRINT): Likewise.
16846         * stdio-common/printf_fphex.c (outchar): Likewise.
16847         (PRINT): Likewise.
16848         * stdio-common/printf_size.c (outchar): Likewise.
16849         (PRINT): Likewise.
16850         * stdio-common/test_rdwr.c (main): Likewise.
16851         * stdio-common/tfformat.c (matches): Likewise.
16852         * stdio-common/vfprintf.c (outchar): Likewise.
16853         (printf_unknown): Likewise.
16854         (buffered_vfprintf): Likewise.
16855         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
16856         * stdio-common/xbug.c (AppendToBuffer): Likewise.
16857         (ReadFile): Likewise.
16858         * stdlib/qsort.c (SWAP): Likewise.
16859         (_quicksort): Likewise.
16860         * stdlib/setenv.c (__add_to_environ): Likewise.
16861         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
16862         * stdlib/strtol_l.c (__strtol_l): Likewise.
16863         * stdlib/tst-strtod.c (main): Likewise.
16864         * stdlib/tst-strtol.c (main): Likewise.
16865         * stdlib/tst-strtoll.c (main): Likewise.
16866         * string/bits/string2.h (__strcmp_cc): Likewise.
16867         (__strcmp_cg): Likewise.
16868         (__strcspn_c1): Likewise.
16869         (__strcspn_c2): Likewise.
16870         (__strcspn_c3): Likewise.
16871         (__strspn_c1): Likewise.
16872         (__strspn_c2): Likewise.
16873         (__strspn_c3): Likewise.
16874         (__strsep_1c): Likewise.
16875         (__strsep_2c): Likewise.
16876         (__strsep_3c): Likewise.
16877         * string/memccpy.c (__memccpy): Likewise.
16878         * string/stpcpy.c (__stpcpy): Likewise.
16879         * string/strcmp.c (strcmp): Likewise.
16880         * string/strrchr.c (strrchr): Likewise.
16881         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
16882         Likewise.
16883         * sysdeps/mach/hurd/getcwd.c
16884         (_hurd_canonicalize_directory_name_internal): Likewise.
16885         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
16886         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
16887         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
16888         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
16889         Likewise, in both definitions.
16890         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
16891         definitions.
16892         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
16893         64] (__bswap_64): Likewise.
16894         * time/test_time.c (main): Likewise.
16895         * time/tzfile.c (__tzfile_read): Likewise.
16896         (__tzfile_compute): Likewise.
16897         * time/tzset.c (__tzset_parse_tz): Likewise.
16898         (tzset_internal): Likewise.
16899         (compute_change): Likewise.
16900         * wcsmbs/wcscat.c (__wcscat): Likewise.
16901         * wcsmbs/wcschr.c (wcschr): Likewise.
16902         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
16903         * wcsmbs/wcscspn.c (wcscspn): Likewise.
16904         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
16905         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
16906         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16907         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16908         * wcsmbs/wmemchr.c (wmemchr): Likewise.
16909         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16910         * wcsmbs/wmemset.c (wmemset): Likewise.
16911
16912 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
16913
16914         * scripts/config.guess: Update to version 2013-05-16.
16915         * scripts/config.sub: Update to version 2013-04-24.
16916         * scripts/install-sh: Update to version 2011-11-20.07.
16917         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
16918         * scripts/move-if-change: Update to version 2012-01-06 07:23.
16919
16920 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
16921
16922         * debug/fgetws_u_chk.c: Fix leading whitespaces.
16923         * elf/sln.c: Likewise.
16924         * hurd/hurd/ioctl.h: Likewise.
16925         * hurd/hurdmalloc.c: Likewise.
16926         * hurd/xattr.c: Likewise.
16927         * include/shlib-compat.h: Likewise.
16928         * inet/ruserpass.c: Likewise.
16929         * libio/iofgets_u.c: Likewise.
16930         * libio/iofgetws_u.c: Likewise.
16931         * locale/programs/ld-identification.c: Likewise.
16932         * locale/programs/ld-time.c: Likewise.
16933         * mach/msg-destroy.c: Likewise.
16934         * nss/nss_files/files-netgrp.c: Likewise.
16935         * resolv/res_data.c: Likewise.
16936         * soft-fp/op-1.h: Likewise.
16937         * soft-fp/op-2.h: Likewise.
16938         * soft-fp/op-4.h: Likewise.
16939         * soft-fp/op-common.h: Likewise.
16940         * stdio-common/printf_fphex.c: Likewise.
16941         * stdlib/strtod_l.c: Likewise.
16942         * sunrpc/rpc/clnt.h: Likewise.
16943         * sysdeps/generic/framestate.c: Likewise.
16944         * sysdeps/i386/bsd-_setjmp.S: Likewise.
16945         * sysdeps/i386/bsd-setjmp.S: Likewise.
16946         * sysdeps/i386/__longjmp.S: Likewise.
16947         * sysdeps/i386/setjmp.S: Likewise.
16948         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16949         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16950         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16951         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16952         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16953         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
16954         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16955         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16956         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16957         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
16958         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
16959         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
16960         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
16961         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
16962         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
16963         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16964         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
16965         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
16966         * sysdeps/ieee754/support.c: Likewise.
16967         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
16968         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
16969         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
16970         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
16971         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
16972         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
16973         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
16974         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
16975         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
16976         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
16977         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
16978         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
16979         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
16980         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
16981         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
16982         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
16983         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
16985
16986 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
16987
16988         * posix/transbug.c: Remove executable mode.
16989
16990 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
16991
16992         * crypt/speeds.c: Remove trailing whitespace.
16993         * dlfcn/default.c: Likewise.
16994         * elf/ifuncdep2.c: Likewise.
16995         * elf/ifuncmain1.c: Likewise.
16996         * elf/ifuncmain1vis.c: Likewise.
16997         * elf/testobj.h: Likewise.
16998         * elf/tst-stackguard1.c: Likewise.
16999         * gmon/sys/gmon.h: Likewise.
17000         * hurd/hurdmsg.c: Likewise.
17001         * hurd/new-fd.c: Likewise.
17002         * hurd/ports-get.c: Likewise.
17003         * iconvdata/ibm1008_420.c: Likewise.
17004         * inet/tst-getni1.c: Likewise.
17005         * inet/tst-getni2.c: Likewise.
17006         * libio/ioungetc.c: Likewise.
17007         * libio/wfiledoalloc.c: Likewise.
17008         * manual/libm-err-tab.pl: Likewise.
17009         * math/w_dremf.c: Likewise.
17010         * misc/ftruncate.c: Likewise.
17011         * posix/bug-glob2.c: Likewise.
17012         * posix/tst-pcre.c: Likewise.
17013         * posix/wait4.c: Likewise.
17014         * resolv/README: Likewise.
17015         * resolv/res_debug.h: Likewise.
17016         * resolv/tst-inet_ntop.c: Likewise.
17017         * setjmp/bug269-setjmp.c: Likewise.
17018         * soft-fp/extended.h: Likewise.
17019         * soft-fp/op-1.h: Likewise.
17020         * soft-fp/op-2.h: Likewise.
17021         * soft-fp/op-4.h: Likewise.
17022         * soft-fp/op-8.h: Likewise.
17023         * soft-fp/testit.c: Likewise.
17024         * stdio-common/bug16.c: Likewise.
17025         * stdlib/random.c: Likewise.
17026         * sunrpc/rpcsvc/rquota.x: Likewise.
17027         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
17028         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
17029         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17030         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17031         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17032         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17033         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
17034         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17035         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
17036         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
17037         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
17038         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
17039         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17040         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17041         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17042         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17043         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17044         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17045         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
17046         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
17047         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
17048         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
17049         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
17050         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
17051         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17052         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17053         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17054         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17055         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17056         * sysdeps/ieee754/s_lib_version.c: Likewise.
17057         * sysdeps/mach/hurd/check_fds.c: Likewise.
17058         * sysdeps/mach/hurd/getsockname.c: Likewise.
17059         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
17060         * sysdeps/mach/hurd/recvfrom.c: Likewise.
17061         * sysdeps/powerpc/bits/link.h: Likewise.
17062         * sysdeps/powerpc/dl-procinfo.c: Likewise.
17063         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
17064         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
17065         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
17066         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
17067         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
17068         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
17069         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
17070         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
17071         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
17072         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
17073         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
17074         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
17075         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
17076         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
17077         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
17078         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
17079         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
17080         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
17081         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
17082         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
17083         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
17084         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
17085         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
17086         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
17087         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
17088         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
17089         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
17090         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
17091         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
17092         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
17093         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
17094         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
17095         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17096         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
17097         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
17098         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
17099         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
17100         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
17101         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
17102         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
17103         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
17104         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
17105         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
17106         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
17107         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
17108         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
17109         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
17110         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
17111         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
17112         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
17113         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
17114         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
17115         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
17116         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
17117         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
17118         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
17119         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
17120         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
17121         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
17122         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
17123         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
17124         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
17125         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
17126         * sysdeps/powerpc/sysdep.h: Likewise.
17127         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17128         * sysdeps/s390/s390-64/sub_n.S: Likewise.
17129         * sysdeps/sh/dl-trampoline.S: Likewise.
17130         * sysdeps/sh/memset.S: Likewise.
17131         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
17132         * sysdeps/sh/strlen.S: Likewise.
17133         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
17134         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
17135         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
17136         * sysdeps/sparc/sparc32/rem.S: Likewise.
17137         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17138         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
17139         * sysdeps/sparc/sparc32/strchr.S: Likewise.
17140         * sysdeps/sparc/sparc32/udiv.S: Likewise.
17141         * sysdeps/sparc/sparc32/urem.S: Likewise.
17142         * sysdeps/sparc/sparc64/add_n.S: Likewise.
17143         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
17144         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
17145         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
17146         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
17147         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
17148         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
17149         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
17150         * sysdeps/unix/bsd/times.c: Likewise.
17151         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
17152         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
17153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
17154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
17155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
17156         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
17157         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
17158         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
17159         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
17160         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
17161         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
17162         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
17163         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
17164         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
17165         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
17166         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17167         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
17168         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
17169         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
17170         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
17171         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
17172         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
17173         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
17174         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
17175         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
17176         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
17177         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
17178         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
17179         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
17180         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
17181         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
17182         * sysdeps/x86_64/strcspn.S: Likewise.
17183
17184 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17185
17186         * locale/C-translit.h: Revert #include <stdint.h> because this is a
17187         generated file.  Regenerate properly from gen-translit.pl.
17188         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
17189         locale/C-translit.h.
17190
17191 2013-06-05  Andreas Schwab  <schwab@suse.de>
17192
17193         [BZ #15100]
17194         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
17195         week as 6 instead of -1.
17196         * time/tst-strptime.c (day_tests): Add test case.
17197
17198 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
17199
17200         * sysdeps/generic/math_private.h
17201         (libc_feholdexcept_setround_53bit): Replace with
17202         libc_feholdsetround_53bit.
17203         (libc_feupdateenv_53bit): Replace with
17204         libc_feresetround_53bit.
17205         (SET_RESTORE_ROUND_53BIT): Adjust.
17206
17207 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
17208
17209         * string/test-strchrnul.c: Add copyright header.
17210
17211         * posix/tst-getaddrinfo4.c: Increase test timeout.
17212
17213 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
17214
17215         [BZ #15536]
17216         * math/libm-test.inc (MAX_EXP): Remove
17217         (MIN_EXP): Define.
17218         (ulp): Use MIN_EXP - MANT_DIG.
17219         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
17220
17221 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
17222
17223         * po/be.po: Revert last change.
17224         * po/zh_CN.po: Likewise.
17225         * po/header.pot: Likewise.
17226
17227 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
17228
17229         * Makefile ($(common-objpfx)linkobj/libc.so): Define
17230         link-libc-deps to empty as target-specific variable.
17231         * Makerules (link-libc-args): New variable.
17232         (libc-for-link): Likewise.
17233         (link-libc-deps): Likewise.
17234         (lib%.so): Depend on $(link-libc-deps).  Link with
17235         $(link-libc-args).
17236         (build-module): Link with $(link-libc-args).
17237         (build-module-asneeded): Likewise.
17238         (build-module-helper-objlist): Filter out $(link-libc-deps) from
17239         list of objects.
17240         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
17241         target-specific variable.
17242         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
17243         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
17244         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
17245         libc.
17246         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
17247         libc and ld.so.
17248         ($(objpfx)libpcprofile.so): Likewise.
17249         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
17250         libc_nonshared.a.
17251         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
17252         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
17253         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
17254         $(link-libc-deps).
17255         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
17256         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
17257         * login/Makefile ($(objpfx)libutil.so): Likewise.
17258         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
17259         * math/Makefile ($(objpfx)libm.so): Likewise.
17260         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
17261         $(objpfx)libnsl.so): Define libc-for-link as target-specific
17262         variable instead of depending directly on libc.
17263         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
17264         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
17265         $(link-libc-deps).
17266         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
17267         libc.
17268         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
17269         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
17270         ($(objpfx)libanl.so): Likewise.
17271         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
17272         ld.so.
17273         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
17274         $(link-libc-deps).
17275         * sysdeps/i386/fpu/Makefile: Remove file.
17276         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
17277         ($(objpfx)libm.so): Remove dependency on ld.so.
17278
17279 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
17280
17281         [BZ # 15553]
17282         * nis/yp_xdr.c (XDRMAXNAME): Define.
17283         (XDRMAXRECORD): Define.
17284         (xdr_domainname): Use XDRMAXNAME.
17285         (xdr_mapname): Likewise.
17286         (xdr_peername): Likewise.
17287         (xdr_keydat): Use XDRMAXRECORD.
17288         (xdr_valdat): Likewise.
17289
17290 2013-05-30  Jeff Law  <law@redhat.com>
17291
17292         [BZ #14256]
17293         * manual/errno.texi (ESTALE): Update to account for more than
17294         just NFS file systems.
17295         * sysdeps/gnu/errlist.c: Regenerated.
17296
17297 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
17298
17299         [BZ #15465]
17300         * elf/Makefile (tests): Add tst-null-argv.
17301         (modules-names):  Add tst-null-argv-lib.
17302         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
17303         (tst-null-argv-ENV): Set environment for tst-null-argv.
17304         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
17305         (RTLD_PROGNAME): New macro.
17306         * elf/tst-null-argv.c: New test case.
17307         * elf/tst-null-argv-lib.c: Library for test case.
17308         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
17309         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
17310         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
17311         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
17312         * elf/dl-init.c (call_init): Likewise.
17313         (_dl_init): Likewise.
17314         * elf/dl-load.c (print_search_path): Likewise.
17315         (_dl_map_object): Likewise.
17316         * elf/dl-lookup.c (do_lookup_x): Likewise.
17317         (add_dependency): Likewise.
17318         (_dl_lookup_symbol_x): Likewise.
17319         (_dl_debug_bindings): Likewise.
17320         * elf/dl-open.c (_dl_show_scope): Likewise.
17321         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
17322         * elf/dl-version.c (match_symbol): Likewise.
17323         (_dl_check_map_versions): Likewise.
17324         * elf/rtld.c (dl_main): Likewise.
17325         (print_unresolved): Use RTLD_PROGNAME.
17326         (print_missing_version): Likewise.
17327         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
17328         (elf_machine_rela): Likewise.
17329         * sysdeps/powerpc/powerpc32/dl-machine.c
17330         (__process_machine_rela): Likewise.
17331         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17332         Likewise.
17333         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
17334         Likewise.
17335         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
17336         Likewise.
17337         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17338         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
17339         Likewise.
17340         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
17341         Likewise.
17342         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17343
17344 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
17345
17346         * po/be.po: Add descriptive title.
17347         * po/zh_CN.po: Likewise.
17348         * po/header.pot: Likewise.
17349
17350 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
17351
17352         * locale/programs/locarchive.c (create_archive): Inlucde fname in
17353         error message.
17354         (enlarge_archive): Likewise.
17355
17356 2013-05-28  Ben North  <ben@redfrontdoor.org>
17357
17358         * manual/arith.texi (frexp): It is the magnitude of the return
17359         value which lies in [0.5, 1), not the return value itself.
17360
17361 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17362
17363         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17364
17365 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
17366
17367         * stdio-common/bug26.c (main): Correct fscanf template.
17368
17369         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
17370         declare _dl_skip_args.
17371
17372         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
17373         Don't declare.
17374
17375         * manual/platform.texi: Add missing @end deftypefun.
17376
17377 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
17378
17379         [BZ #15529]
17380         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
17381         bit of mantissa of 2^16382.
17382         * math/libm-test.inc (hypot_test_data): Add more tests.
17383
17384         * math/libm-test.inc: Add drem and pow10 to list of tested
17385         functions.
17386         (pow10_test): New function.
17387         (drem_test): Likewise.
17388         (drem_test_tonearest): Likewise.
17389         (drem_test_towardzero): Likewise.
17390         (drem_test_downward): Likewise.
17391         (drem_test_upward): Likewise.
17392         (main): Call the new functions.
17393
17394         * math/libm-test.inc (finite_test_data): Remove.
17395         (finite_test): Run tests from isfinite_test_data.
17396         (gamma_test_data): Remove.
17397         (gamma_test): Run tests from lgamma_test_data.
17398         * sysdeps/i386/fpu/libm-test-ulps: Update.
17399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17400
17401 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17402
17403         * manual/platform.texi: Add PowerPC PPR function set documentation.
17404         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
17405         implementation.
17406
17407 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
17408
17409         * math/libm-test.inc (MAX_EXP): Define.
17410         (ULPDIFF): Define.
17411         (ulp): New function.
17412         (check_float_internal): Use ULPDIFF.
17413         (cpow_test): Disable failing test.
17414         (check_ulp): Test ulp() implemetnation.
17415         (main): Call check_ulp before starting tests.
17416
17417 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
17418
17419         * math/gen-libm-test.pl (generate_testfile): Do not handle
17420         START_DATA and END_DATA.
17421         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
17422         END_DATA.
17423         (acos_tonearest_test_data): Likewise.
17424         (acos_towardzero_test_data): Likewise.
17425         (acos_downward_test_data): Likewise.
17426         (acos_upward_test_data): Likewise.
17427         (acosh_test_data): Likewise.
17428         (asin_test_data): Likewise.
17429         (asin_tonearest_test_data): Likewise.
17430         (asin_towardzero_test_data): Likewise.
17431         (asin_downward_test_data): Likewise.
17432         (asin_upward_test_data): Likewise.
17433         (asinh_test_data): Likewise.
17434         (atan_test_data): Likewise.
17435         (atanh_test_data): Likewise.
17436         (atan2_test_data): Likewise.
17437         (cabs_test_data): Likewise.
17438         (cacos_test_data): Likewise.
17439         (cacosh_test_data): Likewise.
17440         (carg_test_data): Likewise.
17441         (casin_test_data): Likewise.
17442         (casinh_test_data): Likewise.
17443         (catan_test_data): Likewise.
17444         (catanh_test_data): Likewise.
17445         (cbrt_test_data): Likewise.
17446         (ccos_test_data): Likewise.
17447         (ccosh_test_data): Likewise.
17448         (ceil_test_data): Likewise.
17449         (cexp_test_data): Likewise.
17450         (cimag_test_data): Likewise.
17451         (clog_test_data): Likewise.
17452         (clog10_test_data): Likewise.
17453         (conj_test_data): Likewise.
17454         (copysign_test_data): Likewise.
17455         (cos_test_data): Likewise.
17456         (cos_tonearest_test_data): Likewise.
17457         (cos_towardzero_test_data): Likewise.
17458         (cos_downward_test_data): Likewise.
17459         (cos_upward_test_data): Likewise.
17460         (cosh_test_data): Likewise.
17461         (cosh_tonearest_test_data): Likewise.
17462         (cosh_towardzero_test_data): Likewise.
17463         (cosh_downward_test_data): Likewise.
17464         (cosh_upward_test_data): Likewise.
17465         (cpow_test_data): Likewise.
17466         (cproj_test_data): Likewise.
17467         (creal_test_data): Likewise.
17468         (csin_test_data): Likewise.
17469         (csinh_test_data): Likewise.
17470         (csqrt_test_data): Likewise.
17471         (ctan_test_data): Likewise.
17472         (ctan_tonearest_test_data): Likewise.
17473         (ctan_towardzero_test_data): Likewise.
17474         (ctan_downward_test_data): Likewise.
17475         (ctan_upward_test_data): Likewise.
17476         (ctanh_test_data): Likewise.
17477         (ctanh_tonearest_test_data): Likewise.
17478         (ctanh_towardzero_test_data): Likewise.
17479         (ctanh_downward_test_data): Likewise.
17480         (ctanh_upward_test_data): Likewise.
17481         (erf_test_data): Likewise.
17482         (erfc_test_data): Likewise.
17483         (exp_test_data): Likewise.
17484         (exp_tonearest_test_data): Likewise.
17485         (exp_towardzero_test_data): Likewise.
17486         (exp_downward_test_data): Likewise.
17487         (exp_upward_test_data): Likewise.
17488         (exp10_test_data): Likewise.
17489         (exp2_test_data): Likewise.
17490         (expm1_test_data): Likewise.
17491         (fabs_test_data): Likewise.
17492         (fdim_test_data): Likewise.
17493         (finite_test_data): Likewise.
17494         (floor_test_data): Likewise.
17495         (fma_test_data): Likewise.
17496         (fma_towardzero_test_data): Likewise.
17497         (fma_downward_test_data): Likewise.
17498         (fma_upward_test_data): Likewise.
17499         (fmax_test_data): Likewise.
17500         (fmin_test_data): Likewise.
17501         (fmod_test_data): Likewise.
17502         (fpclassify_test_data): Likewise.
17503         (frexp_test_data): Likewise.
17504         (gamma_test_data): Likewise.
17505         (hypot_test_data): Likewise.
17506         (ilogb_test_data): Likewise.
17507         (isfinite_test_data): Likewise.
17508         (isgreater_test_data): Likewise.
17509         (isgreaterequal_test_data): Likewise.
17510         (isinf_test_data): Likewise.
17511         (isless_test_data): Likewise.
17512         (islessequal_test_data): Likewise.
17513         (islessgreater_test_data): Likewise.
17514         (isnan_test_data): Likewise.
17515         (isnormal_test_data): Likewise.
17516         (issignaling_test_data): Likewise.
17517         (isunordered_test_data): Likewise.
17518         (j0_test_data): Likewise.
17519         (j1_test_data): Likewise.
17520         (jn_test_data): Likewise.
17521         (ldexp_test_data): Likewise.
17522         (lgamma_test_data): Likewise.
17523         (lrint_test_data): Likewise.
17524         (lrint_tonearest_test_data): Likewise.
17525         (lrint_towardzero_test_data): Likewise.
17526         (lrint_downward_test_data): Likewise.
17527         (lrint_upward_test_data): Likewise.
17528         (llrint_test_data): Likewise.
17529         (llrint_tonearest_test_data): Likewise.
17530         (llrint_towardzero_test_data): Likewise.
17531         (llrint_downward_test_data): Likewise.
17532         (llrint_upward_test_data): Likewise.
17533         (log_test_data): Likewise.
17534         (log10_test_data): Likewise.
17535         (log1p_test_data): Likewise.
17536         (log2_test_data): Likewise.
17537         (logb_test_data): Likewise.
17538         (logb_downward_test_data): Likewise.
17539         (lround_test_data): Likewise.
17540         (llround_test_data): Likewise.
17541         (modf_test_data): Likewise.
17542         (nearbyint_test_data): Likewise.
17543         (nextafter_test_data): Likewise.
17544         (nexttoward_test_data): Likewise.
17545         (pow_test_data): Likewise.
17546         (pow_tonearest_test_data): Likewise.
17547         (pow_towardzero_test_data): Likewise.
17548         (pow_downward_test_data): Likewise.
17549         (pow_upward_test_data): Likewise.
17550         (remainder_test_data): Likewise.
17551         (remainder_tonearest_test_data): Likewise.
17552         (remainder_towardzero_test_data): Likewise.
17553         (remainder_downward_test_data): Likewise.
17554         (remainder_upward_test_data): Likewise.
17555         (remquo_test_data): Likewise.
17556         (rint_test_data): Likewise.
17557         (rint_tonearest_test_data): Likewise.
17558         (rint_towardzero_test_data): Likewise.
17559         (rint_downward_test_data): Likewise.
17560         (rint_upward_test_data): Likewise.
17561         (round_test_data): Likewise.
17562         (scalb_test_data): Likewise.
17563         (scalbn_test_data): Likewise.
17564         (scalbln_test_data): Likewise.
17565         (signbit_test_data): Likewise.
17566         (sin_test_data): Likewise.
17567         (sin_tonearest_test_data): Likewise.
17568         (sin_towardzero_test_data): Likewise.
17569         (sin_downward_test_data): Likewise.
17570         (sin_upward_test_data): Likewise.
17571         (sincos_test_data): Likewise.
17572         (sinh_test_data): Likewise.
17573         (sinh_tonearest_test_data): Likewise.
17574         (sinh_towardzero_test_data): Likewise.
17575         (sinh_downward_test_data): Likewise.
17576         (sinh_upward_test_data): Likewise.
17577         (sqrt_test_data): Likewise.
17578         (tan_test_data): Likewise.
17579         (tan_tonearest_test_data): Likewise.
17580         (tan_towardzero_test_data): Likewise.
17581         (tan_downward_test_data): Likewise.
17582         (tan_upward_test_data): Likewise.
17583         (tanh_test_data): Likewise.
17584         (tgamma_test_data): Likewise.
17585         (trunc_test_data): Likewise.
17586         (y0_test_data): Likewise.
17587         (y1_test_data): Likewise.
17588         (yn_test_data): Likewise.
17589         (significand_test_data): Likewise.
17590
17591         * math/gen-libm-test.pl (@functions): Remove variable.
17592         (generate_testfile): Don't handle START and END lines.
17593         * math/libm-test.inc (START): New macro.
17594         (END): Likewise.
17595         (END_COMPLEX): Likewise.
17596         (acos_test): Use END macro without arguments.
17597         (acos_test_tonearest): Likewise.
17598         (acos_test_towardzero): Likewise.
17599         (acos_test_downward): Likewise.
17600         (acos_test_upward): Likewise.
17601         (acosh_test): Likewise.
17602         (asin_test): Likewise.
17603         (asin_test_tonearest): Likewise.
17604         (asin_test_towardzero): Likewise.
17605         (asin_test_downward): Likewise.
17606         (asin_test_upward): Likewise.
17607         (asinh_test): Likewise.
17608         (atan_test): Likewise.
17609         (atanh_test): Likewise.
17610         (atan2_test): Likewise.
17611         (cabs_test): Likewise.
17612         (cacos_test): Use END_COMPLEX macro without arguments.
17613         (cacosh_test): Likewise.
17614         (carg_test): Use END macro without arguments.
17615         (casin_test): Use END_COMPLEX macro without arguments.
17616         (casinh_test): Likewise.
17617         (catan_test): Likewise.
17618         (catanh_test): Likewise.
17619         (cbrt_test): Use END macro without arguments.
17620         (ccos_test): Use END_COMPLEX macro without arguments.
17621         (ccosh_test): Likewise.
17622         (ceil_test): Use END macro without arguments.
17623         (cexp_test): Use END_COMPLEX macro without arguments.
17624         (cimag_test): Use END macro without arguments.
17625         (clog_test): Use END_COMPLEX macro without arguments.
17626         (clog10_test): Likewise.
17627         (conj_test): Likewise.
17628         (copysign_test): Use END macro without arguments.
17629         (cos_test): Likewise.
17630         (cos_test_tonearest): Likewise.
17631         (cos_test_towardzero): Likewise.
17632         (cos_test_downward): Likewise.
17633         (cos_test_upward): Likewise.
17634         (cosh_test): Likewise.
17635         (cosh_test_tonearest): Likewise.
17636         (cosh_test_towardzero): Likewise.
17637         (cosh_test_downward): Likewise.
17638         (cosh_test_upward): Likewise.
17639         (cpow_test): Use END_COMPLEX macro without arguments.
17640         (cproj_test): Likewise.
17641         (creal_test): Use END macro without arguments.
17642         (csin_test): Use END_COMPLEX macro without arguments.
17643         (csinh_test): Likewise.
17644         (csqrt_test): Likewise.
17645         (ctan_test): Likewise.
17646         (ctan_test_tonearest): Likewise.
17647         (ctan_test_towardzero): Likewise.
17648         (ctan_test_downward): Likewise.
17649         (ctan_test_upward): Likewise.
17650         (ctanh_test): Likewise.
17651         (ctanh_test_tonearest): Likewise.
17652         (ctanh_test_towardzero): Likewise.
17653         (ctanh_test_downward): Likewise.
17654         (ctanh_test_upward): Likewise.
17655         (erf_test): Use END macro without arguments.
17656         (erfc_test): Likewise.
17657         (exp_test): Likewise.
17658         (exp_test_tonearest): Likewise.
17659         (exp_test_towardzero): Likewise.
17660         (exp_test_downward): Likewise.
17661         (exp_test_upward): Likewise.
17662         (exp10_test): Likewise.
17663         (exp2_test): Likewise.
17664         (expm1_test): Likewise.
17665         (fabs_test): Likewise.
17666         (fdim_test): Likewise.
17667         (finite_test): Likewise.
17668         (floor_test): Likewise.
17669         (fma_test): Likewise.
17670         (fma_test_towardzero): Likewise.
17671         (fma_test_downward): Likewise.
17672         (fma_test_upward): Likewise.
17673         (fmax_test): Likewise.
17674         (fmin_test): Likewise.
17675         (fmod_test): Likewise.
17676         (fpclassify_test): Likewise.
17677         (frexp_test): Likewise.
17678         (gamma_test): Likewise.
17679         (hypot_test): Likewise.
17680         (ilogb_test): Likewise.
17681         (isfinite_test): Likewise.
17682         (isgreater_test): Likewise.
17683         (isgreaterequal_test): Likewise.
17684         (isinf_test): Likewise.
17685         (isless_test): Likewise.
17686         (islessequal_test): Likewise.
17687         (islessgreater_test): Likewise.
17688         (isnan_test): Likewise.
17689         (isnormal_test): Likewise.
17690         (issignaling_test): Likewise.
17691         (isunordered_test): Likewise.
17692         (j0_test): Likewise.
17693         (j1_test): Likewise.
17694         (jn_test): Likewise.
17695         (ldexp_test): Likewise.
17696         (lgamma_test): Likewise.
17697         (lrint_test): Likewise.
17698         (lrint_test_tonearest): Likewise.
17699         (lrint_test_towardzero): Likewise.
17700         (lrint_test_downward): Likewise.
17701         (lrint_test_upward): Likewise.
17702         (llrint_test): Likewise.
17703         (llrint_test_tonearest): Likewise.
17704         (llrint_test_towardzero): Likewise.
17705         (llrint_test_downward): Likewise.
17706         (llrint_test_upward): Likewise.
17707         (log_test): Likewise.
17708         (log10_test): Likewise.
17709         (log1p_test): Likewise.
17710         (log2_test): Likewise.
17711         (logb_test): Likewise.
17712         (logb_test_downward): Likewise.
17713         (lround_test): Likewise.
17714         (llround_test): Likewise.
17715         (modf_test): Likewise.
17716         (nearbyint_test): Likewise.
17717         (nextafter_test): Likewise.
17718         (nexttoward_test): Likewise.
17719         (pow_test): Likewise.
17720         (pow_test_tonearest): Likewise.
17721         (pow_test_towardzero): Likewise.
17722         (pow_test_downward): Likewise.
17723         (pow_test_upward): Likewise.
17724         (remainder_test): Likewise.
17725         (remainder_test_tonearest): Likewise.
17726         (remainder_test_towardzero): Likewise.
17727         (remainder_test_downward): Likewise.
17728         (remainder_test_upward): Likewise.
17729         (remquo_test): Likewise.
17730         (rint_test): Likewise.
17731         (rint_test_tonearest): Likewise.
17732         (rint_test_towardzero): Likewise.
17733         (rint_test_downward): Likewise.
17734         (rint_test_upward): Likewise.
17735         (round_test): Likewise.
17736         (scalb_test): Likewise.
17737         (scalbn_test): Likewise.
17738         (scalbln_test): Likewise.
17739         (signbit_test): Likewise.
17740         (sin_test): Likewise.
17741         (sin_test_tonearest): Likewise.
17742         (sin_test_towardzero): Likewise.
17743         (sin_test_downward): Likewise.
17744         (sin_test_upward): Likewise.
17745         (sincos_test): Likewise.
17746         (sinh_test): Likewise.
17747         (sinh_test_tonearest): Likewise.
17748         (sinh_test_towardzero): Likewise.
17749         (sinh_test_downward): Likewise.
17750         (sinh_test_upward): Likewise.
17751         (sqrt_test): Likewise.
17752         (tan_test): Likewise.
17753         (tan_test_tonearest): Likewise.
17754         (tan_test_towardzero): Likewise.
17755         (tan_test_downward): Likewise.
17756         (tan_test_upward): Likewise.
17757         (tanh_test): Likewise.
17758         (tgamma_test): Likewise.
17759         (trunc_test): Likewise.
17760         (y0_test): Likewise.
17761         (y1_test): Likewise.
17762         (yn_test): Likewise.
17763         (significand_test): Likewise.
17764
17765 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
17766
17767         [BZ #15381]
17768         * libio/genops.c (_IO_no_init): Initialize wide struct info.
17769
17770 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17771
17772         [BZ #14894]
17773         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
17774         __ppc_mdoio and __ppc_mdoom.
17775         * manual/platform.texi: Document new functions __ppc_yield,
17776         __ppc_mdoio and __ppc_mdoom.
17777
17778 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
17779
17780         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
17781         (main): Mention "tls" pseudo-hwcap is legacy.
17782         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
17783
17784 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17785
17786         * math/gen-libm-test.pl (parse_args): Output only string of
17787         arguments as text for test name, not full call or descriptions of
17788         tests for extra outputs.
17789         (generate_testfile): Do not pass function name to parse_args.
17790         Generate this_func variable from START.
17791         * math/libm-test.inc (struct test_f_f_data): Rename test_name
17792         field to arg_str.
17793         (struct test_ff_f_data): Likewise.
17794         (test_ff_f_data_nexttoward): Likewise.
17795         (struct test_fi_f_data): Likewise.
17796         (struct test_fl_f_data): Likewise.
17797         (struct test_if_f_data): Likewise.
17798         (struct test_fff_f_data): Likewise.
17799         (struct test_c_f_data): Likewise.
17800         (struct test_f_f1_data): Likewise.  Remove field extra_name.
17801         (struct test_fF_f1_data): Likewise.
17802         (struct test_ffI_f1_data): Likewise.
17803         (struct test_c_c_data): Rename test_name field to arg_str.
17804         (struct test_cc_c_data): Likewise.
17805         (struct test_f_i_data): Likewise.
17806         (struct test_ff_i_data): Likewise.
17807         (struct test_f_l_data): Likewise.
17808         (struct test_f_L_data): Likewise.
17809         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
17810         and extra2_name.
17811         (COMMON_TEST_SETUP): New macro.
17812         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
17813         (COMMON_TEST_CLEANUP): Likewise.
17814         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
17815         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
17816         macros.
17817         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
17818         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
17819         macros.
17820         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
17821         (RUN_TEST_fff_f): Take argument string.  Call new setup and
17822         cleanup macros.
17823         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
17824         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
17825         macros.
17826         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
17827         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
17828         macros.
17829         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17830         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
17831         cleanup macros.
17832         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17833         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
17834         cleanup macros.
17835         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17836         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
17837         cleanup macros.
17838         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17839         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
17840         macros.
17841         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
17842         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
17843         macros.
17844         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
17845         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
17846         macros.
17847         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
17848         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
17849         cleanup macros.
17850         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
17851         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
17852         cleanup macros.
17853         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
17854         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
17855         macros.
17856         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
17857         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
17858         cleanup macros.
17859         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
17860         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
17861         macros.
17862         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
17863         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
17864         macros.
17865         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
17866         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
17867         cleanup macros.
17868         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
17869
17870 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
17871
17872         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
17873         to _sifields.sigfault.
17874         (si_addr_lsb): Define new macro.
17875         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17876         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17877         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
17878
17879 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
17880
17881         [BZ #15441]
17882         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
17883         returns -1.
17884         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
17885         null return -1.
17886         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
17887         loading the domain.
17888
17889 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17890
17891         * math/gen-libm-test.pl (parse_args): Do not include expected
17892         result in test name.
17893         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
17894         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17895         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17896         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17897         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17899
17900 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17901
17902         * benchtests/Makefile: Sort function entries.
17903
17904         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
17905         tanh, asinh, acosh, atanh.
17906         * benchtests/acos-inputs: New file.
17907         * benchtests/acosh-inputs: New file.
17908         * benchtests/asin-inputs: New file.
17909         * benchtests/asinh-inputs: New file.
17910         * benchtests/atanh-inputs: New file.
17911         * benchtests/cosh-inputs: New file.
17912         * benchtests/log-inputs: New file.
17913         * benchtests/sinh-inputs: New file.
17914         * benchtests/tanh-inputs: New file.
17915
17916 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
17917
17918         [BZ #15339]
17919         * posix/tst-getaddrinfo4.c: New test.
17920         * posix/Makefile (tests): Add it.
17921
17922 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17923
17924         [BZ #15339]
17925         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
17926         when no services were used.
17927         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
17928         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
17929
17930 2013-05-21  Andreas Schwab  <schwab@suse.de>
17931
17932         [BZ #15014]
17933         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
17934         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
17935         successful.
17936         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
17937         redundant variable declarations and reallocation of buffer when
17938         parsing as IPv6 address.  Always set NSS status when called from
17939         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
17940         buffer too small.  Correct computation of needed size.
17941         * nss/Makefile (tests): Add test-digits-dots.
17942         * nss/test-digits-dots.c: New test.
17943
17944 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17945
17946         * benchtests/Makefile: Remove instructions for adding
17947         benchmark tests.
17948         * benchtests/README: New file to explain how to execute and
17949         enhance the benchmark tests.
17950
17951 2013-05-21  Andreas Schwab  <schwab@suse.de>
17952
17953         [BZ #15493]
17954         * setjmp/Makefile (tests): Add tst-sigsetjmp.
17955         * setjmp/tst-sigsetjmp.c: New test.
17956
17957 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17958
17959         * sysdeps/x86_64/memset.S (memset): New implementation.
17960         (__bzero): Likewise.
17961         (__memset_tail): New function.
17962
17963 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17964
17965         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
17966         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
17967         __memcpy_sse2_unaligned ifunc selection.
17968         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
17969         Add memcpy-sse2-unaligned.S.
17970         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
17971         Add: __memcpy_sse2_unaligned.
17972
17973 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
17974
17975         [BZ #15490]
17976         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
17977         math_force_eval before restoring floating-point envrionment.
17978         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
17979         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
17980         Likewise.
17981         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
17982         <math_private.h>.
17983         (__nearbyintl): Use math_force_eval before restoring
17984         floating-point environment.
17985         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
17986
17987         * math/gen-libm-test.pl (special_functions): Remove.
17988         (parse_args): Don't handle TEST_extra.  Handle functions with no
17989         return value.
17990         * math/libm-test.inc (struct test_sincos_data): Replace with
17991         struct test_fFF_11_data.
17992         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
17993         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
17994         (sincos_test_data): Change element type to struct
17995         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
17996         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
17997         RUN_TEST_LOOP_sincos.
17998         * math/README.libm-test: Don't mention special handling of
17999         individual functions.
18000         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
18001         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18002         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
18003         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
18004         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
18005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18006
18007         * math/gen-libm-test.pl (get_variable): Remove function.
18008         (parse_args): Don't show pointer parameters to call in test
18009         names.  Use "extra output N" in test names for extra outputs
18010         rather than naming variables.
18011
18012 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
18013
18014         [BZ #15488]
18015         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
18016         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
18017         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
18018         double tests.
18019         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
18020         disable.
18021         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
18022         check_long_double.
18023
18024         * math/gen-libm-test.pl (@tests): Remove variable.
18025         ($count): Likewise.
18026         (new_test): Remove function.
18027         (show_exceptions): New function.
18028         (special_functions): Use show_exceptions instead of new_test.
18029         (parse_args): Likewise.
18030         (generate_testfile): Pass only function name in generated call to
18031         print_max_error or print_complex_max_error.
18032         (get_ulps): Do not handle complex tests specially.
18033         (output_test): Rename to ...
18034         (get_all_ulps_for_test): ... this.  Return a string rather than
18035         printing to a file.  Require ulps to be present.
18036         (output_ulps): Generate arrays rather than #defines.
18037         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
18038         (struct ulp_data): New type.
18039         (BUILD_COMPLEX_ULP): Remove macro.
18040         (compare_ulp_data): New function.
18041         (find_ulps): Likewise.
18042         (find_test_ulps): Likewise.
18043         (find_function_ulps): Likewise.
18044         (find_complex_function_ulps): Likewise.
18045         (print_max_error): Determine allowed ulps using
18046         find_function_ulps.
18047         (print_complex_max_error): Determine allowed ulps using
18048         find_complex_function_ulps.
18049         (check_float_internal): Determine max ulps using find_test_ulps.
18050         (check_float): Do not take max_ulp parameter.  Update call to
18051         check_float_internal.
18052         (check_complex): Likewise.
18053         (check_int): Do not take max_ulp parameter.
18054         (check_long): Likewise.
18055         (check_bool): Likewise.
18056         (check_longlong): Likewise.
18057         (struct test_f_f_data): Remove max_ulp field.
18058         (struct test_ff_f_data): Likewise.
18059         (struct test_ff_f_data_nexttoward): Likewise.
18060         (struct test_fi_f_data): Likewise.
18061         (struct test_fl_f_data): Likewise.
18062         (struct test_if_f_data): Likewise.
18063         (struct test_fff_f_data): Likewise.
18064         (struct test_c_f_data): Likewise.
18065         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
18066         (struct test_fF_f1_data): Likewise.
18067         (struct test_ffI_f1_data): Likewise.
18068         (struct test_c_c_data): Remove max_ulp field.
18069         (struct test_cc_c_data): Likewise.
18070         (struct test_f_i_data): Likewise.
18071         (struct test_ff_i_data): Likewise.
18072         (struct test_f_l_data): Likewise.
18073         (struct test_f_L_data): Likewise.
18074         (struct test_sincos_data): Likewise.
18075         (RUN_TEST_f_f): Do not handle ulps.
18076         (RUN_TEST_LOOP_f_f): Likewise.
18077         (RUN_TEST_2_f): Likewise.
18078         (RUN_TEST_LOOP_2_f): Likewise.
18079         (RUN_TEST_fff_f): Likewise.
18080         (RUN_TEST_LOOP_fff_f): Likewise.
18081         (RUN_TEST_c_f): Likewise.
18082         (RUN_TEST_LOOP_c_f): Likewise.
18083         (RUN_TEST_f_f1): Likewise.
18084         (RUN_TEST_LOOP_f_f1): Likewise.
18085         (RUN_TEST_fF_f1): Likewise.
18086         (RUN_TEST_LOOP_fF_f1): Likewise.
18087         (RUN_TEST_fI_f1): Likewise.
18088         (RUN_TEST_LOOP_fI_f1): Likewise.
18089         (RUN_TEST_ffI_f1): Likewise.
18090         (RUN_TEST_LOOP_ffI_f1): Likewise.
18091         (RUN_TEST_c_c): Likewise.
18092         (RUN_TEST_LOOP_c_c): Likewise.
18093         (RUN_TEST_cc_c): Likewise.
18094         (RUN_TEST_LOOP_cc_c): Likewise.
18095         (RUN_TEST_f_i): Likewise.
18096         (RUN_TEST_LOOP_f_i): Likewise.
18097         (RUN_TEST_f_i_tg): Likewise.
18098         (RUN_TEST_LOOP_f_i_tg): Likewise.
18099         (RUN_TEST_ff_i_tg): Likewise.
18100         (RUN_TEST_LOOP_ff_i_tg): Likewise.
18101         (RUN_TEST_f_b): Likewise.
18102         (RUN_TEST_LOOP_f_b): Likewise.
18103         (RUN_TEST_f_b_tg): Likewise.
18104         (RUN_TEST_LOOP_f_b_tg): Likewise.
18105         (RUN_TEST_f_l): Likewise.
18106         (RUN_TEST_LOOP_f_l): Likewise.
18107         (RUN_TEST_f_L): Likewise.
18108         (RUN_TEST_LOOP_f_L): Likewise.
18109         (RUN_TEST_sincos): Likewise.
18110         (RUN_TEST_LOOP_sincos): Likewise.
18111
18112 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
18113
18114         [BZ #15480]
18115         [BZ #15485]
18116         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
18117         main case of finite arguments, set rounding mode to FE_TONEAREST
18118         and discard exceptions.
18119         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
18120         exceptions.
18121         (remainder_tonearest_test_data): New variable.
18122         (remainder_test_tonearest): New function.
18123         (remainder_towardzero_test_data): New variable.
18124         (remainder_test_towardzero): New function.
18125         (remainder_downward_test_data): New variable.
18126         (remainder_test_downward): New function.
18127         (remainder_upward_test_data): New variable.
18128         (remainder_test_upward): New function.
18129         (main): Call the new test functions.
18130
18131         * math/libm-test.inc (struct test_f_f1_data): Remove field
18132         extra_init.
18133         (struct test_fF_f1_data): Likewise.
18134         (struct test_ffI_f1_data): Likewise.
18135         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
18136         based on value of EXTRA_EXPECTED.
18137         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
18138         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
18139         EXTRA_VAR based on value of EXTRA_EXPECTED.
18140         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
18141         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
18142         EXTRA_VAR based on value of EXTRA_EXPECTED.
18143         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
18144         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
18145         EXTRA_VAR based on value of EXTRA_EXPECTED.
18146         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
18147         * math/gen-libm-test.pl (parse_args): Don't output initializers
18148         for extra output values.
18149
18150         * math/libm-test.inc (check_int): Expect result to be exactly
18151         equal to expected value and do not handle ulps.
18152         (check_long): Likewise.
18153         (check_longlong): Likewise.
18154
18155         * math/libm-test.inc (ceil_test_data): Test for "inexact"
18156         exceptions.
18157         (cimag_test_data): Likewise.
18158         (conj_test_data): Likewise.
18159         (copysign_test_data): Likewise.
18160         (cproj_test_data): Likewise.
18161         (creal_test_data): Likewise.
18162         (fabs_test_data): Likewise.
18163         (fdim_test_data): Likewise.
18164         (finite_test_data): Likewise.
18165         (floor_test_data): Likewise.
18166         (fmax_test_data): Likewise.
18167         (fmin_test_data): Likewise.
18168         (fmod_test_data): Likewise.
18169         (fpclassify_test_data): Likewise.
18170         (frexp_test_data): Likewise.
18171         (ilogb_test_data): Likewise.
18172         (isfinite_test_data): Likewise.
18173         (isgreater_test_data): Likewise.
18174         (isgreaterequal_test_data): Likewise.
18175         (isinf_test_data): Likewise.
18176         (isless_test_data): Likewise.
18177         (islessequal_test_data): Likewise.
18178         (islessgreater_test_data): Likewise.
18179         (isnan_test_data): Likewise.
18180         (isnormal_test_data): Likewise.
18181         (issignaling_test_data): Likewise.
18182         (isunordered_test_data): Likewise.
18183         (ldexp_test_data): Likewise.
18184         (lrint_test_data): Likewise.
18185         (lrint_test_data) [TEST_FLOAT]: Disable one test.
18186         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
18187         (lrint_tonearest_test_data): Test for "inexact" exceptions.
18188         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
18189         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
18190         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
18191         test input.
18192         (lrint_towardzero_test_data): Test for "inexact" exceptions.
18193         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
18194         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
18195         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
18196         that test input.
18197         (lrint_downward_test_data): Test for "inexact" exceptions.
18198         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
18199         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
18200         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
18201         test input.
18202         (lrint_upward_test_data): Test for "inexact" exceptions.
18203         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
18204         test input.
18205         (llrint_test_data): Test for "inexact" exceptions.
18206         (llrint_test_data) [TEST_FLOAT]: Disable one test.
18207         (llrint_tonearest_test_data): Test for "inexact" exceptions.
18208         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
18209         (llrint_towardzero_test_data): Test for "inexact" exceptions.
18210         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
18211         (llrint_downward_test_data): Test for "inexact" exceptions.
18212         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
18213         (llrint_upward_test_data): Test for "inexact" exceptions.
18214         (logb_test_data): Likewise.
18215         (logb_downward_test_data): Likewise.
18216         (nextafter_test_data): Likewise.
18217         (nexttoward_test_data): Likewise.
18218         (remainder_test_data): Likewise.
18219         (remquo_test_data): Likewise.
18220         (scalbn_test_data): Likewise.
18221         (scalbln_test_data): Likewise.
18222         (signbit_test_data): Likewise.
18223         (sqrt_test_data): Likewise.
18224         (significand_test_data): Likewise.
18225
18226 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
18227
18228         [BZ #15424]
18229         * benchtests/bench-modf.c (struct args): Mark arg0 as
18230         volatile.
18231         * scripts/bench.pl: Mark members of struct args as volatile.
18232
18233 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18234
18235         [BZ # 15497]
18236         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
18237         negative infinity on POWER6 or lower.
18238         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
18239
18240 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
18241
18242         [BZ #15442]
18243         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
18244         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
18245         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
18246         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
18247         (_FP_SETQNAN): New macro.
18248         (_FP_SETQNAN_SEMIRAW): Likewise.
18249         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
18250         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
18251         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
18252         (FP_EXTEND): Use _FP_FRAC_SNANP.
18253         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
18254         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
18255         into account.
18256         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
18257         New macro.
18258         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
18259         Likewise.
18260
18261 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18262
18263         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
18264         with DIVIDE_BY_ZERO_EXCEPTION.
18265         (gamma_test_data): Likewise.
18266         (lgamma_test_data): Likewise.
18267         (log_test_data): Likewise.
18268         (log10_test_data): Likewise.
18269         (log2_test_data): Likewise.
18270         (tgamma_test_data): Likewise.
18271
18272         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
18273         (acos_test_tonearest): Likewise.
18274         (acos_test_towardzero): Likewise.
18275         (acos_test_downward): Likewise.
18276         (acos_test_upward): Likewise.
18277         (acosh_test): Likewise.
18278         (asin_test): Likewise.
18279         (asin_test_tonearest): Likewise.
18280         (asin_test_towardzero): Likewise.
18281         (asin_test_downward): Likewise.
18282         (asin_test_upward): Likewise.
18283         (asinh_test): Likewise.
18284         (atan_test): Likewise.
18285         (atanh_test): Likewise.
18286         (atan2_test): Likewise.
18287         (cabs_test): Likewise.
18288         (cacos_test): Likewise.
18289         (cacosh_test): Likewise.
18290         (casin_test): Likewise.
18291         (casinh_test): Likewise.
18292         (catan_test): Likewise.
18293         (catanh_test): Likewise.
18294         (cbrt_test): Likewise.
18295         (ccos_test): Likewise.
18296         (ccosh_test): Likewise.
18297         (cexp_test): Likewise.
18298         (clog_test): Likewise.
18299         (clog10_test): Likewise.
18300         (cos_test): Likewise.
18301         (cos_test_tonearest): Likewise.
18302         (cos_test_towardzero): Likewise.
18303         (cos_test_downward): Likewise.
18304         (cos_test_upward): Likewise.
18305         (cosh_test): Likewise.
18306         (cosh_test_tonearest): Likewise.
18307         (cosh_test_towardzero): Likewise.
18308         (cosh_test_downward): Likewise.
18309         (cosh_test_upward): Likewise.
18310         (cpow_test): Likewise.
18311         (csin_test): Likewise.
18312         (csinh_test): Likewise.
18313         (csqrt_test): Likewise.
18314         (ctan_test): Likewise.
18315         (ctan_test_tonearest): Likewise.
18316         (ctan_test_towardzero): Likewise.
18317         (ctan_test_downward): Likewise.
18318         (ctan_test_upward): Likewise.
18319         (ctanh_test): Likewise.
18320         (ctanh_test_tonearest): Likewise.
18321         (ctanh_test_towardzero): Likewise.
18322         (ctanh_test_downward): Likewise.
18323         (ctanh_test_upward): Likewise.
18324         (erf_test): Likewise.
18325         (erfc_test): Likewise.
18326         (exp_test): Likewise.
18327         (exp_test_tonearest): Likewise.
18328         (exp_test_towardzero): Likewise.
18329         (exp_test_downward): Likewise.
18330         (exp_test_upward): Likewise.
18331         (exp10_test): Likewise.
18332         (exp2_test): Likewise.
18333         (expm1_test): Likewise.
18334         (fmod_test): Likewise.
18335         (gamma_test): Likewise.
18336         (hypot_test): Likewise.
18337         (j0_test): Likewise.
18338         (j1_test): Likewise.
18339         (jn_test): Likewise.
18340         (lgamma_test): Likewise.
18341         (log_test): Likewise.
18342         (log10_test): Likewise.
18343         (log1p_test): Likewise.
18344         (log2_test): Likewise.
18345         (logb_test_downward): Likewise.
18346         (pow_test): Likewise.
18347         (pow_test_tonearest): Likewise.
18348         (pow_test_towardzero): Likewise.
18349         (pow_test_downward): Likewise.
18350         (pow_test_upward): Likewise.
18351         (remainder_test): Likewise.
18352         (remquo_test): Likewise.
18353         (sin_test): Likewise.
18354         (sin_test_tonearest): Likewise.
18355         (sin_test_towardzero): Likewise.
18356         (sin_test_downward): Likewise.
18357         (sin_test_upward): Likewise.
18358         (sincos_test): Likewise.
18359         (sinh_test): Likewise.
18360         (sinh_test_tonearest): Likewise.
18361         (sinh_test_towardzero): Likewise.
18362         (sinh_test_downward): Likewise.
18363         (sinh_test_upward): Likewise.
18364         (sqrt_test): Likewise.
18365         (tan_test): Likewise.
18366         (tan_test_tonearest): Likewise.
18367         (tan_test_towardzero): Likewise.
18368         (tan_test_downward): Likewise.
18369         (tan_test_upward): Likewise.
18370         (tanh_test): Likewise.
18371         (tgamma_test): Likewise.
18372         (y0_test): Likewise.
18373         (y1_test): Likewise.
18374         (yn_test): Likewise.
18375
18376         * math/gen-libm-test.pl (adjust_arg): Remove function.
18377         (special_function): Remove argument $in_func.  Only handle
18378         generating output for tables of tests, not inside functions.
18379         (parse_args): Likewise.
18380         (generate_testfile): Remove variable $in_func.  Update call to
18381         parse_args.
18382         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
18383         (MINUS_ZERO_INIT): Rename macro to minus_zero.
18384         (PLUS_INFTY_INIT): Rename macro to plus_infty.
18385         (MINUS_INFTY_INIT): Rename macro to minus_infty.
18386         (QNAN_VALUE_INIT): Rename macro to qnan_value.
18387         (MAX_VALUE_INIT): Rename macro to max_value.
18388         (MIN_VALUE_INIT): Rename macro to min_value.
18389         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
18390         (plus_zero): Remove variable.
18391         (minus_zero): Likewise.
18392         (plus_infty): Likewise.
18393         (minus_infty): Likewise.
18394         (qnan_value): Likewise.
18395         (max_value): Likewise.
18396         (min_value): Likewise.
18397         (min_subnorm_value): Likewise.
18398
18399 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
18400
18401         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
18402         uint64_t or uint32_t usage.
18403         * crypt/sha256-block.c: Likewise.
18404         * crypt/sha256-crypt.c: Likewise.
18405         * crypt/sha256.c: Likewise.
18406         * crypt/sha512-block.c: Likewise.
18407         * crypt/sha512-crypt.c: Likewise.
18408         * crypt/sha512.c: Likewise.
18409         * debug/backtrace-tst.c: Likewise.
18410         * debug/pcprofiledump.c: Likewise.
18411         * elf/cache.c: Likewise.
18412         * elf/dl-cache.c: Likewise.
18413         * elf/dl-misc.c: Likewise.
18414         * elf/dl-profile.c: Likewise.
18415         * elf/dl-support.c: Likewise.
18416         * elf/ldconfig.c: Likewise.
18417         * elf/sprof.c: Likewise.
18418         * iconv/dummy-repertoire.c: Likewise.
18419         * iconv/iconv_charmap.c: Likewise.
18420         * iconv/skeleton.c: Likewise.
18421         * iconvdata/8bit-generic.c: Likewise.
18422         * iconvdata/cp737.h: Likewise.
18423         * iconvdata/cp775.h: Likewise.
18424         * iconvdata/ibm1008.h: Likewise.
18425         * iconvdata/ibm1025.h: Likewise.
18426         * iconvdata/ibm1046.h: Likewise.
18427         * iconvdata/ibm1097.h: Likewise.
18428         * iconvdata/ibm1112.h: Likewise.
18429         * iconvdata/ibm1122.h: Likewise.
18430         * iconvdata/ibm1123.h: Likewise.
18431         * iconvdata/ibm1124.h: Likewise.
18432         * iconvdata/ibm1129.h: Likewise.
18433         * iconvdata/ibm1130.h: Likewise.
18434         * iconvdata/ibm1132.h: Likewise.
18435         * iconvdata/ibm1133.h: Likewise.
18436         * iconvdata/ibm1137.h: Likewise.
18437         * iconvdata/ibm1140.h: Likewise.
18438         * iconvdata/ibm1141.h: Likewise.
18439         * iconvdata/ibm1142.h: Likewise.
18440         * iconvdata/ibm1143.h: Likewise.
18441         * iconvdata/ibm1144.h: Likewise.
18442         * iconvdata/ibm1145.h: Likewise.
18443         * iconvdata/ibm1146.h: Likewise.
18444         * iconvdata/ibm1147.h: Likewise.
18445         * iconvdata/ibm1148.h: Likewise.
18446         * iconvdata/ibm1149.h: Likewise.
18447         * iconvdata/ibm1153.h: Likewise.
18448         * iconvdata/ibm1154.h: Likewise.
18449         * iconvdata/ibm1155.h: Likewise.
18450         * iconvdata/ibm1156.h: Likewise.
18451         * iconvdata/ibm1157.h: Likewise.
18452         * iconvdata/ibm1158.h: Likewise.
18453         * iconvdata/ibm1160.h: Likewise.
18454         * iconvdata/ibm1161.h: Likewise.
18455         * iconvdata/ibm1162.h: Likewise.
18456         * iconvdata/ibm1163.h: Likewise.
18457         * iconvdata/ibm1164.h: Likewise.
18458         * iconvdata/ibm1166.h: Likewise.
18459         * iconvdata/ibm1167.h: Likewise.
18460         * iconvdata/ibm12712.h: Likewise.
18461         * iconvdata/ibm1390.h: Likewise.
18462         * iconvdata/ibm1399.h: Likewise.
18463         * iconvdata/ibm16804.h: Likewise.
18464         * iconvdata/ibm4517.h: Likewise.
18465         * iconvdata/ibm4899.h: Likewise.
18466         * iconvdata/ibm4909.h: Likewise.
18467         * iconvdata/ibm4971.h: Likewise.
18468         * iconvdata/ibm5347.h: Likewise.
18469         * iconvdata/ibm803.h: Likewise.
18470         * iconvdata/ibm856.h: Likewise.
18471         * iconvdata/ibm901.h: Likewise.
18472         * iconvdata/ibm902.h: Likewise.
18473         * iconvdata/ibm9030.h: Likewise.
18474         * iconvdata/ibm9066.h: Likewise.
18475         * iconvdata/ibm921.h: Likewise.
18476         * iconvdata/ibm922.h: Likewise.
18477         * iconvdata/ibm9448.h: Likewise.
18478         * iconvdata/isiri-3342.h: Likewise.
18479         * iconvdata/jis0201.h: Likewise.
18480         * include/link.h: Likewise.
18481         * include/netdb.h: Likewise.
18482         * inet/check_native.c: Likewise.
18483         * inet/check_pf.c: Likewise.
18484         * inet/getipv4sourcefilter.c: Likewise.
18485         * inet/getnameinfo.c: Likewise.
18486         * inet/getsourcefilter.c: Likewise.
18487         * inet/htonl.c: Likewise.
18488         * inet/setipv4sourcefilter.c: Likewise.
18489         * inet/setsourcefilter.c: Likewise.
18490         * inet/test-inet6_opt.c: Likewise.
18491         * inet/tst-network.c: Likewise.
18492         * locale/C-collate.c: Likewise.
18493         * locale/C-ctype.c: Likewise.
18494         * locale/C-time.c: Likewise.
18495         * locale/C-translit.h: Likewise.
18496         * locale/loadarchive.c: Likewise.
18497         * locale/programs/3level.h: Likewise.
18498         * locale/programs/charmap.c: Likewise.
18499         * locale/programs/charmap.h: Likewise.
18500         * locale/programs/ld-address.c: Likewise.
18501         * locale/programs/ld-collate.c: Likewise.
18502         * locale/programs/ld-ctype.c: Likewise.
18503         * locale/programs/ld-identification.c: Likewise.
18504         * locale/programs/ld-measurement.c: Likewise.
18505         * locale/programs/ld-messages.c: Likewise.
18506         * locale/programs/ld-monetary.c: Likewise.
18507         * locale/programs/ld-name.c: Likewise.
18508         * locale/programs/ld-numeric.c: Likewise.
18509         * locale/programs/ld-paper.c: Likewise.
18510         * locale/programs/ld-telephone.c: Likewise.
18511         * locale/programs/ld-time.c: Likewise.
18512         * locale/programs/linereader.c: Likewise.
18513         * locale/programs/locale.c: Likewise.
18514         * locale/programs/locarchive.c: Likewise.
18515         * locale/programs/locfile.h: Likewise.
18516         * locale/programs/repertoire.c: Likewise.
18517         * locale/programs/simple-hash.c: Likewise.
18518         * locale/programs/simple-hash.h: Likewise.
18519         * malloc/memusage.c: Likewise.
18520         * malloc/memusagestat.c: Likewise.
18521         * nis/nis_defaults.c: Likewise.
18522         * nis/nis_hash.c: Likewise.
18523         * nis/nis_print.c: Likewise.
18524         * nis/nis_xdr.c: Likewise.
18525         * nscd/connections.c: Likewise.
18526         * nscd/hstcache.c: Likewise.
18527         * nscd/nscd_gethst_r.c: Likewise.
18528         * nscd/nscd_getserv_r.c: Likewise.
18529         * nscd/nscd_helper.c: Likewise.
18530         * nscd/servicescache.c: Likewise.
18531         * nss/makedb.c: Likewise.
18532         * nss/nss_db/db-XXX.c: Likewise.
18533         * nss/nss_db/db-initgroups.c: Likewise.
18534         * nss/nss_db/db-netgrp.c: Likewise.
18535         * nss/nss_files/files-network.c: Likewise.
18536         * nss/nss_files/files-parse.c: Likewise.
18537         * posix/bug-regex5.c: Likewise.
18538         * posix/fnmatch_loop.c: Likewise.
18539         * posix/regcomp.c: Likewise.
18540         * posix/regexec.c: Likewise.
18541         * posix/tst-rfc3484-2.c: Likewise.
18542         * posix/tst-rfc3484-3.c: Likewise.
18543         * posix/tst-rfc3484.c: Likewise.
18544         * resolv/nss_dns/dns-canon.c: Likewise.
18545         * resolv/nss_dns/dns-network.c: Likewise.
18546         * resolv/res_init.c: Likewise.
18547         * resolv/res_mkquery.c: Likewise.
18548         * resolv/tst-aton.c: Likewise.
18549         * stdlib/cxa_atexit.c: Likewise.
18550         * stdlib/cxa_finalize.c: Likewise.
18551         * stdlib/gen-fpioconst.c: Likewise.
18552         * stdlib/strtol_l.c: Likewise.
18553         * string/tst-endian.c: Likewise.
18554         * sunrpc/auth_des.c: Likewise.
18555         * sunrpc/clnt_udp.c: Likewise.
18556         * sunrpc/rtime.c: Likewise.
18557         * sunrpc/svcauth_des.c: Likewise.
18558         * sunrpc/xdr.c: Likewise.
18559         * sunrpc/xdr_intXX_t.c: Likewise.
18560         * sunrpc/xdr_rec.c: Likewise.
18561         * sysdeps/generic/ldconfig.h: Likewise.
18562         * sysdeps/generic/ldsodefs.h: Likewise.
18563         * sysdeps/generic/memusage.h: Likewise.
18564         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
18565         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
18566         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
18567         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
18568         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18569         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18570         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
18571         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
18572         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
18573         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
18574         * sysdeps/posix/getaddrinfo.c: Likewise.
18575         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18576         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18577         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
18578         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
18579         * sysdeps/powerpc/test-gettimebase.c: Likewise.
18580         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
18581         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
18582         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
18583         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
18584         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
18585         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
18586         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
18587         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
18588         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
18589         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
18590         * sysdeps/x86_64/dl-tls.h: Likewise.
18591         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
18592         * time/alt_digit.c: Likewise.
18593         * time/era.c: Likewise.
18594         * wcsmbs/tst-c16c32-1.c: Likewise.
18595
18596 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18597
18598         * math/libm-test.inc (struct test_sincos_data): New type.
18599         (RUN_TEST_LOOP_sincos): New macro.
18600         (sincos_test_data): New variable.
18601         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
18602
18603 2013-05-16  Richard Henderson  <rth@redhat.com>
18604
18605         * math/atest-exp2.c (LIMB64): New macro.
18606         (CONSTSZ): New macro.
18607         (mp_exp1, mp_exp_m1, mp_log2): New variables.
18608         (hexdig): Move ...
18609         (print_mpn_fp): ... to function scope.
18610         (read_mpn_hex): Remove.
18611         (get_log2): Remove.
18612         (exp2_mpn): Use mp_log2.
18613         (main): Use mp_exp1.
18614
18615 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18616
18617         * math/libm-test.inc: Remove comment about not testing "inexact"
18618         exceptions.
18619         (INEXACT_EXCEPTION): New macro.
18620         (NO_INEXACT_EXCEPTION): Likewise.
18621         (INVALID_EXCEPTION_OK): Update value.
18622         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18623         (OVERFLOW_EXCEPTION_OK): Likewise.
18624         (UNDERFLOW_EXCEPTION_OK): Likewise.
18625         (IGNORE_ZERO_INF_SIGN): Likewise.
18626         (ERRNO_UNCHANGED): Likewise.
18627         (ERRNO_EDOM): Likewise.
18628         (ERRNO_ERANGE): Likewise.
18629         (test_exceptions): Handle testing "inexact" exceptions.
18630         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
18631         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
18632         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
18633         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
18634         INEXACT_EXCEPTION.
18635         (rint_towardzero_test_data): Likewise.
18636         (rint_downward_test_data): Likewise.
18637         (rint_upward_test_data): Likewise.
18638
18639         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
18640         with OVERFLOW_EXCEPTION.
18641         (exp10_test_data): Likewise.
18642         (exp2_test_data): Likewise.
18643         (expm1_test_data): Likewise.
18644         (lgamma_test_data): Likewise.
18645         (pow_test_data): Likewise.
18646         (tgamma_test_data): Likewise.
18647         (yn_test_data): Remove duplicate test of overflow.
18648
18649         * math/libm-test.inc (struct test_cc_c_data): New type.
18650         (RUN_TEST_LOOP_cc_c): New macro.
18651         (cpow_test_data): New variable.
18652         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
18653
18654         * math/libm-test.inc (struct test_f_L_data): New type.
18655         (RUN_TEST_LOOP_f_L): New macro.
18656         (llrint_test_data): New variable.
18657         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
18658         (llrint_tonearest_test_data): New variable.
18659         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
18660         (llrint_towardzero_test_data): New variable.
18661         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
18662         (llrint_downward_test_data): New variable.
18663         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
18664         (llrint_upward_test_data): New variable.
18665         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
18666         (llround_test_data): New variable.
18667         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
18668
18669 2013-05-13  Peter Collingbourne  <pcc@google.com>
18670
18671         * math/atest-exp2.c (get_log2): Remove const attribute.
18672
18673 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18674
18675         * math/libm-test.inc (struct test_f_l_data): New type.
18676         (RUN_TEST_LOOP_f_l): New macro.
18677         (lrint_test_data): New variable.
18678         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
18679         (lrint_tonearest_test_data): New variable.
18680         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
18681         (lrint_towardzero_test_data): New variable.
18682         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
18683         (lrint_downward_test_data): New variable.
18684         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
18685         (lrint_upward_test_data): New variable.
18686         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
18687         (lround_test_data): New variable.
18688         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
18689
18690 2013-05-15  Peter Collingbourne  <pcc@google.com>
18691
18692         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
18693         (EXTRACT_WORDS64) Use where appropriate.
18694         (INSERT_WORDS64) Likewise.
18695
18696         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
18697         constraints with x constraints.
18698         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
18699
18700         * malloc/obstack.c (_obstack_compat): Add initializer.
18701
18702 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
18703
18704         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
18705         si_trapno and add si_addr_lsb to _sifields.sigfault.
18706         (si_trapno): Remove macro.
18707         (si_addr_lsb): Define new macro.
18708         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
18709
18710 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18711
18712         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
18713         instead of TEST_f_l.
18714         (llrint_test_tonearest): Likewise.
18715         (llrint_test_towardzero): Likewise.
18716         (llrint_test_downward): Likewise.
18717         (llrint_test_upward): Likewise.
18718         (llround_test): Likewise.
18719
18720         * math/libm-test.inc (struct test_f_i_data): Add comment.
18721         (RUN_TEST_LOOP_f_b): New macro.
18722         (RUN_TEST_LOOP_f_b_tg): Likewise.
18723         (finite_test_data): New variable.
18724         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
18725         (isfinite_test_data): New variable.
18726         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18727         (isinf_test_data): New variable.
18728         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18729         (isnan_test_data): New variable.
18730         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18731         (isnormal_test_data): New variable.
18732         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18733         (issignaling_test_data): New variable.
18734         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18735         (signbit_test_data): New variable.
18736         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18737
18738         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
18739         with INVALID_EXCEPTION.
18740         (acosh_test_data): Likewise.
18741         (asin_test_data): Likewise.
18742         (atanh_test_data): Likewise.
18743         (fmod_test_data): Likewise.
18744         (log_test_data): Likewise.
18745         (log10_test_data): Likewise.
18746         (log2_test_data): Likewise.
18747         (pow_test_data): Likewise.
18748         (sqrt_test_data): Likewise.
18749         (y0_test_data): Likewise.
18750         (y1_test_data): Likewise.
18751         (yn_test_data): Likewise.
18752
18753         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
18754         function contents.
18755
18756         * math/libm-test.inc (struct test_ff_i_data): New type.
18757         (RUN_TEST_LOOP_ff_i_tg): New macro.
18758         (isgreater_test_data): New variable.
18759         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18760         (isgreaterequal_test_data): New variable.
18761         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18762         (isless_test_data): New variable.
18763         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18764         (islessequal_test_data): New variable.
18765         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18766         (islessgreater_test_data): New variable.
18767         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18768         (isunordered_test_data): New variable.
18769         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18770
18771 2013-05-14  David S. Miller  <davem@davemloft.net>
18772
18773         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18774
18775 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
18776
18777         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
18778
18779         * math/libm-test.inc (struct test_fF_f1_data): Change type of
18780         extra_test to int.
18781         (struct test_f_i_data): Change type of max_ulp to int.
18782
18783         * math/libm-test.inc (test_ffI_f1_data): New type.
18784         (RUN_TEST_LOOP_ffI_f1): New macro.
18785         (remquo_test_data): New variable.
18786         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
18787
18788         * setjmp/tst-setjmp-fp.c: New file.
18789         * setjmp/Makefile (tests): Add tst-setjmp-fp.
18790         (link-libm): New variable.
18791         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
18792
18793         * math/libm-test.inc (struct test_f_i_data): New type.
18794         (RUN_TEST_LOOP_f_i): New macro.
18795         (RUN_TEST_LOOP_f_i_tg): Likewise.
18796         (fpclassify_test_data): New variable.
18797         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
18798         (ilogb_test_data): New variable.
18799         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
18800
18801         * math/libm-test.inc (scalbln_test): Correct function name in END
18802         call.
18803
18804         * math/libm-test.inc (struct test_f_f1_data): Add comment.
18805         (RUN_TEST_LOOP_fI_f1): New macro.
18806         (frexp_test_data): New variable.
18807         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
18808
18809         * math/libm-test.inc (struct test_fF_f1_data): New type.
18810         (RUN_TEST_LOOP_fF_f1): New macro.
18811         (modf_test_data): New variable.
18812         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
18813
18814         * math/libm-test.inc (struct test_f_f1_data): New type.
18815         (RUN_TEST_LOOP_f_f1): New macro.
18816         (gamma_test_data): New variable.
18817         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18818         (lgamma_test_data): New variable.
18819         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18820
18821 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
18822
18823         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
18824         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
18825         (main): Comment "tls" pseudo-hwcap.
18826
18827 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
18828
18829         * math/libm-test.inc (struct test_fl_f_data): New type.
18830         (RUN_TEST_LOOP_fl_f): New variable.
18831         (scalbln_test_data): New variable.
18832         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
18833
18834         * math/libm-test.inc (struct test_fi_f_data): New type.
18835         (RUN_TEST_LOOP_fi_f): New macro.
18836         (ldexp_test_data): New variable.
18837         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
18838         (scalbn_test_data): New variable.
18839         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
18840
18841         * math/libm-test.inc (struct test_c_f_data): New type.
18842         (RUN_TEST_LOOP_c_f): New macro.
18843         (cabs_test_data): New variable.
18844         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
18845         (carg_test_data): New variable.
18846         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
18847         (cimag_test_data): New variable.
18848         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
18849         (creal_test_data): New variable.
18850         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
18851
18852         * math/libm-test.inc (struct test_if_f_data): New type.
18853         (RUN_TEST_LOOP_if_f): New macro.
18854         (jn_test_data): New variable.
18855         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
18856         (yn_test_data): New variable.
18857         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
18858
18859         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
18860
18861 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18862
18863         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
18864         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
18865
18866 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
18867
18868         * benchtests/Makefile (CPPFLAGS-nonlib): Add
18869         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
18870         (bench-deps): Add bench-timing.h.
18871         * benchtests-bench-skeleton.c: Include bench-timing.h.
18872         (main): Use TIMING_* macros instead of clock_gettime.
18873         * benchtests/bench-timing.h: New file.
18874
18875         [BZ #14582]
18876         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
18877         Renamed from _LIB_VERSION.
18878         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
18879
18880 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
18881
18882         * math/libm-test.inc (struct test_fff_f_data): New type.
18883         (RUN_TEST_LOOP_fff_f): New macro.
18884         (fma_test_data): New variable.
18885         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
18886         (fma_towardzero_test_data): New variable.
18887         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
18888         (fma_downward_test_data): New variable.
18889         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
18890         (fma_upward_test_data): New variable.
18891         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
18892
18893         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
18894         (struct test_c_c_data): New type.
18895         (RUN_TEST_LOOP_c_c): New macro.
18896         (cacos_test_data): New variable.
18897         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
18898         (cacosh_test_data): New variable.
18899         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
18900         (casin_test_data): New variable.
18901         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
18902         (casinh_test_data): New variable.
18903         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
18904         (catan_test_data): New variable.
18905         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
18906         (catanh_test_data): New variable.
18907         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
18908         (ccos_test_data): New variable.
18909         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
18910         (ccosh_test_data): New variable.
18911         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
18912         (cexp_test_data): New variable.
18913         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
18914         (clog_test_data): New variable.
18915         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
18916         (clog10_test_data): New variable.
18917         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
18918         (conj_test_data): New variable.
18919         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
18920         (cproj_test_data): New variable.
18921         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
18922         (csin_test_data): New variable.
18923         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
18924         (csinh_test_data): New variable.
18925         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
18926         (csqrt_test_data): New variable.
18927         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
18928         (ctan_test_data): New variable.
18929         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
18930         (ctan_tonearest_test_data): New variable.
18931         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18932         (ctan_towardzero_test_data): New variable.
18933         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18934         (ctan_downward_test_data): New variable.
18935         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18936         (ctan_upward_test_data): New variable.
18937         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18938         (ctanh_test_data): New variable.
18939         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
18940         (ctanh_tonearest_test_data): New variable.
18941         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18942         (ctanh_towardzero_test_data): New variable.
18943         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18944         (ctanh_downward_test_data): New variable.
18945         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18946         (ctanh_upward_test_data): New variable.
18947         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18948         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
18949         of BUILD_COMPLEX.
18950
18951         * math/libm-test.inc (struct test_ff_f_data): New type.
18952         (struct test_ff_f_data_nexttoward): Likewise.
18953         (RUN_TEST_LOOP_2_f): New macro.
18954         (RUN_TEST_LOOP_ff_f): Likewise.
18955         (atan2_test_data): New variable.
18956         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
18957         (copysign_test_data): New variable.
18958         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
18959         (fdim_test_data): New variable.
18960         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
18961         (fmax_test_data): New variable.
18962         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
18963         (fmin_test_data): New variable.
18964         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
18965         (fmod_test_data): New variable.
18966         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
18967         (hypot_test_data): New variable.
18968         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
18969         (nextafter_test_data): New variable.
18970         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
18971         (nexttoward_test_data): New variable.
18972         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
18973         (pow_test_data): New variable.
18974         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
18975         (pow_tonearest_test_data): New variable.
18976         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
18977         (pow_towardzero_test_data): New variable.
18978         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
18979         (pow_downward_test_data): New variable.
18980         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
18981         (pow_upward_test_data): New variable.
18982         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
18983         (remainder_test_data): New variable.
18984         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
18985         (scalb_test_data): New variable.
18986         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
18987         * sysdeps/i386/fpu/libm-test-ulps: Update.
18988
18989 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
18990
18991         * math/libm-test.inc (fma_test): Use max_value instead of local
18992         variable fltmax.
18993         (nextafter_test): Likewise.
18994
18995         * math/libm-test.inc (acos_towardzero_test_data): New variable.
18996         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18997         (acos_downward_test_data): New variable.
18998         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18999         (acos_upward_test_data): New variable.
19000         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19001         (acosh_test_data): New variable.
19002         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
19003         (asin_test_data): New variable.
19004         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
19005         (asin_tonearest_test_data): New variable.
19006         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19007         (asin_towardzero_test_data): New variable.
19008         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19009         (asin_downward_test_data): New variable.
19010         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19011         (asin_upward_test_data): New variable.
19012         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19013         (asinh_test_data): New variable.
19014         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
19015         (atan_test_data): New variable.
19016         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
19017         (atanh_test_data): New variable.
19018         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
19019         (cbrt_test_data): New variable.
19020         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
19021         (ceil_test_data): New variable.
19022         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
19023         (cos_test_data): New variable.
19024         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
19025         (cos_tonearest_test_data): New variable.
19026         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19027         (cos_towardzero_test_data): New variable.
19028         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19029         (cos_downward_test_data): New variable.
19030         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19031         (cos_upward_test_data): New variable.
19032         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19033         (cosh_test_data): New variable.
19034         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
19035         (cosh_tonearest_test_data): New variable.
19036         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19037         (cosh_towardzero_test_data): New variable.
19038         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19039         (cosh_downward_test_data): New variable.
19040         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19041         (cosh_upward_test_data): New variable.
19042         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19043         (erf_test_data): New variable.
19044         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
19045         (erfc_test_data): New variable.
19046         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
19047         (exp_test_data): New variable.
19048         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
19049         (exp_tonearest_test_data): New variable.
19050         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19051         (exp_towardzero_test_data): New variable.
19052         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19053         (exp_downward_test_data): New variable.
19054         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19055         (exp_upward_test_data): New variable.
19056         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19057         (exp10_test_data): New variable.
19058         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
19059         (exp2_test_data): New variable.
19060         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
19061         (expm1_test_data): New variable.
19062         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
19063         (fabs_test_data): New variable.
19064         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
19065         (floor_test_data): New variable.
19066         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
19067         (j0_test_data): New variable.
19068         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
19069         (j1_test_data): New variable.
19070         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
19071         (log_test_data): New variable.
19072         (log_test): Run tests with RUN_TEST_LOOP_f_f.
19073         (log10_test_data): New variable.
19074         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
19075         (log1p_test_data): New variable.
19076         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
19077         (log2_test_data): New variable.
19078         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
19079         (logb_test_data): New variable.
19080         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
19081         (logb_downward_test_data): New variable.
19082         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19083         (nearbyint_test_data): New variable.
19084         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
19085         (rint_test_data): New variable.
19086         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
19087         (rint_tonearest_test_data): New variable.
19088         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19089         (rint_towardzero_test_data): New variable.
19090         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19091         (rint_downward_test_data): New variable.
19092         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19093         (rint_upward_test_data): New variable.
19094         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19095         (round_test_data): New variable.
19096         (round_test): Run tests with RUN_TEST_LOOP_f_f.
19097         (sin_test_data): New variable.
19098         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
19099         (sin_tonearest_test_data): New variable.
19100         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19101         (sin_towardzero_test_data): New variable.
19102         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19103         (sin_downward_test_data): New variable.
19104         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19105         (sin_upward_test_data): New variable.
19106         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19107         (sinh_test_data): New variable.
19108         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
19109         (sinh_tonearest_test_data): New variable.
19110         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19111         (sinh_towardzero_test_data): New variable.
19112         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19113         (sinh_downward_test_data): New variable.
19114         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19115         (sinh_upward_test_data): New variable.
19116         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19117         (sqrt_test_data): New variable.
19118         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
19119         (tan_test_data): New variable.
19120         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
19121         (tan_tonearest_test_data): New variable.
19122         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19123         (tan_towardzero_test_data): New variable.
19124         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19125         (tan_downward_test_data): New variable.
19126         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19127         (tan_upward_test_data): New variable.
19128         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19129         (tanh_test_data): New variable.
19130         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
19131         (tgamma_test_data): New variable.
19132         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
19133         (trunc_test_data): New variable.
19134         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
19135         (y0_test_data): New variable.
19136         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
19137         (y1_test_data): New variable.
19138         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
19139         (significand_test_data): New variable.
19140         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
19141
19142 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
19143
19144         [BZ #12387]
19145         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
19146
19147 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
19148
19149         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
19150
19151 2013-05-10  Andreas Jaeger  <aj@suse.de>
19152
19153         [BZ #15448]
19154         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
19155         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
19156
19157 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
19158
19159         * math/gen-libm-test.pl (adjust_arg): New function.
19160         (special_functions): Handle generating output in both functions
19161         and arrays.
19162         (parse_args): Likewise.
19163         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
19164         $in_func argument to parse_args.
19165         * math/libm-test.inc (struct test_f_f_data): New type.
19166         (IF_ROUND_INIT_): New macro.
19167         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
19168         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
19169         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
19170         (IF_ROUND_INIT_FE_UPWARD): Likewise.
19171         (ROUND_RESTORE_): Likewise.
19172         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
19173         (ROUND_RESTORE_FE_TONEAREST): Likewise.
19174         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
19175         (ROUND_RESTORE_FE_UPWARD): Likewise.
19176         (RUN_TEST_LOOP_f_f): New macro.
19177         (acos_test_data): New variable.
19178         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
19179         (acos_tonearest_test_data): New variable.
19180         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19181
19182 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19183
19184         * benchtests/bench-skeleton.c (startup): Fix coding style.
19185
19186 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
19187
19188         [BZ #6809]
19189         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
19190         negative infinity argument.
19191         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
19192         negative infinity argument.
19193         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
19194         negative infinity argument.
19195         * math/libm-test.inc (tgamma_test): Expect errno to be set for
19196         domain errors.
19197
19198 2013-05-10  Florian Weimer  <fweimer@redhat.com>
19199
19200         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
19201         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
19202         * iconv/iconv_prog.c (main): Likewise.
19203         * locale/programs/charmap-dir.c (charmap_readdir)
19204         (fopen_uncompressed): Likewise.
19205         * locale/programs/locfile.c (siblings_uncached)
19206         (write_locale_data): Use lstat64 instead of lstat.
19207         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
19208         stat.
19209
19210 2013-05-10  Andreas Jaeger  <aj@suse.de>
19211
19212         [BZ #15395]
19213         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
19214         localization.
19215         Include <locale.h>.
19216
19217 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
19218
19219         * elf/dl-close.c (_dl_close_worker): Add comments.
19220
19221 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
19222
19223         [BZ #15359]
19224         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
19225         high part of pi/2.
19226         (__ieee754_rem_pio2l): Update comments.
19227
19228         [BZ #15429]
19229         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
19230         high part of pi/2.
19231         (__ieee754_rem_pio2l): Update comments.
19232
19233         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
19234         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
19235
19236         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
19237         M_PI_4l.
19238
19239         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
19240         (M_PI_34_LOG10El): Likewise.
19241         (M_PI2_LOG10El): Likewise.
19242         (M_PI4_LOG10El): Likewise.
19243         (M_PI_LOG10El): Likewise.
19244
19245 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19246
19247         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19248
19249 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
19250
19251         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
19252         (MINUS_ZERO_INIT): Likewise.
19253         (PLUS_INFTY_INIT): Likewise.
19254         (MINUS_INFTY_INIT): Likewise.
19255         (QNAN_VALUE_INIT): Likewise.
19256         (MAX_VALUE_INIT): Likewise.
19257         (MIN_VALUE_INIT): Likewise.
19258         (MIN_SUBNORM_VALUE_INIT): Likewise.
19259         (plus_zero): Initialize with PLUS_ZERO_INIT.
19260         (minus_zero): Initialize with MINUS_ZERO_INIT.
19261         (plus_infty): Initialize with PLUS_INFTY_INIT.
19262         (minus_infty): Initialize with MINUS_INFTY_INIT.
19263         (qnan_value): Initialize with QNAN_VALUE_INIT.
19264         (max_value): Initialize with MAX_VALUE_INIT.
19265         (min_value): Initialize with MIN_VALUE_INIT.
19266         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
19267
19268         * math/libm-test.inc (RUN_TEST_if_f): New macro.
19269         (jn_test): Use TEST_if_f instead of TEST_ff_f.
19270         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
19271         (yn_test): Use TEST_if_f instead of TEST_ff_f.
19272
19273         * math/libm-test.inc (RUN_TEST_f_f): New macro.
19274         (RUN_TEST_2_f): Likewise.
19275         (RUN_TEST_ff_f): Likewise.
19276         (RUN_TEST_fi_f): Likewise.
19277         (RUN_TEST_fl_f): Likewise.
19278         (RUN_TEST_fff_f): Likewise.
19279         (RUN_TEST_c_f): Likewise.
19280         (RUN_TEST_f_f1): Likewise.
19281         (RUN_TEST_fF_f1): Likewise.
19282         (RUN_TEST_fI_f1): Likewise.
19283         (RUN_TEST_ffI_f1): Likewise.
19284         (RUN_TEST_c_c): Likewise.
19285         (RUN_TEST_cc_c): Likewise.
19286         (RUN_TEST_f_i): Likewise.
19287         (RUN_TEST_f_i_tg): Likewise.
19288         (RUN_TEST_ff_i_tg): Likewise.
19289         (RUN_TEST_f_b): Likewise.
19290         (RUN_TEST_f_b_tg): Likewise.
19291         (RUN_TEST_f_l): Likewise.
19292         (RUN_TEST_f_L): Likewise.
19293         (RUN_TEST_sincos): Likewise.
19294         * math/gen-libm-test.pl (new_test): Take new argument to indicate
19295         whether to show exceptions.  Do not include ");\n" in return
19296         value.
19297         (special_functions): Output call to RUN_TEST_sincos instead of
19298         check_float calls.  Update calls to new_test.
19299         (parse_args): Output call to single RUN_TEST_* macro instead of
19300         check_* calls and other assignments.  Update calls to new_test.
19301
19302         [BZ #2546]
19303         [BZ #2560]
19304         [BZ #5159]
19305         [BZ #15426]
19306         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
19307         input to result for tgamma overflow.
19308         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
19309         (gamma_coeff): New variable.
19310         (NCOEFF): New macro.
19311         (gamma_positive): New function.
19312         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
19313         underflow here.  Use gamma_positive instead of exp (lgamma) for
19314         other arguments.
19315         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
19316         (gamma_coeff): New variable.
19317         (NCOEFF): New macro.
19318         (gammaf_positive): New function.
19319         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
19320         underflow here.  Use gamma_positive instead of exp (lgamma) for
19321         other arguments.
19322         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
19323         (gamma_coeff): New variable.
19324         (NCOEFF): New macro.
19325         (gammal_positive): New function.
19326         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
19327         underflow here.  Use gamma_positive instead of exp (lgamma) for
19328         other arguments.
19329         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
19330         (gamma_coeff): New variable.
19331         (NCOEFF): New macro.
19332         (gammal_positive): New function.
19333         (__ieee754_gammal_r): Handle positive infinity, overflow and
19334         underflow here.  Handle NaN the same as positive infinity.  Remove
19335         check x < 0xffffffff for negative integers.  Use gamma_positive
19336         instead of exp (lgamma) for other arguments.
19337         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
19338         (gamma_coeff): New variable.
19339         (NCOEFF): New macro.
19340         (gammal_positive): New function.
19341         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
19342         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
19343         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
19344         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
19345         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
19346         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
19347         * sysdeps/generic/math_private.h (__gamma_productf): New
19348         prototype.
19349         (__gamma_product): Likewise.
19350         (__gamma_productl): Likewise.
19351         * math/Makefile (libm-calls): Add gamma_product.
19352         * math/libm-test.inc (tgamma_test): Add more tests.
19353         * sysdeps/i386/fpu/libm-test-ulps: Update.
19354         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19355
19356 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
19357
19358         * benchtests/bench-skeleton.c (main): Preheat CPU.
19359
19360 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
19361
19362         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
19363
19364 2013-05-07  Roland McGrath  <roland@hack.frob.com>
19365
19366         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
19367         and _dl_skip_args_internal.
19368
19369 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
19370
19371         * manual/message.texi (Message Translation): Talk about users.
19372         Message to key mapping impacts design.
19373
19374 2013-05-06  Roland McGrath  <roland@hack.frob.com>
19375
19376         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
19377
19378         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
19379
19380         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
19381         * sysdeps/wordsize-64/glob64.c: ... here.
19382
19383         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
19384         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
19385         New macros.
19386
19387         * debug/getlogin_r_chk.c: Moved to ...
19388         * login/getlogin_r_chk.c: ... here.
19389         * debug/Makefile (routines): Move getlogin_r_chk to ...
19390         * login/Makefile (routines): ... here.
19391         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
19392         * login/Versions (libc: GLIBC_2.4): ... here.
19393
19394         * io/poll.c (__poll): Renamed from poll.
19395         Add libc_hidden_def.
19396         (poll): Define as weak alias.
19397
19398         * debug/ptsname_r_chk.c: Moved to ...
19399         * login/ptsname_r_chk.c: ... here.
19400         * debug/Makefile (routines): Move ptsname_r_chk to ...
19401         * login/Makefile (routines): ... here.
19402         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
19403         * login/Versions (libc: GLIBC_2.4): ... here.
19404
19405         * posix/getlogin.c: Moved to ...
19406         * login/getlogin.c: ... here.
19407         * posix/getlogin_r.c: Moved to ...
19408         * login/getlogin_r.c: ... here.
19409         * posix/getlogin_r.c: Moved to ...
19410         * login/getlogin_r.c: ... here.
19411         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
19412         * login/Makefile (routines): ... here.
19413         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
19414         * login/Versions (libc: GLIBC_2.0): ... here.
19415
19416         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
19417         (setrlimit): Define as weak alias.
19418
19419         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
19420         Call __ names for open, ftruncate, and close.
19421         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
19422         (truncate): Define as weak alias.
19423
19424 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
19425
19426         * math/gen-libm-test.pl (parse_args): Initialize x before each
19427         test of frexp, modf and remquo.
19428
19429         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
19430         test signgam value.
19431
19432 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19433
19434         [BZ #15418]
19435         [BZ #15419]
19436         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
19437         internal tests.
19438         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19439
19440 2013-05-06  Roland McGrath  <roland@hack.frob.com>
19441
19442         * elf/dl-writev.h: New file.
19443         * elf/dl-misc.c: Include it.
19444         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
19445         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
19446
19447 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
19448
19449         * math/libm-test.inc (noXFails): Remove variable.
19450         (noXPasses): Likewise.
19451         (BUILD_COMPLEX_INT): Remove macro.
19452         (print_screen): Remove xfail argument.
19453         (print_screen_max_error): Likewise.
19454         (update_stats): Likewise.
19455         (print_max_error): Likewise.  Update calls to other affected
19456         functions.
19457         (print_complex_max_error): Likewise.
19458         (test_single_exception): Update calls to print_screen.
19459         (test_single_errno): Likewise.
19460         (check_float_internal): Remove xfail argument.  Update calls to
19461         other affected functions.
19462         (check_float): Likewise.
19463         (check_complex): Likewise.
19464         (check_int): Likewise.
19465         (check_long): Likewise.
19466         (check_bool): Likewise.
19467         (check_longlong): Likewise.
19468         (main): Don't print noXFails and noXPasses.
19469         * math/gen-libm-test.pl (top level): Don't mention expected
19470         failure handling in comment.
19471         (new_test): Don't handle expected failures.
19472         (parse_args): Don't mention expected failure handling in comment.
19473         (generate_testfile): Don't handle expected failures.
19474         (parse_ulps): Likewise.
19475         (print_ulps_file): Likewise.
19476         (get_failure): Remove function.
19477         (output_test): Don't handle expected failures.
19478         * make/README.libm-test: Don't mention expected failure handling.
19479
19480         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
19481         (minus_zero): Likewise.
19482         (plus_infty): Likewise.
19483         (minus_infty): Likewise.
19484         (qnan_value): Likewise.
19485         (max_value): Likewise.
19486         (min_value): Likewise.
19487         (min_subnorm_value): Likewise.
19488         (initialize): Do not initialize those variables dynamically.
19489
19490 2013-05-03  Roland McGrath  <roland@hack.frob.com>
19491
19492         * io/open.c (__open_2): Moved to ...
19493         * io/open_2.c: ... this new file.
19494         * io/open64.c (__open64_2): Moved to ...
19495         * io/open64_2.c: ... this new file.
19496         * io/openat.c (__openat_2): Moved to ...
19497         * io/openat_2.c: ... this new file.
19498         * io/openat64.c (__openat64_2): Moved to ...
19499         * io/openat64_2.c: ... this new file.
19500         * io/Makefile (routines): Add them.
19501         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
19502         * sysdeps/unix/sysv/linux/open_2.c: File removed.
19503         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
19504         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
19505         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
19506         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
19507         (__openat64): Add hidden_ver.
19508         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
19509         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
19510
19511         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
19512         Separately conditionalize setting of GLRO(dl_sysinfo) so
19513         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
19514         as well, but the actual setting is only under [NEED_DL_SYSINFO].
19515
19516 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19517
19518         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
19519         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
19520         definition.
19521         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
19522         * sysdeps/unix/sysv/linux/powerpc/init-first.c
19523         (_libc_vdso_platform_setup): Add __vdso_time initialization.
19524         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
19525         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
19526
19527 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
19528
19529         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
19530         test signgam value.
19531
19532         * math/libm-test.inc (hypot_test): Do not use
19533         IGNORE_ZERO_INF_SIGN.
19534
19535 2013-05-03  Andreas Jaeger  <aj@suse.de>
19536
19537         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
19538         Linux 3.9.
19539         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
19540         (PF_MAX): Adjust for VSOCK change.
19541
19542 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19543
19544         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19545
19546 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
19547
19548         [BZ #15264]
19549         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
19550         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
19551         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
19552
19553 2013-05-02  David S. Miller  <davem@davemloft.net>
19554
19555         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19556
19557 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
19558
19559         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
19560
19561 2013-05-01  Roland McGrath  <roland@hack.frob.com>
19562
19563         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
19564
19565 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
19566
19567         [BZ #14952]
19568         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
19569         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
19570         Use __attribute__ ((__gnu_inline__)).
19571         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
19572         Don't use __attribute__ ((__gnu_inline__)).
19573
19574 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
19575
19576         [BZ #15423]
19577         * math/s_catan.c (__catan): Handle small real or imaginary part of
19578         input specially to avoid spurious underflow.
19579         * math/s_catanf.c (__catanf): Likewise.
19580         * math/s_catanh.c (__catanh): Likewise.
19581         * math/s_catanhf.c (__catanhf): Likewise.
19582         * math/s_catanhl.c (__catanhl): Likewise.
19583         * math/s_catanl.c (__catanl): Likewise.
19584         * math/libm-test.inc (catan_test): Add more tests.
19585         (catanh_test): Likewise.
19586         * sysdeps/i386/fpu/libm-test-ulps: Update.
19587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19588
19589 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19590
19591         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19592
19593 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
19594
19595         [BZ #15416]
19596         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
19597         accurately for denominator in atan2.
19598         * math/s_catanf.c (__catanf): Likewise.
19599         * math/s_catanh.c (__catanh): Likewise.
19600         * math/s_catanhf.c (__catanhf): Likewise.
19601         * math/s_catanhl.c (__catanhl): Likewise.
19602         * math/s_catanl.c (__catanl): Likewise.
19603         * math/libm-test.inc (catan_test): Add more tests.
19604         (catanh_test): Likewise.
19605         * sysdeps/i386/fpu/libm-test-ulps: Update.
19606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19607
19608 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
19609
19610         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
19611
19612         * benchtests/Makefile (bench): Remove slow benchmarks.
19613         * benchtests/atan-inputs: Add slow benchmark inputs.
19614         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
19615         (BENCH_FUNC): Accept variant offset.
19616         (VARIANT): Define.
19617         * benchtests/bench-skeleton.c (main): Run benchmark for each
19618         variant.
19619         * benchtests/cos-inputs: Add slow benchmark inputs.
19620         * benchtests/exp-inputs: Likewise.
19621         * benchtests/pow-inputs: Likewise.
19622         * benchtests/sin-inputs: Likewise.
19623         * benchtests/slowatan-inputs: Remove.
19624         * benchtests/slowatan.c: Remove.
19625         * benchtests/slowcos-inputs: Remove.
19626         * benchtests/slowcos.c: Remove.
19627         * benchtests/slowexp-inputs: Remove.
19628         * benchtests/slowexp.c: Remove.
19629         * benchtests/slowpow-inputs: Remove.
19630         * benchtests/slowpow.c: Remove.
19631         * benchtests/slowsin-inputs: Remove.
19632         * benchtests/slowsin.c: Remove.
19633         * benchtests/slowtan-inputs: Remove.
19634         * benchtests/slowtan.c: Remove.
19635         * benchtests/tan-inputs: Add slow benchmark inputs.
19636         * scripts/bench.pl: Parse comments and directives.
19637
19638         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
19639         in CPPFLAGS.
19640         ($(objpfx)bench-%.c): Remove *-ITER.
19641         * benchtests/bench-modf.c: Remove definition of ITER.
19642         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
19643         (main): Loop for DURATION seconds instead of fixed number of
19644         iterations.
19645         * scripts/bench.pl: Don't expect iterations in parameters.
19646
19647 2013-04-29  Roland McGrath  <roland@hack.frob.com>
19648
19649         * io/fchdir.c (__fchdir): Renamed from fchdir.
19650         (fchdir): Define as weak alias.
19651
19652 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19653
19654         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
19655         (ERRNO_EDOM): Likewise.
19656         (ERRNO_ERANGE): Likewise.
19657         (noErrnoTests): New variable.
19658         (init_max_error): Set errno to 0.
19659         (test_single_errno): New function.
19660         (test_errno): Likewise.
19661         (check_float_internal): Call test_errno.  Set errno to 0.
19662         (check_complex): Refer to errno tests in comment.
19663         (check_int): Call test_errno.  Set errno to 0.
19664         (check_long): Likewise.
19665         (check_bool): Likewise.
19666         (check_longlong): Likewise.
19667         (cos_test): Use ERRNO_* flags for errno tests instead of
19668         check_int.
19669         (expm1_test): Likewise.
19670         (fmod_test): Likewise.
19671         (ilogb_test): Likewise.
19672         (lgamma_test): Likewise.
19673         (pow_test): Likewise.
19674         (remainder_test): Likewise.
19675         (sin_test): Likewise.
19676         (tan_test): Likewise.
19677         (yn_test): Likewise.
19678         (initialize): Set errno to 0.
19679         (main): Print number of errno tests.
19680         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
19681
19682 2013-04-29  Andreas Jaeger  <aj@suse.de>
19683
19684         [BZ #15084]
19685         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
19686         and RES_USEVC.
19687
19688         [BZ #15085]
19689         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
19690         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
19691         unimplemented.
19692
19693         [BZ #15380]
19694         * stdlib/random.c (__initstate): Return NULL if
19695         __initstate fails.
19696
19697         [BZ #15086]
19698         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
19699         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
19700         RES_SNGLKUPREOP.
19701
19702 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19703
19704         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19705
19706 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19707
19708         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
19709         of individual tests.
19710         (casin_test): Likewise.
19711         (casinh_test): Likewise.
19712
19713 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
19714
19715         [BZ #15409]
19716         * math/s_catan.c (__catan): Handle arguments with large real or
19717         imaginary part separately without squaring.
19718         * math/s_catanf.c (__catanf): Likewise.
19719         * math/s_catanh.c (__catanh): Likewise.
19720         * math/s_catanhf.c (__catanhf): Likewise.
19721         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19722         and redefine.
19723         (__catanhl): Handle arguments with large real or imaginary part
19724         separately without squaring.
19725         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19726         and redefine.
19727         (__catanl): Handle arguments with large real or imaginary part
19728         separately without squaring.
19729         * math/libm-test.inc (catan_test): Add more tests.
19730         (catanh_test): Likewise.
19731         * sysdeps/i386/fpu/libm-test-ulps: Update.
19732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19733
19734 2013-04-27  Andreas Jaeger  <aj@suse.de>
19735
19736         [BZ #15007]
19737         * stdlib/stdlib.h: Update guards for qecvt.
19738         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
19739         <stdlib.h>.
19740
19741 2013-04-27  Allan McRae  <allan@archlinux.org>
19742
19743         * sysdeps/i386/fpu/libm-test-ulps: Update.
19744
19745 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
19746
19747         [BZ #15406]
19748         * math/s_catan.c: Include <float.h>.
19749         (__catan): Ensure underflow exception occurs for underflowed
19750         result.
19751         * math/s_catanf.c: Include <float.h>.
19752         (__catanf): Ensure underflow exception occurs for underflowed
19753         result.
19754         * math/s_catanh.c: Include <float.h>.
19755         (__catanh): Ensure underflow exception occurs for underflowed
19756         result.
19757         * math/s_catanhf.c: Include <float.h>.
19758         (__catanhf): Ensure underflow exception occurs for underflowed
19759         result.
19760         * math/s_catanhl.c: Include <float.h>.
19761         (__catanhl): Ensure underflow exception occurs for underflowed
19762         result.
19763         * math/s_catanl.c: Include <float.h>.
19764         (__catanl): Ensure underflow exception occurs for underflowed
19765         result.
19766         * math/libm-test.inc (catan_test): Add more tests.
19767         (catanh_test): Likewise.
19768
19769         [BZ #15405]
19770         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
19771         underflowed result.
19772         * math/s_ccoshf.c (__ccoshf): Likewise.
19773         * math/s_ccoshl.c (__ccoshl): Likewise.
19774         * math/s_csin.c (__csin): Likewise.
19775         * math/s_csinf.c (__csinf): Likewise.
19776         * math/s_csinh.c (__csinh): Likewise.
19777         * math/s_csinhf.c (__csinhf): Likewise.
19778         * math/s_csinhl.c (__csinhl): Likewise.
19779         * math/s_csinl.c (__csinl): Likewise.
19780         * math/libm-test.inc (ccos_test): Add more tests.
19781         (ccosh_test): Likewise.
19782         (csin_test): Likewise.
19783         (csinh_test): Likewise.
19784
19785 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19786
19787         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
19788         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
19789         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
19790         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
19791         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
19792         powerpc/power5+/fpu folders.
19793         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
19794
19795
19796 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19797
19798         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19799
19800 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
19801
19802         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
19803         additions to variable.
19804         [$(config-machine) = x86_64] (modules-names): Likewise.
19805         ($(objpfx)tst-audit3): Remove dependency.
19806         ($(objpfx)tst-audit3.out): Likewise.
19807         ($(objpfx)tst-audit4): Likewise.
19808         ($(objpfx)tst-audit4.out): Likewise.
19809         ($(objpfx)tst-audit5): Likewise.
19810         ($(objpfx)tst-audit5.out): Likewise.
19811         ($(objpfx)tst-audit6): Likewise.
19812         ($(objpfx)tst-audit6.out): Likewise.
19813         ($(objpfx)tst-audit7): Likewise.
19814         ($(objpfx)tst-audit7.out): Likewise.
19815         (tst-audit3-ENV): Remove variable.
19816         (tst-audit4-ENV): Likewise.
19817         (tst-audit5-ENV): Likewise.
19818         (tst-audit6-ENV): Likewise.
19819         (tst-audit7-ENV): Likewise.
19820         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
19821         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
19822         addition to variable.
19823         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
19824         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
19825         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
19826         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
19827         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
19828         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
19829         tst-audit3, tst-audit4 and tst-audit5.
19830         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
19831         tst-audit6 and tst-audit7.
19832         [$(subdir) = elf] (modules-names): Add audit modules for those
19833         tests.
19834         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
19835         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
19836         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
19837         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
19838         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
19839         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
19840         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
19841         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
19842         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
19843         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
19844         [$(subdir) = elf] (tst-audit3-ENV): New variable.
19845         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
19846         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
19847         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
19848         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
19849         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
19850         Likewise.
19851         [$(subdir) = elf && $(config-cflags-avx) = yes]
19852         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
19853         [$(subdir) = elf && $(config-cflags-avx) = yes]
19854         (CFLAGS-tst-auditmod4a.c): Likewise.
19855         [$(subdir) = elf && $(config-cflags-avx) = yes]
19856         (CFLAGS-tst-auditmod4b.c): Likewise.
19857         [$(subdir) = elf && $(config-cflags-avx) = yes]
19858         (CFLAGS-tst-auditmod6b.c): Likewise.
19859         [$(subdir) = elf && $(config-cflags-avx) = yes]
19860         (CFLAGS-tst-auditmod6c.c): Likewise.
19861         [$(subdir) = elf && $(config-cflags-avx) = yes]
19862         (CFLAGS-tst-auditmod7b.c): Likewise.
19863         * elf/tst-audit3.c: Move to ...
19864         * sysdeps/x86_64/tst-audit3.c: ... here.
19865         * elf/tst-audit4.c: Move to ...
19866         * sysdeps/x86_64/tst-audit4.c: ... here.
19867         * elf/tst-audit5.c: Move to ...
19868         * sysdeps/x86_64/tst-audit5.c: ... here.
19869         * elf/tst-audit6.c: Move to ...
19870         * sysdeps/x86_64/tst-audit6.c: ... here.
19871         * elf/tst-audit7.c: Move to ...
19872         * sysdeps/x86_64/tst-audit7.c: ... here.
19873         * elf/tst-auditmod3a.c: Move to ...
19874         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
19875         * elf/tst-auditmod3b.c: Move to ...
19876         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
19877         * elf/tst-auditmod4a.c: Move to ...
19878         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
19879         * elf/tst-auditmod4b.c: Move to ...
19880         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
19881         * elf/tst-auditmod5a.c: Move to ...
19882         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
19883         * elf/tst-auditmod5b.c: Move to ...
19884         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
19885         * elf/tst-auditmod6a.c: Move to ...
19886         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
19887         * elf/tst-auditmod6b.c: Move to ...
19888         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
19889         * elf/tst-auditmod6c.c: Move to ...
19890         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
19891         * elf/tst-auditmod7a.c: Move to ...
19892         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
19893         * elf/tst-auditmod7b.c: Move to ...
19894         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
19895
19896 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
19897
19898         [BZ #15366]
19899         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
19900         define unconditionally.
19901         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
19902         define unconditionally.
19903         (INT8_C, INT16_C, etc.): Likewise.
19904
19905 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
19906
19907         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
19908         __ehdr_start with hidden visibility.
19909
19910         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
19911
19912 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
19913
19914         * math/libm-test.inc (cos_test): Use accurate hex constants.
19915         (sincost_test): Likewise.
19916
19917 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
19918
19919         * math/libm-test.inc (catan_test): Add more tests.
19920         (catanh_test): Likewise.
19921
19922         * math/s_catanf.c (__catanf): Use suffixed floating-point
19923         constants.
19924         * math/s_catanhf.c (__catanhf): Likewise.
19925         * math/s_catanhl.c (__catanhl): Likewise.
19926         * math/s_catanl.c (__catanl): Likewise.
19927
19928         [BZ #15394]
19929         * math/s_catan.c (__catan): Calculate imaginary part of result
19930         with log1p not log unless computing log of number close to 0.
19931         * math/s_catanf.c (__catanf): Likewise.
19932         * math/s_catanl.c (__catanl): Likewise.
19933         * math/s_catanh.c (__catanh): Calculate real part of result with
19934         log1p not log unless computing log of number close to 0.
19935         * math/s_catanhf.c (__catanhf): Likewise.
19936         * math/s_catanhl.c (__catanhl): Likewise.
19937         * math/libm-test.inc (catan_test): Add more tests.
19938         (catanh_test): Likewise.
19939         * sysdeps/i386/fpu/libm-test-ulps: Update.
19940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19941
19942 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19943
19944         * benchtests/Makefile: Mention files in which fast and slow
19945         paths of math functions are implemented.
19946
19947 2013-04-23  Roland McGrath  <roland@hack.frob.com>
19948
19949         * sysdeps/posix/timespec_get.c: New file.
19950
19951 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19952
19953         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
19954         POWER.
19955         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
19956         for POWER.
19957         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
19958         powerpc/power5/fpu folders.
19959         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
19960         * benchtests/Makefile: Add modf testcase.
19961         * benchtests/bench-modf.c: New file: Benchmark test for mo
19962
19963 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
19964
19965         [BZ #14888]
19966         * time/Makefile (tests): Add tst-strptime-whitespace.
19967         * time/strptime_l.c (get_number): Use ISSPACE.
19968         (__strptime_internal): Likewise.
19969         * time/tst-strptime-whitespace.c: New test case.
19970
19971 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
19972
19973         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
19974         member.
19975         (_nss_files_init): Set it here.
19976
19977 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
19978
19979         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
19980         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
19981         unsigned.
19982
19983 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
19984
19985         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
19986
19987 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
19988
19989         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
19990         size just once.
19991
19992 2013-04-21  David S. Miller  <davem@davemloft.net>
19993
19994         * po/ru.po: Update Russion translation from translation project.
19995
19996 2013-04-17  Adam Conrad  <adconrad@0c3.net>
19997
19998         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
19999         and setfsgid.
20000
20001 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
20002
20003         * configure.in: Remove i386 configure warning. Remove i386 case.
20004         * configure: Regenerate.
20005         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
20006         Add example to error message.
20007         * sysdeps/i386/configure: Regenerate.
20008
20009 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
20010
20011         * benchtests/Makefile (bench): Add cos, tan, slowcos and
20012         slowtan.
20013         * benchtests/cos-inputs: New file.
20014         * benchtests/slowcos-inputs: New file.
20015         * benchtests/slowcos.c: New file.
20016         * benchtests/slowtan-inputs: New file.
20017         * benchtests/slowtan.c: New file.
20018         * benchtests/tan-inputs: New file.
20019
20020 2013-04-16  Roland McGrath  <roland@hack.frob.com>
20021
20022         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
20023         considered kosher.
20024
20025 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
20026
20027         * benchtests/Makefile: Include cppflags-iterator.mk to add
20028         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
20029
20030         * Makefile.in (bench-clean): New target.
20031         * benchtests/Makefile (bench-clean): Likewise.
20032
20033 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
20034
20035         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
20036
20037 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
20038
20039         * stdio-common/tstdiomisc.c: Fix coding-style violation.
20040
20041 2013-04-15  Andreas Schwab  <schwab@suse.de>
20042
20043         * nscd/grpcache.c (cache_addgr): Properly check for short write.
20044         * nscd/initgrcache.c (addinitgroupsX): Likewise.
20045         * nscd/pwdcache.c (cache_addpw): Likewise.
20046         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
20047         more than recsize.
20048
20049 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20050
20051         * benchtests/Makefile (bench): Write all output to
20052         bench-out.tmp together.
20053
20054 2013-04-15  Andreas Schwab  <schwab@suse.de>
20055
20056         * nscd/nscd.c (main): Don't fork again after closing files.
20057
20058 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20059
20060         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
20061
20062         * benchtests/Rules (bench-deps): Collect dependencies into a
20063         single variable.  Add Makefile to dependencies.
20064         ($(objpfx)bench-%.c): Depend on bench-deps.
20065
20066 2013-04-12  Roland McGrath  <roland@hack.frob.com>
20067             Xavier Roche  <roche+kml2@exalead.com>
20068
20069         [BZ #15361]
20070         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
20071         just that it's a file descriptor.
20072         * manual/llio.texi (Synchronizing AIO Operations): Update description
20073         for EBADF error from aio_fsync.
20074
20075 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
20076
20077         * Rules (bench): Move target definition...
20078         * benchtests/Makefile: ... here.
20079
20080 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
20081
20082         * math/libm-test.inc (cos_test): Fix PI/2 test.
20083         (sincos_test): Likewise.
20084         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
20085         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
20086
20087 2013-04-11  Andreas Schwab  <schwab@suse.de>
20088
20089         [BZ #13988]
20090         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
20091         accept exponent character only when digits were seen.
20092         * stdio-common/Makefile (tests): Add bug26.
20093         * stdio-common/bug26.c: New file.
20094
20095         [BZ #14293]
20096         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
20097         non-freeable.
20098
20099 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
20100
20101         * Makeconfig (rtld-prefix): Define built linker prefix.
20102         * Rules (run-bench): Use it.
20103         * math/Makefile (run-regen-ulps): Likewise.
20104
20105         * Rules (bench): Remove eval.
20106
20107 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
20108             Roland McGrath  <roland@hack.frob.com>
20109             Ondrej Bilka  <neleai@seznam.cz>
20110
20111         [BZ #15346]
20112         * time/getdate.c: Include ctype.h and alloca.h.
20113         (__getdate_r): Trim leading and trailing spaces of input.
20114         * time/tst-getdate.c (tests): Add tests with leading and
20115         trailing spaces.
20116
20117 2013-04-08  Roland McGrath  <roland@hack.frob.com>
20118
20119         [BZ #14280]
20120         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
20121         when computing value.
20122
20123 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20124
20125         * math/README.libm-test (How can I generate "libm-test-ulps"?):
20126         Use testrun.sh to run libm tests.
20127
20128         [BZ #15309]
20129         * elf/dl-open.c (dl_open_worker): memset all of seen array.
20130
20131 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
20132
20133         [BZ #15264]
20134         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
20135
20136 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20137
20138         * Makefile.in (regen-ulps): New target.
20139         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
20140         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
20141         [ifneq (no,$(PERL)] (regen-ulps): New target.
20142         [ifeq (no,$(PERL)] (regen-ulps): New target.
20143         * math/libm-test.inc (ulps_file_name): Define.
20144         (output_dir): New variable.
20145         (options): Add "output-dir" option.
20146         (parse_opt): Handle 'o' case.
20147         (main): If output_dir is non-NULL use it as a prefix
20148         otherwise use "".
20149         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
20150
20151 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20152
20153         [BZ #10060, #10062]
20154         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
20155         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
20156         fail configure if __sync_val_compare_and_swap is not inlined.
20157         * sysdeps/i386/configure: Regenerate.
20158         * configure.in: Build for i686 when configured for i386.
20159         * configure: Regenerate.
20160         * README: Remove i386 reference.
20161
20162 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20163
20164         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
20165         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20166
20167 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
20168
20169         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
20170         (lmsnanval): New variables.
20171         (F): Add conversion tests.
20172         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
20173         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
20174
20175         * stdio-common/tstdiomisc.c (F): Properly collect individual
20176         tests' results.
20177
20178         [BZ #14686, #15336]
20179         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
20180         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
20181         Instead, use input NaN values or generate a qNaN by arithmetic
20182         operation.  Also fix bugs to comply with the standard.
20183         * math/libm-test.inc (remainder_test): Add more tests.
20184
20185         [BZ #15335, #15342]
20186         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
20187         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
20188         input NaN values or generate a qNaN by arithmetic operation.
20189
20190         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
20191         unreachable code.
20192
20193         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
20194         definitions.
20195
20196 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
20197
20198         [BZ #14478]
20199         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
20200         underflowed result.
20201         * math/s_cexpf.c (__cexpf): Likewise.
20202         * math/s_cexpl.c (__cexpl): Likewise.
20203         * math/libm-test.inc (cexp_test): Add more tests.
20204
20205 2013-04-03  Andreas Schwab  <schwab@suse.de>
20206
20207         [BZ #15330]
20208         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
20209         order arrays from heap if bigger than alloca cutoff.
20210
20211 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
20212
20213         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
20214         (SNAN_TESTS_double): Refer to GCC PR56831.
20215         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
20216         GCC PR56828.
20217
20218 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
20219
20220         * Rules (bench): Move bench.out after the run is complete.
20221
20222         * Rules (bench): Echo currently running benchmark.
20223
20224         * benchtests/Makefile (bench): Add atan and slowatan.
20225         * benchtests/atan-inputs: New file.
20226         * benchtests/slowatan-inputs: New file.
20227         * benchtests/slowatan.c: New file.
20228
20229         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
20230         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
20231         its value.
20232
20233         [BZ #15305]
20234         * sysdeps/unix/sysv/linux/kernel-features.h
20235         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
20236         __ASSUME_XFS_RESTRICTED_CHOWN.
20237         * sysdeps/unix/sysv/linux/pathconf.c
20238         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
20239         Save and restore errno.
20240
20241 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
20242
20243         [BZ #15327]
20244         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
20245         arguments using __kernel_casinh.
20246         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
20247         arguments using __kernel_casinhf.
20248         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
20249         arguments using __kernel_casinhl.
20250         * math/libm-test.inc (cacosh_test): Add more tests.
20251         * sysdeps/i386/fpu/libm-test-ulps: Update.
20252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20253
20254 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
20255
20256         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
20257         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
20258
20259         * bench/Makefile (bench): Add sin and slowsin.
20260         * benchtests/sin-inputs: New file.
20261         * benchtests/slowsin-inputs: New file.
20262         * benchtests/slowsin.c: New file.
20263
20264         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
20265         (bench): Add slowexp and slowpow.
20266         (exp-ITER): Increase iterations.
20267         (pow-ITER): Likewise.
20268         * benchtests/exp-inputs: Change input.
20269         * benchtests/pow-inputs: Likewise.
20270         * benchtests/slowexp-inputs: New file.
20271         * benchtests/slowexp.c: New file.
20272         * benchtests/slowpow-inputs: New file.
20273         * benchtests/slowpow.c: New file.
20274
20275 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20276
20277         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
20278         instructions.
20279         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
20280         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
20281         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
20282         * benchtests/Makefile: Add rint benchtest.
20283         * benchtests/rint-inputs: Input for rint benchtest.
20284
20285 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
20286
20287         * Versions.def (libm): Add GLIBC_2.18.
20288         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
20289         hidden libm prototypes.
20290         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
20291         * math/Makefile (libm-calls): Add s_issignaling.
20292         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
20293         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
20294         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
20295         declaration.
20296         * math/math.h [__USE_GNU] (issignaling): New macro.
20297         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
20298         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
20299         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
20300         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
20301         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
20302         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
20303         * manual/arith.texi (issignaling): New section.
20304         * manual/libm-err-tab.pl (@all_functions): Update comment.
20305         * math/gen-libm-test.pl (parse_args): Apply special handling for
20306         issignaling.
20307         * math/libm-test.inc (print_float, issignaling_test): New
20308         functions.
20309         (check_float_internal): Add issignaling checks.
20310         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
20311         default definition.
20312         * sysdeps/powerpc/math-tests.h: New file.
20313         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
20314         tests.
20315         * math/test-snan.c (TEST_FUNC): Likewise.
20316
20317 2013-03-30  David S. Miller  <davem@davemloft.net>
20318
20319         * po/de.po: Update from translation team.
20320
20321 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
20322
20323         [BZ #10357]
20324         * math/k_casinh.c (__kernel_casinh): Handle arguments with
20325         imaginary part less than 1.0 and real part less than 0.5
20326         specially.
20327         * math/k_casinhf.c (__kernel_casinhf): Likewise.
20328         * math/k_casinhl.c (__kernel_casinhl): Likewise.
20329         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
20330         (cacos_test): Add more tests.
20331         (casin_test): Likewise.
20332         (casinh_test): Likewise.
20333         * sysdeps/i386/fpu/libm-test-ulps: Update.
20334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20335
20336 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
20337
20338         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
20339         ONE with its value.
20340
20341         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
20342         (__pow_mp): Replace ONE and MONE with their values.
20343         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
20344         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
20345         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
20346         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
20347         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
20348         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
20349
20350         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
20351
20352         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
20353         (__pow_mp): Replace ZERO and MZERO with their values.
20354         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
20355         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
20356         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
20357         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
20358         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
20359         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
20360         (__sqr): Likewise.
20361
20362         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
20363
20364         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
20365
20366 2013-03-28  Roland McGrath  <roland@hack.frob.com>
20367
20368         * include/stdlib.h [!SHARED] (__call_tls_dtors):
20369         Declare with __attribute__ ((weak)).
20370         * stdlib/exit.c (__libc_atexit) [!SHARED]:
20371         Call __call_tls_dtors only if it's not NULL.
20372
20373 2013-03-28  Roland McGrath  <roland@hack.frob.com>
20374
20375         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
20376         didn't do it already, then set _dl_phdr and _dl_phnum based on the
20377         magic __ehdr_start linker symbol if it's defined.
20378         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
20379         them up here if it was already done.
20380
20381         * elf/dl-support.c (_dl_phdr): Make pointer to const.
20382         (_dl_aux_init): Use const in cast when setting it.
20383         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
20384         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
20385         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
20386
20387         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
20388         Declare them here.
20389         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
20390         * csu/libc-tls.c: Nor here.
20391         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
20392
20393         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
20394         (__libc_message): Never call vsyslog.
20395
20396 2013-03-28  Alan Modra  <amodra@gmail.com>
20397
20398         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
20399         Define as empty.
20400         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
20401         Likewise.
20402
20403 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20404
20405         [BZ #15214]
20406         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
20407         underflow.
20408         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20409
20410 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
20411
20412         [BZ #15304]
20413         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
20414         Don't add gid passed as argument.
20415
20416         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
20417
20418 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
20419
20420         [BZ #15307]
20421         * math/k_casinh.c (__kernel_casinh): Handle arguments with
20422         imaginary part between 1.0 and 1.5 and real part less than 0.5
20423         specially.
20424         * math/k_casinhf.c (__kernel_casinhf): Likewise.
20425         * math/k_casinhl.c (__kernel_casinhl): Likewise.
20426         * math/libm-test.inc (cacos_test): Add more tests.
20427         (casin_test): Likewise.
20428         (casinh_test): Likewise.
20429         * sysdeps/i386/fpu/libm-test-ulps: Update.
20430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20431
20432 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20433
20434         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
20435         constants.
20436         (norm): Likewise.
20437         (denorm): Likewise.
20438         (__dbl_mp): Likewise.
20439         (add_magnitudes): Likewise.
20440         (sub_magnitudes): Likewise.
20441         (__add): Likewise.
20442         (__sub): Likewise.
20443         (__mul): Likewise.
20444         (__sqr): Likewise.
20445         (__inv): Likewise.
20446         (__dvd): Likewise.
20447
20448         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
20449         commented code.
20450         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
20451         (__dubcos): Likewise.
20452         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
20453         (__ieee754_acos): Likewise.
20454         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
20455         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
20456         (__exp1): Likewise.
20457         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
20458         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
20459         (log1): Likewise.
20460         (my_log2): Likewise.
20461         (checkint): Likewise.
20462         * sysdeps/ieee754/dbl-64/e_remainder.c
20463         (__ieee754_remainder): Likewise.
20464         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
20465         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
20466         (bsloww): Likewise.
20467         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
20468
20469         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
20470         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
20471         MANTISSA_STORE_T to store computations on mantissa.  Use
20472         macros for rounding and division.
20473         (denorm): Likewise.
20474         (__dbl_mp): Likewise.
20475         (add_magnitudes): Likewise.
20476         (sub_magnitudes): Likewise.
20477         (__mul): Likewise.
20478         (__sqr): Likewise.
20479         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
20480         powers of two in terms of TWOPOW macro.
20481         (mp_no): Make type of mantissa as MANTISSA_T.
20482         [!RADIXI]: Define RADIXI.
20483         [!TWO52]: Define TWO52.
20484         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
20485
20486 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20487
20488         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
20489         llroundl symbol when building for PPC32.
20490
20491 2013-03-24  Mark H Weaver  <mhw@netris.org>
20492
20493         * manual/arith.texi (Normalization Functions): Fix prototypes for
20494         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
20495
20496 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20497
20498         [BZ #13889]
20499         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
20500         high value to check if expl overflow.
20501         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
20502         to check for underflow and overflow.
20503         * math/libm-test.inc: Add exp test.
20504
20505 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
20506
20507         [BZ #11120]
20508         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
20509         with NOT_IN_libc.
20510
20511 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20512
20513         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
20514         symbol.
20515
20516 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
20517
20518         * math/gen-libm-test.pl (parse_args, special_functions): Properly
20519         wrap blocks consisting of several statements.
20520
20521         * sysdeps/generic/math-tests.h: New file.
20522         * sysdeps/i386/fpu/math-tests.h: Likewise.
20523         * math/test-snan.c: Include it.
20524         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
20525
20526 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
20527
20528         [BZ #15285]
20529         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
20530         (__ieee754_j0l): Do not improve calculations using cos of twice
20531         input for inputs above LDBL_MAX / 2.0L.
20532         (__ieee754_y0l): Likewise.
20533         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
20534         (__ieee754_j1l): Do not improve calculations using cos of twice
20535         input for inputs above LDBL_MAX / 2.0L.
20536         (__ieee754_y1l): Likewise.
20537         * math/libm-test.inc (j0_test): Add another test.
20538         (j1_test): Likewise.
20539         (y0_test): Likewise.
20540         (y1_test): Likewise.
20541         * sysdeps/i386/fpu/libm-test-ulps: Update.
20542
20543 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20544
20545         * Rules ($(objpfx)bench-%.c): Include code from a C source
20546         file.
20547
20548 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
20549
20550         [BZ #15287]
20551         * math/k_casinh.c (__kernel_casinh): Handle arguments with
20552         imaginary part 1.0 and real part less than 0.5 specially.
20553         * math/k_casinhf.c (__kernel_casinhf): Likewise.
20554         * math/k_casinhl.c (__kernel_casinhl): Likewise.
20555         * math/libm-test.inc (cacos_test): Add more tests.
20556         (casin_test): Likewise.
20557         (casinh_test): Likewise.
20558         * sysdeps/i386/fpu/libm-test-ulps: Update.
20559         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20560
20561 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20562
20563         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
20564         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
20565
20566 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
20567
20568         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
20569         * config.make.in (config-cflags-sse4): Remove variable.
20570         (config-cflags-avx): Likewise.
20571         (config-cflags-sse2avx): Likewise.
20572         (config-cflags-novzeroupper): Likewise.
20573         (config-asflags-i686): Likewise.
20574         (have-mfma4): Likewise.
20575         (have-as-vis3): Likewise.
20576         (MIG): Likewise.
20577         * configure.in (MIG): Do not AC_SUBST.
20578         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
20579         (libc_cv_cc_sse4): Do not AC_SUBST.
20580         (libc_cv_cc_avx): Likewise.
20581         (libc_cv_cc_sse2avx): Likewise.
20582         (libc_cv_cc_novzeroupper): Likewise.
20583         (libc_cv_cc_fma4): Likewise.
20584         (libc_cv_as_i686): Likewise.
20585         (libc_cv_sparc_as_vis3): Likewise.
20586         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
20587         LIBC_CONFIG_VAR.
20588         (config-asflags-i686): Likewise.
20589         (config-cflags-avx): Likewise.
20590         (config-cflags-sse2avx): Likewise.
20591         (have-mfma4): Likewise.
20592         (config-cflags-novzeroupper): Likewise.
20593         * sysdeps/mach/configure.in (MIG): Likewise.
20594         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
20595         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
20596         LIBC_CONFIG_VAR.
20597         (config-cflags-avx): Likewise.
20598         (config-cflags-sse2avx): Likewise.
20599         (have-mfma4): Likewise.
20600         (config-cflags-novzeroupper): Likewise.
20601         * configure: Regenerated.
20602         * sysdeps/i386/configure: Likewise.
20603         * sysdeps/mach/configure: Likewise.
20604         * sysdeps/sparc/configure: Likewise.
20605         * sysdeps/x86_64/configure: Likewise.
20606
20607 2013-03-20  Roland McGrath  <roland@hack.frob.com>
20608
20609         [BZ #14812]
20610         * locale/programs/localedef.c (options): Put N_ translation marker
20611         on argument names, not just descriptions.
20612
20613 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
20614
20615         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
20616
20617 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
20618
20619         [BZ #14176]
20620         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
20621
20622 2013-03-19  Roland McGrath  <roland@hack.frob.com>
20623
20624         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
20625         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
20626         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
20627         [!BEFORE_ABORT] (before_abort): New function.
20628         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
20629         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
20630         (writev_for_fatal): New function.
20631         (WRITEV_FOR_FATAL): New macro; call that.
20632         (backtrace_and_maps): New function.
20633         (BEFORE_ABORT): New macro; call that.
20634         (struct str_list): Type removed.
20635         (__libc_message, __libc_fatal): Functions removed.
20636         Include <sysdeps/posix/libc_fatal.c> instead.
20637
20638 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
20639
20640         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
20641         constants.
20642         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
20643         double constants.
20644
20645 2013-03-19  Andreas Schwab  <schwab@suse.de>
20646
20647         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
20648         * sysdeps/gnu/configure: Regenerate.
20649
20650         * configure.in: Substitute libc_cv_rtlddir.
20651         * configure: Regenerate.
20652         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
20653         * Makeconfig (rtlddir, inst_rtlddir): New variables.
20654         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
20655         * elf/Makefile (install-others, CFLAGS-interp.c)
20656         (ldso_install, common-ldd-rewrite): Likewise.
20657         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
20658         $(inst_slibdir)/$(rtld-installed-name).
20659         * scripts/rellns-sh: Add -p option.
20660         * Makerules (make-shlib-link): Use rellns-sh to get relative name
20661         for source.
20662
20663 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
20664
20665         * manual/nptl.texi: Renamed to ...
20666         * manual/threads.texi: ... this.
20667         * manual/Makefile (chapters): Update.
20668
20669 2013-03-18  Roland McGrath  <roland@hack.frob.com>
20670
20671         [BZ #14812]
20672         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
20673         on argument names, not just descriptions.
20674         * malloc/memusagestat.c (options): Likewise.
20675         * nss/getent.c (options): Likewise.
20676
20677 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
20678
20679         [BZ #14812]
20680         * iconv/iconv_prog.c (options): Put N_ translation marker
20681         on argument names, not just descriptions.
20682         * iconv/iconvconfig.c (options): Likewise.
20683
20684 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
20685
20686         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
20687         implementation which is faster on all x86_64 architectures.
20688         Tested on AMD, Intel Nehalem, SNB, IVB.
20689         * sysdeps/x86_64/strnlen.S: Likewise.
20690
20691         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
20692         Remove all multiarch strlen and strnlen versions.
20693         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
20694         Remove strlen and strnlen related parts.
20695
20696         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
20697         Inline strlen part.
20698         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
20699
20700         * sysdeps/x86_64/multiarch/strlen.S: Remove.
20701         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
20702         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
20703         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
20704         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
20705         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
20706
20707 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
20708
20709         * manual/memory.texi (Malloc Tunable Parameters):
20710         Sort parameters alphabetically. Add comments for missing entries.
20711
20712 2013-03-17  David S. Miller  <davem@davemloft.net>
20713
20714         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20715
20716 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
20717
20718         [BZ #15283]
20719         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
20720         for arguments at most half maximum finite value.
20721         * math/libm-test.inc (j0_test): Add more tests.
20722         (j1_test): Likewise.
20723         (y0_test): Likewise.
20724         (y1_test): Likewise.
20725         * sysdeps/i386/fpu/libm-test-ulps: Update.
20726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20727
20728         [BZ #14155]
20729         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
20730         1 / x and functions P and Q for arguments above 0x1p256L.
20731         (__ieee754_y0l): Likewise.
20732         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20733         (__ieee754_y1l): Likewise.
20734         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
20735         (j1_test): Likewise.
20736         (y0_test): Likewise.
20737         (y1_test): Likewise.
20738
20739 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
20740
20741         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
20742         variable.
20743
20744 2013-03-15  Roland McGrath  <roland@hack.frob.com>
20745
20746         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
20747         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
20748         zero since it's initialized to EXEC_PAGESIZE.
20749
20750         * sysdeps/unix/sysv/linux/ldsodefs.h
20751         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
20752         * sysdeps/generic/ldsodefs.h: ... here.
20753
20754 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
20755
20756         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
20757
20758         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
20759         math/test-snan.c.
20760         * math/test-snan.c: Renamed from
20761         sysdeps/powerpc/fpu/test-powerpc-snan.c.
20762         * math/Makefile (tests): Add test-snan.
20763         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
20764         test-powerpc-snan.
20765
20766         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
20767         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
20768         functions.
20769         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
20770         __builtin_nan family of functions.
20771         * math/libm-test.inc (initialize): Initialize qnan_value with
20772         __builtin_nan family of functions.
20773         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
20774         Remove variables.
20775         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
20776         Remove functions.
20777         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
20778         storage class.  Initialize qNaN_var and sNaN_var with
20779         __builtin_nan and __builtin_nans families of functions,
20780         respectively.
20781
20782         * math/libm-test.inc (acosh_test): Also test with qNaN input.
20783         (sqrt_test): Remove duplicate test with qNaN input.
20784         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
20785         (round_test, signbit_test, significand_test): Note missing +/-Inf
20786         as well as qNaN tests.
20787
20788         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
20789         qNaN_var.  Fix a few strings, too.
20790         * math/libm-test.inc (nan_value): Rename to qnan_value.
20791         * math/gen-libm-test.pl (%beautify): Adjust to that.
20792         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
20793         * math/test-misc.c (main): Likewise.
20794         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
20795         to __qnan_bytes, and __qnan_union, respectively.
20796         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
20797         Likewise.
20798         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
20799         and lqnanval, respectively.
20800         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
20801         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
20802         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
20803         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
20804
20805         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
20806         * math/test-misc.c (main) [__x86_64__]: Enable test for long
20807         doubles.
20808
20809         * math/test-misc.c (main): Fix copy'n'pastos.
20810         * misc/tst-efgcvt.c (special): Likewise.
20811
20812         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
20813         Remove declarations.
20814
20815 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20816
20817         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
20818         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
20819         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
20820         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
20821
20822 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20823
20824         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
20825         macro to return vdso values correctly in IFUNC implementations.
20826         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
20827         Optimization by using IFUNC.
20828
20829 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20830             Richard Henderson  <rth@redhat.com>
20831             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20832
20833         * Makefile.in (bench): New target.
20834         * NEWS: Mention the benchmark framework.
20835         * Rules (bench): Likewise.
20836         (binaries-bench): Generate binaries for functions to
20837         benchmark.
20838         * benchtests/Makefile: New makefile for benchmark tests.
20839         * benchtests/bench-skeleton.c: New skeleton file for benchmark
20840         programs.
20841         * benchtests/exp-inputs: New input file for EXP function.
20842         * benchtests/pow-inputs: New input file for POW function.
20843         * scripts/bench.pl: New script to generate source files for
20844         benchmark programs.
20845
20846 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20847
20848         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
20849         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
20850         computations on mantissa.  Use macros for rounding and
20851         division.
20852         (denorm): Likewise.
20853         (__dbl_mp): Likewise.
20854         (add_magnitudes): Likewise.
20855         (sub_magnitudes): Likewise.
20856         (__mul): Likewise.
20857         (__sqr): Likewise.
20858         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
20859         powers of two in terms of TWOPOW macro.
20860         (mp_no): Make type of mantissa as MANTISSA_T.
20861         [!RADIXI]: Define RADIXI.
20862         [!TWO52]: Define TWO52.
20863         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
20864
20865         * manual/nptl.texi (cindex): Modify threads to pthreads.
20866
20867 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
20868
20869         * sysdeps/x86_64/preconfigure: Regenerated.
20870
20871 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
20872
20873         [BZ #14155]
20874         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
20875         0x1p28 and above.
20876         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
20877         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
20878         0x1p28 and above.
20879         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
20880         * math/libm-test.inc (j0_test): Do not allow one spurious
20881         underflow exception.
20882         (y1_test): Likewise.
20883
20884 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20885
20886         * manual/Makefile (chapters): Add nptl.
20887         * manual/debug.texi (Debugging Support): Add link to Threads
20888         chapter.
20889         * manual/nptl.texi: New file.
20890
20891         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
20892
20893 2013-03-14  Petr Baudis  <pasky@ucw.cz>
20894
20895         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
20896         for non-NULL pointer before the memory validity test. Pointed
20897         out by Holger Brunck <holger.brunck@keymile.com>.
20898
20899 2013-03-13  Andreas Schwab  <schwab@suse.de>
20900
20901         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
20902         instead of .os.
20903
20904 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
20905
20906         * timezone/zic.c: Update from tzcode 2013b.
20907
20908 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
20909
20910         * manual/install.texi (Configuring and compiling):
20911         Mention i686 and i586.
20912         * INSTALL: Regenerate.
20913
20914 2013-03-12  Roland McGrath  <roland@hack.frob.com>
20915
20916         * sysdeps/init_array/elf-init.c: New file.
20917         * csu/elf-init.c
20918         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
20919         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
20920
20921         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
20922         __gmon_start__ as global, but as static with a .preinit_array pointer.
20923         * sysdeps/init_array/gmon-start.c: New file.  Use that.
20924         * sysdeps/init_array/crti.S: New file, empty except for comments.
20925         * sysdeps/init_array/crtn.S: Likewise.
20926
20927 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
20928
20929         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
20930         definining bcopy.
20931         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20932         Remove Prefer_SSE_for_memop.
20933         * sysdeps/x86_64/multiarch/init-arch.h: Remove
20934         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
20935         HAS_PREFER_SSE_FOR_MEMOP.
20936         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
20937         memset-x86-64.
20938         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
20939         Remove bzero, memset ifunc support.
20940         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
20941         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
20942         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20943         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20944
20945 2013-03-11  Andreas Schwab  <schwab@suse.de>
20946
20947         [BZ #15234]
20948         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
20949         by SHLIB_COMPAT.
20950         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
20951         (GLIBC_2.16): Remove pthread_atfork.
20952
20953 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20954
20955         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
20956         (ptestcases.h): Likewise.
20957
20958 2013-03-08  Roland McGrath  <roland@hack.frob.com>
20959
20960         * Makeconfig ($(common-objpfx)config.status): Depend on
20961         sysdeps/*/preconfigure{,.in} too.
20962
20963 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
20964
20965         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
20966         (__free_hook): Use void * instead of __malloc_ptr_t.
20967         (__malloc_hook): Likewise.
20968         (__realloc_hook): Likewise.
20969         (__memalign_hook): Likewise.
20970         (__after_morecore_hook): Likewise.
20971         * malloc/arena.c (save_malloc_hook): Likewise.
20972         (save_free_hook): Likewise.
20973         * malloc/hooks.c (malloc_hook_ini): Likewise.
20974         (realloc_hook_ini): Likewise.
20975         (memalign_hook_ini): Likewise.
20976         * malloc/malloc.c (malloc_hook_ini): Likewise.
20977         (realloc_hook_ini): Likewise.
20978         (memalign_hook_ini): Likewise.
20979         (__free_hook): Likewise.
20980         (__malloc_hook): Likewise.
20981         (__realloc_hook): Likewise.
20982         (__memalign_hook): Likewise.
20983         (__libc_malloc): Likewise.
20984         (__libc_free): Likewise.
20985         (__libc_realloc): Likewise.
20986         (__libc_memalign): Likewise.
20987         (__libc_valloc): Likewise.
20988         (__libc_pvalloc): Likewise.
20989         (__libc_calloc): Likewise.
20990         (__posix_memalign): Likewise.
20991         * malloc/morecore.c (__sbrk): Likewise.
20992         (__default_morecore): Likewise.
20993
20994         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
20995
20996         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
20997         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
20998         __malloc_ptrdiff_t.
20999
21000         * malloc/malloc.h (__malloc_size_t): Remove macro.
21001         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
21002         __malloc_size_t.
21003         (old_memalign_hook): Likewise.
21004         (old_realloc_hook): Likewise.
21005         (struct hdr): Likewise.
21006         (flood): Likewise.
21007         (mallochook): Likewise.
21008         (memalignhook): Likewise.
21009         (reallochook): Likewise.
21010         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
21011         (tr_old_realloc_hook): Likewise.
21012         (tr_old_memalign_hook): Likewise.
21013         (tr_mallochook): Likewise.
21014         (tr_reallochook): Likewise.
21015         (tr_memalignhook): Likewise.
21016
21017 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21018
21019         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
21020         default_ldbl_pack and using as default implementation.
21021         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
21022         implementation.
21023         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
21024         redundant definition.
21025         (ldbl_insert_mantissa): Likewise.
21026         (ldbl_canonicalize): Likewise.
21027         (ldbl_nearbyint): Likewise.
21028         (ldbl_pack): Rename to ldbl_pack_ppc.
21029         (ldbl_unpack): Rename to ldbl_unpack_ppc.
21030         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
21031         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
21032
21033 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
21034
21035         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
21036         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
21037         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
21038         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
21039         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
21040         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
21041         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
21042         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
21043
21044 2013-03-07  Andreas Jaeger  <aj@suse.de>
21045
21046         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21047         bits/mman-linux.h.
21048
21049 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
21050
21051         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
21052         Include mpa.h and declare __MPEXP.
21053         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
21054         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
21055         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
21056         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
21057         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
21058         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
21059         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
21060
21061         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
21062         (__slowpow): Use long double EXPL and LOGL functions to
21063         compute POW.
21064         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
21065         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
21066         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
21067         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
21068         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
21069         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
21070
21071         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
21072         intermediate variable to calculate exponent.
21073         (__sqr): Likewise.
21074         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
21075         Likewise.
21076         (__sqr): Likewise.
21077
21078         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
21079         [!NO__SQR]: Define __sqr.
21080         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
21081         and NO__SQR.  Remove all code except __mul and __sqr.  Include
21082         sysdeps/ieee754/dbl-64/mpa.c.
21083         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
21084
21085         [BZ #12723]
21086         * posix/Makefile (tests): Add tst-pathconf.
21087         * posix/tst-pathconf.c: New test case.
21088         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
21089         _PC_PIPE_BUF.
21090         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
21091
21092 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
21093
21094         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
21095
21096 2013-03-06  Andreas Jaeger  <aj@suse.de>
21097
21098         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
21099         definition via __MAP_ANONYMOUS.
21100
21101         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
21102         it's not part of Linux headers.
21103
21104         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
21105         (MAP_HUGE_MASK): Define.
21106
21107         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
21108         Define.
21109         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21110         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
21111         Define.
21112         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21113         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
21114         Define.
21115         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21116         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
21117         Define.
21118         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21119
21120         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
21121         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
21122         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
21123         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
21124         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
21125         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
21126
21127         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21128         Handle f2fs.
21129
21130         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21131         Handle f2fs and efivarfs.
21132
21133         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
21134         f2fs.
21135
21136         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
21137         (EFIVARFS_MAGIC): Add.
21138         (F2FS_LINK_MAX): Add.
21139
21140 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
21141
21142         * stdio-common/vfprintf.c: Replace __builtin_expect with
21143         __glibc_unlikely.
21144
21145 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
21146
21147         [BZ #13550]
21148         * sysdeps/generic/bp-sym.h: Remove file.
21149         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
21150         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
21151         <bp-sym.h> and <bp-asm.h>.
21152         (__longjmp): Don't use BP_SYM.
21153         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
21154         and <bp-asm.h>.
21155         (memcpy): Don't use BP_SYM.
21156         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
21157         <bp-sym.h> and <bp-asm.h>.
21158         (memcpy): Don't use BP_SYM.
21159         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
21160         <bp-asm.h>.
21161         (memcpy): Don't use BP_SYM.
21162         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
21163         <bp-asm.h>.
21164         (memset): Don't use BP_SYM.
21165         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
21166         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
21167         (__bzero): Don't use BP_SYM.
21168         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
21169         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
21170         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
21171         <bp-sym.h> and <bp-asm.h>.
21172         (memcmp): Don't use BP_SYM.  Remove comment about bounded
21173         pointers.
21174         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
21175         <bp-sym.h> and <bp-asm.h>.
21176         (memcpy): Don't use BP_SYM.
21177         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
21178         <bp-sym.h> and <bp-asm.h>.
21179         (memset): Don't use BP_SYM.
21180         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
21181         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
21182         (__bzero): Don't use BP_SYM.
21183         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
21184         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
21185         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
21186         <bp-sym.h> and <bp-asm.h>.
21187         (strncmp): Don't use BP_SYM.  Remove comment about bounded
21188         pointers.
21189         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
21190         <bp-sym.h> and <bp-asm.h>.
21191         (memcpy): Don't use BP_SYM.
21192         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
21193         <bp-sym.h> and <bp-asm.h>.
21194         (memset): Don't use BP_SYM.
21195         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
21196         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
21197         (__bzero): Don't use BP_SYM.
21198         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
21199         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
21200         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
21201         <bp-sym.h> and <bp-asm.h>.
21202         (__memchr): Don't use BP_SYM.
21203         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
21204         <bp-sym.h> and <bp-asm.h>.
21205         (memcmp): Don't use BP_SYM.  Remove comment about bounded
21206         pointers.
21207         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
21208         <bp-sym.h> and <bp-asm.h>.
21209         (memcpy): Don't use BP_SYM.
21210         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
21211         <bp-sym.h> and <bp-asm.h>.
21212         (__mempcpy): Don't use BP_SYM.
21213         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
21214         <bp-sym.h> and <bp-asm.h>.
21215         (__memrchr): Don't use BP_SYM.
21216         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
21217         <bp-sym.h> and <bp-asm.h>.
21218         (memset): Don't use BP_SYM.
21219         (__bzero): Likewise.
21220         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
21221         <bp-sym.h> and <bp-asm.h>.
21222         (__rawmemchr): Don't use BP_SYM.
21223         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
21224         <bp-sym.h> and <bp-asm.h>.
21225         (__STRCMP): Don't use BP_SYM.
21226         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
21227         <bp-sym.h> and <bp-asm.h>.
21228         (strchr): Don't use BP_SYM.
21229         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
21230         <bp-sym.h> and <bp-asm.h>.
21231         (__strchrnul): Don't use BP_SYM.
21232         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
21233         <bp-sym.h> and <bp-asm.h>.
21234         (strlen): Don't use BP_SYM.
21235         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
21236         <bp-sym.h> and <bp-asm.h>.
21237         (strncmp): Don't use BP_SYM.  Remove comment about bounded
21238         pointers.
21239         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
21240         <bp-sym.h> and <bp-asm.h>.
21241         (__strnlen): Don't use BP_SYM.
21242         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
21243         <bp-sym.h> and <bp-asm.h>.
21244         (__GI__setjmp): Don't use BP_SYM.
21245         (_setjmp): Likewise.
21246         (__sigsetjmp): Likewise.
21247         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
21248         (L(start_addresses)): Don't use BP_SYM.
21249         (_start): Likewise.
21250         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
21251         <bp-asm.h>.
21252         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
21253         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
21254         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21255         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
21256         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
21257         <bp-asm.h>.
21258         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
21259         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
21260         about bounded pointers.
21261         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21262         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21263         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
21264         <bp-asm.h>.
21265         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
21266         about bounded pointers.  Remove GKM FIXME comments.
21267         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21268         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
21269         <bp-asm.h>.
21270         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
21271         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
21272         Remove GKM FIXME comments.
21273         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21274         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
21275         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
21276         <bp-asm.h>.
21277         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
21278         about bounded pointers.  Remove GKM FIXME comment.
21279         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
21280         and <bp-asm.h>.
21281         (strncmp): Don't use BP_SYM.  Remove comment about bounded
21282         pointers.
21283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
21284         <bp-sym.h> and <bp-asm.h>.
21285         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
21286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
21287         <bp-sym.h> and <bp-asm.h>.
21288         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
21289         comment.
21290
21291 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21292
21293         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
21294         call free(NULL).
21295
21296 2013-03-05  David S. Miller  <davem@davemloft.net>
21297
21298         * po/es.po: Update from translation team.
21299
21300 2013-03-05  Andreas Jaeger  <aj@suse.de>
21301
21302         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
21303         <bits/mman-linux.h>.
21304         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
21305         is fine.
21306         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
21307         <bits/mman-linux.h> to end of file.
21308         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
21309         is fine.
21310         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
21311         <bits/mman-linux.h> to end of file.
21312         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
21313         is fine.
21314         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
21315         <bits/mman-linux.h> to end of file.
21316
21317         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
21318         (MCL_CURRENT, MCL_FUTURE): Define here.
21319
21320 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21321
21322         [BZ #15232]
21323         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
21324         attribute_hidden.
21325         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
21326
21327 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21328
21329         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
21330         fourth parameter needed for rt_sigprocmask syscall.
21331         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
21332         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
21333         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
21334         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
21335         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
21336         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
21337
21338 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
21339
21340         [BZ #13550]
21341         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
21342         comment about bounded pointers.
21343         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
21344         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
21345
21346 2013-03-04  Andreas Jaeger  <aj@suse.de>
21347
21348         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
21349         common definitions.
21350
21351         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
21352         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
21353         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
21354         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
21355         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
21356         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
21357
21358 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21359
21360         [BZ #15055]
21361         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
21362         __ieee754_sqrl instead of __sqrl.
21363
21364 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
21365
21366         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
21367         * sysdeps/powerpc/fpu_control.h: ... here.
21368         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
21369         * sysdeps/powerpc/bits/fenvinline.h: ... here.
21370         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
21371         * sysdeps/powerpc/bits/mathinline.h: ... here.
21372
21373 2013-03-01  Roland McGrath  <roland@hack.frob.com>
21374
21375         * elf/dl-hwcaps.c (_dl_important_hwcaps):
21376         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
21377         to just [NEED_DL_SYSINFO_DSO].
21378         * elf/dl-support.c: Likewise.
21379         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
21380         * elf/rtld.c (dl_main): Likewise.
21381         * elf/setup-vdso.h (setup_vdso): Likewise.
21382         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
21383         * sysdeps/unix/sysv/linux/dl-sysdep.c
21384         (_dl_discover_osversion): Likewise.
21385
21386 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
21387
21388         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
21389         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
21390
21391 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
21392
21393         * NEWS: Mention libm performance improvements and non-x86 PI
21394         futex support.
21395
21396         * csu/libc-start.c (__pthread_initialize_minimal): Change
21397         function arguments.
21398         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
21399
21400 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
21401
21402         [BZ #13550]
21403         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
21404         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
21405         <bp-sym.h> and <bp-asm.h>.
21406         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
21407         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
21408         and <bp-asm.h>.
21409         (memcpy): Don't use BP_SYM.
21410         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
21411         <bp-asm.h>.
21412         (__mpn_add_n): Don't use BP_SYM.
21413         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
21414         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
21415         and <bp-asm.h>.
21416         (__mpn_addmul_1): Don't use BP_SYM.
21417         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21418         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
21419         <bp-sym.h>.
21420         (_setjmp): Don't use BP_SYM.
21421         (__novmx_setjmp): Likewise.
21422         (__GI__setjmp): Likewise.
21423         (__vmx_setjmp): Likewise.
21424         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
21425         <bp-sym.h>.
21426         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
21427         (__bzero): Don't use BP_SYM.
21428         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
21429         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
21430         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
21431         <bp-sym.h> and <bp-asm.h>.
21432         (memcpy): Don't use BP_SYM.
21433         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
21434         <bp-sym.h> and <bp-asm.h>.
21435         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
21436         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
21437         <bp-sym.h> and <bp-asm.h>.
21438         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
21439         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
21440         <bp-asm.h>.
21441         (__mpn_lshift): Don't use BP_SYM.
21442         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21443         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
21444         <bp-asm.h>.
21445         (memset): Don't use BP_SYM.
21446         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
21447         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
21448         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
21449         <bp-asm.h>.
21450         (__mpn_mul_1): Don't use BP_SYM.
21451         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21452         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
21453         <bp-sym.h> and <bp-asm.h>.
21454         (memcmp): Don't use BP_SYM.
21455         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
21456         <bp-sym.h> and <bp-asm.h>.
21457         (memcpy): Don't use BP_SYM.
21458         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
21459         <bp-sym.h> and <bp-asm.h>.
21460         (memset): Don't use BP_SYM.
21461         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
21462         <bp-sym.h> and <bp-asm.h>.
21463         (strncmp): Don't use BP_SYM.
21464         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
21465         <bp-sym.h> and <bp-asm.h>.
21466         (memcpy): Don't use BP_SYM.
21467         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
21468         <bp-sym.h> and <bp-asm.h>.
21469         (memset): Don't use BP_SYM.
21470         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
21471         <bp-sym.h> and <bp-asm.h>.
21472         (__memchr): Don't use BP_SYM.
21473         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
21474         <bp-sym.h> and <bp-asm.h>.
21475         (memcmp): Don't use BP_SYM.
21476         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
21477         <bp-sym.h> and <bp-asm.h>.
21478         (memcpy): Don't use BP_SYM.
21479         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
21480         <bp-sym.h> and <bp-asm.h>.
21481         (__mempcpy): Don't use BP_SYM.
21482         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
21483         <bp-sym.h> and <bp-asm.h>.
21484         (__memrchr): Don't use BP_SYM.
21485         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
21486         <bp-sym.h> and <bp-asm.h>.
21487         (memset): Don't use BP_SYM.
21488         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
21489         <bp-sym.h> and <bp-asm.h>.
21490         (__rawmemchr): Don't use BP_SYM.
21491         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
21492         <bp-sym.h> and <bp-asm.h>.
21493         (__STRCMP): Don't use BP_SYM.
21494         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
21495         <bp-sym.h> and <bp-asm.h>.
21496         (strchr): Don't use BP_SYM.
21497         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
21498         <bp-sym.h> and <bp-asm.h>.
21499         (__strchrnul): Don't use BP_SYM.
21500         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
21501         <bp-sym.h> and <bp-asm.h>.
21502         (strlen): Don't use BP_SYM.
21503         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
21504         <bp-sym.h> and <bp-asm.h>.
21505         (strncmp): Don't use BP_SYM.
21506         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
21507         <bp-sym.h> and <bp-asm.h>.
21508         (__strnlen): Don't use BP_SYM.
21509         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
21510         <bp-asm.h>.
21511         (__mpn_rshift): Don't use BP_SYM.
21512         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21513         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
21514         <bp-sym.h> and <bp-asm.h>.
21515         (__sigsetjmp): Don't use BP_SYM.
21516         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
21517         (L(start_addresses)): Don't use BP_SYM.
21518         (_start): Likewise.
21519         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
21520         <bp-asm.h>.
21521         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
21522         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21523         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
21524         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
21525         <bp-asm.h>.
21526         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
21527         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21528         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21529         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
21530         <bp-asm.h>.
21531         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
21532         comments.
21533         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21534         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
21535         <bp-asm.h>.
21536         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
21537         FIXME comments.
21538         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21539         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
21540         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
21541         <bp-asm.h>.
21542         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
21543         comment.
21544         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
21545         and <bp-asm.h>.
21546         (strncmp): Don't use BP_SYM,
21547         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
21548         <bp-asm.h>.
21549         (__mpn_sub_n): Don't use BP_SYM.
21550         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21551         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
21552         and <bp-asm.h>.
21553         (__mpn_submul_1): Don't use BP_SYM.
21554         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
21556         <bp-sym.h> and <bp-asm.h>.
21557         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
21558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
21559         <bp-sym.h> and <bp-asm.h>.
21560         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
21561         comment.
21562
21563 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21564
21565         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
21566         Use ZK to minimize writes to Z.
21567         (sub_magnitudes): Simplify code a bit.
21568         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
21569         Use ZK to minimize writes to Z.
21570         (sub_magnitudes): Simplify code a bit.
21571
21572 2013-02-27  Roland McGrath  <roland@hack.frob.com>
21573
21574         * csu/gmon-start.c: Add special exception to license text.
21575
21576 2013-02-27  Richard Henderson  <rth@redhat.com>
21577
21578         * scripts/config.guess: Update from config.git.
21579         * scripts/config.sub: Likewise.
21580
21581 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
21582
21583         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
21584
21585         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
21586
21587         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
21588
21589         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
21590
21591         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
21592
21593 2013-02-26  Roland McGrath  <roland@hack.frob.com>
21594
21595         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
21596         [$(build-shared = yes].
21597
21598 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21599
21600         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
21601         (__mul): Reduce iterations for calculating mantissa.
21602
21603         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
21604         MPTWO.
21605         (__mpranred): Likewise.
21606
21607         [BZ #15160]
21608         * malloc/memusagestat.c (main): Draw graphs for heap and stack
21609         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
21610
21611 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21612
21613         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
21614         Define __attribute__.
21615
21616 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21617
21618         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
21619         unused.
21620         * posix/regex_internal.h (__attribute): Remove.
21621         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
21622         (re_string_context_at): Likewise.
21623         (bitset_not): Use __attribute__ and mark function as possibly
21624         unused.
21625         (bitset_merge): Likewise.
21626         (bitset_mask): Likewise.
21627         (re_string_char_size_at): Likewise.
21628         (re_string_wchar_at): Likewise.
21629         (re_string_elem_size_at): Likewise.
21630
21631 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
21632
21633         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
21634         code.
21635         (cc32): Likewise.
21636
21637         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
21638         (__acr): Likewise.
21639         (__cpy): Likewise.
21640         (norm): Likewise.
21641         (denorm): Likewise.
21642         (__dbl_mp): Likewise.
21643         (add_magnitudes): Likewise.
21644         (sub_magnitudes): Likewise.
21645         (__mul): Likewise.
21646         (__inv): Likewise.
21647
21648         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
21649         style.
21650
21651         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
21652         style.
21653
21654         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
21655         code.
21656
21657         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
21658         up changes with default code.
21659         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
21660         Likewise.
21661
21662 2013-02-24  Allan McRae  <allan@archlinux.org>
21663
21664         * manual/socket.texi (The Internet Namespace): Order menu items
21665         to match that in the file.
21666
21667         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
21668         node listing of the info page menu.
21669
21670 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
21671
21672         [BZ #13550]
21673         * sysdeps/i386/bp-asm.h: Remove file.
21674         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21675         (PARMS): Do not use macros from bp-asm.h.
21676         (S1): Likewise.
21677         (S2): Likewise.
21678         (SIZE): Likewise.
21679         (__mpn_add_n): Do not use BP_SYM
21680         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
21681         "bp-asm.h".
21682         (PARMS): Do not use macros from bp-asm.h.
21683         (S1): Likewise.
21684         (SIZE): Likewise.
21685         (__mpn_addmul_1): Do not use BP_SYM
21686         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
21687         "bp-asm.h".
21688         (PARMS): Do not use macros from bp-asm.h.
21689         (SIGMSK): Likewise.
21690         (_setjmp): Likewise.  Do not use BP_SYM.
21691         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
21692         "bp-asm.h".
21693         (PARMS): Do not use macros from bp-asm.h.
21694         (SIGMSK): Likewise.
21695         (setjmp): Likewise.  Do not use BP_SYM.
21696         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
21697         "bp-asm.h".
21698         (PARMS): Do not use macros from bp-asm.h.
21699         (__frexp): Do not use BP_SYM.
21700         (frexp): Likewise.
21701         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
21702         "bp-asm.h".
21703         (PARMS): Do not use macros from bp-asm.h.
21704         (__frexpf): Do not use BP_SYM.
21705         (frexpf): Likewise.
21706         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
21707         "bp-asm.h".
21708         (PARMS): Do not use macros from bp-asm.h.
21709         (__frexpl): Do not use BP_SYM.
21710         (frexpl): Likewise.
21711         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
21712         "bp-asm.h".
21713         (PARMS): Do not use macros from bp-asm.h.
21714         (__remquo): Do not use BP_SYM.
21715         (remquo): Likewise.
21716         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
21717         "bp-asm.h".
21718         (PARMS): Do not use macros from bp-asm.h.
21719         (__remquof): Do not use BP_SYM.
21720         (remquof): Likewise.
21721         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
21722         "bp-asm.h".
21723         (PARMS): Do not use macros from bp-asm.h.
21724         (__remquol): Do not use BP_SYM.
21725         (remquol): Likewise.
21726         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
21727         "bp-asm.h".
21728         (PARMS): Do not use macros from bp-asm.h.
21729         (DEST): Likewise.
21730         (SRC): Likewise.
21731         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
21732         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
21733         "bp-asm.h".
21734         (PARMS): Do not use macros from bp-asm.h.
21735         (strlen): Do not use BP_SYM.
21736         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
21737         "bp-asm.h".
21738         (PARMS): Do not use macros from bp-asm.h.
21739         (S1): Likewise.
21740         (S2): Likewise.
21741         (SIZE): Likewise.
21742         (__mpn_add_n): Do not use BP_SYM.
21743         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
21744         "bp-asm.h".
21745         (PARMS): Do not use macros from bp-asm.h.
21746         (S1): Likewise.
21747         (SIZE): Likewise.
21748         (__mpn_addmul_1): Do not use BP_SYM.
21749         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
21750         weak_alias.
21751         (bzero): Likewise.
21752         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
21753         "bp-asm.h".
21754         (PARMS): Do not use macros from bp-asm.h.
21755         (S): Likewise.
21756         (SIZE): Likewise.
21757         (__mpn_lshift): Do not use BP_SYM.
21758         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
21759         "bp-asm.h".
21760         (PARMS): Do not use macros from bp-asm.h.
21761         (DEST): Likewise.
21762         (SRC): Likewise.
21763         (LEN): Likewise.
21764         (memcpy): Likewise.  Do not use BP_SYM.
21765         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
21766         libc_hidden_def and weak_alias.
21767         (mempcpy): Do not use BP_SYM in weak_alias.
21768         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
21769         "bp-asm.h".
21770         (PARMS): Do not use macros from bp-asm.h.
21771         (DEST): Likewise.
21772         (LEN): Likewise.
21773         [!BZERO_P] (CHR): Likewise.
21774         (memset): Likewise.  Do not use BP_SYM.
21775         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
21776         "bp-asm.h".
21777         (PARMS): Do not use macros from bp-asm.h.
21778         (S1): Likewise.
21779         (SIZE): Likewise.
21780         (__mpn_mul_1): Do not use BP_SYM.
21781         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
21782         "bp-asm.h".
21783         (PARMS): Do not use macros from bp-asm.h.
21784         (S): Likewise.
21785         (SIZE): Likewise.
21786         (__mpn_rshift): Do not use BP_SYM.
21787         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
21788         "bp-asm.h".
21789         (PARMS): Do not use macros from bp-asm.h.
21790         (STR): Likewise.
21791         (CHR): Likewise.
21792         (strchr): Likewise.  Do not use BP_SYM.
21793         (index): Do not use BP_SYM in weak_alias.
21794         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
21795         "bp-asm.h".
21796         (PARMS): Do not use macros from bp-asm.h.
21797         (DEST): Likewise.
21798         (SRC): Likewise.
21799         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
21800         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
21801         "bp-asm.h".
21802         (PARMS): Do not use macros from bp-asm.h.
21803         (strlen): Do not use BP_SYM.
21804         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
21805         "bp-asm.h".
21806         (PARMS): Do not use macros from bp-asm.h.
21807         (S1): Likewise.
21808         (S2): Likewise.
21809         (SIZE): Likewise.
21810         (__mpn_sub_n): Do not use BP_SYM.
21811         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
21812         "bp-asm.h".
21813         (PARMS): Do not use macros from bp-asm.h.
21814         (S1): Likewise.
21815         (SIZE): Likewise.
21816         (__mpn_submul_1): Do not use BP_SYM.
21817         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
21818         "bp-asm.h".
21819         (PARMS): Do not use macros from bp-asm.h.
21820         (S1): Likewise.
21821         (S2): Likewise.
21822         (SIZE): Likewise.
21823         (__mpn_add_n): Do not use BP_SYM.
21824         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
21825         weak_alias.
21826         (bzero): Likewise.
21827         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
21828         "bp-asm.h".
21829         (PARMS): Do not use macros from bp-asm.h.
21830         (BLK2): Likewise.
21831         (LEN): Likewise.
21832         (memcmp): Do not use BP_SYM.
21833         (bcmp): Do not use BP_SYM in weak_alias.
21834         * sysdeps/i386/i686/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/i686/memmove.S: Do not include "bp-sym.h" and
21842         "bp-asm.h".
21843         (PARMS): Do not use macros from bp-asm.h.
21844         (DEST): Likewise.
21845         (SRC): Likewise.
21846         (LEN): Likewise.
21847         (memmove): Likewise.  Do not use BP_SYM.
21848         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
21849         "bp-asm.h".
21850         (PARMS): Do not use macros from bp-asm.h.
21851         (DEST): Likewise.
21852         (SRC): Likewise.
21853         (LEN): Likewise.
21854         (__mempcpy): Likewise.  Do not use BP_SYM.
21855         (mempcpy): Do not use BP_SYM in weak_alias.
21856         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
21857         "bp-asm.h".
21858         (PARMS): Do not use macros from bp-asm.h.
21859         (DEST): Likewise.
21860         (LEN): Likewise.
21861         [!BZERO_P] (CHR): Likewise.
21862         (memset): Likewise.  Do not use BP_SYM.
21863         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
21864         "bp-asm.h".
21865         (PARMS): Do not use macros from bp-asm.h.
21866         (STR2): Likewise.
21867         (strcmp): Do not use BP_SYM.
21868         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
21869         "bp-asm.h".
21870         (PARMS): Do not use macros from bp-asm.h.
21871         (STR): Likewise.
21872         (DELIM): Likewise.
21873         [USE_AS_STRTOK_R] (SAVE): Likewise.
21874         (FUNCTION): Likewise.  Do not use BP_SYM.
21875         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
21876         aliases.
21877         (strtok_r): Likewise.
21878         (__GI___strtok_r): Likewise.
21879         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21880         (PARMS): Do not use macros from bp-asm.h.
21881         (S): Likewise.
21882         (SIZE): Likewise.
21883         (__mpn_lshift): Do not use BP_SYM.
21884         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21885         (PARMS): Do not use macros from bp-asm.h.
21886         (STR): Likewise.
21887         (CHR): Likewise.
21888         (__memchr): Do not use BP_SYM.
21889         (memchr): Do not use BP_SYM in weak_alias.
21890         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21891         (PARMS): Do not use macros from bp-asm.h.
21892         (BLK2): Likewise.
21893         (LEN): Likewise.
21894         (memcmp): Do not use BP_SYM.
21895         (bcmp): Do not use BP_SYM in weak_alias.
21896         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
21897         (PARMS): Do not use macros from bp-asm.h.
21898         (S1): Likewise.
21899         (SIZE): Likewise.
21900         (__mpn_mul_1): Do not use BP_SYM.
21901         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
21902         "bp-asm.h".
21903         (PARMS): Do not use macros from bp-asm.h.
21904         (STR): Likewise.
21905         (CHR): Likewise.
21906         (__rawmemchr): Do not use BP_SYM.
21907         (rawmemchr): Do not use BP_SYM in weak_alias.
21908         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21909         (PARMS): Do not use macros from bp-asm.h.
21910         (S): Likewise.
21911         (SIZE): Likewise.
21912         (__mpn_rshift): Do not use BP_SYM.
21913         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21914         (PARMS): Do not use macros from bp-asm.h.
21915         (SIGMSK): Likewise.
21916         (__sigsetjmp): Likewise.  Do not use BP_SYM.
21917         * sysdeps/i386/start.S: Do not include "bp-sym.h".
21918         (_start): Do not use BP_SYM.
21919         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
21920         (PARMS): Do not use macros from bp-asm.h.
21921         (DEST): Likewise.
21922         (SRC): Likewise.
21923         (__stpcpy): Likewise.  Do not use BP_SYM.
21924         (stpcpy): Do not use BP_SYM in weak_alias.
21925         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
21926         "bp-asm.h".
21927         (PARMS): Do not use macros from bp-asm.h.
21928         (DEST): Likewise.
21929         (SRC): Likewise.
21930         (LEN): Likewise.
21931         (__stpncpy): Likewise.  Do not use BP_SYM.
21932         (stpncpy): Do not use BP_SYM in weak_alias.
21933         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21934         (PARMS): Do not use macros from bp-asm.h.
21935         (STR): Likewise.
21936         (CHR): Likewise.
21937         (strchr): Likewise.  Do not use BP_SYM.
21938         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
21939         "bp-asm.h".
21940         (PARMS): Do not use macros from bp-asm.h.
21941         (STR): Likewise.
21942         (CHR): Likewise.
21943         (__strchrnul): Likewise.  Do not use BP_SYM.
21944         (strchrnul): Do not use BP_SYM in weak_alias.
21945         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
21946         "bp-asm.h".
21947         (PARMS): Do not use macros from bp-asm.h.
21948         (STOP): Likewise.
21949         (strcspn): Do not use BP_SYM.
21950         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
21951         "bp-asm.h".
21952         (PARMS): Do not use macros from bp-asm.h.
21953         (STR): Likewise.
21954         (STOP): Likewise.
21955         (strpbrk): Likewise.  Do not use BP_SYM.
21956         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
21957         "bp-asm.h".
21958         (PARMS): Do not use macros from bp-asm.h.
21959         (STR): Likewise.
21960         (CHR): Likewise.
21961         (strrchr): Likewise.  Do not use BP_SYM.
21962         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
21963         (PARMS): Do not use macros from bp-asm.h.
21964         (SKIP): Likewise.
21965         (strspn): Do not use BP_SYM.
21966         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
21967         (PARMS): Do not use macros from bp-asm.h.
21968         (STR): Likewise.
21969         (DELIM): Likewise.
21970         (SAVE): Likewise.
21971         (FUNCTION): Likewise.  Do not use BP_SYM.
21972         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
21973         aliases.
21974         (strtok_r): Likewise.
21975         (__GI___strtok_r): Likewise.
21976         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21977         (PARMS): Do not use macros from bp-asm.h.
21978         (S1): Likewise.
21979         (S2): Likewise.
21980         (SIZE): Likewise.
21981         (__mpn_sub_n): Do not use BP_SYM.
21982         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
21983         "bp-asm.h".
21984         (PARMS): Do not use macros from bp-asm.h.
21985         (S1): Likewise.
21986         (SIZE): Likewise.
21987         (__mpn_submul_1): Do not use BP_SYM.
21988         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
21989         <bp-sym.h>.
21990         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
21991         and <bp-asm.h>.
21992         (PARMS): Do not use macros from bp-asm.h.
21993         (FLAGS): Likewise.
21994         (PTID): Likewise.
21995         (TLS): Likewise.
21996         (CTID): Likewise.
21997         (__clone): Do not use BP_SYM.
21998         (clone): Do not use BP_SYM in weak_alias.
21999         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
22000         and <bp-asm.h>.
22001         (PARMS): Do not use macros from bp-asm.h.
22002         (LEN): Likewise.
22003         (__mmap64): Do not use BP_SYM.
22004         (mmap64): Do not use BP_SYM in weak_alias.
22005         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
22006         <bp-sym.h> and <bp-asm.h>.
22007         (PARMS): Do not use macros from bp-asm.h.
22008         (__posix_fadvise64_l64): Do not use BP_SYM.
22009         * sysdeps/unix/sysv/linux/i386/semtimedop.S
22010         (PARMS): Do not use macros from bp-asm.h.
22011         (NSOPS): Likewise.
22012         (semtimedop): Do not use BP_SYM.
22013         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
22014         and <bp-asm.h>.
22015
22016 2013-02-21  Allan McRae  <allan@archlinux.org>
22017
22018         * manual/message.texi (Charset conversion in gettext):
22019         Move @end statement to beginning of line.
22020
22021 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
22022
22023         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
22024         static.
22025         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
22026         Likewise.
22027
22028         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
22029         (denorm): Likewise.
22030         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
22031         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
22032
22033 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22034
22035         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
22036         tail-call to the resolved function if pltexit isn't needed.
22037
22038 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
22039
22040         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
22041         or Y being zero as being unlikely.
22042         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
22043         Likewise.
22044
22045 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
22046
22047         * manual/nss.texi (System Databases and Name Service Switch):
22048         Remove frobnicate @pxref.
22049
22050 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
22051
22052         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
22053         __attribute__ ((unused)) to __attribute__ ((__unused__)).
22054
22055 2013-02-20  Petr Machata  <pmachata@redhat.com>
22056
22057         * elf/elf.h (R_ARM_TARGET1): New macro.
22058         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
22059         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
22060         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
22061         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
22062         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
22063         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
22064         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
22065         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
22066         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
22067         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
22068         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
22069         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
22070         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
22071         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
22072         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
22073         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
22074         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
22075         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
22076         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
22077         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
22078         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
22079         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
22080         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
22081         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
22082         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
22083         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
22084         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
22085         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
22086         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
22087         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
22088         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
22089         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
22090         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
22091         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
22092         (R_ARM_THM_GOT_BREL12): Likewise.
22093         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
22094         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
22095         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
22096         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
22097         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
22098         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
22099         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
22100         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
22101         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
22102
22103 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
22104
22105         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
22106         __attribute_used__ to __attribute__ ((unused)).
22107
22108 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
22109
22110         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
22111         powerpc mpa.c.
22112         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
22113         comment formatting.
22114         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
22115
22116 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
22117
22118         [BZ #13550]
22119         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
22120         Remove macro.
22121         (ENTER): Remove both macro definitions.
22122         (LEAVE): Likewise.
22123         (CHECK_BOUNDS_LOW): Likewise.
22124         (CHECK_BOUNDS_HIGH): Likewise.
22125         (CHECK_BOUNDS_BOTH): Likewise.
22126         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
22127         (RETURN_BOUNDED_POINTER): Likewise.
22128         (RETURN_NULL_BOUNDED_POINTER): Likewise.
22129         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
22130         (POP_ERRNO_LOCATION_RETURN): Likewise.
22131         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
22132         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22133         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
22134         macros.
22135         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22136         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
22137         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
22138         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
22139         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
22140         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
22141         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
22142         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
22143         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
22144         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
22145         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
22146         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
22147         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22148         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
22149         removed macros.
22150         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22151         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
22152         macros.
22153         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22154         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
22155         * sysdeps/i386/i586/memset.S (memset): Likewise.
22156         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
22157         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22158         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
22159         macros.
22160         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22161         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
22162         Change uses of L(2) to L(out).
22163         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
22164         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
22165         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
22166         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22167         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
22168         removed macros.
22169         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22170         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
22171         macros.
22172         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22173         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
22174         (RETURN): Do not use macro LEAVE.
22175         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
22176         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
22177         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
22178         * sysdeps/i386/i686/memset.S (memset): Likewise.
22179         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
22180         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
22181         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
22182         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
22183         Likewise.
22184         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
22185         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
22186         L(1_2) and L(1_3) into L(1).
22187         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
22188         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
22189         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22190         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
22191         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
22192         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
22193         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
22194         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22195         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
22196         macros.
22197         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
22198         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22199         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
22200         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
22201         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
22202         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
22203         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
22204         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
22205         * sysdeps/i386/strcspn.S (strcspn): Likewise.
22206         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
22207         * sysdeps/i386/strrchr.S (strrchr): Likewise.
22208         * sysdeps/i386/strspn.S (strspn): Likewise.
22209         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
22210         conditional code.
22211         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
22212         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
22213         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
22214         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
22215         L(1_3) into L(1_1).
22216         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
22217         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22218         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
22219         macros.
22220         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22221
22222 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
22223
22224         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
22225         macro.
22226
22227 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
22228
22229         * math/atest-exp.c (exp_mpn): Remove ROUND.
22230         * math/atest-exp2.c (exp_mpn): Likewise.
22231         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
22232
22233         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
22234         * stdlib/tst-tls-atexit-lib.c: Likewise.
22235         * stdlib/tst-tls-atexit.c: Likewise.
22236
22237 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
22238
22239         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
22240         and __attribute_alloc_size__.
22241
22242 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
22243
22244         * include/programs/xmalloc.h: Change __attribute_alloc_size to
22245         __attribute_alloc_size__.
22246         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
22247         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
22248
22249 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
22250
22251         * include/programs/xmalloc.h: New file.
22252         * catgets/gencat.c: Include it.
22253         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
22254         * elf/pldd.c: Likewise.
22255         * iconv/iconv_charmap.c: Likewise.
22256         * iconv/iconvconfig.c: Likewise.
22257         * iconv/strtab.c: Likewise.
22258         * locale/programs/locale.c: Likewise.
22259         * locale/programs/localedef.h: Likewise.
22260         * locale/programs/simple-hash.c: Likewise.
22261         * nscd/nscd.h: Likewise.
22262         * nss/makedb.c: Likewise.
22263         * sysdeps/generic/ldconfig.h: Likewise.
22264
22265 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
22266
22267         * Versions.def: Add GLIBC_2.18.
22268         * include/link.h (struct link_map): New member l_tls_dtor_count.
22269         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
22270         (__call_tls_dtors): Likewise.
22271         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
22272         __cxa_thread_atexit_impl.
22273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
22274         Likewise.
22275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
22276         Likewise.
22277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
22278         Likewise.
22279         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
22280         Likewise.
22281         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
22282         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
22283         Likewise.
22284         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
22285         Likewise.
22286         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
22287         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
22288         Likewise.
22289         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
22290         (tests): Add test case tst-tls-atexit.
22291         (modules-names): Add shared library for tst-tls-atexit.
22292         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
22293         (GLIBC_PRIVATE): Add __call_tls_dtors.
22294         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
22295         for libstdc++.
22296         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
22297         * stdlib/tst-tls-atexit.c: New test case.
22298         * stdlib/tst-tls-atexit-lib.c: New test case.
22299
22300         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
22301
22302         * elf/Versions (ld): Add _dl_find_dso_for_object.
22303         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
22304         * elf/dl-open.c (_dl_find_dso_for_object): New function.
22305         (dl_open_worker): Use _dl_find_dso_for_object.
22306         * elf/dl-sym.c (do_sym): Likewise.
22307         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
22308
22309 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22310
22311         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
22312         Syntactic changes only.
22313         (_dl_runtime_profile): Do a tail-call to the resolved function.
22314
22315 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
22316
22317         [BZ #13550]
22318         * sysdeps/x86_64/bp-asm.h: Remove file.
22319         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
22320         <bp-sym.h> and <bp-asm.h>.
22321         (__clone): Do not use BP_SYM.
22322         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
22323         <bp-sym.h> and <bp-asm.h>.
22324         * sysdeps/unix/x86_64/sysdep.S: Likewise.
22325         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
22326         "bp-asm.h".
22327         (_setjmp): Do not use BP_SYM.
22328         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
22329         "bp-asm.h".
22330         (setjmp): Do not use BP_SYM.
22331         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
22332         libc_hidden_def.
22333         (mempcpy): Do not use BP_SYM in weak_alias.
22334         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
22335         "bp-asm.h".
22336         (strchr): Do not use BP_SYM.
22337         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
22338         "bp-asm.h".
22339         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
22340         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
22341         (_start): Do not use BP_SYM.
22342         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
22343         "bp-asm.h".
22344         (strcat): Do not use BP_SYM.
22345         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
22346         "bp-asm.h".
22347         (STRCMP): Do not use BP_SYM.
22348         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
22349         "bp-asm.h".
22350         (STRCPY): Do not use BP_SYM.
22351         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
22352         "bp-asm.h".
22353         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
22354         "bp-asm.h".
22355         (FUNCTION): Do not use BP_SYM.
22356         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
22357         weak_alias.
22358         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
22359
22360 2013-02-17  Andreas Jaeger  <aj@suse.de>
22361
22362         * time/Versions: Sort entries.
22363         * string/Versions: Likewise.
22364         * resolv/Versions: Likewise.
22365         * posix/Versions: Likewise.
22366         * iconv/Versions: Likewise.
22367         * elf/Versions: Likewise.
22368         * wcsmbs/Versions: Likewise.
22369
22370 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
22371
22372         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
22373         loop termination condition.
22374
22375         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
22376         variable to calculate EZ.
22377         (__sqr): Likewise.
22378
22379         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
22380         the lower precision input.
22381
22382 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
22383
22384         [BZ #13550]
22385         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
22386         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
22387         (run-via-rtld-prefix): Do not handle %-bp tests.
22388         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
22389         (all-object-suffixes): Remove .ob.
22390         (bppfx): Remove variable.
22391         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
22392         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
22393         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
22394         [$(build-bounded) = yes] (libtype.ob): Likewise.
22395         * Makerules (elide-routines.ob): Remove variable.
22396         (do-tests-clean): Do not handle *-bp.out.
22397         (common-mostlyclean): Do not handle *-bp and *-bp.out.
22398         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
22399         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
22400         (tests): Do not include $(tests-bp.out).
22401         (xtests): Do not include $(xtests-bp.out).
22402         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
22403         [$(build-bounded) = yes] ($(addprefix
22404         $(objpfx),$(binaries-bounded))): Remove rule.
22405         ($(objpfx)%-bp.out): Remove rule.
22406         * config.make.in (build-bounded): Remove variable.
22407         * crypt/Makefile [$(build-bounded) = yes]
22408         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
22409         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
22410         append to variable.
22411         [$(build-bounded) = yes] (install-lib): Likewise.
22412         [$(build-bounded) = yes] (generated): Likewise.
22413         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
22414         Remove rule.
22415         * intl/Makefile [$(build-bounded) = yes]
22416         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
22417         * math/Makefile [$(build-bounded) = yes]
22418         ($(tests:%=$(objpfx)%-bp): Likewise.
22419         * misc/Makefile [$(build-bounded) = yes]
22420         ($(objpfx)tst-tsearch-bp): Likewise.
22421         * nptl/Makeconfig (bounded-thread-library): Remove variable.
22422         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
22423         Remove dependency.
22424         * string/Makefile (o-objects.ob): Remove variable.
22425         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
22426         (CFLAGS-.ob): Remove variable.
22427         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
22428         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
22429         both definitions of variable.
22430         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
22431         (ASFLAGS-.ob): Remove variable.
22432
22433 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
22434
22435         [BZ #13550]
22436         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
22437         Remove __BOUNDED_POINTERS__ from condition.
22438         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
22439         * string/bits/string2.h [!__NO_STRING_INLINES &&
22440         !__BOUNDED_POINTERS__]: Likewise.
22441         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
22442         Likewise.
22443         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
22444         Remove conditional code.
22445         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
22446         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
22447         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
22448         condition.
22449
22450         [BZ #13550]
22451         * csu/libc-start.c: Do not include <bp-sym.h>.
22452         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
22453         * elf/dl-open.c: Do not include <bp-sym.h>.
22454         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
22455         * math/fegetenv.c: Do not include <bp-sym.h>.
22456         (fegetenv): Do not use BP_SYM in versioned symbols.
22457         * nptl/sysdeps/pthread/bits/libc-lockP.h
22458         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
22459         <bp-sym.h>.
22460         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22461         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
22462         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22463         (__pthread_mutex_destroy): Likewise.
22464         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22465         (__pthread_mutex_lock): Likewise.
22466         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22467         (__pthread_mutex_trylock): Likewise.
22468         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22469         (__pthread_mutex_unlock): Likewise.
22470         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22471         (__pthread_mutexattr_init): Likewise.
22472         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22473         (__pthread_mutexattr_destroy): Likewise.
22474         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22475         (__pthread_mutexattr_settype): Likewise.
22476         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22477         (__pthread_rwlock_init): Likewise.
22478         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22479         (__pthread_rwlock_destroy): Likewise.
22480         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22481         (__pthread_rwlock_rdlock): Likewise.
22482         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22483         (__pthread_rwlock_tryrdlock): Likewise.
22484         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22485         (__pthread_rwlock_wrlock): Likewise.
22486         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22487         (__pthread_rwlock_trywrlock): Likewise.
22488         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22489         (__pthread_rwlock_unlock): Likewise.
22490         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22491         (__pthread_key_create): Likewise.
22492         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22493         (__pthread_setspecific): Likewise.
22494         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22495         (__pthread_getspecific): Likewise.
22496         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
22497         Likewise.
22498         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22499         (_pthread_cleanup_push_defer): Likewise.
22500         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22501         (_pthread_cleanup_pop_restore): Likewise.
22502         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22503         (pthread_setcancelstate): Likewise.
22504         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
22505         <bp-sym.h>.
22506         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
22507         (memchr): Do not use BP_SYM in weak_alias.
22508         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
22509         (fegetenv): Do not use BP_SYM in versioned symbols.
22510         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
22511         (fesetenv): Do not use BP_SYM in versioned symbols.
22512         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
22513         (feupdateenv): Do not use BP_SYM in versioned symbols.
22514         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
22515         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
22516         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
22517         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
22518         (open64): Do not use BP_SYM in weak_alias.
22519         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
22520         (fegetenv): Do not use BP_SYM in versioned symbols.
22521         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
22522         (fesetenv): Do not use BP_SYM in versioned symbols.
22523         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
22524         (feupdateenv): Do not use BP_SYM in versioned symbols.
22525         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
22526         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
22527         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
22528         (feraiseexcept): Do not use BP_SYM in versioned symbols.
22529         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
22530         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
22531         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
22532         <bp-sym.h>.
22533         (__libc_start_main): Do not use BP_SYM.
22534
22535 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22536
22537         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
22538         redundant return line.
22539         (norm): Likewise.
22540         (denorm): Likewise.
22541         (dbl_mp): Likewise.
22542         (sub_magnitudes): Likewise.
22543         (__add): Likewise.
22544         (__sub): Likewise.
22545         (__mul): Likewise.
22546         (__inv): Likewise.
22547         (__dvd): Likewise.
22548         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
22549         (norm): Likewise.
22550         (denorm): Likewise.
22551         (dbl_mp): Likewise.
22552         (sub_magnitudes): Likewise.
22553         (__add): Likewise.
22554         (__sub): Likewise.
22555         (__mul): Likewise.
22556         (__inv): Likewise.
22557         (__dvd): Likewise.
22558
22559         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
22560         instead of __mul.
22561         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22562         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
22563         (cc32): Likewise.
22564
22565         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
22566         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
22567         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
22568         of __mul for squares.
22569         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
22570         function
22571         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
22572         Likewise.
22573         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
22574         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
22575
22576 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
22577
22578         [BZ #13550]
22579         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
22580         code.
22581         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
22582         prototype or function definition.  Rename ubp_* variables and
22583         parameters.  Remove argv definitions conditional on
22584         [__BOUNDED_POINTERS__].
22585         * debug/backtrace.c (__backtrace): Do not use __unbounded.
22586         * elf/dl-runtime.c (_dl_fixup): Likewise.
22587         * include/set-hooks.h (RUN_HOOK): Likewise.
22588         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
22589         definition.
22590         * string/strcpy.c (strcpy): Do not use __unbounded.
22591         * sysdeps/generic/frame.h (struct layout): Likewise.
22592         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
22593         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
22594         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
22595         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
22596         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
22597         (__backtrace): Likewise.
22598         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
22599         use __ptrvalue.
22600         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
22601         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
22602         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22603         Likewise.
22604         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
22605         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
22606         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
22607         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22608         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
22609         Do not use __unbounded.
22610         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
22611         Rename __unboundedrlimits parameter to rlimits in prototype.
22612         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
22613         Do not use __unbounded.
22614         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
22615         not use __ptrvalue.
22616         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22617         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
22618         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22619         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
22620         __ptrvalue or __unbounded.
22621         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
22622         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
22623         use __unbounded.
22624         (__new_msgctl): Do not use __ptrvalue.
22625         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
22626         __unbounded.
22627         (__libc_msgrcv): Do not use __ptrvalue.
22628         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
22629         startup_info): Do not use __unbounded.
22630         (__libc_start_main): Likewise.  Rename ubp_* variables and
22631         parameters.  Remove argv definitions conditional on
22632         [__BOUNDED_POINTERS__].
22633         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
22634         __ptrvalue.
22635         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
22636         use __unbounded.
22637         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
22638         or __ptrvalue.
22639         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
22640         use __unbounded.
22641         (__new_shmctl): Do not use __ptrvalue.
22642         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
22643         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
22644         Likewise.
22645         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
22646         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
22647         (__libc_sigaction): Likewise.
22648         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
22649         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
22650         Likewise.
22651         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22652
22653 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
22654
22655         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
22656
22657         * string/mempcpy.c: Implement by calling memcpy.
22658
22659 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
22660
22661         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
22662
22663         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
22664         evaluation.
22665
22666         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
22667         values in the mantissa.
22668
22669         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
22670         minimize writes to Z.
22671         (sub_magnitudes): Simplify code a bit.
22672
22673 2013-02-12  Roland McGrath  <roland@hack.frob.com>
22674
22675         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
22676         from the message.  The linker prefixes all warnings with that already.
22677
22678 2013-02-12  Andreas Schwab  <schwab@suse.de>
22679
22680         [BZ #15078]
22681         * posix/regexec.c (extend_buffers): Add parameter min_len.
22682         (check_matching): Pass minimum needed length.
22683         (clean_state_log_if_needed): Likewise.
22684         (get_subexp): Likewise.
22685         * posix/Makefile (tests): Add bug-regex34.
22686         (bug-regex34-ENV): Define.
22687         * posix/bug-regex34.c: New file.
22688
22689         [BZ #11561]
22690         * posix/regcomp.c (parse_bracket_exp): When looking up collating
22691         elements compare against the byte sequence of it, not its name.
22692         * posix/Makefile (tests): Add bug-regex35.
22693         (bug-regex35-ENV): Define.
22694         * posix/bug-regex35.c: New file.
22695
22696 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22697
22698         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
22699         comment.
22700         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
22701         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
22702         (CHECK_EOL): Add undef.
22703
22704 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
22705
22706         * bits/stdlib-bsearch.h: New file.
22707         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
22708         * stdlib/stdlib.h: Likewise.
22709
22710 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22711
22712         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
22713         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
22714         declaration.
22715         * manual/search.texi (Array Search Function): Add missing const in
22716         lfind prototype.
22717         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
22718         declaration to use rlim_t.
22719         (Basic Scheduling Functions): Remove erroneous const from
22720         sched_getparam prototype.  Remove erroneous * from
22721         sched_get_priority_max and sched_get_priority_min prototypes.
22722         (Resource Usage): Fix summary @comment on vtimes to refer to
22723         sys/vtimes.h rather than vtimes.h.
22724         Add missing *s in vtimes prototype.
22725         (Limits on Resources): Fix ulimit prototype to return long int.
22726         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
22727         prototypes to use long int rather than double.
22728         (BSD Random): Fix initstate and setstate to use char *, not void *.
22729         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
22730         prototype to make second argument 'struct aiocb64 *const[]'.
22731         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
22732         (Status of AIO Operations): Remove erroneous const in aio_return and
22733         aio_return64 prototypes.
22734         (Synchronizing I/O): Fix sync prototype to return void.
22735         * manual/startup.texi (Suboptions): Remove an erroneous const in
22736         getsubopt prototype.
22737         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
22738         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
22739         use size_t rather than int.
22740         (Scanning All Users): Likewise for getpwent_r.
22741         (Setting Groups): Add missing const to setgroups prototype.
22742         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
22743         * manual/socket.texi (Host Names): Fix gethostbyaddr and
22744         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
22745         'const void *' rather than 'const char *'.
22746         (Host Address Functions): Likewise for inet_ntop.
22747         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
22748         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
22749         ssize_t for return value.
22750         (Sending Data): Likewise for send, sendto, sendmsg.
22751         (Socket Option Functions): Add a missing const in setsockopt prototype.
22752         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
22753         use wchar_t for the argument.
22754         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
22755         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
22756         take no arguments.
22757         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
22758         double/float/long double for second argument.
22759         Fix return types of significand, significandf, significandl.
22760         * manual/filesys.texi (Setting Permissions): Use mode_t for second
22761         argument in fchmod prototype.
22762         (File Owner): Use uid_t and gid_t in fchown prototype.
22763         (File Times): Add const to utimes, futimes, and lutimes prototypes.
22764         (Making Special Files): Use mode_t and dev_t in mknod prototype.
22765         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
22766         use 'const struct dirent **' as argument types to CMP function pointer
22767         argument.
22768         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
22769         (File Times): Fix summary magic @comment for struct utimbuf and utime
22770         to refer to utime.h, not time.h.
22771         * manual/string.texi (Argz Functions): Add missing const in
22772         argz_extract and argz_next prototypes.
22773         (Finding Tokens in a String): Likewise for basename.
22774         (String/Array Comparison): Fix typo in wcscasecmp prototype.
22775         (Copying and Concatenation): Fix typo in wmemmove prototype.
22776         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
22777         (Signal Stack): Remove erroneous const in sigstack prototype.
22778         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
22779         prototype.
22780         (Simple Calendar Time): Likewise for stime.
22781         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
22782         prototype.
22783         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
22784         say sys/sysctl.h instead.
22785         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
22786         and vsyslog prototypes.
22787
22788 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22789
22790         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
22791         Remove.
22792
22793 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22794
22795         * misc/sys/mman.h: Fix typo in mremap comment.
22796
22797 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22798
22799         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
22800         the '\0' terminator.
22801
22802 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22803
22804         [BZ #13550]
22805         * debug/segfault.c: Don't include <bp-checks.h>.
22806         * sysdeps/generic/bp-checks.h: Remove file.
22807         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
22808         (__GETDENTS): Don't use CHECK_N.
22809         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
22810         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
22811         (__getgroups): Don't use CHECK_N.
22812         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
22813         (setgroups): Don't use CHECK_N.
22814         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
22815         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
22816         (__libc_msgrcv): Don't use CHECK_N.
22817         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
22818         (__libc_msgsnd): Don't use CHECK_N.
22819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
22820         <bp-checks.h>.
22821         (__libc_pread): Don't use CHECK_N.
22822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
22823         include <bp-checks.h>.
22824         (__libc_pread64): Don't use CHECK_N.
22825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
22826         include <bp-checks.h>.
22827         (__libc_pwrite): Don't use CHECK_N.
22828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
22829         include <bp-checks.h>.
22830         (__libc_pwrite64): Don't use CHECK_N.
22831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
22832         <bp-checks.h>.
22833         (__libc_pread): Don't use CHECK_N.
22834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
22835         include <bp-checks.h>.
22836         (__libc_pread64): Don't use CHECK_N.
22837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
22838         include <bp-checks.h>.
22839         (__libc_pwrite): Don't use CHECK_N.
22840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
22841         include <bp-checks.h>.
22842         (__libc_pwrite64): Don't use CHECK_N.
22843         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
22844         (do_pread): Don't use CHECK_N.
22845         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
22846         (do_pread64): Don't use CHECK_N.
22847         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
22848         (do_pwrite): Don't use CHECK_N.
22849         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
22850         (do_pwrite64): Don't use CHECK_N.
22851         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
22852         (__libc_readv): Don't use CHECK_N.
22853         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
22854         (semop): Don't use CHECK_N.
22855         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
22856         <bp-checks.h>.
22857         (semtimedop): Don't use CHECK_N.
22858         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
22859         (__libc_pread): Don't use CHECK_N.
22860         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
22861         <bp-checks.h>.
22862         (__libc_pread64): Don't use CHECK_N.
22863         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
22864         <bp-checks.h>.
22865         (__libc_pwrite): Don't use CHECK_N.
22866         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
22867         <bp-checks.h>.
22868         (__libc_pwrite64): Don't use CHECK_N.
22869         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
22870         <bp-checks.h>.
22871         (__libc_msgrcv): Don't use CHECK_N.
22872         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
22873         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
22874         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
22875         (__libc_writev): Don't use CHECK_N.
22876
22877 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22878
22879         * string/strcpy.c: Removed unused variable.
22880
22881         * Makeconfig (+sysdep-includes): Define with := rather than =.
22882         Use an existing include/ subdir of each sysdeps dir before it.
22883
22884 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22885
22886         * nscd/connection.c (register_traced_file): Comment function.
22887         [HAVE_INOTIFY] (union __inev): Define.
22888         [HAVE_INOTIFY] (inotify_check_files): New function.
22889         [HAVE_INOTIFY] (clear_db_cache): Likewise.
22890         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
22891         clear_db_cache.
22892         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
22893
22894 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22895
22896         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
22897         loaded if not already and that a failure is permanent.
22898
22899 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22900
22901         [BZ #15006]
22902         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
22903         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
22904
22905 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22906
22907         [BZ #13550]
22908         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
22909         (CHECK_1_NULL_OK): Likewise.
22910         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
22911         (__fxstat): Do not use CHECK_1.
22912         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
22913         <bp-checks.h>.
22914         (___fxstat64): Do not use CHECK_1.
22915         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
22916         <bp-checks.h>.
22917         (__fxstatat): Do not use CHECK_1.
22918         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
22919         <bp-checks.h>.
22920         (__fxstatat64): Do not use CHECK_1.
22921         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
22922         <bp-checks.h>.
22923         (__fxstat): Do not use CHECK_1.
22924         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
22925         <bp-checks.h>.
22926         (__fxstatat): Do not use CHECK_1.
22927         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22928         <bp-checks.h>.
22929         (__getresgid): Do not use CHECK_1.
22930         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22931         <bp-checks.h>.
22932         (__getresuid): Do not use CHECK_1.
22933         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
22934         <bp-checks.h>.
22935         (__lxstat): Do not use CHECK_1.
22936         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22937         <bp-checks.h>.
22938         (__old_msgctl): Do not use CHECK_1.
22939         (__new_msgctl): Likewise.
22940         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
22941         <bp-checks.h>.
22942         (__new_setrlimit): Do not use CHECK_1.
22943         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22944         <bp-checks.h>.
22945         (__old_shmctl): Do not use CHECK_1.
22946         (__new_shmctl): Likewise.
22947         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
22948         <bp-checks.h>.
22949         (__xstat): Do not use CHECK_1.
22950         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
22951         (__lxstat): Do not use CHECK_1.
22952         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
22953         <bp-checks.h>.
22954         (___lxstat64): Do not use CHECK_1.
22955         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
22956         (__old_msgctl): Do not use CHECK_1.
22957         (__new_msgctl): Likewise.
22958         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
22959         <bp-checks.h>.
22960         (__gettimeofday): Do not use CHECK_1.
22961         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
22962         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
22963         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
22964         <bp-checks.h>.
22965         (__gettimeofday): Do not use CHECK_1.
22966         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
22967         (__old_shmctl): Do not use CHECK_1_NULL_OK.
22968         (__new_shmctl): Do not use CHECK_1.
22969         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
22970         <bp-checks.h>.
22971         (do_sigtimedwait): Do not use CHECK_1.
22972         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
22973         <bp-checks.h>.
22974         (do_sigwaitinfo): Do not use CHECK_1.
22975         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
22976         <bp-checks.h>.
22977         (msgctl): Do not use CHECK_1.
22978         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
22979         <bp-checks.h>.
22980         (shmctl): Do not use CHECK_1.
22981         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
22982         (ustat): Do not use CHECK_1.
22983         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
22984         <bp-checks.h>.
22985         (__fxstat): Do not use CHECK_1.
22986         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
22987         <bp-checks.h>.
22988         (__fxstatat): Do not use CHECK_1.
22989         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
22990         <bp-checks.h>.
22991         (__lxstat): Do not use CHECK_1.
22992         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
22993         <bp-checks.h>.
22994         (__xstat): Do not use CHECK_1.
22995         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
22996         (__xstat): Do not use CHECK_1.
22997         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
22998         (___xstat64): Do not use CHECK_1.
22999
23000         [BZ #13550]
23001         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
23002         definitions.
23003         (CHECK_BOUNDS_HIGH): Likewise.
23004         * string/strcpy.c: Do not include <bp-checks.h>.
23005         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
23006
23007 2013-02-07  Roland McGrath  <roland@hack.frob.com>
23008
23009         * nscd/nscd-client.h (__nscd_drop_map_ref):
23010         Add __attribute__ ((unused)).
23011         * nis/nss-nisplus.h (niserr2nss): Likewise.
23012
23013         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
23014         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
23015
23016         * csu/libc-tls.c (init_static_tls, init_slotinfo):
23017         Remove inline keyword.
23018         * include/rounding-mode.h (round_away): Likewise.
23019         * libio/wfileops.c (adjust_wide_data): Likewise.
23020         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
23021         (__m128i_strloadu_tolower): Likewise.
23022         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
23023         (__m128i_strloadu_tolower): Likewise.
23024         * time/mktime.c (ydhms_diff): Likewise.
23025         * locale/elem-hash.h (elem_hash): Likewise.
23026         * locale/setlocale.c (setdata): Likewise.
23027         * posix/regex_internal.h (re_string_char_size_at): Likewise.
23028         (re_string_wchar_at): Likewise.
23029         (bitset_not, bitset_merge, bitset_mask): Likewise.
23030         [!(__GNUC__ > 3)] (inline): Remove macro.
23031         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
23032         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
23033         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
23034         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23035         * string/memcmp.c (memcmp_bytes): Likewise.
23036         * locale/programs/locarchive.c (compute_hashval): Likewise.
23037         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
23038         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
23039         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
23040         * nss/getent.c (print_rpc, print_protocols): Likewise.
23041         (print_passwd, print_group, print_aliases): Likewise.
23042         * nis/nss-nisplus.h (niserr2nss): Likewise.
23043         * nscd/connections.c (restart_p): Likewise.
23044         Change return type to bool.
23045
23046 2013-02-05  Roland McGrath  <roland@hack.frob.com>
23047
23048         * Makeconfig (all-Depend-files): Add existing
23049         $(sorted-subdirs:=/Depend) files.
23050         (all-subdirs): Remove nss.
23051         * sysdeps/unix/inet/Subdirs: Add it here instead.
23052         * hesiod/Depend: New file.
23053
23054         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
23055         instead of calling alloca.
23056
23057         * io/lseek.c (__lseek): Rename to __libc_lseek.
23058         Define __lseek as an alias.
23059
23060         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
23061
23062 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
23063
23064         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
23065         else clause and remove check for non-standard endianness.
23066
23067 2013-02-04  David S. Miller  <davem@davemloft.net>
23068
23069         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23070
23071 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
23072
23073         [BZ #13550]
23074         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
23075         (__ubp_memchr): Remove prototype.
23076         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
23077         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
23078         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
23079         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
23080         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
23081         Remove alias.
23082         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
23083         (__ubp_memchr): Likewise.
23084         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
23085         (__ubp_memchr): Likewise.
23086         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
23087         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
23088         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
23089         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
23090         CHECK_STRING.
23091         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
23092         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
23093         (__getcwd): Do not use CHECK_STRING.
23094         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
23095         <bp-checks.h>.
23096         (__real_chown): Do not use CHECK_STRING.
23097         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
23098         <bp-checks.h>.
23099         (fchownat): Do not use CHECK_STRING.
23100         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
23101         CHECK_STRING.
23102         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
23103         <bp-checks.h>.
23104         (__lchown): Do not use CHECK_STRING.
23105         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
23106         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
23107         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
23108         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
23109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
23110         include <bp-checks.h>.
23111         (truncate64): Do not use CHECK_STRING.
23112         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
23113         <bp-checks.h>.
23114         (__real_chown): Do not use CHECK_STRING.
23115         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
23116         <bp-checks.h>.
23117         (__lchown): Do not use CHECK_STRING.
23118         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
23119         <bp-checks.h>.
23120         (__chown): Do not use CHECK_STRING.
23121         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
23122         <bp-checks.h>.
23123         (truncate64): Do not use CHECK_STRING.
23124         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
23125         Likewise.
23126         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
23127         (__xmknod): Do not use CHECK_STRING.
23128         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
23129         <bp-checks.h>.
23130         (__xmknodat): Do not use CHECK_STRING.
23131         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
23132         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
23133
23134 2013-02-04  Andreas Schwab  <schwab@suse.de>
23135
23136         [BZ #14142]
23137         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
23138         * include/netdb.h: Likewise for h_errno.
23139         * elf/tst-stackguard1.c: Include <tls.h>.
23140
23141 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
23142
23143         * elf/link.h (struct link_map): Extend the l_addr comment.
23144         * include/link.h (struct link_map): Likewise.
23145
23146 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
23147
23148         [BZ #13550]
23149         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
23150         (BOUNDED_1): Remove macro.
23151         * debug/backtrace.c: Don't include <bp-checks.h>.
23152         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
23153         (__backtrace): Likewise.
23154         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
23155         <bp-checks.h>.
23156         (__backtrace): Don't use BOUNDED_1.
23157         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
23158         <bp-checks.h>.
23159         (__backtrace): Don't use BOUNDED_1.
23160         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
23161         (__backtrace): Don't use BOUNDED_1.
23162         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
23163         (shmat): Don't use BOUNDED_N.
23164
23165 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
23166
23167         [BZ #13550]
23168         * sysdeps/generic/bp-start.h: Remove file.
23169         * csu/libc-start.c: Don't include <bp-start.h>.
23170         (LIBC_START_MAIN): Set up __environ directly instead of using
23171         INIT_ARGV_and_ENVIRON.
23172         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
23173         <bp-start.h>.
23174
23175         [BZ #13550]
23176         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
23177         definitions.
23178         (CHECK_FCNTL): Likewise.
23179         (CHECK_N_PAGES): Likewise.
23180
23181         [BZ #13550]
23182         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
23183         definitions.
23184         (CHECK_SIGSET_NULL_OK): Likewise.
23185         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
23186         <bp-checks.h>.
23187         (sigpending): Don't use CHECK_SIGSET.
23188         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
23189         <bp-checks.h>.
23190         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
23191         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
23192         <bp-checks.h>.
23193         (do_sigsuspend): Don't use CHECK_SIGSET.
23194         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
23195         use CHECK_SIGSET.
23196         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
23197         (do_sigwait): Don't use CHECK_SIGSET.
23198         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
23199         use CHECK_SIGSET.
23200         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
23201         include <bp-checks.h>.
23202         (sigpending): Don't use CHECK_SIGSET.
23203         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
23204         include <bp-checks.h>.
23205         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
23206         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
23207         <bp-checks.h>.
23208         (sigpending): Don't use CHECK_SIGSET.
23209         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
23210         <bp-checks.h>.
23211         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
23212
23213         [BZ #13550]
23214         * sysdeps/generic/bp-semctl.h: Remove file.
23215         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
23216         <bp-checks.h> and <bp-semctl.h>.
23217         (__old_semctl): Don't use CHECK_SEMCTL.
23218         (__new_semctl): Likewise.
23219         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
23220         and <bp-semctl.h>.
23221         (__old_semctl): Don't use CHECK_SEMCTL.
23222         (__new_semctl): Likewise.
23223         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
23224         <bp-checks.h> and <bp-semctl.h>.
23225         (__old_semctl): Don't use CHECK_SEMCTL.
23226         (__new_semctl): Likewise.
23227         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
23228         <bp-checks.h> and <bp-semctl.h>.
23229         (semctl): Don't use CHECK_SEMCTL.
23230
23231         [BZ #13550]
23232         * Makerules (elide-bp-thunks): Remove variable.
23233         (elide-routines.oS): Don't use $(elide-bp-thunks).
23234         (elide-routines.os): Likewise.
23235         (elide-routines.o): Likewise.
23236         (elide-routines.op): Likewise.
23237         (elide-routines.og): Likewise.
23238         (objects): Don't use $(bp-thunks).
23239         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
23240         include.
23241         (common-generated): Do not add s-proto-bp.d.
23242         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
23243         (int): Likewise.
23244         (typ): Likewise.
23245         Do not generate makefile rules for bounded-pointer thunks.
23246         * sysdeps/generic/bp-thunks.h: Remove file.
23247         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
23248         * sysdeps/unix/s-proto-bp.S: Likewise.
23249
23250         [BZ #15062]
23251         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
23252         parts of result separately when argument is not close to line from
23253         -i to i and one part of argument is small.
23254         * math/k_casinhf.c (__kernel_casinhf): Likewise.
23255         * math/k_casinhl.c (__kernel_casinhl): Likewise.
23256         * math/libm-test.inc (cacos_test): Add more tests.
23257         (casin_test): Likewise.
23258         (casinh_test): Likewise.
23259         * sysdeps/i386/fpu/libm-test-ulps: Update.
23260         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23261
23262 2013-01-31  David S. Miller  <davem@davemloft.net>
23263
23264         * po/de.po: Update from translation team.
23265
23266 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
23267
23268         * time/tzfile.c: Include stdint.h for SIZE_MAX.
23269
23270 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
23271
23272         * configure.in (_AC_PROG_CC_C89): New definition.
23273         * configure: Regenerate.
23274
23275         * configure.in (AC_PROG_CPP): New definition.
23276         * configure: Regenerate.
23277
23278 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
23279
23280         * debug/tst-backtrace.h: New file.
23281         * debug/tst-backtrace2.c: Include tst-backtrace.h.
23282         (ret): Remove variable.
23283         (x): Likewise.
23284         (FAIL): Remove macro.
23285         (NO_INLINE): Likewise.
23286         (fn1): Use match function instead of strstr.
23287         * debug/tst-backtrace3.c: Include tst-backtrace.h.
23288         (ret): Remove variable.
23289         (x): Likewise.
23290         (FAIL): Remove macro.
23291         (NO_INLINE): Likewise.
23292         (fn): Use match function instead of strstr.
23293         * debug/tst-backtrace4.c: Include tst-backtrace.h.
23294         (ret): Remove variable.
23295         (x): Likewise.
23296         (FAIL): Remove macro.
23297         (NO_INLINE): Likewise.
23298         (handle_signal): Use match function instead of strstr.
23299         * debug/tst-backtrace5.c: Include tst-backtrace.h.
23300         (ret): Remove variable.
23301         (x): Likewise.
23302         (FAIL): Remove macro.
23303         (NO_INLINE): Likewise.
23304         (handle_signal): Use match function instead of strstr.
23305
23306 2013-01-23  Roland McGrath  <roland@hack.frob.com>
23307
23308         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
23309
23310 2013-01-23  David S. Miller  <davem@davemloft.net>
23311
23312         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
23313         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
23314         argument of CAS if possible.
23315         * sysdeps/sparc/sparc64/bits/atomic.h
23316         (__arch_compare_and_exchange_val_32_acq): Likewise.
23317         (__arch_compare_and_exchange_val_64_acq): Likewise.
23318
23319 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
23320
23321         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
23322         * sysdeps/posix/ulimit.c: ... this.
23323         Include <limits.h>.
23324         * sysdeps/unix/bsd/ulimit.c: Remove file.
23325
23326 2013-01-23  Adam Conrad  <adconrad@0c3.net>
23327
23328         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
23329         (LDFLAGS-tst-array5): Likewise.
23330
23331 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
23332
23333         [BZ #15036]
23334         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
23335         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
23336         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
23337         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
23338
23339 2013-01-21  David S. Miller  <davem@davemloft.net>
23340
23341         * sysdeps/sparc/backtrace.c: New file.
23342         * sysdeps/sparc/sparc32/backtrace.h: New file.
23343         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
23344         * sysdeps/sparc/sparc64/backtrace.h: New file.
23345         * sysdeps/sparc/sparc64/backtrace.c: Delete.
23346         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
23347         -funwind-tables.
23348
23349 2013-01-21  Andreas Schwab  <schwab@suse.de>
23350
23351         [BZ #15020]
23352         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
23353         closed its stdout.
23354
23355 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
23356
23357         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
23358         "mpa2.h".
23359         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23360
23361 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
23362             Mark Mitchell  <mark@codesourcery.com>
23363             Tom de Vries  <tom@codesourcery.com>
23364             Paul Pluzhnikov  <ppluzhnikov@google.com>
23365
23366         * debug/tst-backtrace2.c: New file.
23367         * debug/tst-backtrace3.c: Likewise.
23368         * debug/tst-backtrace4.c: Likewise.
23369         * debug/tst-backtrace5.c: Likewise.
23370         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
23371         (CFLAGS-tst-backtrace3.c): Likewise.
23372         (CFLAGS-tst-backtrace4.c): Likewise.
23373         (CFLAGS-tst-backtrace5.c): Likewise.
23374         (LDFLAGS-tst-backtrace2): Likewise.
23375         (LDFLAGS-tst-backtrace3): Likewise.
23376         (LDFLAGS-tst-backtrace4): Likewise.
23377         (LDFLAGS-tst-backtrace5): Likewise.
23378         (tests): Add new tests tst-backtrace2, tst-backtrace3,
23379         tst-backtrace4 and tst-backtrace5.
23380
23381 2013-01-18  Anton Blanchard  <anton@samba.org>
23382             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
23383
23384         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
23385         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
23386         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
23387         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
23388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23389         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
23390         "+r" and remove output regs list as redundant.  Add explicit inline
23391         asm to specify register of return val to work around compiler codegen
23392         bug.  Remove (int) cast on return value.  Add return type parameter to
23393         use in macro so that this macro does not truncate return value for
23394         64-bit values.
23395         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
23396         pass to INTERNAL_VSYSCALL_NCS.
23397         (INLINE_VSYSCALL): Add 'long int' as return type to
23398         INTERNAL_VSYSCALL_NCS macro invocation.
23399         (INTERNAL_VSYSCALL): Add 'long int' as return type to
23400         INTERNAL_VSYSCALL_NCS macro invocation.
23401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23402
23403 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
23404
23405         [BZ #14496]
23406         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
23407         Fix application of SIMD FP exception mask.
23408
23409         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
23410         mp_no from a power of two.
23411         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
23412         __mpexp_twomm1.  Use __pow_mp.
23413
23414         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
23415         multiplication.
23416
23417 2013-01-17  David S. Miller  <davem@davemloft.net>
23418
23419         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23420
23421 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
23422
23423         [BZ #15023]
23424         * include/complex.h: Condition contents on [!_COMPLEX_H].
23425         (__kernel_casinhf): New prototype.
23426         (__kernel_casinh): Likewise.
23427         (__kernel_casinhl): Likewise.
23428         * math/Makefile (libm_calls): Add k_casinh.
23429         * math/k_casinh.c: New file.
23430         * math/k_casinhf.c: Likewise.
23431         * math/k_casinhl.c: Likewise.
23432         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
23433         finite nonzero arguments.
23434         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
23435         finite nonzero arguments.
23436         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
23437         finite nonzero arguments.
23438         * math/s_casinh.c: Do not include <float.h>.
23439         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
23440         * math/s_casinhf.c: Do not include <float.h>.
23441         (__casinhf): Move code for finite nonzero arguments to
23442         k_casinhf.c.
23443         * math/s_casinhl.c: Do not include <float.h>.
23444         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
23445         redefine.
23446         (__casinhl): Move code for finite nonzero arguments to
23447         k_casinhl.c.
23448         * math/libm-test.inc (cacos_test): Add more tests.
23449         * sysdeps/i386/fpu/libm-test-ulps: Update.
23450         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23451
23452 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
23453
23454         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
23455         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
23456         [!HAVE_MREMAP]: Remove [defined linux] case.
23457         * malloc/arena.c: Do not include <malloc-sysdep.h>.
23458
23459 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
23460
23461         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
23462
23463 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
23464
23465         * elf/elf.h (R_386_SIZE32): New relocation.
23466         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
23467         R_386_SIZE32.
23468         (elf_machine_rela): Likewise.
23469         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
23470         R_X86_64_SIZE64 and R_X86_64_SIZE32.
23471
23472 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
23473
23474         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
23475         (FP_FAST_FMA): Do not define.
23476         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
23477         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
23478         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
23479         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
23480         !_SOFT_FLOAT]: Likewise.
23481         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
23482         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
23483         value.
23484         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
23485         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
23486         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
23487         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
23488         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
23489         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
23490         file.
23491
23492 2013-01-16  Andreas Schwab  <schwab@suse.de>
23493
23494         [BZ #14327]
23495         * include/stdlib.h (__mktemp): Add declaration.
23496         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
23497         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
23498
23499 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23500
23501         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
23502         definitions.
23503         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23504         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
23505         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
23506         definitions here.
23507         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
23508         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
23509         definitions.
23510         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
23511         and ONE.
23512         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
23513         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
23514         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
23515         definitions.
23516         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
23517         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
23518         definitions.
23519         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23520
23521         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
23522
23523 2013-01-15  David S. Miller  <davem@davemloft.net>
23524
23525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23526         trunc{,f} to libm-sysdep_routes.
23527         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
23528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
23529         file.
23530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
23531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
23532         file.
23533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
23534         file.
23535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
23536         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
23537         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
23538         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
23539         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
23540         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
23541         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
23542         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
23543
23544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23545         nearbyint{,f} to libm-sysdep_routes.
23546         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
23547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
23548         New file.
23549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
23550         file.
23551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
23552         New file.
23553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
23554         file.
23555         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
23556         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
23557         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
23558         file.
23559         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
23560         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
23561         file.
23562         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
23563         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
23564         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
23565
23566         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
23567         libc_feholdexcept and libc_fesetenv.
23568
23569 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
23570
23571         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
23572
23573 2013-01-14  David S. Miller  <davem@davemloft.net>
23574
23575         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
23576         (SPARC_ASM_VIS2_IFUNC): Likewise.
23577         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
23578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
23579         use of 'siam' instruction.
23580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
23581         Likewise.
23582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
23583         Likewise.
23584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
23585         Likewise.
23586         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
23587         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
23588         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
23589         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
23590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
23591         file.
23592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
23593         file.
23594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
23595         file.
23596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
23597         file.
23598         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
23599         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
23600         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
23601         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
23602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
23603         new VIS2 routines.
23604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
23605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
23606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
23607         Likewise.
23608         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
23609         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
23610         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
23611         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
23612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
23613         routines to libm-sysdep_routines.
23614         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
23615
23616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23617         fdim/fdimf to libm-sysdep_routines.
23618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
23619         file.
23620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
23621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
23622         file.
23623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
23624         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
23625         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
23626         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
23627         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
23628         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
23629         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
23630
23631 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
23632
23633         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
23634         to optimize copies.
23635
23636         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
23637         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23638         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23639
23640         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
23641         local variable MPTWO.
23642         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
23643         Likewise.
23644
23645 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23646
23647         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
23648         GLOB_NOESCAPE.
23649
23650 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23651
23652         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
23653
23654 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23655
23656         * manual/pattern.texi (glob_t): Document gl_flags.
23657         (glob64_t): Likewise.
23658
23659 2013-01-11  David S. Miller  <davem@davemloft.net>
23660
23661         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
23662         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
23663         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
23664         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
23665         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
23666         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
23667         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
23668         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
23669         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
23670         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
23671         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
23672         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
23673         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
23674
23675         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23676         sparc V9 rather than using V8 code.
23677         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23678         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23679
23680         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
23681         Move to...
23682         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
23683         Here.
23684
23685 2013-01-11  Roland McGrath  <roland@hack.frob.com>
23686
23687         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
23688         not in the main loop.
23689         * configure: Regenerated.
23690
23691 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
23692
23693         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
23694         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
23695         to just #else.
23696         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
23697         [!__GLIBC_HAVE_LONG_LONG] case.
23698         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
23699         condition to just #else.
23700         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
23701         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
23702         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
23703         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
23704         unconditional.
23705         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
23706         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23707         #elif condition to just #else.
23708         * sysdeps/unix/sysv/linux/sys/sysmacros.h
23709         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
23710         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23711         #elif condition to just #else.
23712
23713 2013-01-11  Steve Ellcey  <sellcey@mips.com>
23714
23715         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
23716         (EF_MIPS_ARCH_64): Fix value.
23717         (EF_MIPS_ARCH_32R2): New.
23718         (EF_MIPS_ARCH_64R2): New.
23719
23720 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
23721
23722         * Makeconfig (+link-pie-before-libc): New.
23723         (+link-pie-after-libc): Likewise.
23724         (+link-pie-tests): Likewise.
23725         (+link-pie): Rewritten.
23726         (link-before-libc): Remove $(config-LDFLAGS).
23727         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
23728         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
23729         (config-LDFLAGS): Renamed to ...
23730         (rtld-LDFLAGS): This.
23731         (rtld-tests-LDFLAGS): New macro.
23732         (link-libc-rpath-link): Likewise.
23733         (link-libc-tests-rpath-link): Likewise.
23734         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
23735         (link-libc): Prepand $(link-libc-rpath-link).
23736         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
23737         (test-program-prefix): New macro.
23738         (test-via-rtld-prefix): Likewise.
23739         (test-program-cmd): Likewise.
23740         (host-test-program-cmd): Likewise.
23741         * Makefile ($(common-objpfx)testrun.sh): Replace
23742         $(run-program-prefix) with $(test-program-prefix).
23743         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
23744         $(rtld-LDFLAGS).
23745         ($(common-objpfx)shlib.lds): Likewise.
23746         (build-module-helper): Likewise.
23747         ($(common-objpfx)format.lds): Likewise.
23748         * Rules (binaries-pie-tests): New.
23749         (binaries-pie-notests): Likewise.
23750         (binaries-pie): Rewritten.
23751         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
23752         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
23753         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
23754         (make-test-out): Replace $(host-built-program-cmd) with
23755         $(host-test-program-cmd).
23756         * config.make.in (build-hardcoded-path-in-tests): New variable.
23757         * configure.in (--enable-hardcoded-path-in-tests): New configure
23758         option.
23759         (hardcoded_path_in_tests): New AC_SUBST.
23760         * configure: Regenerated.
23761         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
23762         $(built-program-cmd) with $(test-program-cmd).
23763         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
23764         (test_program_cmd): This.
23765         * elf/Makefile ($(objpfx)order.out): Run test with
23766         $(test-program-prefix).
23767         ($(objpfx)order2.out): Likewise.
23768         ($(objpfx)tst-initorder.out): Likewise.
23769         ($(objpfx)tst-initorder2.out): Likewise.
23770         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
23771         $(test-program-cmd).
23772         ($(objpfx)tst-array1-static.out): Likewise.
23773         ($(objpfx)tst-array2.out): Likewise.
23774         ($(objpfx)tst-array3.out): Likewise.
23775         ($(objpfx)tst-array4.out): Likewise.
23776         ($(objpfx)tst-array5.out): Likewise.
23777         ($(objpfx)tst-array5-static.out): Likewise.
23778         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
23779         $(test-program-cmd).
23780         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
23781         $(run-program-prefix) with $(test-program-prefix).
23782         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
23783         (test_program_prefix): This.
23784         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
23785         $(run-program-prefix) with $(test-program-prefix).
23786         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
23787         (test_program_prefix): This.
23788         * iconvdata/tst-tables.sh: Likewise.
23789         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
23790         $(run-program-prefix) with $(test-program-prefix).
23791         ($(objpfx)tst-translit.out): Likewise.
23792         ($(objpfx)tst-gettext2.out): Likewise.
23793         ($(objpfx)tst-gettext4.out): Likewise.
23794         ($(objpfx)tst-gettext6.out): Likewise.
23795         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
23796         (test_program_prefix): This.
23797         * intl/tst-gettext2.sh: Likewise.
23798         * intl/tst-gettext4.sh  Likewise.
23799         * intl/tst-gettext6.sh: Likewise.
23800         * intl/tst-translit.sh: Likewise.
23801         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
23802         with $(test-program-cmd).
23803         * libio/Makefile ($(objpfx)test-freopen.out): Replace
23804         $(run-program-prefix) with $(test-program-prefix).
23805         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
23806         (test_program_prefix): This.
23807         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
23808         $(run-program-prefix) with $(test-program-prefix).
23809         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
23810         (test_program_prefix): This.
23811         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
23812         * posix/Makefile ($(objpfx)globtest.out): Replace
23813         $(run-via-rtld-prefix) and $(test-wrapper) with
23814         $(test-program-prefix) and $(test-via-rtld-prefix).
23815         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
23816         $(test-program-prefix).
23817         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
23818         $(host-test-program-cmd).
23819         (tst-spawn-ARGS): Likewise.
23820         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
23821         $(test-program-prefix).
23822         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
23823         (test_via_rtld_prefix): This.
23824         (test_wrapper): Renamed to ...
23825         (test_program_prefix): This.
23826         (run_program_prefix): Replaced by test_program_prefix.
23827         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
23828         (test_program_prefix): This.
23829         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
23830         with $(host-test-program-cmd).
23831         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
23832         $(run-program-prefix) with $(test-program-prefix).
23833         ($(objpfx)tst-printf.out): Likewise.
23834         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
23835         $(test-program-cmd).
23836         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
23837         (test_program_prefix): This.
23838         * stdio-common/tst-unbputc.sh: Likewise.
23839         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
23840         $(run-program-prefix) with $(test-program-prefix).
23841         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
23842         (test_program_prefix): This.
23843         * string/Makefile ($(objpfx)tst-svc.out):  Replace
23844         $(built-program-cmd) with $(test-program-cmd).
23845
23846 2013-01-11  Andreas Jaeger  <aj@suse.de>
23847
23848         [BZ #15003]
23849         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
23850         value. Sync with Linux 3.7.
23851
23852 2013-01-10  David S. Miller  <davem@davemloft.net>
23853
23854         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
23855         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23856         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23857
23858 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23859
23860         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
23861         never set.
23862         * configure: Regenerated.
23863
23864 2013-01-10  David S. Miller  <davem@davemloft.net>
23865
23866         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23867         sparc V9 rather than using V8 code.
23868         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23869         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23870
23871 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23872
23873         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
23874         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
23875         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
23876         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
23877         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
23878         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
23879         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
23880         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
23881         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
23882         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
23883         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
23884         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
23885         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
23886         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
23887         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
23888         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
23889         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
23890         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
23891         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
23892         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
23893         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
23894         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
23895         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
23896         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
23897         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
23898         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
23899         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
23900
23901 2013-01-10  David S. Miller  <davem@davemloft.net>
23902
23903         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23904
23905 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23906
23907         * posix/Makefile (tests-static): New variable.
23908         (tests): Add $(tests-static).
23909         (tst-exec-static-ARGS): New variable.
23910         (tst-spawn-static-ARGS): Likewise.
23911         * posix/tst-exec-static.c: New file.
23912         * posix/tst-spawn-static.c: Likewise.
23913         * posix/tst-exec.c: Support run directly.
23914         * posix/tst-spawn.c: Likewise.
23915
23916 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
23917
23918         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
23919         long.
23920         * math/bits/mathcalls.h (llrint): Likewise.
23921         (llround): Likewise.
23922         * stdlib/stdlib.h (struct drand48_data): Likewise.
23923         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
23924         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
23925         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
23926         Likewise.
23927         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
23928         Likewise.
23929         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
23930         (elf_greg_t): Likewise.
23931         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
23932         (__jmp_buf): Likewise.
23933         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
23934         definitions.
23935         (llrint): Likewise, for all definitions.
23936         (llrintl): Likewise.
23937
23938         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
23939         Remove [__GNUC__] condition.
23940         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
23941         condition to just [__USE_ISOC99].
23942         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
23943
23944 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23945
23946         [BZ #14200]
23947         * sysdeps/unix/sysv/linux/x86/bits/environments.h
23948         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
23949         defined.
23950         (_POSIX_V6_ILP32_OFF32): Likewise.
23951         (_XBS5_ILP32_OFF32): Likewise.
23952         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
23953         (__ILP32_OFFBIG_LDFLAGS): Likewise.
23954
23955 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23956
23957         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
23958
23959         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
23960         doubles __mpexp_twomm1.  Adjust usage.
23961         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
23962         Remove.
23963
23964 2013-01-10  Andreas Schwab  <schwab@suse.de>
23965
23966         [BZ #14964]
23967         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
23968         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
23969
23970 2013-01-09  David S. Miller  <davem@davemloft.net>
23971
23972         [BZ #15003]
23973         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
23974         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
23975         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
23976         (TCP_FASTOPEN): Define.
23977         (tcp_repair_opt): New structure.
23978         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
23979         enum values.
23980         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
23981         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
23982         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
23983         (tcp_cookie_transactions): New structure.
23984
23985 2013-01-09  Anton Blanchard  <anton@samba.org>
23986
23987         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
23988         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
23989         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
23990         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
23991
23992 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
23993
23994         * include/features.h (__USE_ANSI): Remove.
23995
23996 2013-01-09  Roland McGrath  <roland@hack.frob.com>
23997
23998         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
23999
24000         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
24001
24002 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
24003
24004         * sysdeps/s390/fpu/libm-test-ulps: Update.
24005
24006         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24007
24008         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
24009         (__acr): Likewise.
24010         (__cpy): Likewise.
24011         (norm): Likewise.
24012         (denorm): Likewise.
24013         (__mp_dbl): Likewise.
24014         (__dbl_mp): Likewise.
24015         (add_magnitudes): Likewise.
24016         (sub_magnitudes): Likewise.
24017         (__add): Likewise.
24018         (__sub): Likewise.
24019         (__mul): Likewise.
24020         (__inv): Likewise.
24021         (__dvd): Likewise.
24022         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
24023         (__acr): Likewise.
24024         (__cpy): Likewise.
24025         (norm): Likewise.
24026         (denorm): Likewise.
24027         (__mp_dbl): Likewise.
24028         (__dbl_mp): Likewise.
24029         (add_magnitudes): Likewise.
24030         (sub_magnitudes): Likewise.
24031         (__add): Likewise.
24032         (__sub): Likewise.
24033         (__mul): Likewise.
24034         (__inv): Likewise.
24035         (__dvd): Likewise.
24036         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
24037         (__acr): Likewise.
24038         (__cpy): Likewise.
24039         (norm): Likewise.
24040         (denorm): Likewise.
24041         (__mp_dbl): Likewise.
24042         (__dbl_mp): Likewise.
24043         (add_magnitudes): Likewise.
24044         (sub_magnitudes): Likewise.
24045         (__add): Likewise.
24046         (__sub): Likewise.
24047         (__mul): Likewise.
24048         (__inv): Likewise.
24049         (__dvd): Likewise.
24050
24051 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
24052
24053         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
24054         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
24055         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
24056         2 && __USE_EXTERN_INLINES]: Likewise.
24057
24058 2013-01-08  Andreas Jaeger  <aj@suse.de>
24059
24060         [BZ# 14985]
24061         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
24062         Remove.
24063         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
24064         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
24065
24066 2013-01-07  Anton Blanchard  <anton@samba.org>
24067
24068         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
24069         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
24070         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
24071         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
24072         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
24073         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
24074         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
24075         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
24076         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
24077         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
24078         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
24079         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
24080         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
24081         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
24082         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
24083         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
24084         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
24085         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
24086         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
24087         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
24088         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
24089         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
24090         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
24091         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
24092         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
24093         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
24094         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
24095         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
24096         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
24097         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
24098         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
24099         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
24100         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
24101         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
24102         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
24103         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
24104         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
24105         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
24106         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
24107         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
24108         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
24109         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24110         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
24111
24112 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
24113
24114         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
24115         (__MALLOC_PMT): Likewise.
24116         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
24117         [__GNUC__], only on [_LIBC].
24118         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
24119         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
24120         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
24121         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
24122         forward declaration.
24123         (realloc_hook_ini): Likewise.
24124         (memalign_hook_ini): Likewise.
24125         (__libc_memalign): Do not use __MALLOC_PMT in variable
24126         declaration.
24127         (__libc_valloc): Likewise.
24128         (__libc_pvalloc): Likewise.
24129         (__libc_calloc): Likewise.
24130         (__posix_memalign): Likewise.
24131
24132         [BZ #14996]
24133         * math/s_casinh.c: Include <float.h>.
24134         (__casinh): Do not do computation with squaring and square root
24135         for large arguments.
24136         * math/s_casinhf.c: Include <float.h>.
24137         (__casinhf): Do not do computation with squaring and square root
24138         for large arguments.
24139         * math/s_casinhl.c: Include <float.h>.
24140         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
24141         (__casinhl): Do not do computation with squaring and square root
24142         for large arguments.
24143         * math/libm-test.inc (casin_test): Add more tests.
24144         (casinh_test): Likewise.
24145         * sysdeps/i386/fpu/libm-test-ulps: Update.
24146         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24147
24148 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24149
24150         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
24151         (__x86_64_raw_data_cache_size): Likewise.
24152         (__x86_64_data_cache_size_half): Likewise.
24153         (__x86_64_raw_data_cache_size_half): Likewise.
24154         (__x86_64_shared_cache_size): Likewise.
24155         (__x86_64_raw_shared_cache_size): Likewise.
24156         (__x86_64_shared_cache_size_half): Likewise.
24157         (__x86_64_raw_shared_cache_size_half): Likewise.
24158         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
24159         to ...
24160         (__x86_data_cache_size): This.
24161         (__x86_64_raw_data_cache_size): Renamed to ...
24162         (__x86_raw_data_cache_size): This.
24163         (__x86_64_data_cache_size_half): Renamed to ...
24164         (__x86_data_cache_size_half): This.
24165         (__x86_64_raw_data_cache_size_half): Renamed to ...
24166         (__x86_raw_data_cache_size_half): This.
24167         (__x86_64_shared_cache_size): Renamed to ...
24168         (__x86_shared_cache_size): This.
24169         (__x86_64_raw_shared_cache_size): Renamed to ...
24170         (__x86_raw_shared_cache_size): This.
24171         (__x86_64_shared_cache_size_half): Renamed to ...
24172         (__x86_shared_cache_size_half): This.
24173         (__x86_64_raw_shared_cache_size_half): Renamed to ...
24174         (__x86_raw_shared_cache_size_half): This.
24175         * sysdeps/x86_64/memcpy.S: Updated.
24176         * sysdeps/x86_64/memset.S: Likewise.
24177         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24178         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24179         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24180
24181 2013-01-04  David S. Miller  <davem@davemloft.net>
24182
24183         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24184
24185 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
24186
24187         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
24188         1 to avoid redefinition warning.
24189         (__USE_GNU): Don't define.
24190         (init_signaling_nan): Protoize.
24191
24192         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24193
24194 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
24195
24196         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
24197         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
24198         (__cpymn): Likewise.
24199         (norm): Remove commented code.
24200         (denorm): Likewise.
24201         (__mp_dbl): Likewise.
24202         (__inv): Likewise.
24203         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
24204         (__cpymn): Likewise.
24205         (norm): Remove commented code.
24206         (denorm): Likewise.
24207         (__mp_dbl): Likewise.
24208         (__inv): Likewise.
24209
24210         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
24211         mp_no value for 1.0 and 2.0.
24212         (norm): Use RADIXI instead of radixi.d.
24213         (denorm): Likewise.
24214         (__mul): Use 0.0 instead of zero.d.
24215         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
24216         mp_no value for 1.0 and 2.0.
24217         (norm): Use RADIXI instead of radixi.d.
24218         (denorm): Likewise.
24219         (__mul): Use 0.0 instead of zero.d.
24220
24221 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
24222
24223         [BZ #14994]
24224         * math/s_casinh.c (__casinh): Reduce finite argument to first
24225         quadrant then set signs of results at the end.
24226         * math/s_casinhf.c (__casinhf): Likewise.
24227         * math/s_casinhl.c (__casinhl): Likewise.
24228         * math/libm-test.inc (casin_test): Add more tests.
24229         (casinh_test): Likewise.
24230         * sysdeps/i386/fpu/libm-test-ulps: Update.
24231         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24232
24233 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
24234
24235         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
24236
24237         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
24238
24239         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
24240         declarations.
24241         (denorm): Likewise.
24242         (__mp_dbl): Likewise.
24243         (__inv): Likewise.
24244
24245         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
24246         and adjust the header comment.
24247
24248         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
24249         variable name from declaration.
24250
24251 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24252
24253         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24254         Initialize COMMON_CPUID_INDEX_7 element.
24255         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
24256         (CPUID_RTM): Likewise.
24257         (HAS_RTM): Likewise.
24258         (COMMON_CPUID_INDEX_7): New enum.
24259
24260 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
24261
24262         [BZ #14981]
24263         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
24264         size is zero, record memory as freed.
24265
24266 2013-01-03  Andreas Jaeger  <aj@suse.de>
24267
24268         * po/ia.po: Add new Interlingua translation.
24269
24270 2012-01-03  Allan McRae  <allan@archlinux.org>
24271
24272         * locale/programs/localedef.c: Fix description of '--posix' flag.
24273
24274 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
24275
24276         * NEWS: Update dates in second copyright notice.
24277         * README: Update copyright dates in example.
24278         * manual/libc.texinfo: Update copyright dates.
24279         * scripts/test-installation.pl: Update copyright date in --version
24280         output.
24281
24282         * hurd/ctty-input.c: Fix copyright notice formatting.
24283         * hurd/ctty-output.c: Likewise.
24284         * hurd/dtable.c: Likewise.
24285         * hurd/hurd-raise.c: Likewise.
24286         * hurd/hurdprio.c: Likewise.
24287         * hurd/msgportdemux.c: Likewise.
24288         * misc/sys/file.h: Likewise.
24289         * misc/sys/ioctl.h: Likewise.
24290         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
24291         * sysdeps/mach/hurd/chdir.c: Likewise.
24292         * sysdeps/mach/hurd/fchdir.c: Likewise.
24293         * sysdeps/mach/hurd/rename.c: Likewise.
24294         * sysdeps/mach/hurd/rmdir.c: Likewise.
24295         * sysdeps/mach/hurd/seekdir.c: Likewise.
24296         * sysdeps/mach/hurd/setsid.c: Likewise.
24297         * sysdeps/posix/wait3.c: Likewise.
24298
24299         * All files with FSF copyright notices: Update copyright dates
24300         using scripts/update-copyrights.
24301         * intl/plural.c: Regenerated.
24302         * locale/programs/charmap-kw.h: Likewise.
24303         * locale/programs/locfile-kw.h: Likewise.
24304
24305 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
24306
24307         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
24308         four values.
24309
24310         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
24311         calculation loop and add branch prediction.
24312
24313         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
24314         check access beyond bounds of m1np.
24315
24316         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
24317         MPTWO.
24318         (__inv): Remove local variable MPTWO to use the global
24319         constant.
24320         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
24321         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
24322         variable MPTWO.
24323         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
24324         MP3HALFS static const.
24325
24326 2013-01-01  David S. Miller  <davem@davemloft.net>
24327
24328         * po/ca.po: Update from translation team.
24329
24330 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
24331
24332         * scripts/update-copyrights: New file.
24333         * Makeconfig: Reformat copyright notice.
24334         * ctype/ctype.h: Likewise.
24335         * debug/swprintf_chk.c: Likewise.
24336         * elf/dl-cache.c: Likewise.
24337         * elf/dl-debug.c: Likewise.
24338         * elf/dl-object.c: Likewise.
24339         * grp/initgroups.c: Likewise.
24340         * hurd/Makefile: Likewise.
24341         * hurd/hurd/signal.h: Likewise.
24342         * hurd/hurdfault.c: Likewise.
24343         * hurd/hurdioctl.c: Likewise.
24344         * hurd/hurdlookup.c: Likewise.
24345         * hurd/intr-msg.c: Likewise.
24346         * iconv/gconv_open.c: Likewise.
24347         * libio/swprintf.c: Likewise.
24348         * locale/lc-ctype.c: Likewise.
24349         * locale/nl_langinfo.c: Likewise.
24350         * mach/Machrules: Likewise.
24351         * mach/Makefile: Likewise.
24352         * malloc/obstack.h: Likewise.
24353         * manual/Makefile: Likewise.
24354         * manual/tsort.awk: Likewise.
24355         * misc/bits/stab.def: Likewise.
24356         * nis/nis_print_group_entry.c: Likewise.
24357         * nis/nis_table.c: Likewise.
24358         * nis/nss_compat/compat-pwd.c: Likewise.
24359         * nis/nss_compat/compat-spwd.c: Likewise.
24360         * po/Makefile: Likewise.
24361         * posix/fnmatch.c: Likewise.
24362         * posix/regex.h: Likewise.
24363         * resolv/Makefile: Likewise.
24364         * resolv/nss_dns/dns-network.c: Likewise.
24365         * resolv/res_hconf.c: Likewise.
24366         * scripts/gen-sorted.awk: Likewise.
24367         * soft-fp/soft-fp.h: Likewise.
24368         * stdio-common/printf.h: Likewise.
24369         * stdlib/monetary.h: Likewise.
24370         * stdlib/random.c: Likewise.
24371         * stdlib/random_r.c: Likewise.
24372         * sysdeps/generic/Makefile: Likewise.
24373         * sysdeps/gnu/Makefile: Likewise.
24374         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
24375         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24376         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24377         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24378         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24379         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24380         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24381         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24382         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24383         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24384         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
24385         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
24386         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
24387         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
24388         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
24389         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
24390         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
24391         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24392         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
24393         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24394         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
24395         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
24396         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
24397         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
24398         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
24399         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
24400         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
24401         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
24402         * sysdeps/mach/hurd/errnos.awk: Likewise.
24403         * sysdeps/mach/hurd/fork.c: Likewise.
24404         * sysdeps/mach/hurd/getcwd.c: Likewise.
24405         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
24406         * sysdeps/mach/hurd/mmap.c: Likewise.
24407         * sysdeps/mach/hurd/utimes.c: Likewise.
24408         * sysdeps/mach/hurd/xmknod.c: Likewise.
24409         * sysdeps/posix/profil.c: Likewise.
24410         * sysdeps/posix/readdir_r.c: Likewise.
24411         * sysdeps/powerpc/bits/mathdef.h: Likewise.
24412         * sysdeps/powerpc/bits/setjmp.h: Likewise.
24413         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
24414         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
24415         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
24416         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
24417         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
24418         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
24419         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
24420         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
24421         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
24422         * sysdeps/pthread/lio_listio.c: Likewise.
24423         * sysdeps/sparc/dl-procinfo.h: Likewise.
24424         * sysdeps/unix/i386/sysdep.S: Likewise.
24425         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
24426         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
24427         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
24428         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
24429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24430         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
24431         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
24432         * sysdeps/unix/sysv/linux/speed.c: Likewise.
24433         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
24434         * sysdeps/wordsize-32/divdi3.c: Likewise.
24435         * time/sys/time.h: Likewise.
24436         * wcsmbs/Makefile: Likewise.
24437
24438 2013-01-01  David S. Miller  <davem@davemloft.net>
24439
24440         * po/fr.po: Update from translation team.
24441
24442         * catgets/gencat.c: Update copyright year.
24443         * csu/version.c: Likewise.
24444         * debug/catchsegv.sh: Likewise.
24445         * debug/pcprofiledump.c: Likewise.
24446         * debug/xtrace.sh: Likewise.
24447         * elf/ldconfig.c: Likewise.
24448         * elf/ldd.bash.in: Likewise.
24449         * elf/pldd.c: Likewise.
24450         * elf/sotruss.ksh: Likewise.
24451         * elf/sprof.c: Likewise.
24452         * iconv/iconv_prog.c: Likewise.
24453         * iconv/iconvconfig.c: Likewise.
24454         * locale/programs/locale.c: Likewise.
24455         * locale/programs/localedef.c: Likewise.
24456         * login/programs/pt_chown.c: Likewise.
24457         * malloc/memusage.sh: Likewise.
24458         * malloc/memusagestat.c: Likewise.
24459         * malloc/mtrace.pl: Likewise.
24460         * nscd/nscd.c: Likewise.
24461         * nss/getent.c: Likewise.
24462         * nss/makedb.c: Likewise.
24463         * posix/getconf.c: Likewise.
24464
24465 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
24466
24467         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
24468         numbers.
24469
24470 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
24471
24472         * math/bits/mathcalls.h (modf): Use __nonnull.
24473
24474 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
24475
24476         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
24477         (split): Use macro CN instead of the bare value.
24478         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
24479         could be used.
24480         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
24481         instead of the bare value.
24482         (power1): Likewise.
24483
24484 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24485
24486         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
24487         __ATAN_TWOM.
24488         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
24489
24490         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
24491         their values.
24492         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
24493         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
24494         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
24495         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
24496
24497 2012-12-28  Andreas Jaeger  <aj@suse.de>
24498
24499         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
24500         values are from Linux 3.7.
24501
24502         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
24503         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
24504
24505 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24506
24507         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
24508         TRUE case.
24509
24510         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
24511         (norm): Likewise.
24512         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
24513         variables with preprocessor constants.
24514         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
24515         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
24516         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
24517
24518 2012-12-27  Bruno Haible  <bruno@clisp.org>
24519
24520         [BZ #14317]
24521         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
24522         only if needed.
24523
24524 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24525
24526         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
24527         and use variable directly.
24528         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
24529
24530         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
24531         MPONE.
24532         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
24533         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
24534         variable MPONE.
24535         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
24536         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24537         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
24538         include directive.  Remove local variable MPONE.
24539         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
24540         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
24541         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
24542
24543 2012-12-25  David S. Miller  <davem@davemloft.net>
24544
24545         * version.h (RELEASE): Set to "development".
24546         (VERSION): Set to "2.17.90".
24547         * NEWS: Add 2.18 section.
24548
24549 2012-12-21  David S. Miller  <davem@davemloft.net>
24550
24551         * po/hr.po: Update from translation team.
24552
24553 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24554
24555         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
24556
24557 2012-12-19  Steve Ellcey  <sellcey@mips.com>
24558
24559         * NEWS:  Mention new memcpy for MIPS.
24560
24561 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24562
24563         * manual/contrib.texi (Contributors): Spelling correction.
24564
24565 2012-12-15  David S. Miller  <davem@davemloft.net>
24566
24567         * po/ru.po: Update from translation team.
24568
24569 2012-12-13  David S. Miller  <davem@davemloft.net>
24570
24571         * NEWS: Mention IFUNC testsuite enhancements.
24572
24573         * po/pl.po: Update from translation team.
24574         * po/bg.po: Likewise.
24575
24576         * manual/contrib.texi (Contributors): Update entries for Hongjiu
24577         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
24578
24579 2012-12-11  David S. Miller  <davem@davemloft.net>
24580
24581         * po/sv.po: Update from translation team.
24582
24583         * po/vi.po: Update from translation team.
24584
24585         * po/cs.po: Update from translation team.
24586
24587         * po/de.po: Update from translation team.
24588         * po/eo.po: Likewise.
24589         * po/nl.po: Likewise.
24590
24591 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
24592
24593         [BZ #14246]
24594         * manual/argp.texi (Argp Helper Functions): Move node to follow
24595         Argp Parsing State.
24596
24597         [BZ #14872]
24598         * manual/conf.texi (Limits on File System Capacity): Mention if
24599         terminating null is included in the max size.
24600
24601 2012-12-10  Andreas Jaeger  <aj@suse.de>
24602
24603         * po/cs.po: Update from translation team.
24604
24605 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
24606
24607         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
24608         void pointer and cast to uintptr_t.
24609         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
24610         path.
24611         * sysdeps/s390/s390-64/memcpy.S: Likewise.
24612         * sysdeps/s390/s390-64/memset.S: Likewise.
24613
24614 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
24615
24616         [BZ #14833]
24617         * menual/message.texi (Message Translation): Fix typos.
24618         (Helper programs for gettext): Likewise.
24619
24620 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
24621
24622         [BZ #14898]
24623         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
24624         Change to -1.
24625
24626 2012-12-07  David S. Miller  <davem@davemloft.net>
24627
24628         * po/libc.pot: Update.
24629
24630 2012-12-07  Richard Henderson  <rth@redhat.com>
24631
24632         [BZ #10114]
24633         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
24634         normal/normal case to before the switch.
24635         (_FP_DIV): Likewise.
24636
24637 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
24638             Mike Frysinger  <vapier@gentoo.org>
24639
24640         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
24641         check for __NR_fadvise64_64.
24642
24643 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
24644
24645         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
24646         0, not just to plain "0" as a statement.
24647         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
24648         with cw.
24649
24650 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
24651
24652         * NEWS: Use sourceware.org in Bugzilla URL.
24653
24654 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
24655
24656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24657         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24658
24659         * stdio-common/tst-put-error.c (do_test): Add newline to the
24660         padded test to ensure flush.
24661
24662 2012-12-05  Jeff Law  <law@redhat.com>
24663
24664         * sunrpc/etc.rpc (fedfs_admin): Add entry.
24665
24666 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
24667
24668         * README: Don't refer to ports add-on as distributed separately.
24669         Mention AArch64 in list of systems supported in the ports add-on.
24670
24671         * LICENSES: Add more non-FSF copyright and license notices.
24672
24673         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
24674         ((unused)).
24675
24676         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
24677
24678         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
24679         10000 as width of padded output.
24680
24681 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24682
24683         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
24684
24685         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
24686         variable LX with __attribute__ ((unused)).
24687         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
24688         Likewise.
24689         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
24690         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24691         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
24692         with __attribute__ ((unused)).
24693
24694 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
24695
24696         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
24697
24698 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24699
24700         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
24701         (CFLAGS-nldbl-acos.c): New variable.
24702         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
24703         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
24704         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
24705         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
24706         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
24707         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
24708         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
24709         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
24710         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
24711         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
24712         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
24713         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
24714         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
24715         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
24716         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
24717         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
24718         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
24719         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
24720         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
24721         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
24722         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
24723         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
24724         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
24725         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
24726         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
24727         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
24728         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
24729         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
24730         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
24731         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
24732         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
24733         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
24734         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
24735         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
24736         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
24737         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
24738         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
24739         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
24740         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
24741         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
24742         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
24743         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
24744         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
24745         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
24746         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
24747         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
24748         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
24749         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
24750         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
24751         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
24752         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
24753         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
24754         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
24755         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
24756         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
24757         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
24758         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
24759         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
24760         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
24761         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
24762         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
24763         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
24764         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
24765         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
24766         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
24767         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
24768         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
24769         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
24770         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
24771         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
24772         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
24773         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
24774         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
24775         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
24776         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
24777         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
24778         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
24779         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
24780         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
24781         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
24782         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
24783         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
24784         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
24785         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
24786         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
24787         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
24788         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
24789         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
24790         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
24791         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
24792         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
24793         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
24794         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
24795         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
24796         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
24797         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
24798         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
24799
24800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24801         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24802
24803         [BZ #14914]
24804         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
24805         whole low double instead of just low 47 bits when splitting values
24806         into two parts.
24807
24808 2012-12-03  Allan McRae  <allan@archlinux.org>
24809
24810         * manual/stdio.texi (Predefined Printf Handlers): Remove
24811         @hsep and @vsep usage.
24812
24813 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
24814
24815         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
24816         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
24817
24818 2012-12-03  Jeff Law  <law@redhat.com>
24819
24820         * time/sys/time.h (settimeofday): Do not mark TV argument
24821         as __nonnull.
24822
24823 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
24824
24825         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
24826         when currently writing and seek to current position when not.
24827         * libio/Makefile (tests): Remove bug-fclose1.
24828         * libio/bug-fclose1.c: Delete.
24829
24830 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
24831
24832         * manual/arith.texi (feenableexcept): Fix typo.
24833         (fedisableexcept): Likewise.
24834
24835 2012-11-30  Roland McGrath  <roland@hack.frob.com>
24836
24837         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
24838         second, differently-typed declaration, rather than a cast.
24839
24840 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
24841
24842         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
24843         * include/rpc/svc.h: ... here.
24844
24845 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
24846
24847         [BZ #13013]
24848         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
24849         depending n and resplen2 to catch cases where answer
24850         equals answerp2.
24851
24852 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
24853
24854         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
24855         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
24856
24857 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
24858
24859         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
24860
24861 2012-11-29  Roland McGrath  <roland@hack.frob.com>
24862
24863         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
24864
24865 2012-11-28  Jeff Law  <law@redhat.com>
24866
24867         [BZ #13761]
24868         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
24869         dataset_temporary.  Track alloca usage into alloca_used.
24870         If dataset is large allocate and release it via malloc/free.
24871
24872 2012-06-04  Florian Weimer  <fweimer@redhat.com>
24873
24874         [BZ #14197]
24875         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
24876
24877 2012-11-28  David S. Miller  <davem@davemloft.net>
24878
24879         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24880
24881 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24882
24883         [BZ #14803]
24884         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
24885         of pi/2 rounded to nearest to 64 bits.
24886         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
24887         nearest to 64 bits.
24888         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
24889         bits.
24890
24891 2012-11-28  Jeff Law <law@redhat.com>
24892             Martin Osvald <mosvald@redhat.com>
24893
24894         [BZ #14889]
24895         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
24896         * sunrpc/svc.c: Include time.h.
24897         (__svc_accept_failed): New function.
24898         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
24899         any reason other than EINTR, call __svc_accept_failed.
24900         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
24901         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
24902
24903 2012-11-28  Andreas Schwab  <schwab@suse.de>
24904
24905         * scripts/abilist.awk: Also handle indirect functions in .opd
24906         section.
24907
24908 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24909
24910         [BZ #13881]
24911         * sysdeps/x86/fpu/powl_helper.c: New file.
24912         * sysdeps/x86/fpu/Makefile: Likewise.
24913         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
24914         (p3): New object.
24915         (__ieee754_powl): Use __powl_helper for finite arguments except
24916         integer exponents below 8.
24917         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
24918         (p3): New object.
24919         (__ieee754_powl): Use __powl_helper for finite arguments except
24920         integer exponents below 8.
24921         * math/libm-test.inc (pow_test): Add more tests and enable some
24922         previously disabled tests.
24923         * sysdeps/i386/fpu/libm-test-ulps: Update.
24924         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24925
24926 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24927             Carlos O'Donell  <carlos_odonell@mentor.com>
24928
24929         * nss/makedb.c (is_prime): Assert that input is odd and greater
24930         than 4.  Note that fact in a comment too.
24931         (next_prime): Add 4 to input.
24932
24933 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24934
24935         [BZ #11741]
24936         * libio/Makefile (tests): Add test case tst-fwrite-error.
24937         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
24938         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
24939         * libio/tst-fwrite-error.c: New test case.
24940
24941 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
24942
24943         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
24944         before casting to void *.
24945         * include/libc-internal.h (__pointer_type): New macro.
24946         (__integer_if_pointer_type_sub): Likewise.
24947         (__integer_if_pointer_type): Likewise.
24948         (cast_to_integer): Likewise.
24949         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
24950         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
24951         before casting to atomic64_t.
24952         (atomic_exchange_acq): Likewise.
24953         (__arch_exchange_and_add_body): Likewise.
24954         (__arch_add_body): Likewise.
24955         (atomic_add_negative): Likewise.
24956         (atomic_add_zero): Likewise.
24957
24958 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
24959
24960         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
24961         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
24962         (add_fdes): Likewise.
24963         (linear_search_fdes): Likewise.
24964         (binary_search_unencoded_fdes): Likewise.
24965
24966 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
24967
24968         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
24969
24970 2012-11-24  Adam Conrad  <adconrad@0c3.net>
24971
24972         * configure.in: Autodetect C++ header directories.
24973         * configure: Regenerated.
24974
24975 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
24976
24977         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
24978
24979 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
24980
24981         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24982
24983 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
24984
24985         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
24986         LDBL_MANT_DIG == 106]: Disable some tests.
24987         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24988         Likewise.
24989         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24990         Likewise.
24991
24992         [BZ #14871]
24993         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
24994         input for small inputs.  Return +/- pi/2 for large inputs.
24995         * math/libm-test.inc (atan_test): Add more tests.
24996
24997         * sysdeps/generic/unwind-dw2-fde-glibc.c
24998         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
24999         __attribute__ ((unused)).
25000
25001         [BZ #14645]
25002         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
25003         x * y if x and y are nonzero and z is zero.
25004
25005         [BZ #14811]
25006         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
25007         nonzero exponents with absolute value below 0x1p-117 to +/-
25008         0x1p-117.
25009
25010         [BZ #14869]
25011         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
25012         up arguments below 2**-450, not just those below 2**-500.
25013         * math/libm-test.inc (hypot_test): Add another test.
25014
25015         [BZ #14868]
25016         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
25017         Return a+b for ratio over 2**120, not 2**60.
25018         * math/libm-test.inc (hypot_test): Add another test.
25019
25020         * math/libm-test.inc (clog_test): Use
25021         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
25022         (clog10_test): Likewise.
25023
25024         [BZ #6778]
25025         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
25026
25027 2012-11-22  Andreas Schwab  <schwab@suse.de>
25028
25029         * sysdeps/i386/fpu/libm-test-ulps: Update.
25030
25031 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
25032
25033         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
25034         printf output with newline.
25035
25036 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
25037
25038         [BZ #14865]
25039         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
25040         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
25041         -z nodlopen, -z initfirst and -z execstack support.
25042         * configure: Regenerated.
25043
25044         * elf/elf.h (DF_1_NODIRECT): New macro.
25045         (DF_1_IGNMULDEF): Likewise.
25046         (DF_1_NOKSYMS): Likewise.
25047         (DF_1_NOHDR): Likewise.
25048         (DF_1_EDITED): Likewise.
25049         (DF_1_NORELOC): Likewise.
25050         (DF_1_SYMINTPOSE): Likewise.
25051         (DF_1_GLOBAUDIT): Likewise.
25052         (DF_1_SINGLETON): Likewise.
25053         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
25054         DT_1_SUPPORTED_MASK bits.
25055         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
25056
25057 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
25058
25059         * sysdeps/unix/make-syscalls.sh: Document prefixes.
25060
25061 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
25062
25063         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
25064         macro.
25065
25066         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
25067         (sendmmsg): Move declarations...
25068         * socket/sys/socket.h: ... here.
25069         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
25070         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
25071         include it from...
25072         * socket/recvmmsg.c: ... this new file.
25073         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
25074         (sendmmsg): Rename to __sendmmsg, create weak alias and make
25075         definition of __sendmmsg hidden.
25076         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
25077         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
25078         Move ENOSYS stub into and include it from...
25079         * socket/sendmmsg.c: ... this new file.
25080         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
25081         (sysdep_routines): Move recvmmsg and sendmmsg...
25082         * socket/Makefile (routines): ... here.
25083         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
25084         (GLIBC_PRIVATE): Add __sendmmsg.
25085         * include/sys/socket.h (__sendmmsg): Add declarations.
25086         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
25087         sendmmsg.
25088
25089 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
25090
25091         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
25092         variable I1 with __attribute__ ((unused)).
25093         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
25094
25095 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
25096
25097         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
25098         DUMMY variables with __attribute__ ((unused)).
25099
25100         * bits/byteswap.h: Include <bits/types.h>.
25101         (__bswap_64): Use __uint64_t instead of unsigned long long int.
25102
25103 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
25104
25105         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
25106         string_t.  Do not manually set errno.
25107         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
25108         length with __strnlen.  Make sure to both set errno and return it on
25109         failure.
25110
25111 2012-11-19  David S. Miller  <davem@davemloft.net>
25112
25113         With help from Joseph Myers.
25114         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
25115         very large arguments properly.
25116         * math/libm-test.inc (atan_test): New tests.
25117         (atan2_test): New tests.
25118         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25119         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25120
25121 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
25122
25123         [BZ #14856]
25124         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
25125         Define to 3.
25126
25127         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
25128         [POSIX] (EADDRNOTAVAIL): Likewise.
25129         [POSIX] (EAFNOSUPPORT): Likewise.
25130         [POSIX] (EALREADY): Likewise.
25131         [POSIX] (ECONNABORTED): Likewise.
25132         [POSIX] (ECONNREFUSED): Likewise.
25133         [POSIX] (ECONNRESET): Likewise.
25134         [POSIX] (EDESTADDRREQ): Likewise.
25135         [POSIX] (EDQUOT): Likewise.
25136         [POSIX] (EHOSTUNREACH): Likewise.
25137         [POSIX] (EIDRM): Likewise.
25138         [POSIX] (EISCONN): Likewise.
25139         [POSIX] (ELOOP): Likewise.
25140         [POSIX] (EMULTIHOP): Likewise.
25141         [POSIX] (ENETDOWN): Likewise.
25142         [POSIX] (ENETUNREACH): Likewise.
25143         [POSIX] (ENOBUFS): Likewise.
25144         [POSIX] (ENODATA): Likewise.
25145         [POSIX] (ENOLINK): Likewise.
25146         [POSIX] (ENOMSG): Likewise.
25147         [POSIX] (ENOPROTOOPT): Likewise.
25148         [POSIX] (ENOSR): Likewise.
25149         [POSIX] (ENOSTR): Likewise.
25150         [POSIX] (ENOTCONN): Likewise.
25151         [POSIX] (ENOTSOCK): Likewise.
25152         [POSIX] (EOPNOTSUPP): Likewise.
25153         [POSIX] (EOVERFLOW): Likewise.
25154         [POSIX] (EPROTO): Likewise.
25155         [POSIX] (EPROTONOSUPPORT): Likewise.
25156         [POSIX] (EPROTOTYPE): Likewise.
25157         [POSIX] (ESTALE): Likewise.
25158         [POSIX] (ETIME): Likewise.
25159         [POSIX] (ETXTBSY): Likewise.
25160         [POSIX] (EWOULDBLOCK): Likewise.
25161         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
25162         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
25163         [POSIX] (SEEK_CUR): Likewise.
25164         [POSIX] (SEEK_END): Likewise.
25165         [POSIX || UNIX98] (mode_t): Do not require.
25166         [POSIX] (off_t): Likewise.
25167         [POSIX] (pid_t): Likewise.
25168         [POSIX] (sys/stat.h): Do not allow header.
25169         [POSIX] (unistd.h): Likewise.
25170         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
25171         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
25172         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
25173         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
25174         require.
25175         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
25176         sigevent): Specify elements.
25177         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
25178         entry.
25179         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
25180         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
25181
25182         * conform/data/cpio.h-data [POSIX]: Disable whole file.
25183         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
25184         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
25185         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
25186         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
25187         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
25188         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
25189         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
25190         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
25191         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
25192         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
25193         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
25194         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
25195         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
25196         Likewise.
25197         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
25198         Likewise.
25199         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
25200         Likewise.
25201         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
25202         Likewise.
25203         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
25204         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
25205         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
25206         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
25207         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
25208         Specify lower bound on value.
25209         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
25210         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
25211         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
25212         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
25213         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
25214         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
25215         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
25216         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
25217         value.
25218         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
25219         as optional.
25220         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
25221         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
25222         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
25223         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
25224         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
25225         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
25226         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
25227         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
25228         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
25229         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
25230         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
25231         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
25232         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
25233         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
25234         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
25235         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
25236         entry.
25237         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
25238         optional.
25239         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
25240         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
25241         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
25242         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
25243         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
25244         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
25245         Likewise.
25246         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
25247         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
25248         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
25249         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
25250         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
25251         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
25252         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
25253         as optional.
25254         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
25255         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
25256         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
25257         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
25258         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
25259         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
25260         specify as optional.
25261         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
25262         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
25263         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
25264         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
25265         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
25266         [XPG3] (NL_LANGMAX): Likewise.
25267         [POSIX || XPG3] (NL_MSGMAX): Likewise.
25268         [POSIX || XPG3] (NL_NMAX): Likewise.
25269         [POSIX || XPG3] (NL_SETMAX): Likewise.
25270         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
25271         [XPG3] (NZERO): Likewise.
25272         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
25273         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
25274         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
25275         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
25276         (REG_ERANGE): Expect.
25277         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
25278         optional-constant.
25279         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
25280         Use (void) in prototype.
25281         [POSIX] (*_t): Allow.
25282         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
25283         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
25284         (WRDE_BADVAL): Expect.
25285
25286         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
25287         expect.
25288         [XPG3 || XPG4] (O_RSYNC): Likewise.
25289         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
25290         Likewise.
25291         [XPG3 || XPG4] (pthread_sigmask): Likewise.
25292         [XPG3 || XPG4] (sigqueue): Likewise.
25293         [XPG3 || XPG4] (sigtimedwait): Likewise.
25294         [XPG3 || XPG4] (sigwaitinfo): Likewise.
25295         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
25296         [XPG3 || XPG4] (vsnprintf): Likewise.
25297         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
25298         Likewise.
25299         [XPG3 || XPG4] (blksize_t): Likewise.
25300         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
25301         Likewise.
25302         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
25303         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
25304         [XPG3 || XPG4] (struct itimerspec): Likewise.
25305         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
25306         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
25307         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
25308         [XPG3 || XPG4] (clockid_t): Likewise.
25309         [XPG3 || XPG4] (timer_t): Likewise.
25310         [XPG3 || XPG4] (clock_getres): Likewise.
25311         [XPG3 || XPG4] (clock_gettime): Likewise.
25312         [XPG3 || XPG4] (clock_settime): Likewise.
25313         [XPG3 || XPG4] (nanosleep): Likewise.
25314         [XPG3 || XPG4] (timer_create): Likewise.
25315         [XPG3 || XPG4] (timer_delete): Likewise.
25316         [XPG3 || XPG4] (timer_gettime): Likewise.
25317         [XPG3 || XPG4] (timer_getoverrun): Likewise.
25318         [XPG3 || XPG4] (timer_settime): Likewise.
25319         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
25320         [XPG3 || XPG4] (getlogin_r): Likewise.
25321         [XPG3 || XPG4] (pread): Likewise.
25322         [XPG3 || XPG4] (pthread_atfork): Likewise.
25323         [XPG3 || XPG4] (pwrite): Likewise.
25324
25325         [BZ #14835]
25326         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
25327         <bits/siginfo.h>.
25328
25329 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
25330
25331         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
25332         finalizing MALLSTREAM.
25333
25334         * sysdeps/mach/hurd/syncfs.c: New file.
25335
25336 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
25337
25338         [BZ #14719]
25339         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
25340         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
25341         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
25342         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
25343         (_nss_dns_gethostbyname4_r): Likewise.
25344         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
25345         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
25346
25347 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
25348
25349         [BZ #13763]
25350         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
25351
25352 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
25353
25354         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
25355         * elf/cache.c (print_entry): Print ",AArch64" for
25356         FLAG_AARCH64_LIB64
25357
25358         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
25359         * elf/cache.c (print_entry): Print ",hard-float" for
25360         FLAG_ARM_LIBHF.
25361
25362 2012-11-18  David S. Miller  <davem@davemloft.net>
25363
25364         With help from Joseph Myers.
25365         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
25366         cutoff to 2**-13.
25367         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
25368         cutoff to 2**-25.
25369         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
25370         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
25371         small.
25372         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
25373         * math/libm-test.inc (y0_test): New tests.
25374         (y1_test): New tests.
25375         * sysdeps/i386/fpu/libm-test-ulps: Update.
25376         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25377         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25378
25379 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
25380
25381         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
25382         64-bit targets.
25383         * configure: Regenerated.
25384
25385 2012-11-17  David S. Miller  <davem@davemloft.net>
25386
25387         [BZ #14811]
25388         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
25389         nonzero exponents with absolute value below 0x1p-128 to +/-
25390         0x1p-128.
25391
25392 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
25393
25394         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
25395
25396         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
25397
25398         * posix/getconf-speclist.c: New file.
25399         * posix/posix-envs.def: Likewise.
25400         * posix/confstr.c (START_ENV_GROUP): New macro.
25401         (END_ENV_GROUP): Likewise.
25402         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
25403         (KNOWN_PRESENT_ENV_STRING): Likewise.
25404         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
25405         (UNKNOWN_ENVIRONMENT): Likewise.
25406         (confstr): Include posix-envs.def instead of handling
25407         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
25408         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
25409         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
25410         (END_ENV_GROUP): Likewise.
25411         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
25412         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
25413         (UNKNOWN_ENVIRONMENT): Likewise.
25414         (__sysconf): Include posix-envs.def instead of handling associated
25415         cases directly here.
25416         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
25417         preprocessing getconf-speclist.c rather than running getconf or
25418         generating empty file.
25419
25420 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
25421
25422         * scripts/check-local-headers.sh: Ignore 'mach' headers.
25423
25424 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
25425
25426         [BZ #14672]
25427         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
25428
25429 2012-11-16  David S. Miller  <davem@davemloft.net>
25430
25431         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
25432         smaller than LDBL_EPSILON/2.0L, just return xm1.
25433
25434 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
25435
25436         * elf/tst-array1.c (init): Set constructor priority to 1000.
25437         (fini): Set destructor priority to 1000.
25438         * elf/tst-array2dep.c: Likewise.
25439
25440 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
25441
25442         [BZ #11741]
25443         * libio/fileops.c (_IO_new_file_write): Correctly return error.
25444         (_IO_new_file_xsputn): Also return EOF if none of the input
25445         data was written when overflow failed.
25446         * libio/iopadn.c (_IO_padn): Likewise.
25447         * libio/iowpadn.c (_IO_wpadn): Likewise.
25448         * stdio-common/tst-put-error.c: Add copyright notice.
25449         (do_test): Add case for printing padded string.
25450         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
25451         _IO_padn returned error.
25452         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
25453         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
25454         return EOF.
25455
25456 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
25457
25458         * libio/libioP.h: Add comment note that the references to C++
25459         bits are now obsolete.
25460
25461 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25462
25463         * math/libm-test.inc (check_complex): Use asprintf.
25464
25465 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
25466
25467         * debug/pcprofiledump.c (print_version): Update copyright year.
25468         * malloc/memusagestat.c (print_version): Likewise.
25469
25470 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
25471
25472         [BZ #14831]
25473         * elf/Makefile (tests): Add tst-audit8.
25474         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
25475         ($(objpfx)tst-audit8.out): New target.
25476         (tst-audit8-ENV): New variable.
25477         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
25478         audit if l_reloc_result is NULL.
25479         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
25480         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
25481         * elf/tst-audit8.c: New file.
25482
25483 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25484
25485         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
25486         * misc/Makefile (CFLAGS-select.c): Define.
25487         * posix/Makefile (CFLAGS-pause.c): Define.
25488
25489 2012-11-13  David S. Miller  <davem@davemloft.net>
25490
25491         * crypt/Makefile: Move test targets after toplevel Rules
25492         inclusion.  Grab any necessary sysdep routines when linking.
25493         * crypt/md5.c (md5_process_block): Remove define, we will always
25494         name it __md5_process_block.
25495         (md5_finish_ctx): Update md5_process_block call.
25496         (md5_stream): Likewise.
25497         (md5_process_bytes): Likewise.
25498         (md5_process_block): Rename to __md5_process_block and move to ...
25499         * crypt/md5-block.c: ... here.
25500         * crypt/sha256.c (sha256_process_block): Move to ...
25501         * crypt/sha256-block.c: ... here.
25502         * crypt/sha512.c (sha512_process_block): Move to ...
25503         * crypt/sha512-block.c: ... here.
25504         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
25505         path.
25506         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
25507         * sysdeps/sparc/sparc64/multiarch/Makefile
25508         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
25509         crypt subdir.
25510         (localedef-aux): Add md5 crypto assembler when in locale subdir.
25511         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
25512         multiarch changes.
25513         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
25514         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
25515         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
25516         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
25517         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
25518         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
25519         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
25520         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
25521         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
25522         file.
25523         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
25524         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
25525         file.
25526         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
25527
25528 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
25529
25530         * timezone/tzselect.ksh: Update from tzcode git revision
25531         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
25532         * timezone/zdump.c: Likewise.
25533         * timezone/zic.c: Likewise.
25534         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
25535         in TZVERSION setting, not $(PKGVERSION).
25536         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
25537         REPORT_BUGS_TO settings.
25538
25539         [BZ #14838]
25540         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
25541         macro.
25542
25543 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25544
25545         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
25546         detection to immediately after _FP_ROUND().
25547         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
25548         bits are 0.
25549
25550 2012-11-11  David S. Miller  <davem@davemloft.net>
25551
25552         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
25553         inttypes.h
25554         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
25555         __close rather than their public counterparts.
25556
25557 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
25558
25559         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
25560         file.
25561         [UNIX98] (sem_timedwait): Do not expect.
25562         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
25563         [XPG4 || UNIX98] (sockatmark): Do not expect.
25564         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
25565         (clock_getcpuclockid): Do not expect.
25566         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
25567         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
25568         Do not expect.
25569         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
25570         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
25571         [UNIX98] (vwscanf): Likewise.
25572         [UNIX98] (vswscanf): Likewise.
25573
25574 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
25575
25576         * timezone/version.h: Remove file.
25577         * timezone/README: Do not refer to version.h.
25578         * timezone/Makefile ($(objpfx)zic.o): New dependency on
25579         $(objpfx)version.h.
25580         ($(objpfx)zdump.o): Likewise.
25581         ($(objpfx)version.h): New target.
25582
25583         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
25584         2012i.
25585         * timezone/README: Don't mention modification to tzselect.ksh.
25586         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
25587         work on unmodified tzselect.ksh.  Substitute version numbers in
25588         tzselect.ksh.
25589
25590         * Makefile (format-me): Remove.
25591         (INSTALL): Adjust indentation.  Use commands directly instead of
25592         using $(format-me).
25593
25594         * aclocal.m4 (ACX_PKGVERSION): New macro.
25595         (ACX_BUGURL): Likewise.
25596         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
25597         (PKGVERSION): New AC_DEFINE_UNQUOTED.
25598         (REPORT_BUGS_TO): Likewise.
25599         * configure: Regenerated.
25600         * config.h.in (PKGVERSION): New macro.
25601         (REPORT_BUGS_TO): Likewise.
25602         * config.make.in (PKGVERSION): New variable.
25603         (PKGVERSION_TEXI): Likewise.
25604         (REPORT_BUGS_TO): Likewise.
25605         (REPORT_BUGS_TEXI): Likewise.
25606         * Makefile (format-me): Use -I$(common-objpfx)manual.
25607         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
25608         ($(common-objpfx)manual/%): New target.
25609         (manual/%): Remove target.
25610         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
25611         (print_version): Use PKGVERSION.
25612         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
25613         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
25614         and REPORT_BUGS_TO.
25615         ($(objpfx)xtrace): Likewise.
25616         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
25617         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
25618         (print_version): Use PKGVERSION.
25619         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
25620         (do_version): Use PKGVERSION.
25621         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
25622         REPORT_BUGS_TO.
25623         (common-ldd-rewrite): Likewise.
25624         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
25625         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
25626         (print_version): Use PKGVERSION.
25627         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
25628         * elf/pldd.c (argp_program_bug_address): Remove variable.
25629         (more_help): New function.
25630         (argp): Use more_help.
25631         (print_version): Use PKGVERSION.
25632         * elf/sln.c (main): Use PKGVERSION.
25633         (usage): Use REPORT_BUGS_TO.
25634         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
25635         (top level): Use PKGVERSION.
25636         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
25637         (print_version): Use PKGVERSION.
25638         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
25639         (print_version): Use PKGVERSION.
25640         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
25641         (print_version): Use PKGVERSION.
25642         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
25643         (print_version): Use PKGVERSION.
25644         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
25645         (print_version): Use PKGVERSION.
25646         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
25647         (print_version): Use PKGVERSION.
25648         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
25649         and BUGURL.
25650         ($(objpfx)memusage): Likewise.
25651         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
25652         (do_version): Use PKGVERSION.
25653         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
25654         (print_version): Use PKGVERSION.
25655         * malloc/mtrace.pl ($PACKAGE): Remove variable.
25656         ($PKGVERSION): New variable.
25657         ($REPORT_BUGS_TO): Likewise.
25658         (usage): Use $REPORT_BUGS_TO.
25659         (top level): Use $PKGVERSION.
25660         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
25661         ($(objpfx)pkgvers.texi): New rule.
25662         ($(objpfx)stamp-pkgvers): Likewise.
25663         * manual/install.texi: Include pkgvers.texi.
25664         (--with-pkgversion): Document new configure option.
25665         (--with-bugurl): Likewise.
25666         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
25667         than necessarily for this particular distribution.  Use
25668         REPORT_BUGS_TO for where to report bugs.
25669         * INSTALL: Regenerated.
25670         * manual/libc.texinfo: Include pkgvers.texi.
25671         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
25672         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
25673         (print_version): Use PKGVERSION.
25674         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
25675         (print_version): Use PKGVERSION.
25676         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
25677         (print_version): Use PKGVERSION.
25678         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
25679         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
25680         macro.
25681         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
25682         (print_version): Use PKGVERSION.
25683         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
25684         (print_version): Use PKGVERSION.
25685         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
25686         and PKGVERSION.
25687
25688         * timezone/checktab.awk: Update from tzcode 2012i.
25689         * timezone/ialloc.c: Likewise.
25690         * timezone/private.h: Likewise.
25691         * timezone/scheck.c: Likewise.
25692         * timezone/tzfile.h: Likewise.
25693         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
25694         (TZVERSION): Hardcode tzcode version number.
25695         * timezone/zdump.c: Update from tzcode 2012i.
25696         * timezone/zic.c: Likewise.
25697         * timezone/version.h: New file.
25698         * timezone/README: Describe version.h.  Update upstream location.
25699
25700         [BZ #14824]
25701         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
25702         (mktemp): Enable declaration.
25703         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
25704         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
25705         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
25706         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
25707         Likewise.
25708         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
25709         Likewise.
25710         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
25711         Likewise.
25712         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
25713         Likewise.
25714         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
25715         Likewise.
25716         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
25717         Likewise.
25718
25719         [BZ #14821]
25720         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
25721         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
25722         for copies of such integer values.
25723         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
25724         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
25725
25726 2012-11-09  Andreas Jaeger  <aj@suse.de>
25727
25728         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
25729         definitions and declarations that are provided by
25730         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
25731
25732 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25733
25734         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
25735         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
25736         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
25737         definition.
25738
25739 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25740
25741         * elf/elf.h: Update comment before AArch64 relocations.
25742
25743 2012-11-07  David S. Miller  <davem@davemloft.net>
25744
25745         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
25746         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
25747         (__start_context): Declare.
25748         (__makecontext_ret): Delete.
25749         (__makecontext): Hook up __start_context instead of
25750         __makecontext_ret.
25751         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
25752         (sysdep_routines): Add __start_context when in stdlib.
25753
25754 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25755
25756         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
25757         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
25758         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
25759         hardcoded "nm".
25760         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
25761         (READELF): New variable.  Use it instead of hardcoded "readelf".
25762
25763 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
25764
25765         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
25766         * sysdeps/x86/Makefile: Here.
25767         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
25768         * sysdeps/x86/tst-xmmymm.sh: This.
25769
25770 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25771
25772         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
25773         expectations.
25774         [UNIX98] (pthread_barrier_t): Do not expect.
25775         [UNIX98] (pthread_barrierattr_t): Likewise.
25776         [UNIX98] (pthread_spinlock_t): Likewise.
25777         [UNIX98] (pthread_barrier_destroy): Likewise.
25778         [UNIX98] (pthread_barrier_init): Likewise.
25779         [UNIX98] (pthread_barrier_wait): Likewise.
25780         [UNIX98] (pthread_barrierattr_destroy): Likewise.
25781         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
25782         [UNIX98] (pthread_barrierattr_init): Likewise.
25783         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
25784         [UNIX98] (pthread_getcpuclockid): Likewise.
25785         [UNIX98] (pthread_mutex_timedlock): Likewise.
25786         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
25787         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
25788         [UNIX98] (pthread_sigmask): Likewise.
25789         [UNIX98] (pthread_spin_destroy): Likewise.
25790         [UNIX98] (pthread_spin_init): Likewise.
25791         [UNIX98] (pthread_spin_lock): Likewise.
25792         [UNIX98] (pthread_spin_trylock): Likewise.
25793         [UNIX98] (pthread_spin_unlock): Likewise.
25794         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
25795         Do not expect.
25796         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
25797         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
25798         [XPG3 || XPG4] (pthread_cond_t): Likewise.
25799         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
25800         [XPG3 || XPG4] (pthread_key_t): Likewise.
25801         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
25802         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
25803         [XPG3 || XPG4] (pthread_once_t): Likewise.
25804         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
25805         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
25806         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
25807         [XPG3 || XPG4] (pthread_t): Likewise.
25808
25809         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
25810         not expect.
25811         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
25812
25813         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
25814         Change function return type to int.
25815
25816         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
25817         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
25818         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
25819         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
25820         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
25821         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
25822         [!POSIX] (posix_madvise): Likewise.
25823         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
25824         && !UNIX98].
25825         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
25826         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
25827         (mode_t): Likewise.
25828         (posix_mem_offset): Likewise.
25829         (posix_typed_mem_get_info): Likewise.
25830         (posix_typed_mem_open): Likewise.
25831
25832         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
25833         Change condition to [XOPEN2K8].
25834
25835         * conform/conformtest.pl: Preprocess allow-header data with -x c
25836         instead of from stdin.
25837         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
25838         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
25839         [C99-based standards] (cerfc): Likewise.
25840         [C99-based standards] (cexp2): Likewise.
25841         [C99-based standards] (cexpm1): Likewise.
25842         [C99-based standards] (clog10): Likewise.
25843         [C99-based standards] (clog1p): Likewise.
25844         [C99-based standards] (clog2): Likewise.
25845         [C99-based standards] (clgamma): Likewise.
25846         [C99-based standards] (ctgamma): Likewise.
25847         [C99-based standards] (cerff): Likewise.
25848         [C99-based standards] (cerfcf): Likewise.
25849         [C99-based standards] (cexp2f): Likewise.
25850         [C99-based standards] (cexpm1f): Likewise.
25851         [C99-based standards] (clog10f): Likewise.
25852         [C99-based standards] (clog1pf): Likewise.
25853         [C99-based standards] (clog2f): Likewise.
25854         [C99-based standards] (clgammaf): Likewise.
25855         [C99-based standards] (ctgammaf): Likewise.
25856         [C99-based standards] (cerfl): Likewise.
25857         [C99-based standards] (cerfcl): Likewise.
25858         [C99-based standards] (cexp2l): Likewise.
25859         [C99-based standards] (cexpm1l): Likewise.
25860         [C99-based standards] (clog10l): Likewise.
25861         [C99-based standards] (clog1pl): Likewise.
25862         [C99-based standards] (clog2l): Likewise.
25863         [C99-based standards] (clgammal): Likewise.
25864         [C99-based standards] (ctgammal): Likewise.
25865         * conform/data/inttypes.h-data [C99-based standards]: Include
25866         stdint.h-data.  Remove all expectations for stdint.h contents.
25867         [C99-based standards] (PRI*): Do not allow.
25868         [C99-based standards] (SCN*): Likewise.
25869         [C99-based standards] (*_t): Likewise.
25870         [C99-based-standards] (PRId8): Expect macro.
25871         [C99-based-standards] (PRIi8): Likewise.
25872         [C99-based-standards] (PRIo8): Likewise.
25873         [C99-based-standards] (PRIu8): Likewise.
25874         [C99-based-standards] (PRIx8): Likewise.
25875         [C99-based-standards] (PRIX8): Likewise.
25876         [C99-based-standards] (SCNd8): Likewise.
25877         [C99-based-standards] (SCNi8): Likewise.
25878         [C99-based-standards] (SCNo8): Likewise.
25879         [C99-based-standards] (SCNu8): Likewise.
25880         [C99-based-standards] (SCNx8): Likewise.
25881         [C99-based-standards] (PRIdLEAST8): Likewise.
25882         [C99-based-standards] (PRIiLEAST8): Likewise.
25883         [C99-based-standards] (PRIoLEAST8): Likewise.
25884         [C99-based-standards] (PRIuLEAST8): Likewise.
25885         [C99-based-standards] (PRIxLEAST8): Likewise.
25886         [C99-based-standards] (PRIXLEAST8): Likewise.
25887         [C99-based-standards] (SCNdLEAST8): Likewise.
25888         [C99-based-standards] (SCNiLEAST8): Likewise.
25889         [C99-based-standards] (SCNoLEAST8): Likewise.
25890         [C99-based-standards] (SCNuLEAST8): Likewise.
25891         [C99-based-standards] (SCNxLEAST8): Likewise.
25892         [C99-based-standards] (PRIdFAST8): Likewise.
25893         [C99-based-standards] (PRIiFAST8): Likewise.
25894         [C99-based-standards] (PRIoFAST8): Likewise.
25895         [C99-based-standards] (PRIuFAST8): Likewise.
25896         [C99-based-standards] (PRIxFAST8): Likewise.
25897         [C99-based-standards] (PRIXFAST8): Likewise.
25898         [C99-based-standards] (SCNdFAST8): Likewise.
25899         [C99-based-standards] (SCNiFAST8): Likewise.
25900         [C99-based-standards] (SCNoFAST8): Likewise.
25901         [C99-based-standards] (SCNuFAST8): Likewise.
25902         [C99-based-standards] (SCNxFAST8): Likewise.
25903         [C99-based-standards] (PRId16): Likewise.
25904         [C99-based-standards] (PRIi16): Likewise.
25905         [C99-based-standards] (PRIo16): Likewise.
25906         [C99-based-standards] (PRIu16): Likewise.
25907         [C99-based-standards] (PRIx16): Likewise.
25908         [C99-based-standards] (PRIX16): Likewise.
25909         [C99-based-standards] (SCNd16): Likewise.
25910         [C99-based-standards] (SCNi16): Likewise.
25911         [C99-based-standards] (SCNo16): Likewise.
25912         [C99-based-standards] (SCNu16): Likewise.
25913         [C99-based-standards] (SCNx16): Likewise.
25914         [C99-based-standards] (PRIdLEAST16): Likewise.
25915         [C99-based-standards] (PRIiLEAST16): Likewise.
25916         [C99-based-standards] (PRIoLEAST16): Likewise.
25917         [C99-based-standards] (PRIuLEAST16): Likewise.
25918         [C99-based-standards] (PRIxLEAST16): Likewise.
25919         [C99-based-standards] (PRIXLEAST16): Likewise.
25920         [C99-based-standards] (SCNdLEAST16): Likewise.
25921         [C99-based-standards] (SCNiLEAST16): Likewise.
25922         [C99-based-standards] (SCNoLEAST16): Likewise.
25923         [C99-based-standards] (SCNuLEAST16): Likewise.
25924         [C99-based-standards] (SCNxLEAST16): Likewise.
25925         [C99-based-standards] (PRIdFAST16): Likewise.
25926         [C99-based-standards] (PRIiFAST16): Likewise.
25927         [C99-based-standards] (PRIoFAST16): Likewise.
25928         [C99-based-standards] (PRIuFAST16): Likewise.
25929         [C99-based-standards] (PRIxFAST16): Likewise.
25930         [C99-based-standards] (PRIXFAST16): Likewise.
25931         [C99-based-standards] (SCNdFAST16): Likewise.
25932         [C99-based-standards] (SCNiFAST16): Likewise.
25933         [C99-based-standards] (SCNoFAST16): Likewise.
25934         [C99-based-standards] (SCNuFAST16): Likewise.
25935         [C99-based-standards] (SCNxFAST16): Likewise.
25936         [C99-based-standards] (PRId32): Likewise.
25937         [C99-based-standards] (PRIi32): Likewise.
25938         [C99-based-standards] (PRIo32): Likewise.
25939         [C99-based-standards] (PRIu32): Likewise.
25940         [C99-based-standards] (PRIx32): Likewise.
25941         [C99-based-standards] (PRIX32): Likewise.
25942         [C99-based-standards] (SCNd32): Likewise.
25943         [C99-based-standards] (SCNi32): Likewise.
25944         [C99-based-standards] (SCNo32): Likewise.
25945         [C99-based-standards] (SCNu32): Likewise.
25946         [C99-based-standards] (SCNx32): Likewise.
25947         [C99-based-standards] (PRIdLEAST32): Likewise.
25948         [C99-based-standards] (PRIiLEAST32): Likewise.
25949         [C99-based-standards] (PRIoLEAST32): Likewise.
25950         [C99-based-standards] (PRIuLEAST32): Likewise.
25951         [C99-based-standards] (PRIxLEAST32): Likewise.
25952         [C99-based-standards] (PRIXLEAST32): Likewise.
25953         [C99-based-standards] (SCNdLEAST32): Likewise.
25954         [C99-based-standards] (SCNiLEAST32): Likewise.
25955         [C99-based-standards] (SCNoLEAST32): Likewise.
25956         [C99-based-standards] (SCNuLEAST32): Likewise.
25957         [C99-based-standards] (SCNxLEAST32): Likewise.
25958         [C99-based-standards] (PRIdFAST32): Likewise.
25959         [C99-based-standards] (PRIiFAST32): Likewise.
25960         [C99-based-standards] (PRIoFAST32): Likewise.
25961         [C99-based-standards] (PRIuFAST32): Likewise.
25962         [C99-based-standards] (PRIxFAST32): Likewise.
25963         [C99-based-standards] (PRIXFAST32): Likewise.
25964         [C99-based-standards] (SCNdFAST32): Likewise.
25965         [C99-based-standards] (SCNiFAST32): Likewise.
25966         [C99-based-standards] (SCNoFAST32): Likewise.
25967         [C99-based-standards] (SCNuFAST32): Likewise.
25968         [C99-based-standards] (SCNxFAST32): Likewise.
25969         [C99-based-standards] (PRId64): Likewise.
25970         [C99-based-standards] (PRIi64): Likewise.
25971         [C99-based-standards] (PRIo64): Likewise.
25972         [C99-based-standards] (PRIu64): Likewise.
25973         [C99-based-standards] (PRIx64): Likewise.
25974         [C99-based-standards] (PRIX64): Likewise.
25975         [C99-based-standards] (SCNd64): Likewise.
25976         [C99-based-standards] (SCNi64): Likewise.
25977         [C99-based-standards] (SCNo64): Likewise.
25978         [C99-based-standards] (SCNu64): Likewise.
25979         [C99-based-standards] (SCNx64): Likewise.
25980         [C99-based-standards] (PRIdLEAST64): Likewise.
25981         [C99-based-standards] (PRIiLEAST64): Likewise.
25982         [C99-based-standards] (PRIoLEAST64): Likewise.
25983         [C99-based-standards] (PRIuLEAST64): Likewise.
25984         [C99-based-standards] (PRIxLEAST64): Likewise.
25985         [C99-based-standards] (PRIXLEAST64): Likewise.
25986         [C99-based-standards] (SCNdLEAST64): Likewise.
25987         [C99-based-standards] (SCNiLEAST64): Likewise.
25988         [C99-based-standards] (SCNoLEAST64): Likewise.
25989         [C99-based-standards] (SCNuLEAST64): Likewise.
25990         [C99-based-standards] (SCNxLEAST64): Likewise.
25991         [C99-based-standards] (PRIdFAST64): Likewise.
25992         [C99-based-standards] (PRIiFAST64): Likewise.
25993         [C99-based-standards] (PRIoFAST64): Likewise.
25994         [C99-based-standards] (PRIuFAST64): Likewise.
25995         [C99-based-standards] (PRIxFAST64): Likewise.
25996         [C99-based-standards] (PRIXFAST64): Likewise.
25997         [C99-based-standards] (SCNdFAST64): Likewise.
25998         [C99-based-standards] (SCNiFAST64): Likewise.
25999         [C99-based-standards] (SCNoFAST64): Likewise.
26000         [C99-based-standards] (SCNuFAST64): Likewise.
26001         [C99-based-standards] (SCNxFAST64): Likewise.
26002         [C99-based-standards] (PRIdMAX): Likewise.
26003         [C99-based-standards] (PRIiMAX): Likewise.
26004         [C99-based-standards] (PRIoMAX): Likewise.
26005         [C99-based-standards] (PRIuMAX): Likewise.
26006         [C99-based-standards] (PRIxMAX): Likewise.
26007         [C99-based-standards] (PRIXMAX): Likewise.
26008         [C99-based-standards] (SCNdMAX): Likewise.
26009         [C99-based-standards] (SCNiMAX): Likewise.
26010         [C99-based-standards] (SCNoMAX): Likewise.
26011         [C99-based-standards] (SCNuMAX): Likewise.
26012         [C99-based-standards] (SCNxMAX): Likewise.
26013         [C99-based-standards] (PRIdPTR): Likewise.
26014         [C99-based-standards] (PRIiPTR): Likewise.
26015         [C99-based-standards] (PRIoPTR): Likewise.
26016         [C99-based-standards] (PRIuPTR): Likewise.
26017         [C99-based-standards] (PRIxPTR): Likewise.
26018         [C99-based-standards] (PRIXPTR): Likewise.
26019         [C99-based-standards] (SCNdPTR): Likewise.
26020         [C99-based-standards] (SCNiPTR): Likewise.
26021         [C99-based-standards] (SCNoPTR): Likewise.
26022         [C99-based-standards] (SCNuPTR): Likewise.
26023         [C99-based-standards] (SCNxPTR): Likewise.
26024         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
26025         allow.
26026         * conform/data/stdint.h-data: Update comments to clarify
26027         requirements.
26028         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
26029         type.
26030         [C99-based standards] (INT8_MAX): Likewise.
26031         [C99-based standards] (INT16_MIN): Likewise.
26032         [C99-based standards] (INT16_MAX): Likewise.
26033         [C99-based standards] (INT32_MIN): Likewise.
26034         [C99-based standards] (INT32_MAX): Likewise.
26035         [C99-based standards] (INT64_MIN): Likewise.
26036         [C99-based standards] (INT64_MAX): Likewise.
26037         [C99-based standards] (UINT8_MAX): Likewise.
26038         [C99-based standards] (UINT16_MAX): Likewise.
26039         [C99-based standards] (UINT32_MAX): Likewise.
26040         [C99-based standards] (UINT64_MAX): Likewise.
26041         [C99-based standards] (INT_LEAST8_MIN): Likewise.
26042         [C99-based standards] (INT_LEAST8_MAX): Likewise.
26043         [C99-based standards] (INT_LEAST16_MIN): Likewise.
26044         [C99-based standards] (INT_LEAST16_MAX): Likewise.
26045         [C99-based standards] (INT_LEAST32_MIN): Likewise.
26046         [C99-based standards] (INT_LEAST32_MAX): Likewise.
26047         [C99-based standards] (INT_LEAST64_MIN): Likewise.
26048         [C99-based standards] (INT_LEAST64_MAX): Likewise.
26049         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
26050         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
26051         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
26052         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
26053         [C99-based standards] (INT_FAST8_MIN): Likewise.
26054         [C99-based standards] (INT_FAST8_MAX): Likewise.
26055         [C99-based standards] (INT_FAST16_MIN): Likewise.
26056         [C99-based standards] (INT_FAST16_MAX): Likewise.
26057         [C99-based standards] (INT_FAST32_MIN): Likewise.
26058         [C99-based standards] (INT_FAST32_MAX): Likewise.
26059         [C99-based standards] (INT_FAST64_MIN): Likewise.
26060         [C99-based standards] (INT_FAST64_MAX): Likewise.
26061         [C99-based standards] (UINT_FAST8_MAX): Likewise.
26062         [C99-based standards] (UINT_FAST16_MAX): Likewise.
26063         [C99-based standards] (UINT_FAST32_MAX): Likewise.
26064         [C99-based standards] (UINT_FAST64_MAX): Likewise.
26065         [C99-based standards] (INTPTR_MIN): Likewise.
26066         [C99-based standards] (INTPTR_MAX): Likewise.
26067         [C99-based standards] (UINTPTR_MAX): Likewise.
26068         [C99-based standards] (INTMAX_MIN): Likewise.
26069         [C99-based standards] (INTMAX_MAX): Likewise.
26070         [C99-based standards] (UINTMAX_MAX): Likewise.
26071         [C99-based standards] (PTRDIFF_MIN): Likewise.
26072         [C99-based standards] (PTRDIFF_MAX): Likewise.
26073         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
26074         [C99-based standards] (SIZE_MAX): Likewise.
26075         [C99-based standards] (WCHAR_MAX): Likewise.
26076         [C99-based standards] (WINT_MAX): Likewise.
26077         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
26078         constraint on value.
26079         [C99-based standards] (WCHAR_MIN): Likewise.
26080         [C99-based standards] (WINT_MIN): Likewise.
26081         [C99-based standards] (*_t): Allow.
26082         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
26083         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
26084         Include math.h-data and complex.h-data.  Remove all expectations
26085         of math.h and complex.h contents.
26086         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
26087         at end of line.
26088         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
26089         (struct tm): Expect tag.
26090         [C99-based-standards] (wcstof): Expect function.
26091         [C99-based-standards] (wcstold): Likewise.
26092         [C99-based-standards] (wcstoll): Likewise.
26093         [C99-based-standards] (wcstoull): Likewise.
26094         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
26095         macro-int-constant.  Specify type.
26096         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
26097         constraint on value.
26098         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
26099         Specify type.
26100         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
26101         Specify value.
26102         [ISO C standards]: Do not allow headers.
26103         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
26104         wcs[abcdefghijklmnopqrstuvwxyz]*.
26105         [ISO C standards] (*_t): Do not allow.
26106         * conform/data/wctype.h-data [C99-based standards] (iswblank):
26107         Expect function.
26108         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
26109         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
26110         Specify type.
26111         [ISO C standards]: Do not allow headers.
26112         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
26113         is[abcdefghijklmnopqrstuvwxyz]*.
26114         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
26115         to[abcdefghijklmnopqrstuvwxyz]*.
26116         [ISO C standards] (*_t): Do not allow.
26117         * conform/data/stdalign.h-data: New file.
26118         * conform/data/stdbool.h-data: Likewise.
26119         * conform/data/stdnoreturn.h-data: Likewise.
26120
26121 2012-11-07  Roland McGrath  <roland@hack.frob.com>
26122
26123         [BZ #14815]
26124         * manual/filesys.texi (Directory Entries): Typo fix.
26125         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
26126
26127 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
26128
26129         * elf/elf.h (EM_AARCH64): New macro.
26130         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
26131         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
26132         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
26133         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
26134         (R_AARCH64_TLSDESC): Likewise.
26135         (NT_ARM_TLS): Likewise.
26136         (NT_ARM_HW_BREAK): Likewise.
26137         (NT_ARM_HW_WATCH): Likewise.
26138
26139 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
26140
26141         [BZ #14811]
26142         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
26143         (__ieee754_powl): Saturate nonzero exponents with absolute value
26144         below 0x1p-79 to +/- 0x1p-79.
26145         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
26146         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
26147         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
26148         nonzero exponents with absolute value below 0x1p-32 to +/-
26149         0x1p-32.
26150         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
26151         (__ieee754_powl): Saturate nonzero exponents with absolute value
26152         below 0x1p-79 to +/- 0x1p-79.
26153         * math/libm-test.inc (pow_test): Add more tests.
26154
26155 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26156
26157         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
26158         _dl_s390_cap_flags with kernel. Increase string length.
26159         (_dl_s390_platforms): Add z196 and zEC12.
26160
26161 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
26162
26163         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
26164         Change XOPEN21K to XOPEN2K.
26165
26166 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
26167
26168         * string/memmove.c: Use memcpy when possible.
26169
26170 2012-11-06  Andreas Jaeger  <aj@suse.de>
26171
26172         * po/eo.po: Update from translation team.
26173
26174 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
26175
26176         [BZ #14793]
26177         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
26178         exponent and small x and y exponents, scale x or y up.  Increase
26179         by 2 the exponent used in scaling up.
26180         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26181         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26182         * math/libm-test.inc (fma_test): Add more tests.
26183         (fma_test_towardzero): Likewise.
26184         (fma_test_downward): Likewise.
26185         (fma_test_upward): Likewise.
26186
26187 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
26188
26189         [BZ #14805]
26190         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
26191         fenv_t *.
26192
26193         [BZ #14801]
26194         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
26195         namespace for names of struct fields.
26196         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
26197         fenv_t fields.
26198         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
26199         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
26200
26201 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26202
26203         [BZ #3665]
26204         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
26205
26206 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
26207
26208         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
26209         PTR_DEMANGLE.
26210
26211         [BZ #5246]
26212         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
26213         PTR_DEMANGLE.
26214
26215 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
26216
26217         [BZ #14797]
26218         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
26219         definitely overflow as x * y not x * y + z.
26220         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26221         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26222         * math/libm-test.inc (fma_test): Add more tests.
26223         (fma_test_towardzero): Likewise.
26224         (fma_test_downward): Likewise.
26225         (fma_test_upward): Likewise.
26226
26227 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
26228
26229         [BZ #157]
26230
26231         * include/stub-tag.h: Remove file.
26232         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
26233         '#include' of it.
26234         * manual/maint.texi (Porting): Don't reference it.
26235         * Makerules ($(objpfx)stubs): Likewise.
26236         * dirent/closedir.c: Don't include <stub-tag.h>.
26237         * dirent/dirfd.c: Likewise.
26238         * dirent/fdopendir.c: Likewise.
26239         * dirent/getdents.c: Likewise.
26240         * dirent/getdents64.c: Likewise.
26241         * dirent/opendir.c: Likewise.
26242         * dirent/readdir.c: Likewise.
26243         * dirent/readdir64.c: Likewise.
26244         * dirent/readdir64_r.c: Likewise.
26245         * dirent/readdir_r.c: Likewise.
26246         * dirent/rewinddir.c: Likewise.
26247         * dirent/seekdir.c: Likewise.
26248         * dirent/telldir.c: Likewise.
26249         * gmon/profil.c: Likewise.
26250         * grp/setgroups.c: Likewise.
26251         * inet/if_index.c: Likewise.
26252         * io/access.c: Likewise.
26253         * io/chdir.c: Likewise.
26254         * io/chmod.c: Likewise.
26255         * io/chown.c: Likewise.
26256         * io/close.c: Likewise.
26257         * io/dup.c: Likewise.
26258         * io/dup2.c: Likewise.
26259         * io/dup3.c: Likewise.
26260         * io/euidaccess.c: Likewise.
26261         * io/faccessat.c: Likewise.
26262         * io/fchdir.c: Likewise.
26263         * io/fchmod.c: Likewise.
26264         * io/fchmodat.c: Likewise.
26265         * io/fchown.c: Likewise.
26266         * io/fchownat.c: Likewise.
26267         * io/fcntl.c: Likewise.
26268         * io/flock.c: Likewise.
26269         * io/fstatfs.c: Likewise.
26270         * io/fstatfs64.c: Likewise.
26271         * io/fstatvfs.c: Likewise.
26272         * io/fstatvfs64.c: Likewise.
26273         * io/futimens.c: Likewise.
26274         * io/fxstat.c: Likewise.
26275         * io/fxstat64.c: Likewise.
26276         * io/fxstatat.c: Likewise.
26277         * io/fxstatat64.c: Likewise.
26278         * io/getcwd.c: Likewise.
26279         * io/isatty.c: Likewise.
26280         * io/lchmod.c: Likewise.
26281         * io/lchown.c: Likewise.
26282         * io/link.c: Likewise.
26283         * io/linkat.c: Likewise.
26284         * io/lseek.c: Likewise.
26285         * io/lseek64.c: Likewise.
26286         * io/lxstat64.c: Likewise.
26287         * io/mkdir.c: Likewise.
26288         * io/mkdirat.c: Likewise.
26289         * io/mkfifo.c: Likewise.
26290         * io/mkfifoat.c: Likewise.
26291         * io/open.c: Likewise.
26292         * io/open64.c: Likewise.
26293         * io/openat.c: Likewise.
26294         * io/openat64.c: Likewise.
26295         * io/pipe.c: Likewise.
26296         * io/pipe2.c: Likewise.
26297         * io/poll.c: Likewise.
26298         * io/posix_fadvise.c: Likewise.
26299         * io/posix_fadvise64.c: Likewise.
26300         * io/posix_fallocate.c: Likewise.
26301         * io/posix_fallocate64.c: Likewise.
26302         * io/read.c: Likewise.
26303         * io/readlink.c: Likewise.
26304         * io/readlinkat.c: Likewise.
26305         * io/rmdir.c: Likewise.
26306         * io/sendfile.c: Likewise.
26307         * io/sendfile64.c: Likewise.
26308         * io/statfs.c: Likewise.
26309         * io/statfs64.c: Likewise.
26310         * io/statvfs.c: Likewise.
26311         * io/statvfs64.c: Likewise.
26312         * io/symlink.c: Likewise.
26313         * io/symlinkat.c: Likewise.
26314         * io/ttyname.c: Likewise.
26315         * io/ttyname_r.c: Likewise.
26316         * io/umask.c: Likewise.
26317         * io/unlink.c: Likewise.
26318         * io/unlinkat.c: Likewise.
26319         * io/utime.c: Likewise.
26320         * io/utimensat.c: Likewise.
26321         * io/write.c: Likewise.
26322         * io/xmknod.c: Likewise.
26323         * io/xmknodat.c: Likewise.
26324         * io/xstat.c: Likewise.
26325         * io/xstat64.c: Likewise.
26326         * login/getpt.c: Likewise.
26327         * login/grantpt.c: Likewise.
26328         * login/unlockpt.c: Likewise.
26329         * math/e_acoshl.c: Likewise.
26330         * math/e_acosl.c: Likewise.
26331         * math/e_asinl.c: Likewise.
26332         * math/e_atan2l.c: Likewise.
26333         * math/e_atanhl.c: Likewise.
26334         * math/e_coshl.c: Likewise.
26335         * math/e_expl.c: Likewise.
26336         * math/e_fmodl.c: Likewise.
26337         * math/e_gammal_r.c: Likewise.
26338         * math/e_hypotl.c: Likewise.
26339         * math/e_j0l.c: Likewise.
26340         * math/e_j1l.c: Likewise.
26341         * math/e_jnl.c: Likewise.
26342         * math/e_lgammal_r.c: Likewise.
26343         * math/e_log10l.c: Likewise.
26344         * math/e_log2l.c: Likewise.
26345         * math/e_logl.c: Likewise.
26346         * math/e_powl.c: Likewise.
26347         * math/e_rem_pio2l.c: Likewise.
26348         * math/e_sinhl.c: Likewise.
26349         * math/e_sqrtl.c: Likewise.
26350         * math/fclrexcpt.c: Likewise.
26351         * math/fedisblxcpt.c: Likewise.
26352         * math/feenablxcpt.c: Likewise.
26353         * math/fegetenv.c: Likewise.
26354         * math/fegetexcept.c: Likewise.
26355         * math/fegetround.c: Likewise.
26356         * math/feholdexcpt.c: Likewise.
26357         * math/fesetenv.c: Likewise.
26358         * math/fesetround.c: Likewise.
26359         * math/feupdateenv.c: Likewise.
26360         * math/fgetexcptflg.c: Likewise.
26361         * math/fraiseexcpt.c: Likewise.
26362         * math/fsetexcptflg.c: Likewise.
26363         * math/ftestexcept.c: Likewise.
26364         * math/k_cosl.c: Likewise.
26365         * math/k_rem_pio2l.c: Likewise.
26366         * math/k_sinl.c: Likewise.
26367         * math/k_tanl.c: Likewise.
26368         * math/s_asinhl.c: Likewise.
26369         * math/s_atanl.c: Likewise.
26370         * math/s_cbrtl.c: Likewise.
26371         * math/s_erfl.c: Likewise.
26372         * math/s_expm1l.c: Likewise.
26373         * math/s_log1pl.c: Likewise.
26374         * math/s_tanhl.c: Likewise.
26375         * misc/acct.c: Likewise.
26376         * misc/brk.c: Likewise.
26377         * misc/chflags.c: Likewise.
26378         * misc/chroot.c: Likewise.
26379         * misc/fchflags.c: Likewise.
26380         * misc/fgetxattr.c: Likewise.
26381         * misc/flistxattr.c: Likewise.
26382         * misc/fremovexattr.c: Likewise.
26383         * misc/fsetxattr.c: Likewise.
26384         * misc/fsync.c: Likewise.
26385         * misc/ftruncate.c: Likewise.
26386         * misc/futimes.c: Likewise.
26387         * misc/futimesat.c: Likewise.
26388         * misc/getdomain.c: Likewise.
26389         * misc/getdtsz.c: Likewise.
26390         * misc/gethostid.c: Likewise.
26391         * misc/gethostname.c: Likewise.
26392         * misc/getloadavg.c: Likewise.
26393         * misc/getpagesize.c: Likewise.
26394         * misc/getsysstats.c: Likewise.
26395         * misc/getxattr.c: Likewise.
26396         * misc/gtty.c: Likewise.
26397         * misc/ioctl.c: Likewise.
26398         * misc/lgetxattr.c: Likewise.
26399         * misc/listxattr.c: Likewise.
26400         * misc/llistxattr.c: Likewise.
26401         * misc/lremovexattr.c: Likewise.
26402         * misc/lsetxattr.c: Likewise.
26403         * misc/lutimes.c: Likewise.
26404         * misc/madvise.c: Likewise.
26405         * misc/mincore.c: Likewise.
26406         * misc/mlock.c: Likewise.
26407         * misc/mlockall.c: Likewise.
26408         * misc/mmap.c: Likewise.
26409         * misc/mprotect.c: Likewise.
26410         * misc/msync.c: Likewise.
26411         * misc/munlock.c: Likewise.
26412         * misc/munlockall.c: Likewise.
26413         * misc/munmap.c: Likewise.
26414         * misc/preadv.c: Likewise.
26415         * misc/preadv64.c: Likewise.
26416         * misc/ptrace.c: Likewise.
26417         * misc/pwritev.c: Likewise.
26418         * misc/pwritev64.c: Likewise.
26419         * misc/readv.c: Likewise.
26420         * misc/reboot.c: Likewise.
26421         * misc/remap_file_pages.c: Likewise.
26422         * misc/removexattr.c: Likewise.
26423         * misc/revoke.c: Likewise.
26424         * misc/select.c: Likewise.
26425         * misc/setdomain.c: Likewise.
26426         * misc/setegid.c: Likewise.
26427         * misc/seteuid.c: Likewise.
26428         * misc/sethostid.c: Likewise.
26429         * misc/sethostname.c: Likewise.
26430         * misc/setregid.c: Likewise.
26431         * misc/setreuid.c: Likewise.
26432         * misc/setxattr.c: Likewise.
26433         * misc/sstk.c: Likewise.
26434         * misc/stty.c: Likewise.
26435         * misc/swapoff.c: Likewise.
26436         * misc/swapon.c: Likewise.
26437         * misc/sync.c: Likewise.
26438         * misc/syncfs.c: Likewise.
26439         * misc/syscall.c: Likewise.
26440         * misc/truncate.c: Likewise.
26441         * misc/ualarm.c: Likewise.
26442         * misc/usleep.c: Likewise.
26443         * misc/ustat.c: Likewise.
26444         * misc/utimes.c: Likewise.
26445         * misc/vhangup.c: Likewise.
26446         * misc/writev.c: Likewise.
26447         * posix/_exit.c: Likewise.
26448         * posix/alarm.c: Likewise.
26449         * posix/execve.c: Likewise.
26450         * posix/fexecve.c: Likewise.
26451         * posix/fork.c: Likewise.
26452         * posix/fpathconf.c: Likewise.
26453         * posix/getaddrinfo.c: Likewise.
26454         * posix/getegid.c: Likewise.
26455         * posix/geteuid.c: Likewise.
26456         * posix/getgid.c: Likewise.
26457         * posix/getgroups.c: Likewise.
26458         * posix/getlogin.c: Likewise.
26459         * posix/getlogin_r.c: Likewise.
26460         * posix/getpgid.c: Likewise.
26461         * posix/getpid.c: Likewise.
26462         * posix/getppid.c: Likewise.
26463         * posix/getresgid.c: Likewise.
26464         * posix/getresuid.c: Likewise.
26465         * posix/getsid.c: Likewise.
26466         * posix/getuid.c: Likewise.
26467         * posix/glob64.c: Likewise.
26468         * posix/nanosleep.c: Likewise.
26469         * posix/pathconf.c: Likewise.
26470         * posix/pause.c: Likewise.
26471         * posix/posix_madvise.c: Likewise.
26472         * posix/pread.c: Likewise.
26473         * posix/pread64.c: Likewise.
26474         * posix/pwrite.c: Likewise.
26475         * posix/pwrite64.c: Likewise.
26476         * posix/sched_getaffinity.c: Likewise.
26477         * posix/sched_getp.c: Likewise.
26478         * posix/sched_gets.c: Likewise.
26479         * posix/sched_primax.c: Likewise.
26480         * posix/sched_primin.c: Likewise.
26481         * posix/sched_rr_gi.c: Likewise.
26482         * posix/sched_setaffinity.c: Likewise.
26483         * posix/sched_setp.c: Likewise.
26484         * posix/sched_sets.c: Likewise.
26485         * posix/sched_yield.c: Likewise.
26486         * posix/setgid.c: Likewise.
26487         * posix/setlogin.c: Likewise.
26488         * posix/setpgid.c: Likewise.
26489         * posix/setresgid.c: Likewise.
26490         * posix/setresuid.c: Likewise.
26491         * posix/setsid.c: Likewise.
26492         * posix/setuid.c: Likewise.
26493         * posix/sleep.c: Likewise.
26494         * posix/spawni.c: Likewise.
26495         * posix/sysconf.c: Likewise.
26496         * posix/times.c: Likewise.
26497         * posix/wait.c: Likewise.
26498         * posix/wait3.c: Likewise.
26499         * posix/wait4.c: Likewise.
26500         * posix/waitpid.c: Likewise.
26501         * resolv/gai_sigqueue.c: Likewise.
26502         * resource/getpriority.c: Likewise.
26503         * resource/getrlimit.c: Likewise.
26504         * resource/getrusage.c: Likewise.
26505         * resource/nice.c: Likewise.
26506         * resource/setpriority.c: Likewise.
26507         * resource/setrlimit.c: Likewise.
26508         * resource/ulimit.c: Likewise.
26509         * rt/aio_cancel.c: Likewise.
26510         * rt/aio_fsync.c: Likewise.
26511         * rt/aio_read.c: Likewise.
26512         * rt/aio_sigqueue.c: Likewise.
26513         * rt/aio_suspend.c: Likewise.
26514         * rt/aio_write.c: Likewise.
26515         * rt/clock_getres.c: Likewise.
26516         * rt/clock_gettime.c: Likewise.
26517         * rt/clock_nanosleep.c: Likewise.
26518         * rt/clock_settime.c: Likewise.
26519         * rt/lio_listio.c: Likewise.
26520         * rt/mq_close.c: Likewise.
26521         * rt/mq_getattr.c: Likewise.
26522         * rt/mq_notify.c: Likewise.
26523         * rt/mq_open.c: Likewise.
26524         * rt/mq_receive.c: Likewise.
26525         * rt/mq_send.c: Likewise.
26526         * rt/mq_setattr.c: Likewise.
26527         * rt/mq_timedreceive.c: Likewise.
26528         * rt/mq_timedsend.c: Likewise.
26529         * rt/mq_unlink.c: Likewise.
26530         * rt/shm_open.c: Likewise.
26531         * rt/shm_unlink.c: Likewise.
26532         * rt/timer_create.c: Likewise.
26533         * rt/timer_delete.c: Likewise.
26534         * rt/timer_getoverr.c: Likewise.
26535         * rt/timer_gettime.c: Likewise.
26536         * rt/timer_settime.c: Likewise.
26537         * setjmp/__longjmp.c: Likewise.
26538         * setjmp/setjmp.c: Likewise.
26539         * signal/kill.c: Likewise.
26540         * signal/killpg.c: Likewise.
26541         * signal/raise.c: Likewise.
26542         * signal/sigaction.c: Likewise.
26543         * signal/sigaltstack.c: Likewise.
26544         * signal/sigblock.c: Likewise.
26545         * signal/sigignore.c: Likewise.
26546         * signal/sigintr.c: Likewise.
26547         * signal/signal.c: Likewise.
26548         * signal/sigpause.c: Likewise.
26549         * signal/sigpending.c: Likewise.
26550         * signal/sigqueue.c: Likewise.
26551         * signal/sigreturn.c: Likewise.
26552         * signal/sigset.c: Likewise.
26553         * signal/sigsetmask.c: Likewise.
26554         * signal/sigstack.c: Likewise.
26555         * signal/sigsuspend.c: Likewise.
26556         * signal/sigtimedwait.c: Likewise.
26557         * signal/sigvec.c: Likewise.
26558         * signal/sigwait.c: Likewise.
26559         * signal/sigwaitinfo.c: Likewise.
26560         * signal/sysv_signal.c: Likewise.
26561         * socket/accept.c: Likewise.
26562         * socket/accept4.c: Likewise.
26563         * socket/bind.c: Likewise.
26564         * socket/connect.c: Likewise.
26565         * socket/getpeername.c: Likewise.
26566         * socket/getsockname.c: Likewise.
26567         * socket/getsockopt.c: Likewise.
26568         * socket/isfdtype.c: Likewise.
26569         * socket/listen.c: Likewise.
26570         * socket/recv.c: Likewise.
26571         * socket/recvfrom.c: Likewise.
26572         * socket/recvmsg.c: Likewise.
26573         * socket/send.c: Likewise.
26574         * socket/sendmsg.c: Likewise.
26575         * socket/sendto.c: Likewise.
26576         * socket/setsockopt.c: Likewise.
26577         * socket/shutdown.c: Likewise.
26578         * socket/sockatmark.c: Likewise.
26579         * socket/socket.c: Likewise.
26580         * socket/socketpair.c: Likewise.
26581         * stdio-common/ctermid.c: Likewise.
26582         * stdio-common/cuserid.c: Likewise.
26583         * stdio-common/remove.c: Likewise.
26584         * stdio-common/rename.c: Likewise.
26585         * stdio-common/renameat.c: Likewise.
26586         * stdio-common/tempname.c: Likewise.
26587         * stdlib/getcontext.c: Likewise.
26588         * stdlib/makecontext.c: Likewise.
26589         * stdlib/setcontext.c: Likewise.
26590         * stdlib/swapcontext.c: Likewise.
26591         * stdlib/system.c: Likewise.
26592         * streams/fattach.c: Likewise.
26593         * streams/fdetach.c: Likewise.
26594         * streams/getmsg.c: Likewise.
26595         * streams/getpmsg.c: Likewise.
26596         * streams/putmsg.c: Likewise.
26597         * streams/putpmsg.c: Likewise.
26598         * sysdeps/unix/bsd/getpt.c: Likewise.
26599         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
26600         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
26601         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
26602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
26603         Likewise.
26604         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
26605         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
26606         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
26607         * sysvipc/msgctl.c: Likewise.
26608         * sysvipc/msgget.c: Likewise.
26609         * sysvipc/msgrcv.c: Likewise.
26610         * sysvipc/msgsnd.c: Likewise.
26611         * sysvipc/semctl.c: Likewise.
26612         * sysvipc/semget.c: Likewise.
26613         * sysvipc/semop.c: Likewise.
26614         * sysvipc/semtimedop.c: Likewise.
26615         * sysvipc/shmat.c: Likewise.
26616         * sysvipc/shmctl.c: Likewise.
26617         * sysvipc/shmdt.c: Likewise.
26618         * sysvipc/shmget.c: Likewise.
26619         * termios/tcdrain.c: Likewise.
26620         * termios/tcflow.c: Likewise.
26621         * termios/tcflush.c: Likewise.
26622         * termios/tcgetattr.c: Likewise.
26623         * termios/tcgetpgrp.c: Likewise.
26624         * termios/tcsendbrk.c: Likewise.
26625         * termios/tcsetattr.c: Likewise.
26626         * termios/tcsetpgrp.c: Likewise.
26627         * time/adjtime.c: Likewise.
26628         * time/clock.c: Likewise.
26629         * time/getitimer.c: Likewise.
26630         * time/gettimeofday.c: Likewise.
26631         * time/setitimer.c: Likewise.
26632         * time/settimeofday.c: Likewise.
26633         * time/stime.c: Likewise.
26634         * time/time.c: Likewise.
26635
26636 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
26637
26638         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
26639         /usr/old/bin.
26640
26641         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
26642         instead of spaces.
26643         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
26644
26645 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
26646
26647         [BZ #14796]
26648         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
26649         FE_TONEAREST before applying Dekker multiplication and Knuth
26650         addition.  Clear inexact exceptions and check for exact zero
26651         results afterwards.
26652         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26653         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
26654         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26655         * math/libm-test.inc (fma_test): Add more tests.
26656         (fma_test_towardzero): Likewise.
26657         (fma_test_downward): Likewise.
26658         (fma_test_upward): Likewise.
26659         * sysdeps/generic/math_private.h (default_libc_fesetround): New
26660         function.
26661         (libc_fesetround): New macro.
26662         (libc_fesetroundf): Likewise.
26663         (libc_fesetroundl): Likewise.
26664         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
26665         function.
26666         (libc_fesetround_387): Likewise.
26667         (libc_fesetroundf): New macro.
26668         (libc_fesetround): Likewise.
26669         (libc_fesetroundl): Likewise.
26670         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
26671         function.
26672         (libc_fesetroundf): New macro.
26673         (libc_fesetround): Likewise.
26674         (libc_fesetroundl): Likewise.
26675         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
26676         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
26677         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
26678         libm_hidden_ver.
26679         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
26680         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
26681         libm_hidden_def.
26682         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
26683         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
26684         libm_hidden_ver.
26685         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
26686         libm_hidden_def.
26687
26688         [BZ #3439]
26689         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
26690         integer constant usable in #if and use that to give value to enum
26691         constant.
26692         (FE_DIVBYZERO): Likewise.
26693         (FE_UNDERFLOW): Likewise.
26694         (FE_OVERFLOW): Likewise.
26695         (FE_INVALID): Likewise.
26696         (FE_INVALID_SNAN): Likewise.
26697         (FE_INVALID_ISI): Likewise.
26698         (FE_INVALID_IDI): Likewise.
26699         (FE_INVALID_ZDZ): Likewise.
26700         (FE_INVALID_IMZ): Likewise.
26701         (FE_INVALID_COMPARE): Likewise.
26702         (FE_INVALID_SOFTWARE): Likewise.
26703         (FE_INVALID_SQRT): Likewise.
26704         (FE_INVALID_INTEGER_CONVERSION): Likewise.
26705         (FE_TONEAREST): Likewise.
26706         (FE_TOWARDZERO): Likewise.
26707         (FE_UPWARD): Likewise.
26708         (FE_DOWNWARD): Likewise.
26709         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
26710         (FE_DIVBYZERO): Likewise.
26711         (FE_OVERFLOW): Likewise.
26712         (FE_UNDERFLOW): Likewise.
26713         (FE_INEXACT): Likewise.
26714         (FE_TONEAREST): Likewise.
26715         (FE_DOWNWARD): Likewise.
26716         (FE_UPWARD): Likewise.
26717         (FE_TOWARDZERO): Likewise.
26718         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
26719         (FE_UNDERFLOW): Likewise.
26720         (FE_OVERFLOW): Likewise.
26721         (FE_DIVBYZERO): Likewise.
26722         (FE_INVALID): Likewise.
26723         (FE_TONEAREST): Likewise.
26724         (FE_TOWARDZERO): Likewise.
26725         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
26726         (FE_OVERFLOW): Likewise.
26727         (FE_UNDERFLOW): Likewise.
26728         (FE_DIVBYZERO): Likewise.
26729         (FE_INEXACT): Likewise.
26730         (FE_TONEAREST): Likewise.
26731         (FE_TOWARDZERO): Likewise.
26732         (FE_UPWARD): Likewise.
26733         (FE_DOWNWARD): Likewise.
26734         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
26735         (FE_DIVBYZERO): Likewise.
26736         (FE_OVERFLOW): Likewise.
26737         (FE_UNDERFLOW): Likewise.
26738         (FE_INEXACT): Likewise.
26739         (FE_TONEAREST): Likewise.
26740         (FE_DOWNWARD): Likewise.
26741         (FE_UPWARD): Likewise.
26742         (FE_TOWARDZERO): Likewise.
26743
26744 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
26745
26746         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
26747
26748 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
26749
26750         * scripts/cross-test-ssh.sh (command): Use newlines to separate
26751         commands.  Quote $PWD.
26752         (blacklist_exports): Don't use remove_newlines.  Replace "declare
26753         -x" by "export".
26754         (remove_newlines): Remove.
26755
26756 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
26757
26758         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
26759         * stdlib/stdlib.h (atof): Moved to ...
26760         * include/bits/stdlib-float.h: Here.  New file.
26761         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
26762         * stdlib/bits/stdlib-float.h: New file.
26763         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
26764         -mno-sse -mno-mmx.
26765         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
26766         <xmmintrin.h>.
26767
26768 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26769
26770         * conform/conformtest.pl (@headers): Add fenv.h.
26771         * conform/data/fenv.h-data: New file.
26772         * include/fenv.h [_ISOMAC]: Disable all contents of file except
26773         include of <math/fenv.h>.
26774
26775         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
26776         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
26777         && !UNIX98].  Enables tests for XOPEN2K8.
26778         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
26779         POSIX2008]: Likewise.
26780
26781         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
26782         (struct rusage): Do not expect type or its members.
26783
26784         [BZ #3439]
26785         * math/math.h (FP_NAN): Define macro to integer constant usable in
26786         #if and use that to give value to enum constant.
26787         (FP_INFINITE): Likewise.
26788         (FP_ZERO): Likewise.
26789         (FP_SUBNORMAL): Likewise.
26790         (FP_NORMAL): Likewise.
26791
26792 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
26793
26794         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
26795         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
26796         arguments.
26797
26798 2012-11-02  Roland McGrath  <roland@hack.frob.com>
26799
26800         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
26801         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
26802         autoconf-time if not.
26803         * configure.in: Remove AC_PREREQ.
26804
26805 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26806
26807         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
26808         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
26809         of the internal implementation.
26810
26811 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26812
26813         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
26814         except include of <misc/sys/syslog.h>.
26815
26816 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26817
26818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
26819         function returns with a NULL context exit with zero.
26820
26821 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26822
26823         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
26824
26825 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
26826
26827         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
26828         (run_program_cmd): This.
26829         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
26830         (tst_langinfo): New variable.  Use it.
26831
26832 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
26833
26834         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
26835         floating point opcodes.
26836
26837 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26838
26839         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
26840         variable.
26841
26842         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
26843
26844         * sysdeps/mach/hurd/powerpc: Remove directory.
26845         * sysdeps/mach/powerpc: Likewise.
26846
26847 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26848
26849         * scripts/check-local-headers.sh: Ignore c++ headers.
26850
26851 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26852
26853         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
26854         __libc_cleanup_region_start argument.
26855
26856 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
26857
26858         [BZ #14784]
26859         [BZ #14785]
26860         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
26861         x * y using scaling, not as x * y + z.
26862         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26863         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26864         * math/libm-test.inc (fma_test): Add more tests.
26865         (fma_test_towardzero): Likewise.
26866         (fma_test_downward): Likewise.
26867         (fma_test_upward): Likewise.
26868
26869 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26870
26871         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
26872
26873 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26874
26875         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
26876         New variable.
26877
26878 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
26879
26880         * rt/tst-shm.c (worker): Correct checking for mmap failure.
26881
26882 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26883
26884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26885         Fix sort order.
26886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26887         Likewise.
26888
26889 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26890
26891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26892         Fix the order of the list for glibc 2.17.
26893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26894         Likewise.
26895
26896 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26897
26898         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26899
26900 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26901
26902         [BZ #14610]
26903         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
26904         for low part of x being zero before using __atanl (y).
26905         * math/libm-test.inc (atan2_test): Add another test.
26906
26907         * manual/install.texi (Configuring and compiling): Document
26908         general use of test-wrapper and test-wrapper-env.
26909         * INSTALL: Regenerated.
26910
26911         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
26912         (__fma): Do not extract and scale down low bits on after-rounding
26913         systems when result rounded to normal precision would have normal
26914         exponent.
26915         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
26916         (__fmal): Do not extract and scale down low bits on after-rounding
26917         systems when result rounded to normal precision would have normal
26918         exponent.
26919         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
26920         (__fmal): Do not extract and scale down low bits on after-rounding
26921         systems when result rounded to normal precision would have normal
26922         exponent.
26923         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
26924         macro.
26925         (fma_test): Add more tests.
26926         (fma_test_towardzero): Likewise.
26927         (fma_test_downward): Likewise.
26928         (fma_test_upward): Likewise.
26929
26930 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26931
26932         * sysdeps/i386/tininess.h: Renamed to ...
26933         * sysdeps/x86/tininess.h: This.
26934         * sysdeps/x86_64/tininess.h: Removed.
26935
26936 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26937
26938         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
26939         input.  Use $(build-program-cmd).
26940         ($(objpfx)tst-array1-static.out): Likewise.
26941         ($(objpfx)tst-array2.out): Likewise.
26942         ($(objpfx)tst-array3.out): Likewise.
26943         ($(objpfx)tst-array4.out): Likewise.
26944         ($(objpfx)tst-array5.out): Likewise.
26945         ($(objpfx)tst-array5-static.out): Likewise.
26946
26947 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
26948
26949         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
26950         if defined.
26951
26952         * nss/nsswitch.h (nss_interface_function): Provide new
26953         macro for use with NSS functions.
26954         * grp/initgroups.c: Use new macro.
26955         * nss/getXXbyYY.c: Likewise.
26956         * nss/getXXbyYY_r.c: Likewise.
26957         * nss/getXXent.c: Likewise.
26958         * nss/getXXent_r.c: Likewise.
26959         * sysdeps/posix/getaddrinfo.c: Likewise.
26960
26961 2012-10-30  Andreas Jaeger  <aj@suse.de>
26962
26963         * po/ru.po: Update Russion translation from translation project.
26964
26965 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26966
26967         [BZ #14152]
26968         [BZ #14783]
26969         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
26970         result and shift together with sticky bit instead of replicating
26971         round-to-nearest rounding.
26972         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26973         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26974         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
26975         missing underflow exceptions.
26976         (fma_test_towardzero): Add more tests.
26977         (fma_test_downward): Likewise.
26978         (fma_test_upward): Likewise.
26979
26980         [BZ #14047]
26981         * sysdeps/generic/tininess.h: New file.
26982         * sysdeps/i386/tininess.h: Likewise.
26983         * sysdeps/sh/tininess.h: Likewise.
26984         * sysdeps/x86_64/tininess.h: Likewise.
26985         * stdlib/tst-strtod-underflow.c: Likewise.
26986         * stdlib/tst-tininess.c: Likewise.
26987         * stdlib/strtod_l.c: Include <tininess.h>.
26988         (round_and_return): Do not set errno for exact underflow cases.
26989         Force an underflow exception when setting errno for underflow.
26990         Determine underflow based on rounding to normal precision if
26991         TININESS_AFTER_ROUNDING.
26992         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
26993         ERANGE for exact underflow cases.
26994         * stdlib/Makefile (tests): Add tst-tininess and
26995         tst-strtod-underflow.
26996         ($(objpfx)tst-tininess): Use $(link-libm).
26997         ($(objpfx)tst-strtod-underflow): Likewise.
26998
26999 2012-10-30  Andreas Jaeger  <aj@suse.de>
27000
27001         [BZ#14767]
27002         * elf/Makefile (tests): Remove conditional for have-initfini-array
27003         since this is now always required and the variable does not exist
27004         anymore.
27005         (tests-static): Likewise.
27006         (modules-names): Likewise.
27007
27008         * po/eo.po: Add Esperanto translation from translation project.
27009
27010         * elf/tst-array1.c (fini_array): Make writeable so that it can be
27011         merged with constructor/destructor.
27012         (init_array): Likewise.
27013         * elf/tst-array2dep.c (fini_array): Likewise.
27014         (init_array): Likewise.
27015
27016 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
27017
27018         * manual/message.texi: Delete @cartouche tags.
27019
27020 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
27021
27022         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
27023         EOPNOTSUPP.
27024         * sysdeps/mach/hurd/fsync.c: Likewise.
27025
27026         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
27027         [_POSIX_REALTIME_SIGNALS]: Change condition to
27028         [_POSIX_REALTIME_SIGNALS > 0].
27029
27030 2012-10-27  Andreas Jaeger  <aj@suse.de>
27031
27032         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
27033         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
27034         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
27035         [__WORDSIZE != 64]: Likewise.
27036
27037 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
27038
27039         *  iconvdata/tst-table.sh: Remove ${SHELL}.
27040         *  iconvdata/tst-tables.sh: Likewise.
27041
27042 2012-10-25  David S. Miller  <davem@davemloft.net>
27043
27044         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27045         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
27046         of strtoull.
27047
27048         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
27049         ifunc-impl-list.c
27050         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27051         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
27052         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
27053         file.
27054
27055 2012-10-25  Roland McGrath  <roland@hack.frob.com>
27056
27057         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27058         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
27059         __getdirentries.
27060
27061 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
27062             Jim Blandy  <jimb@codesourcery.com>
27063
27064         * scripts/cross-test-ssh.sh: New file.
27065         * manual/install.texi (Configuring and compiling): Document use of
27066         cross-test-ssh.sh.
27067         * INSTALL: Regenerated.
27068
27069 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
27070
27071         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
27072         EOPNOTSUPP.
27073
27074 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
27075
27076         * Makeconfig (run-program-prefix): Fix comment.
27077
27078 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
27079             Jim Blandy  <jimb@codesourcery.com>
27080
27081         * Makeconfig (test-wrapper): New variable,
27082         (test-wrapper-env): Likewise.
27083         [$(cross-compiling) = yes && $(test-wrapper) != ""]
27084         (run-built-tests): Define to yes.
27085         (run-program-prefix): Use $(test-wrapper).
27086         (built-program-cmd): Likewise.
27087         * Rules (make-test-out): Use $(test-wrapper-env) and
27088         $(host-built-program-cmd).
27089         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
27090         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
27091         tst-pathopt.sh.
27092         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
27093         $(test-wrapper-env) to tst-rtld-load-self.sh.
27094         ($(objpfx)order2.out): Use $(test-wrapper).
27095         ($(objpfx)tst-initorder.out): Likewise.
27096         ($(objpfx)tst-initorder2.out): Likewise.
27097         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
27098         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
27099         (test_wrapper_env): New variable.  Use it to run ld.so.
27100         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
27101         Use it to run ld.so.
27102         (test_wrapper_env): Likewise.
27103         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
27104         $(test-wrapper) to run-iconv-test.sh.
27105         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
27106         (ICONV): Use $test_wrapper.
27107         * posix/Makefile ($(objpfx)globtest.out): Pass
27108         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
27109         globtest.sh, not $(run-program-prefix).
27110         * posix/globtest.sh (run_via_rtld_prefix): New variable.
27111         (test_wrapper): Likewise.
27112         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
27113         set together with run_via_rtld_prefix.
27114         (run_program_prefix): Define in terms of test_wrapper and
27115         run_via_rtld_prefix.
27116
27117 2012-10-24  Roland McGrath  <roland@hack.frob.com>
27118
27119         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
27120         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
27121         Targets removed.
27122
27123         [BZ #14743]
27124         * include/time.h: Remove librt_hidden_proto (clock_gettime).
27125         Declare __clock_getres, __clock_gettime, __clock_settime,
27126         __clock_nanosleep, and __clock_getcpuclockid.
27127         * rt/clock_gettime.c: Define __clock_gettime as an alias.
27128         Remove librt_hidden_def (clock_gettime).
27129         * sysdeps/unix/clock_gettime.c: Likewise.
27130         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
27131         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
27132         * rt/clock_getres.c: Define __clock_getres as an alias.
27133         * sysdeps/posix/clock_getres.c: Likewise.
27134         * rt/clock_settime.c: Define __clock_settime as an alias.
27135         * sysdeps/unix/clock_settime.c: Likewise.
27136         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
27137         * sysdeps/unix/clock_nanosleep.c: Likewise.
27138         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
27139         * rt/clock-compat.c: New file.
27140         * rt/Makefile (librt-routines): Add clock-compat and move
27141         $(clock-routines) to ...
27142         (routines): ... here, new variable.
27143         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
27144         Don't add get_clockfreq here.
27145         * rt/Versions (libc: GLIBC_2.17): New version set.
27146         Add clock_* symbols here.
27147         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
27148         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
27149         (GLIBC_2.17): Add clock_* symbols.
27150         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
27151         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
27152         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
27153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
27154         Likewise.
27155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
27156         Likewise.
27157         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
27158         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
27159         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
27160         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
27161         * NEWS: Mention the move.
27162
27163         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
27164         Use __open, __read, __close rather than their public counterparts.
27165         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27166         (__get_clockfreq_via_cpuinfo): Likewise.
27167         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
27168         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
27169
27170         * config.h.in (HAVE_IFUNC): New #undef.
27171         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
27172         was successful.
27173         * configure: Regenerated.
27174
27175 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
27176
27177         * configure.in: Move READELF check to start of file.
27178         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
27179         libc_cv_asm_gnu_indirect_function in the process.
27180         * configure: Regenerated.
27181
27182 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
27183
27184         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
27185         send the output to /dev/null.
27186         (libc_cv_cc_with_libunwind): Likewise.
27187         (libc_cv_as_noexecstack): Likewise.
27188         * configure: Regenerate.
27189
27190 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
27191
27192         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
27193
27194         * posix/globtest.sh (TMPDIR): Do not set.
27195         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
27196         (testout): Likewise.
27197
27198 2012-10-24  Andreas Jaeger  <aj@suse.de>
27199
27200         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
27201         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
27202         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
27203         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
27204         posix_fadvise64, posix_fallocate64.
27205
27206         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
27207         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
27208         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
27209         Likewise.
27210         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
27211         Likewise.
27212         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
27213
27214         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
27215         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
27216         <bits/fcntl-linux.h>.
27217         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
27218
27219         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
27220         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
27221         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
27222         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
27223         [__WORDSIZE != 64]: Likewise.
27224
27225 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
27226
27227         * Makeconfig (run-built-tests): New variable.
27228         * Rules [$(cross-compiling) = yes]: Change condition to
27229         [$(run-built-tests) = no].
27230         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
27231         to [$(run-built-tests) = yes].
27232         * elf/Makefile [$(cross-compiling) = no]: Likewise
27233         * grp/Makefile [$(cross-compiling) = no]: Likewise.
27234         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
27235         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
27236         * intl/Makefile [$(cross-compiling) = no]: Likewise.
27237         * io/Makefile [$(cross-compiling) = no]: Likewise.
27238         * libio/Makefile [$(cross-compiling) = no]: Likewise.
27239         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
27240         * misc/Makefile [$(cross-compiling) = no]: Likewise.
27241         * posix/Makefile [$(cross-compiling) = no]: Likewise.
27242         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
27243         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
27244         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
27245         * string/Makefile [$(cross-compiling) = no]: Likewise.
27246
27247         * posix/Makefile ($(objpfx)globtest.out): Pass
27248         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
27249         $(rtld-installed-name).
27250         * posix/globtest.sh (elf_objpfx): Remove variable.
27251         (rtld_installed_name): Likewise.
27252         (library_path): Likewise.
27253         (run_program_prefix): New variable.  Use for running globtest
27254         binary.
27255
27256 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
27257             Joseph Myers  <joseph@codesourcery.com>
27258
27259         * Makeconfig (host-built-program-cmd): New variable.
27260         * elf/Makefile (tst-stackguard1-ARGS): Use
27261         $(host-built-program-cmd).
27262         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
27263         (tst-spawn-ARGS): Likewise.
27264         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
27265
27266 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
27267             Jim Blandy  <jimb@codesourcery.com>
27268
27269         * Makeconfig (run-via-rtld-prefix): New variable.
27270         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
27271         (built-program-cmd): Likewise.
27272
27273 2012-10-22  Andreas Jaeger  <aj@suse.de>
27274
27275         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
27276         __O_RSYNC if it exists, otherwise to O_SYNC.
27277
27278 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
27279             Joseph Myers  <joseph@codesourcery.com>
27280
27281         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
27282         /dev/null.
27283         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
27284         from /dev/null
27285         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
27286         /dev/null.
27287
27288 2012-10-22  Andreas Jaeger  <aj@suse.de>
27289
27290         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
27291         Define always.
27292         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
27293
27294         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27295         bits/fcntl-linux.h.
27296
27297         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
27298         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
27299
27300         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
27301         to __O_LARGEFILE.
27302         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
27303         to __O_LARGEFILE.
27304
27305 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
27306             Joseph Myers  <joseph@codesourcery.com>
27307
27308         * config.make.in (NM): New variable.
27309
27310 2012-10-21  Andreas Jaeger  <aj@suse.de>
27311
27312         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
27313         definitions and declarations that are provided by
27314         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
27315
27316 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27317
27318         [BZ #14683]
27319         * elf/Makefile (tests-static): Add tst-leaks1-static.
27320         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
27321         ($(objpfx)tst-leaks1-static): New rule.
27322         ($(objpfx)tst-leaks1-static-mem): Likewise.
27323         (tst-leaks1-static-ENV): New macro.
27324         * elf/dl-open.c (dl_open_worker): Check the main application
27325         only if SHARED is defined.
27326         * elf/tst-leaks1-static.c: New file.
27327
27328 2012-10-20  Andreas Jaeger  <aj@suse.de>
27329
27330         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
27331         generic values for Linux.
27332         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
27333         and declarations that are provided by <bits/fcntl-linux.h> and
27334         include <bits/fcntl-linux.h>.
27335         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27336         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27337
27338 2012-10-20  Roland McGrath  <roland@hack.frob.com>
27339
27340         * io/fcntl.h: Move include of <bits/types.h> to the top and
27341         include it unconditionally.
27342
27343 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27344
27345         * wcsmbs/Makefile (tests-ifunc): New variable.
27346         (tests): Add $(tests-ifunc).
27347         * wcsmbs/test-wcschr-ifunc.c: New file.
27348         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
27349         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
27350         * wcsmbs/test-wcslen-ifunc.c: Likewise.
27351         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
27352         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
27353
27354         * string/Makefile (tests-ifunc): New variable.
27355         (tests): Add $(tests-ifunc).
27356         * string/test-memccpy.c (TEST_NAME): New macro.
27357         * string/test-memchr.c (TEST_NAME): Likewise.
27358         * string/test-memcmp.c (TEST_NAME): Likewise.
27359         * string/test-memcpy.c (TEST_NAME): Likewise.
27360         * string/test-memmem.c (TEST_NAME): Likewise.
27361         * string/test-memmove.c (TEST_NAME): Likewise.
27362         * string/test-memset.c (TEST_NAME): Likewise.
27363         * string/test-rawmemchr.c (TEST_NAME): Likewise.
27364         * string/test-stpcpy.c (TEST_NAME): Likewise.
27365         * string/test-stpncpy.c (TEST_NAME): Likewise.
27366         * string/test-strcasecmp.c (TEST_NAME): Likewise.
27367         * string/test-strcasestr.c (TEST_NAME): Likewise.
27368         * string/test-strcat.c (TEST_NAME): Likewise.
27369         * string/test-strchr.c (TEST_NAME): Likewise.
27370         * string/test-strcmp.c(TEST_NAME): Likewise.
27371         * string/test-strcpy.c (TEST_NAME): Likewise.
27372         * string/test-strcspn.c (TEST_NAME): Likewise.
27373         * string/test-strlen.c (TEST_NAME): Likewise.
27374         * string/test-strncasecmp.c (TEST_NAME): Likewise.
27375         * string/test-strncmp.c (TEST_NAME): Likewise.
27376         * string/test-strncpy.c (TEST_NAME): Likewise.
27377         * string/test-strnlen.c (TEST_NAME): Likewise.
27378         * string/test-strpbrk.c (TEST_NAME): Likewise.
27379         * string/test-strrchr.c (TEST_NAME): Likewise.
27380         * string/test-strspn.c (TEST_NAME): Likewise.
27381         * string/test-strstr.c (TEST_NAME): Likewise.
27382         * string/test-bcopy-ifunc.c: New file.
27383         * string/test-bzero-ifunc.c: Likewise.
27384         * string/test-memccpy-ifunc.c: Likewise.
27385         * string/test-memchr-ifunc.c: Likewise.
27386         * string/test-memcmp-ifunc.c: Likewise.
27387         * string/test-memcpy-ifunc.c: Likewise.
27388         * string/test-memmem-ifunc.c: Likewise.
27389         * string/test-memmove-ifunc.c: Likewise.
27390         * string/test-mempcpy-ifunc.c: Likewise.
27391         * string/test-memset-ifunc.c: Likewise.
27392         * string/test-rawmemchr-ifunc.c: Likewise.
27393         * string/test-stpcpy-ifunc.c: Likewise.
27394         * string/test-stpncpy-ifunc.c: Likewise.
27395         * string/test-strcasecmp-ifunc.c: Likewise.
27396         * string/test-strcasestr-ifunc.c: Likewise.
27397         * string/test-strcat-ifunc.c: Likewise.
27398         * string/test-strchr-ifunc.c: Likewise.
27399         * string/test-strchrnul-ifunc.c: Likewise.
27400         * string/test-strcmp-ifunc.c: Likewise.
27401         * string/test-strcpy-ifunc.c: Likewise.
27402         * string/test-strcspn-ifunc.c: Likewise.
27403         * string/test-strlen-ifunc.c: Likewise.
27404         * string/test-strncasecmp-ifunc.c: Likewise.
27405         * string/test-strncat-ifunc.c: Likewise.
27406         * string/test-strncmp-ifunc.c: Likewise.
27407         * string/test-strncpy-ifunc.c: Likewise.
27408         * string/test-strnlen-ifunc.c: Likewise.
27409         * string/test-strpbrk-ifunc.c: Likewise.
27410         * string/test-strrchr-ifunc.c: Likewise.
27411         * string/test-strspn-ifunc.c: Likewise.
27412         * string/test-strstr-ifunc.c: Likewise.
27413
27414         * debug/Makefile (tests-ifunc): New variable.
27415         (tests): Add $(tests-ifunc).
27416         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
27417         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
27418         * debug/test-stpcpy_chk-ifunc.c: New file.
27419         * debug/test-strcpy_chk-ifunc.c: Likewise.
27420
27421 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
27422
27423         [BZ #13601]
27424         * elf/dl-load.c (open_verify): Retry read if the entire ELF
27425         header is not read in.
27426
27427 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
27428
27429         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
27430         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
27431         directly.  Pass built executable to script as
27432         $(built-program-cmd).
27433         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
27434         $testprogram without using LD_LIBRARY_PATH and $ldso.
27435
27436         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
27437         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
27438         $(rtld-installed-name).
27439         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
27440         (rtld_installed_name): Likewise.
27441         (library_path): Likewise.
27442         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
27443         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
27444         $(run-program-prefix) to tst-tables.sh.
27445         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
27446         it to run tst-table-from and tst-table-to.
27447         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
27448         Pass it to tst-table.sh.
27449         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
27450         $(run-program-prefix) to tst-gettext.sh.
27451         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
27452         tst-translit.sh.
27453         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
27454         tst-gettext2.sh.
27455         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
27456         to run tst-gettext.
27457         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
27458         to run tst-gettext2.
27459         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
27460         to run tst-translit.
27461         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
27462         $(run-program-prefix) to tst-mtrace.sh.
27463         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
27464         to run tst-mtrace.
27465         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
27466         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
27467         $(rtld-installed-name).
27468         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
27469         (rtld_installed_name): Likewise.
27470         (run_program_prefix): New variable.  Use it to run wordexp-test.
27471
27472         * Makeconfig (ARCH): Remove all definitions.
27473         (machine): Likewise.
27474         [ARCH]: Remove conditional code.
27475         [!objdir]: Give error.
27476         [!objdir] (objpfx): Remove.
27477         [!objdir] (common-objpfx): Likewise.
27478         [!objdir] (common-objdir): Likewise.
27479         * configure.in (config_makefile): Remove.  Hardcode Makefile in
27480         AC_CONFIG_FILES call.
27481         * configure: Regenerated.
27482
27483         [BZ #13888]
27484         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
27485         or TMPDIR.
27486         (testout): Likewise.
27487
27488         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
27489         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
27490         $(rtld-installed-name).
27491         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
27492         (rtld_installed_name): Likwise.
27493         (runit): Remove function.
27494         (run_getconf): New variable,  Use it for running getconf binary.
27495
27496 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
27497
27498         [BZ #14716]
27499         * string/test-memmem.c (check_result): New function.
27500         (do_one_test): Use it.
27501         (check1): New function.
27502         (test_main): Use it.
27503
27504 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
27505
27506         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
27507
27508 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
27509
27510         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
27511         (_G_LSEEK64): Likewise.
27512         (_G_MMAP64): Likewise.
27513         (_G_FSTAT64): Likewise.
27514         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
27515         (_G_LSEEK64): Likewise.
27516         (_G_MMAP64): Likewise.
27517         (_G_FSTAT64): Likewise.
27518         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
27519         unconditional.  Call __mmap64 directly.
27520         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
27521         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
27522         __lseek64 directly.
27523         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
27524         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
27525         __mmap64 directly.
27526         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
27527         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
27528         __lseek64 directly.
27529         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
27530         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
27531         __lseek64 directly.
27532         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
27533         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
27534         __lseek64 directly.
27535         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
27536         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
27537         __fxstat64 directly.
27538         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
27539         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
27540         unconditional.
27541         (freopen64) [!_G_OPEN64]: Remove conditional code.
27542         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
27543         unconditional.
27544         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
27545         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
27546         unconditional.
27547         (ftello64) [!_G_LSEEK64]: Remove conditional code.
27548         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
27549         unconditional.
27550         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
27551         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
27552         unconditional.
27553         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
27554         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
27555         unconditional.
27556         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
27557         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
27558         unconditional.
27559         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
27560         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
27561         unconditional.
27562         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
27563
27564 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
27565
27566         [BZ #12140]
27567         * manual/memory.texi (Malloc Tunable Parameters): Add note
27568         about free list pointers overwriting some perturb bytes.
27569         Wording suggested by Roland McGrath.
27570
27571 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
27572
27573         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
27574         (lgamma_test): Likewise.
27575         (tgamma_test): Likewise.
27576
27577 2012-10-16  Florian Weimer  <fweimer@redhat.com>
27578
27579         [BZ #14700]
27580         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
27581         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
27582
27583 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
27584
27585         * NEWS: Mention BZ #14716.
27586         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
27587         when removing AVAILABLE1_USES_J macro.
27588
27589 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
27590
27591         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
27592         (__bswap_64): __uint64_t for unsigned 64-bit int.
27593
27594 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
27595
27596         * include/string.h (memmem): Declare libc hidden alias.
27597         * string/memmem.c (memmem): Define libc hidden alias.
27598         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
27599         __read, __close instead of open, read, close.
27600
27601 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
27602
27603         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
27604         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
27605         global and hidden.
27606         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
27607         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
27608         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
27609         Likewise.
27610         (__rawmemchr_sse2): Likewise.
27611         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
27612         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
27613         (__strchr_sse2): Likewise.
27614         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
27615         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
27616         (__strcasecmp_sse2): Likewise.
27617         (__strncasecmp_sse2): Likewise.
27618         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
27619         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
27620         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
27621         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
27622         (__strrchr_sse2): Likewise.
27623         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
27624         ifunc-impl-list.c.
27625         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27626         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27627         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27628         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27629         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27630         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27631         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27632         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27633         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
27634         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
27635         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
27636         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
27637         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
27638         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27639         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27640         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27641         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27642         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27643         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
27644         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
27645         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
27646         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
27647         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
27648         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
27649         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
27650         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
27651         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27652         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
27653         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27654         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27655
27656         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
27657         global and hidden.
27658         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
27659         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
27660         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
27661         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
27662         Likewise.
27663         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
27664         Likewise.
27665         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
27666         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
27667         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
27668         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
27669         ifunc-impl-list.c.
27670         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27671         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27672         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27673         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27674         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27675         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27676         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27677         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27678         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27679         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27680         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27681         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27682         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27683         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
27684         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
27685         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27686         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
27687         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
27688         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27689         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27690         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27691         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27692         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27693         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27694         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27695         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
27696         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
27697         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
27698         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
27699         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27700         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
27701         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27702         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27703         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
27704         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27705         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27706         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27707         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27708         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27709         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27710         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
27711
27712         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
27713         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
27714         * include/ifunc-impl-list.h: New file.
27715         * misc/ifunc-impl-list.c: Likewise.
27716         * misc/Makefile (routines): Add ifunc-impl-list.
27717         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
27718         * string/test-string.h: Include <ifunc-impl-list.h>.
27719         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
27720         TEST_NAME]: New variables.
27721         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
27722         are defined.
27723         (test_init): Call __libc_ifunc_impl_list to initialize
27724         func_list if TEST_IFUNC and TEST_NAME are defined.
27725
27726         * string/Makefile (strop-tests): Add bcopy and bzero.
27727         * string/test-bcopy.c: New file.
27728         * string/test-bzero.c: Likewise.
27729         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
27730         defined.
27731         * string/test-memset.c: Support bzero test if TEST_BZERO is
27732         defined.
27733         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
27734         __libc_memmove.
27735         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
27736         __libc_memset.
27737         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
27738         of memset.
27739
27740 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
27741
27742         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
27743         * configure: Regenerated.
27744
27745         * Makeconfig (+link-static-before-libc): Don't include
27746         $(link-static-libc).
27747
27748         * libio/libio.h (_IO_pos_t): Remove.
27749
27750 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27751
27752         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
27753         McGrath.
27754
27755 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27756
27757         * crypt/crypt-entry.c: Include fips-private.h.
27758         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
27759         * crypt/md5c-test.c (main): Tolerate disabled MD5.
27760         * sysdeps/unix/sysv/linux/fips-private.h: New file.
27761         * sysdeps/generic/fips-private.h: New file, dummy fallback.
27762
27763 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27764
27765         * crypt/crypt-private.h: Include stdbool.h.
27766         (_ufc_setup_salt_r): Return bool.
27767         * crypt/crypt-entry.c: Include errno.h.
27768         (__crypt_r): Return NULL with EINVAL for bad salt.
27769         * crypt/crypt_util.c (bad_for_salt): New.
27770         (_ufc_setup_salt_r): Check that salt is long enough and within
27771         the specified alphabet.
27772         * crypt/badsalttest.c: New file.
27773         * crypt/Makefile (tests): Add it.
27774         ($(objpfx)badsalttest): New.
27775
27776 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
27777
27778         * NEWS: Add entry for BZ #14602.
27779
27780 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27781
27782         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
27783         type-generic.
27784         * math/libm-test.inc: Update comment listing what functions and
27785         macros are tested.
27786         (isgreater_test): New function.
27787         (isgreaterequal_test): Likewise.
27788         (isless_test): Likewise.
27789         (islessequal_test): Likewise.
27790         (islessgreater_test): Likewise.
27791         (isunordered_test): Likewise.
27792         (main): Call the new functions.
27793
27794 2012-10-09  Roland McGrath  <roland@hack.frob.com>
27795
27796         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
27797         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
27798         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
27799         * sysdeps/i386/configure: Regenerated.
27800         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
27801         * sysdeps/mach/configure: Regenerated.
27802         * sysdeps/mach/hurd/configure: Regenerated.
27803         * sysdeps/powerpc/configure: Regenerated.
27804         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27805         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27806         * sysdeps/s390/s390-32/configure: Regenerated.
27807         * sysdeps/s390/s390-64/configure: Regenerated.
27808         * sysdeps/sh/configure: Regenerated.
27809         * sysdeps/sparc/configure: Regenerated.
27810         * sysdeps/unix/sysv/linux/configure: Regenerated.
27811         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
27812         * sysdeps/x86_64/configure: Regenerated.
27813
27814         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
27815         defined.  Don't check if MAP is NULL.
27816
27817 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27818
27819         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
27820         (_G_stat64): Likewise.
27821         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
27822         (_G_stat64): Likewise.
27823         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
27824         instead of struct _G_stat64.
27825         * libio/fileops.c (mmap_remap_check): Likewise.
27826         (decide_maybe_mmap): Likewise.
27827         (_IO_new_file_seekoff): Likewise.
27828         (_IO_file_stat): Likewise.
27829         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
27830         _G_off64_t.
27831         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
27832         instead of struct _G_stat64.
27833         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27834
27835 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
27836
27837         [BZ #14602]
27838         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27839         Replace with ...
27840         (CHECK_EOL): New macro.
27841         (two_way_short_needle): Check beginning of haystack for EOL.  Use
27842         CHECK_EOL.
27843         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27844         Replace with CHECK_EOL.
27845         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27846         Replace with CHECK_EOL.
27847
27848 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
27849
27850         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
27851         type-generic.
27852         * math/libm-test.inc: Update comment listing what functions and
27853         macros are tested.
27854         (finite_test): New function.
27855         (isinf_test): Likewise.
27856         (isnan_test): Likewise.
27857         (fpclassify_test): Test subnormal input.
27858         (isfinite_test): Likewise.
27859         (isnormal_test): Likewise.
27860         (main): Call the new functions.
27861
27862 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
27863
27864         [BZ #14660]
27865         * Makerules (%.dynsym): Force C locale when running
27866         $(OBJDUMP) --dynamic-syms.
27867
27868 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
27869
27870         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
27871         <stdint.h>.
27872
27873 2012-10-06  David S. Miller  <davem@davemloft.net>
27874
27875         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
27876         upper 32-bits of the length value in %o2 since we use branch-on-register
27877         tests which consider the entire 64-bit register.
27878
27879 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
27880
27881         * string/test-strstr.c (check2): Add a test for page boundary.
27882
27883 2012-10-05  David S. Miller  <davem@davemloft.net>
27884
27885         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
27886         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
27887         file.
27888         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27889         sysdep_routines.
27890         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27891         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
27892         and bzero when HWCAP_SPARC_CRYPTO is present.
27893
27894 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
27895
27896         [BZ #14602]
27897         * string/test-strstr.c (check2): New function.
27898         (test_main): Call check2.
27899
27900         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
27901         and bug-strchr1.
27902         * string/bug-strcasestr1.c (do_test): Moved to ...
27903         * string/test-strcasestr.c (check1): Here.  New function.
27904         (do_one_test): Break out result checking code into ...
27905         (check_result): This.  New function.
27906         (do_one_test): Call check_result.
27907         (test_main): Call check1.
27908         * string/bug-strchr1.c (do_test): Moved to ...
27909         * string/test-strchr.c (check1): Here.  New function.
27910         (do_one_test): Break out result checking code into ...
27911         (check_result): This.  New function.
27912         (do_one_test): Call check_result.
27913         (test_main): Call check1.
27914         * string/bug-strstr1.c (main): Moved to ...
27915         * string/test-strstr.c (check1): Here.  New function.
27916         (do_one_test): Break out result checking code into ...
27917         (check_result): This.  New function.
27918         (do_one_test): Call check_result.
27919         (test_main): Call check1.
27920         * string/bug-strcasestr1.c: Removed.
27921         * string/bug-strchr1.c: Likewise.
27922         * string/bug-strstr1.c: Likewise.
27923
27924         * elf/Makefile (dl-routines): Add hwcaps.
27925         * elf/dl-support.c (_dl_important_hwcaps): Removed.
27926         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
27927         (_dl_important_hwcaps): Moved to ...
27928         * elf/dl-hwcaps.c: Here.  New file.
27929         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
27930
27931         [BZ #14557]
27932         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
27933         if IS_IN_rtld isn't defined.
27934
27935         * elf/dl-support.c (_dl_sysinfo_map): New.
27936         Include "get-dynamic-info.h" and "setup-vdso.h".
27937         (_dl_non_dynamic_init): Call setup_vdso.
27938         * elf/dynamic-link.h: Don't include <assert.h>.
27939         (elf_get_dynamic_info): Moved to ...
27940         * elf/get-dynamic-info.h: Here.  New file.
27941         * elf/dynamic-link.h: Include "get-dynamic-info.h".
27942         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
27943         * elf/setup-vdso.h: Here.  New file.
27944         * elf/rtld.c: Include "setup-vdso.h".
27945         (dl_main): Call setup_vdso.
27946
27947 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
27948
27949         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
27950         creal in comment listing functions tested.  List finite, isinf,
27951         isnan, isless, islessequal, isgreater, isgreaterequal,
27952         islessgreater, isunordered, lgamma_r and pow10 as functions and
27953         macros not tested.  Mention which functions not tested are aliases
27954         for other functions.  Fix typo.  Note that signs of NaNs are not
27955         tested.
27956
27957         * scripts/config.guess: Update from config.git.
27958         * scripts/config.sub: Likewise.
27959
27960 2012-10-04  Roland McGrath  <roland@hack.frob.com>
27961
27962         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
27963         * misc/madvise.c (madvise): Renamed to __madvise.
27964         Make madvise a weak alias.
27965         * include/sys/mman.h: Declare __madvise.
27966         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
27967         * sysdeps/unix/syscalls.list
27968         (madvise): Make __madvise the strong name, and madvise a weak alias.
27969         * sysdeps/unix/sysv/linux/syscalls.list
27970         (madvise, mmap): Remove redundant entries.
27971         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
27972         * malloc/malloc.c (mtrim): Likewise.
27973         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
27974
27975 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27976
27977         * sysdeps/mach/hurd/dl-cache.c: File removed.
27978         * config.h.in (USE_LDCONFIG): New #undef.
27979         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
27980         * configure: Regenerated.
27981         * elf/Makefile (dl-routines): Add dl-cache only under
27982         [$(use-ldconfig) = yes].
27983         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
27984         cache on [USE_LDCONFIG].
27985         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
27986         [USE_LDCONFIG].
27987         * elf/rtld.c (dl_main): Likewise.
27988
27989 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
27990
27991         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
27992         _SC_LEVEL4_CACHE_LINESIZE.
27993
27994 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27995
27996         * sysdeps/unix/bsd/confstr.h: File removed.
27997
27998 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
27999
28000         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
28001         sys/sdt-config.h.
28002
28003 2012-10-02  Roland McGrath  <roland@hack.frob.com>
28004
28005         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
28006         Make 'mapoff' field ElfW(Off) rather than off_t.
28007
28008 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
28009
28010         * nscd/Makefile: Remove nscd-cflags and all its users.
28011         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
28012         (CFLAGS-nonlib): Add compiler flags for nscd modules.
28013
28014         [BZ #10631]
28015         * malloc.c (malloc_printerr): Clarify error message.
28016
28017 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
28018
28019         [BZ #14648]
28020         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28021         Set bit_FMA_Usable if FMA is supported.
28022         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
28023         macro.
28024         (bit_FMA4_Usable): Updated.
28025         (index_FMA_Usable): New macro.
28026         (CPUID_FMA): Likewise
28027         (HAS_FMA): Defined with bit_FMA_Usable.
28028
28029 2012-10-01  Roland McGrath  <roland@hack.frob.com>
28030
28031         * bits/types.h (__swblk_t): Type removed.
28032         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
28033         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
28034         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
28035         (__SWBLK_T_TYPE): Likewise.
28036         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28037         (__SWBLK_T_TYPE): Likewise.
28038         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28039         (__SWBLK_T_TYPE): Likewise.
28040         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
28041         (__SWBLK_T_TYPE): Likewise.
28042
28043 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
28044             Honza Horak <hhorak@redhat.com>
28045
28046         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
28047         (xdr_mapname): Use YPMAXMAP as maxsize.
28048         (xdr_peername): Use YPMAXPEER as maxsize.
28049         (xdr_keydat): Use YPAXRECORD as maxsize.
28050         (xdr_valdat): Use YPMAXRECORD as maxsize.
28051
28052 2012-10-01  Roland McGrath  <roland@hack.frob.com>
28053
28054         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
28055
28056         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
28057         * csu/init-first.c: ... here.
28058         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
28059         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
28060         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
28061         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
28062         * sysdeps/i386/init-first.c: File removed.
28063         * sysdeps/sh/init-first.c: File removed.
28064
28065 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
28066
28067         [BZ #14645]
28068         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
28069         if x * y might underflow to zero and z is zero.
28070         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
28071         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
28072         * math/libm-test.inc (min_subnorm_value): New variable.
28073         (fma_test): Add more tests.
28074         (fma_test_towardzero): Likewise.
28075         (fma_test_downward): Likewise
28076         (fma_test_upward): Likewise.
28077         (initialize): Set min_subnorm_value.
28078
28079 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
28080
28081         [BZ #14638]
28082         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
28083         0 + 0.
28084         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
28085         mode for addition resulting in exact zero.
28086         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
28087         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
28088         exact 0 + 0.
28089         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
28090         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
28091         * math/libm-test.inc (fma_test): Add more tests.
28092         (fma_test_towardzero): New function.
28093         (fma_test_downward): Likewise.
28094         (fma_test_upward): Likewise.
28095         (main): Call the new functions.
28096
28097 2012-09-28  David S. Miller  <davem@davemloft.net>
28098
28099         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
28100
28101 2012-09-28  Roland McGrath  <roland@hack.frob.com>
28102
28103         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
28104         instead of SIGALRM.
28105
28106         * sysdeps/gnu/_G_config.h: Moved to ...
28107         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
28108         * sysdeps/mach/hurd/_G_config.h: Moved to ...
28109         * sysdeps/generic/_G_config.h: ... here.
28110
28111         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
28112
28113         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
28114
28115         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
28116         Conditionalize target on [libnss_test1.so-version].
28117
28118         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
28119
28120         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
28121         (elfobjdir): Move out of conditionals.
28122
28123         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
28124         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
28125         (__nss_lookup_function): Conditionalize label remove_from_tree on
28126         [!DO_STATIC_NSS || SHARED], matching its only use.
28127
28128 2012-09-28  David S. Miller  <davem@davemloft.net>
28129
28130         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
28131         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
28132         file.
28133         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
28134         sysdep_routines.
28135         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
28136         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
28137         when HWCAP_SPARC_CRYPTO is present.
28138
28139 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
28140
28141         * io/tst-mknodat.c: Create a FIFO instead of a socket.
28142
28143 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
28144
28145         [BZ #6530]
28146         * stdio-common/vfprintf.c (process_string_arg): Revert
28147         2000-07-22 change.
28148
28149 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
28150
28151         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
28152         for testcase.
28153         * stdio-common/tst-sprintf.c: Include <locale.h>
28154         (main): Test sprintf's handling of incomplete multibyte
28155         characters.
28156
28157 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
28158
28159         * elf/dl-runtime.c (VERSYMIDX): Removed.
28160         * elf/dl-version.c (VERSYMIDX): Likewise.
28161         * elf/do-rel.h (VERSYMIDX): Likewise.
28162         (VALIDX): Likewise.
28163         * elf/dynamic-link.h (VERSYMIDX): Likewise.
28164         * elf/rtld.c (VALIDX): Likewise.
28165         (ADDRIDX): Likewise.
28166         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
28167         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
28168         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
28169         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
28170         (VALIDX): Likewise.
28171         (ADDRIDX): Likewise.
28172
28173 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
28174
28175         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
28176
28177 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
28178
28179         [BZ #11438]
28180         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
28181         to global scope.
28182         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
28183         addresses are in the same scope as 192.0.2/24.
28184         * posix/gai.conf: Document new scope table defaults.
28185
28186 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28187
28188         [BZ #5298]
28189         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
28190         for ftell.  Compute offsets from write pointers instead.
28191         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
28192
28193 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28194
28195         [BZ #14543]
28196         * libio/Makefile (tests): New test case tst-fseek.
28197         * libio/tst-fseek.c: New test case to verify that fseek/ftell
28198         combination works in wide mode.
28199         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
28200         state when the external buffer state changes.
28201
28202 2012-09-27  David S. Miller  <davem@davemloft.net>
28203
28204         [BZ #14376]
28205         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
28206         pass reloc->r_addend in as the 'high' argument to
28207         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
28208
28209         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28210
28211 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
28212
28213         * rt/tst-aio2.c: Include <pthread.h>.
28214         * rt/tst-aio3.c: Likewise.
28215
28216 2012-09-27  Steve Ellcey  <sellcey@mips.com>
28217
28218         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
28219
28220 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
28221
28222         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
28223         contents on [SHARED].
28224
28225 2012-09-26  Marek Polacek  <polacek@redhat.com>
28226
28227         [BZ #14530]
28228         [BZ #13741]
28229         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
28230         for C++ and GCC <4.3 as well as for non GCC compilers.
28231
28232 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
28233
28234         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28235
28236 2012-09-25  Roland McGrath  <roland@hack.frob.com>
28237
28238         * Makefile.in (all, install): Declare with .PHONY.
28239         Reported by Michael Hope <michael.hope@linaro.org>.
28240
28241 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
28242
28243         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
28244         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
28245         system header.
28246         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
28247         Likewise.
28248         (sydep_routines): Add the new and the internal functions.
28249         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
28250         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
28251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
28252         (GLIBC_2.17): Add the new function.
28253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
28254         (GLIBC_2.17): Likewise.
28255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
28256         (GLIBC_2.17): Likewise.
28257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
28258         (GLIBC_2.17): Likewise.
28259         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
28260
28261 2012-09-25  Alan Modra  <amodra@gmail.com>
28262
28263         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
28264         Add release barrier before setting once_control to say
28265         initialisation is done.  Add hints on lwarx.  Use macro in
28266         place of isync.
28267         (clear_once_control): Add release barrier.
28268
28269 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
28270
28271         [BZ #13629]
28272         * math/s_clog.c (__clog): Handle more values close to |z| = 1
28273         specially.
28274         * math/s_clog10.c (__clog10): Likewise.
28275         * math/s_clog10f.c (__clog10f): Likewise.
28276         * math/s_clog10l.c (__clog10l): Likewise.
28277         * math/s_clogf.c (__clogf): Likewise.
28278         * math/s_clogl.c (__clogl): Likewise.
28279         * math/Makefile (libm-calls): Add x2y2m1.
28280         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
28281         (__x2y2m1): Likewise.
28282         (__x2y2m1l): Likewise.
28283         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
28284         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
28285         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
28286         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
28287         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
28288         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
28289         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
28290         * sysdeps/i386/fpu/libm-test-ulps: Update.
28291         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28292
28293         [BZ #14621]
28294         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
28295         int as type of variable DEPTH.
28296         (glob): Use size_t instead of int as type of variables NEWCOUNT
28297         and OLD_PATHC.
28298
28299 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28300
28301         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
28302         Add s_sincosf-sse2.
28303         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
28304         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
28305         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
28306         macros for using routine as __sincosf_ia32.
28307         Use macro for function declaration and weak_alias.
28308         * sysdeps/i386/fpu/libm-test-ulps: Update.
28309
28310         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
28311         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28312
28313         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
28314         subnormal argument.
28315         * math/s_cexpf.c (__cexpf): Likewise.
28316         * math/s_csinf.c (__csinf): Likewise.
28317         * math/s_csinhf.c (__csinhf): Likewise.
28318         * math/s_ctanf.c (__ctanf): Likewise.
28319         * math/s_ctanhf.c (__ctanhf): Likewise.
28320         * math/s_ccosh.c (__ccoshf): Likewise.
28321         * math/s_cexp.c (__cexpl): Likewise.
28322         * math/s_csin.c (__csin): Likewise.
28323         * math/s_csinh.c (__csinh): Likewise.
28324         * math/s_ctan.c (__ctan): Likewise.
28325         * math/s_ctanh.c (ctanh): Likewise.
28326         * math/s_ccoshl.c (__ccoshl): Likewise.
28327         * math/s_cexpl.c (__cexpl): Likewise.
28328         * math/s_csinl.c (__csinl): Likewise.
28329         * math/s_csinhl.c (__csinhl): Likewise.
28330         * math/s_ctanl.c (__ctanl): Likewise.
28331         * math/s_ctanhl.c (__ctanhl): Likewise.
28332
28333 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
28334
28335         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
28336         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
28337         (_IO_off_t): Define to __off_t, not _G_off_t.
28338         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
28339         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
28340         (_IO_wint_t): Define to wint_t, not _G_wint_t.
28341         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
28342         type of __dummy and __dummy2 fields.
28343         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
28344         (_G_ssize_t): Likewise.
28345         (_G_off_t): Likewise.
28346         (_G_pid_t): Likewise.
28347         (_G_uid_t): Likewise.
28348         (_G_wchar_t): Likewise.
28349         (_G_wint_t): Likewise.
28350         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
28351         (_G_ssize_t): Likewise.
28352         (_G_off_t): Likewise.
28353         (_G_pid_t): Likewise.
28354         (_G_uid_t): Likewise.
28355         (_G_wchar_t): Likewise.
28356         (_G_wint_t): Likewise.
28357         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
28358         (_G_ssize_t): Likewise.
28359         (_G_off_t): Likewise.
28360         (_G_pid_t): Likewise.
28361         (_G_uid_t): Likewise.
28362         (_G_wchar_t): Likewise.
28363         (_G_wint_t): Likewise.
28364
28365 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
28366
28367         * malloc/arena.c: Include malloc-sysdep.h.
28368         (shrink_heap): Use check_may_shrink_heap to decide if madvise
28369         is sufficient to shrink the heap or an unmap is needed.
28370         * sysdeps/generic/malloc-sysdep.h: New file.  Define
28371         new function check_may_shrink_heap.
28372         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
28373         new function check_may_shrink_heap.
28374
28375 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
28376
28377         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
28378         comments.
28379
28380 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
28381
28382         * catgets/test-gencat.sh: Add "set -e".
28383         * elf/tst-pathopt.sh: Likewise.
28384         * grp/tst_fgetgrent.sh: Likewise.
28385         * iconvdata/run-iconv-test.sh: Likewise.
28386         * intl/tst-gettext.sh: Likewise.
28387         * intl/tst-gettext2.sh: Likewise.
28388         * intl/tst-gettext4.sh: Likewise.
28389         * intl/tst-gettext6.sh: Likewise.
28390         * intl/tst-translit.sh: Likewise.
28391         * io/ftwtest-sh: Likewise.
28392         * libio/test-freopen.sh: Likewise.
28393         * malloc/tst-mtrace.sh: Likewise.
28394         * posix/globtest.sh: Likewise.
28395         * posix/tst-getconf.sh: Likewise.
28396         * posix/wordexp-tst.sh: Likewise.
28397         * stdio-common/tst-printf.sh: Likewise.
28398         * stdio-common/tst-unbputc.sh: Likewise.
28399         * stdlib/tst-fmtmsg.sh: Likewise.
28400         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
28401         * catgets/Makefile: Do not specify -e option when running
28402         testsuite shell scripts.
28403         * elf/Makefile: Likewise.
28404         * grp/Makefile: Likewise.
28405         * iconvdata/Makefile: Likewise.
28406         * intl/Makefile: Likewise.
28407         * io/Makefile: Likewise.
28408         * libio/Makefile: Likewise.
28409         * malloc/Makefile: Likewise.
28410         * posix/Makefile: Likewise.
28411         * stdio-common/Makefile: Likewise.
28412         * stdlib/Makefile: Likewise.
28413         * sysdeps/x86_64/Makefile: Likewise.
28414
28415         * io/ftwtest-sh: Add copyright header.
28416         * posix/globtest.sh: Likewise.
28417         * posix/tst-getconf.sh: Likewise.
28418         * posix/wordexp-tst.sh: Likewise.
28419         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
28420
28421 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
28422
28423         [BZ #13679]
28424         * Makeconfig (+link): Defined as $(+link-static) if
28425         $(build-shared) isn't yes.
28426         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
28427         isn't yes.
28428         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
28429
28430         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
28431
28432         [BZ #14562]
28433         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
28434         new chunk size with MALLOC_ALIGN_MASK.
28435
28436 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
28437
28438         [BZ #5044]
28439         * stdio-common/printf_fphex.c: Include <stdbool.h> and
28440         <rounding-mode.h>.
28441         (__printf_fphex): Determine rounding using get_rounding_mode and
28442         round_away.
28443         * stdio-common/tst-printf-round.c (struct hex_test): New
28444         structure.
28445         (hex_tests): New variable.
28446         (test_hex_in_one_mode): New function.
28447         (do_test): Also run tests for hex float output.
28448
28449 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
28450
28451         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
28452         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
28453         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
28454         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
28455         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
28456         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
28457         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
28458         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
28459
28460 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
28461
28462         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
28463         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
28464         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
28465         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
28466
28467 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
28468
28469         [BZ #14579]
28470         * elf/rtld.c (dl_main): Limit the check for self loading to normal
28471         mode only.
28472         * elf/tst-rtld-load-self.sh: New test.
28473         * elf/Makefile: Run it.
28474
28475 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
28476
28477         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
28478         (tst-writev-ENV): Remove.
28479         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
28480
28481 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
28482
28483         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
28484
28485 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
28486
28487         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
28488         unconditional.
28489         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
28490         Likewise.
28491         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
28492         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
28493         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
28494         Likewise.
28495
28496 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
28497
28498         [BZ #14587]
28499         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
28500         * config.make.in (have-cpp-asm-debuginfo): Removed.
28501         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
28502         * configure: Regenerated.
28503
28504 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
28505
28506         [BZ #5044]
28507         * stdio-common/printf_fp.c: Include <stdbool.h> and
28508         <rounding-mode.h>.
28509         (___printf_fp): Determine rounding using get_rounding_mode and
28510         round_away.
28511         * stdio-common/tst-printf-round.c: New file.
28512         * stdio-common/Makefile (tests): Add tst-printf-round.
28513         (link-libm): New variable.
28514         ($(objpfx)tst-printf-round): Depend in $(link-libm).
28515
28516 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
28517
28518         [BZ #14576]
28519         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
28520         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
28521         Likewise.
28522         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
28523         Likewise.
28524
28525 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
28526
28527         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
28528         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
28529         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
28530         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
28531
28532 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
28533
28534         [BZ #14518]
28535         * include/rounding-mode.h: New file.
28536         * sysdeps/generic/get-rounding-mode.h: Likewise.
28537         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
28538         * stdlib/strtod_l.c: Include <rounding-mode.h>.
28539         (MAX_VALUE): New macro.
28540         (MIN_VALUE): Likewise.
28541         (overflow_value): New function.
28542         (underflow_value): Likewise.
28543         (round_and_return): Use overflow_value and underflow_value to
28544         determine return values in overflow and underflow cases.  Use
28545         round_away to determine rounding depending on rounding mode.
28546         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
28547         determine return values in overflow and underflow cases.
28548         * stdlib/tst-strtod-round.c: Include <fenv.h>.
28549         (struct test_results): New structure.
28550         (struct test): Use struct test_results to store expected results
28551         for all rounding modes.
28552         (TEST): Include expected results for all rounding modes.
28553         (test_in_one_mode): New function.
28554         (do_test): Use test_in_one_mode to compute and check results.
28555         Check results for all rounding modes.
28556         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
28557         $(link-libm).
28558
28559 2012-12-09  Allan McRae  <allan@archlinux.org>
28560
28561         * sysdeps/i386/fpu/libm-test-ulps: Update
28562
28563 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
28564
28565         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
28566         (_G_int32_t): Likewise.
28567         (_G_uint16_t): Likewise.
28568         (_G_uint32_t): Likewise.
28569         (_G_HAVE_BOOL): Likewise.
28570         (_G_HAVE_ATEXIT): Likewise.
28571         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28572         (_G_HAVE_IO_FILE_OPEN): Likewise.
28573         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
28574         (_G_int32_t): Likewise.
28575         (_G_uint16_t): Likewise.
28576         (_G_uint32_t): Likewise.
28577         (_G_HAVE_BOOL): Likewise.
28578         (_G_HAVE_ATEXIT): Likewise.
28579         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28580         (_G_HAVE_IO_FILE_OPEN): Likewise.
28581         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
28582         (_G_int32_t): Likewise.
28583         (_G_uint16_t): Likewise.
28584         (_G_uint32_t): Likewise.
28585         (_G_HAVE_BOOL): Likewise.
28586         (_G_HAVE_ATEXIT): Likewise.
28587         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28588         (_G_HAVE_IO_FILE_OPEN): Likewise.
28589
28590 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
28591
28592         * csu/libc-tls.c: Update copyright years.
28593
28594 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
28595
28596         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
28597         [!_G_USING_THUNKS]: Remove conditional code.
28598         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
28599         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
28600
28601         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
28602         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
28603         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28604         (_G_VTABLE_LABEL_PREFIX): Likewise.
28605         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28606         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28607         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28608         (_G_VTABLE_LABEL_PREFIX): Likewise.
28609         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
28610         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28611         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28612         (_G_VTABLE_LABEL_PREFIX): Likewise.
28613         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
28614
28615 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
28616
28617         * libio/Makefile: Include ../Makeconfig before tests.
28618         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
28619         only if $(build-shared) is yes.
28620
28621         * iconv/gconv_db.c: Update copyright years.
28622
28623 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28624
28625         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
28626         unwind info if defined PIC. Fix special cases description.
28627         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
28628
28629         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
28630         DP_HI_MASK entry.
28631         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
28632
28633 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
28634
28635         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
28636
28637         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
28638         is NULL.
28639
28640         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
28641         (LDLIBS-tst-chk4): This.
28642         (LDFLAGS-tst-chk5): Renamed to ...
28643         (LDLIBS-tst-chk5): This.
28644         (LDFLAGS-tst-chk6): Renamed to ...
28645         (LDLIBS-tst-chk6): This.
28646         (LDFLAGS-tst-lfschk4): Renamed to ...
28647         (LDLIBS-tst-lfschk4): This.
28648         (LDFLAGS-tst-lfschk5): Renamed to ...
28649         (LDLIBS-tst-lfschk5): This.
28650         (LDFLAGS-tst-lfschk6): Renamed to ...
28651         (LDLIBS-tst-lfschk6): This.
28652
28653         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
28654         on $(common-objpfx)soversions.mk.
28655
28656 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
28657
28658         [BZ #10014]
28659         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
28660         example host name.
28661
28662 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
28663
28664         * malloc/arena.c (arena_get_retry): New function that gets
28665         another arena for the caller to try its request on.
28666         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
28667         current arena cannot fulfill the request.
28668         (__libc_memalign): Likewise.
28669         (__libc_memalign): Likewise.
28670         (__libc_pvalloc): Likewise.
28671         (__libc_calloc): Likewise.
28672
28673 2012-09-05  John Tobey  <john.tobey@gmail.com>
28674
28675         [BZ #13542]
28676         * manual/arith.texi (Operations on Complex): Fix description
28677         of carg branch cut.
28678
28679 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28680
28681         [BZ #10014]
28682         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
28683         host name.
28684
28685         [BZ #10038]
28686         * manual/memory.texi (Memory): Make order of menu items match
28687         order of sections.
28688
28689 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28690
28691         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
28692         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
28693         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
28694
28695 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28696
28697         * csu/libc-tls.c (static_dtv): Renamed to ...
28698         (_dl_static_dtv): This.  Make it global.
28699         (_dl_initial_dtv): Removed.
28700         (__libc_setup_tls): Updated.
28701         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
28702         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
28703         DL_INITIAL_DTV.
28704
28705 2012-09-06  Petr Machata  <pmachata@redhat.com>
28706
28707         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
28708         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
28709         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
28710         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
28711
28712 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28713
28714         [BZ #14545]
28715         * csu/libc-tls.c (_dl_initial_dtv): New variable.
28716         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
28717         freeing dtv[-1].
28718
28719 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28720
28721         [BZ #14544]
28722         * Makeconfig (link-static-before-libc): Replace $(+prector)
28723         with $(+prectorT).
28724         (link-static-after-libc): Replace $(+postctor) with
28725         $(+postctorT).
28726         (link-bounded): Replace $(+prector)/$(+postctor) with
28727         $(+prectorT)/$(+postctorT).
28728         (+prectorT): New macro.
28729         (+postctorT): Likewise.
28730
28731 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28732
28733         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
28734         (round_str): Handle values above the maximum for IBM long double
28735         as inexact.
28736         * stdlib/tst-strtod-round.c (tests): Regenerated.
28737
28738 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28739
28740         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
28741         assembler flag.
28742         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
28743         zarch_nohighgprs around the zarch optimized routines.
28744         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
28745         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
28746         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
28747         for zarch.
28748
28749 2012-09-05  David S. Miller  <davem@davemloft.net>
28750
28751         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28752
28753         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
28754         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
28755         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
28756         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
28757         entries.
28758
28759 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28760
28761         * malloc/arena.c: Fold copyright years.
28762         * malloc/mcheck.c, malloc/memusage.c: Likewise.
28763
28764 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28765
28766         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
28767
28768 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28769
28770         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
28771
28772 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28773
28774         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
28775         change internal state upon failure.
28776
28777 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28778
28779         * malloc/mcheck.c (mcheck_check_all): Fix typo.
28780         * malloc/memusage.c (mmap): Likewise.
28781         (mmap64, mremap): Likewise.  Adjust name in comment.
28782
28783 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28784
28785         * libio/fileops.c: Fix typos in comments.
28786         * libio/oldfileops.c: Likewise.
28787         * libio/wfileops.c: Likewise.
28788
28789 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28790
28791         [BZ #1349]
28792         * malloc/Makefile (tests): Add tst-malloc-usable test case.
28793         (tst-malloc-usable-ENV): Set environment for test case.
28794         * malloc/hooks.c (malloc_check_get_size): New function to get
28795         requested size.
28796         * malloc/malloc.c (musable): Use malloc_check_get_size.
28797         * malloc/tst-malloc-usable.c: New test case.
28798
28799 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28800
28801         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
28802
28803 2012-09-05  Allan McRae  <allan@archlinux.org>
28804
28805         [BZ #13966]
28806         * configure.in (CXX_SYSINCLUDES): Use compiler output to
28807         determine header location.
28808         * configure: Regenerated.
28809
28810 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28811
28812         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
28813         float format.
28814         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
28815         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
28816         format.
28817         (test): Regenerate.
28818
28819 2012-09-04  David S. Miller  <davem@davemloft.net>
28820
28821         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
28822         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
28823         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
28824
28825 2012-09-04  Florian Weimer  <fweimer@redhat.com>
28826
28827         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
28828         failures.
28829
28830         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
28831
28832 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
28833
28834         [BZ #9914]
28835         * libio/iogetdelim.c: Include <limits.h>.
28836         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
28837         + len + 1 would overflow.
28838
28839 2012-09-03  Andreas Jaeger  <aj@suse.de>
28840
28841         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28842         * sysdeps/i386/fpu/libm-test-ulps: Update.
28843
28844 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28845
28846         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
28847         Add s_sinf-sse2, s_conf-sse2.
28848
28849         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
28850         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
28851         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
28852         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
28853
28854         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
28855         for using routine as __sinf_ia32.
28856         Use macro for function declaration and weak_alias.
28857         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
28858         for using routine as __cosf_ia32.
28859         Use macro for function declaration and weak_alias.
28860
28861         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
28862         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
28863
28864         * sysdeps/x86_64/fpu/s_sinf.S: New file.
28865         * sysdeps/x86_64/fpu/s_cosf.S: New file.
28866         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28867
28868         * math/libm-test.inc (cos_test): Add more test cases.
28869         (sin_test): Likewise.
28870         (sincos_test): Likewise.
28871
28872 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28873
28874         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
28875         (IFUNC_RESOLVE): Make pointers to the specialized implementations
28876         hidden.
28877         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
28878
28879 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
28880
28881         [BZ #14538]
28882         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
28883         first element of the GOT.
28884         (elf_machine_load_address): Return the difference between
28885         the runtime address of _DYNAMIC and elf_machine_dynamic ().
28886
28887 2012-09-01  Allan McRae  <allan@archlinux.org>
28888
28889         [BZ #13412]
28890         * configure.in (AWK): Require gawk version 3.0 or later.
28891         * configure: Regenerated.
28892
28893 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
28894
28895         * sysdeps/unix/sysv/linux/kernel-features.h
28896         (__ASSUME_POSIX_CPU_TIMERS): Remove.
28897         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28898         [__NR_clock_getres]: Make code unconditional.
28899         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
28900         (clock_getcpuclockid): Remove code left unreachable by removal of
28901         conditionals.
28902         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
28903         code unconditional.
28904         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28905         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28906         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
28907         Make code unconditional.
28908         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28909         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28910         * sysdeps/unix/sysv/linux/clock_settime.c
28911         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
28912         conditional code.
28913         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
28914         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28915
28916 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
28917
28918         [BZ #14476]
28919         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
28920         scripts/test-installation.pl.
28921
28922         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
28923         and $ld_so_version if it is set.
28924
28925 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28926
28927         [BZ #14516]
28928         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
28929         failure if reading from procfs failed.
28930         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
28931
28932 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28933
28934         * sysdeps/unix/sysv/linux/kernel-features.h
28935         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
28936         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28937         Remove conditional code.
28938         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28939         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
28940         Remove conditional code.
28941         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28942         * sysdeps/unix/sysv/linux/i386/fxstat.c
28943         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28944         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28945         * sysdeps/unix/sysv/linux/i386/fxstatat.c
28946         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28947         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28948         * sysdeps/unix/sysv/linux/i386/lxstat.c
28949         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28950         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28951         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
28952         Remove conditional code.
28953         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28954         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28955         Remove conditional code.
28956         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28957         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
28958         <kernel-features.h>.
28959         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
28960         Remove.
28961         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
28962         Remove conditional code.
28963         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28964         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
28965         Remove conditional.
28966
28967 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
28968
28969         [BZ #5400]
28970         * NEWS: Add fixed bug number.
28971
28972 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28973
28974         [BZ #14519]
28975         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
28976         underflowing exponent in case of negative sign.
28977         * stdlib/tst-strtod-round-data: Add more tests.
28978         * stdlib/tst-strtod-round.c (tests): Regenerated.
28979
28980         [BZ #3479]
28981         * stdlib/strtod_l.c (NDIG): Remove.
28982         (HEXNDIG): Likewise.
28983         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
28984         smallest representable value.
28985         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
28986         lie within an exact representation of 1/2 ulp of the result.
28987         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
28988         unconditionally.
28989         (TENS_P9_IDX): Define unconditionally.
28990         (TENS_P9_SIZE): Likewise.
28991         (TENS_P10_IDX): Likewise.
28992         (TENS_P10_SIZE): Likewise.
28993         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
28994         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
28995         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
28996         entries for 10^2^13 and 10^2^14.
28997         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
28998         (TENS_P13_IDX): Define.
28999         (TENS_P13_SIZE): Likewise.
29000         (TENS_P14_IDX): Likewise.
29001         (TENS_P14_SIZE): Likewise.
29002         (_fpioconst_pow10): Change array size to
29003         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
29004         unconditional.
29005         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
29006         1024]: Add entries for 10^2^13 and 10^2^14.
29007         [LAST_POW10 > _LAST_POW10]: Remove #error.
29008         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
29009         (_fpioconst_pow10): Change array size to
29010         FPIOCONST_POW10_ARRAY_SIZE.
29011         * stdlib/gen-fpioconst.c: New file.
29012         * stdlib/gen-tst-strtod-round.c: Likewise.
29013         * stdlib/tst-strtod-round-data: Likewise.
29014         * stdlib/tst-strtod-round.c: Likewise.
29015         * stdlib/Makefile (tests): Add tst-strtod-round.
29016
29017         [BZ #14459]
29018         * stdlib/strtod_l.c: Include <stdint.h>.
29019         (NDEBUG): Do not define.
29020         (round_and_return): Change EXPONENT parameter to type intmax_t.
29021         Rearrange calculations to avoid internal overflow possibilities.
29022         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
29023         Rearrange calculations to avoid internal overflow possibilities.
29024         Assert that number fits inside MPNSIZE limbs.
29025         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
29026         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
29027         calculations and add assertions to avoid internal overflow
29028         possibilities.  Add casts to avoid signed/unsigned operations.
29029         * stdlib/tst-strtod-overflow.c: New file.
29030         * stdlib/Makefile (tests): Add tst-strtod-overflow.
29031
29032 2012-08-25  Marek Polacek  <polacek@redhat.com>
29033
29034         * time/time.h: Fix some typos in comments.
29035
29036 2012-08-23  Roland McGrath  <roland@hack.frob.com>
29037
29038         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
29039         * posix/tst-rfc3484-2.c: Likewise.
29040         * posix/tst-rfc3484-3.c: Likewise.
29041
29042 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
29043
29044         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
29045         (EF_ARM_ABI_FLOAT_HARD): Likewise.
29046
29047 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
29048
29049         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
29050         #include of fxstatat64.c.
29051
29052 2012-08-22  Roland McGrath  <roland@hack.frob.com>
29053
29054         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
29055         * shadow/getspent_r.c: Likewise.
29056         * shadow/getspnam.c: Likewise.
29057         * shadow/getspnam_r.c: Likewise.
29058         * gshadow/getsgent.c: Likewise.
29059         * gshadow/getsgent_r.c: Likewise.
29060         * gshadow/getsgnam.c: Likewise.
29061         * gshadow/getsgnam_r.c: Likewise.
29062         * inet/getnetbyad.c: Likewise.
29063         * inet/getnetbyad_r.c: Likewise.
29064         * inet/getnetbynm.c: Likewise.
29065         * inet/getnetbynm_r.c: Likewise.
29066         * inet/getnetent.c: Likewise.
29067         * inet/getnetent_r.c: Likewise.
29068         * inet/getproto.c: Likewise.
29069         * inet/getproto_r.c: Likewise.
29070         * inet/getprtent.c: Likewise.
29071         * inet/getprtent_r.c: Likewise.
29072         * inet/getprtname.c: Likewise.
29073         * inet/getprtname_r.c: Likewise.
29074         * inet/getrpcbyname.c: Likewise.
29075         * inet/getrpcbyname_r.c: Likewise.
29076         * inet/getrpcbynumber.c: Likewise.
29077         * inet/getrpcbynumber_r.c: Likewise.
29078         * inet/getrpcent.c: Likewise.
29079         * inet/getrpcent_r.c: Likewise.
29080         * inet/getaliasent.c: Likewise.
29081         * inet/getaliasent_r.c: Likewise.
29082         * inet/getaliasname.c: Likewise.
29083         * inet/getaliasname_r.c: Likewise.
29084         * nscd/getgrgid_r.c: Likewise.
29085         * nscd/getgrnam_r.c: Likewise.
29086         * nscd/gethstbyad_r.c: Likewise.
29087         * nscd/gethstbynm3_r.c: Likewise.
29088         * nscd/getpwnam_r.c: Likewise.
29089         * nscd/getpwuid_r.c: Likewise.
29090         * nscd/getsrvbynm_r.c: Likewise.
29091         * nscd/getsrvbypt_r.c: Likewise.
29092         * nscd/gai.c: Likewise.
29093
29094         * configure.in (build_nscd): New substituted variable, set
29095         by --disable-build-nscd and defaults to $use_nscd.
29096         * configure: Regenerated.
29097         * config.make.in (build-nscd): New substituted variable.
29098         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
29099         Change conditional to require [$(build-nscd) = yes] as well.
29100         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
29101
29102         [BZ# 13696]
29103         * configure.in (use_nscd): New substituted variable, set by
29104         --disable-nscd.  If enabled, define USE_NSCD.
29105         * configure: Regenerated.
29106         * config.h.in: Add USE_NSCD.
29107         * config.make.in (use-nscd): New substituted variable.
29108         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
29109         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
29110         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
29111         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
29112         (CFLAGS-getgrnam_r.c): Likewise.
29113         (CFLAGS-initgroups.c): Likewise.
29114         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
29115         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
29116         Variables removed.
29117         * inet/getnetgrent_r.c
29118         (nscd_setnetgrent): New function, broken out of ...
29119         (setnetgrent): ... here.  Call it.
29120         (innetgr): Conditionalize nscd bits on [USE_NSCD].
29121         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
29122         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
29123         * nscd/Makefile (routines, aux): Move definitions after include of
29124         Makeconfig.  Conditionalize on [$(use-nscd) != no].
29125         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
29126         Conditionalize on [USE_NSCD].
29127         (is_nscd, nscd_init_cb): Likewise.
29128         (nss_load_library): Conditionalize init callback on [USE_NSCD].
29129         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
29130         * nss/nss_db/db-init.c: Likewise.
29131         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
29132         [USE_NSCD].
29133         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
29134         (make_request): Use it.
29135         (cache_valid_p): New function.
29136         (__check_pf): Use it.
29137         * NEWS: Add item for --disable-nscd.
29138
29139 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
29140
29141         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
29142         to support sed >= 4.2.1-20-ga9bf076.
29143         * configure: Regenerated.
29144
29145 2012-08-22  Roland McGrath  <roland@hack.frob.com>
29146
29147         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
29148         Conditionalize whole body on [IREL].
29149
29150 2012-08-22  Jeff Law <law@redhat.com>
29151
29152         [BZ #14505]
29153         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
29154         if the family is PF_UNSPEC.
29155
29156 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
29157
29158         * Makerules (lib-version): Rename from V.
29159         (install-lib-nosubdir): Change V to lib-version.
29160
29161 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
29162
29163         [BZ #14252]
29164         * powerpc32/power6/wcschr.c: New file.
29165         * powerpc32/power6/wcscpy.c: New file.
29166         * powerpc32/power6/wcsrchr.c: New file.
29167         * powerpc64/power6/wcschr.c: New file.
29168         * powerpc64/power6/wcscpy.c: New file.
29169         * powerpc64/power6/wcsrchr.c: New file.
29170
29171 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
29172
29173         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
29174         (two_way_short_needle): Use it.
29175         * string/strstr.c (AVAILABLE1_USES_J): Define.
29176         * string/strcasestr.c: Likewise.
29177
29178         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
29179         array references.
29180         * string/strcasestr.c (TOLOWER): Make side-effect safe.
29181
29182         [BZ #11607]
29183         * NEWS: Add an entry.
29184         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
29185         define their defaults.
29186         (two_way_short_needle): Detect end-of-string on-the-fly.
29187         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
29188         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
29189         * string/bug-strcasestr1.c: New test.
29190         * string/Makefile: Run it.
29191
29192 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
29193
29194         [BZ #11607]
29195         * string/str-two-way.h (two_way_short_needle): Optimize matching of
29196         the first character.
29197
29198 2012-08-21  Roland McGrath  <roland@hack.frob.com>
29199
29200         * csu/elf-init.c (__libc_csu_irel): Function removed.
29201         * csu/libc-start.c (apply_irel): New function.
29202         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
29203
29204 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
29205
29206         * sysdeps/unix/sysv/linux/kernel-features.h
29207         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
29208         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
29209         <kernel-features.h>.
29210         [__NR_fadvise64_64]: Make code unconditional.
29211         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
29212         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
29213         !__NR_fadvise64_64)]: Likewise.
29214         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
29215         !__NR_fadvise64_64))]: Likewise.
29216         [__NR_fadvise64]: Make code unconditional.
29217         [!__NR_fadvise64]: Remove conditional code.
29218         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
29219         <kernel-features.h>.
29220         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
29221         unconditional.
29222         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
29223         conditional code.
29224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
29225         not include <kernel-features.h>.
29226         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
29227         unconditional.
29228         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
29229         conditional code.
29230         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
29231         include <kernel-features.h>.
29232         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
29233         unconditional.
29234         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
29235         conditional code.
29236
29237 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
29238
29239         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
29240         slight instruction rearrangements per scrollpipe analysis.
29241         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
29242
29243 2012-08-20  Roland McGrath  <roland@hack.frob.com>
29244
29245         * manual/syslog.texi (syslog; vsyslog, closelog):
29246         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
29247         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
29248
29249         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
29250         DSOCAPS to match condition on defining it.
29251
29252 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
29253
29254         * sysdeps/unix/sysv/linux/kernel-features.h
29255         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
29256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
29257         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
29258         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
29259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
29260         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
29261         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
29262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
29263         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
29264         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
29265
29266         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
29267         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
29268
29269         * sysdeps/unix/sysv/linux/kernel-features.h
29270         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
29271         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
29272         unconditional.
29273         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
29274         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
29275         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
29276         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
29277         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
29278         Make code unconditional.
29279         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
29280         (__mmap64) [!__NR_mmap2]: Likewise.
29281         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
29282         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
29283         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
29284         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
29285         [__NR_mmap2]: Make code unconditional.
29286         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
29287         (__mmap64) [!__NR_mmap2]: Likewise.
29288
29289 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29290
29291         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
29292
29293 2012-08-18  Andreas Jaeger  <aj@suse.de>
29294
29295         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
29296
29297 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
29298
29299         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
29300         * include/unistd.h (__have_sock_cloexec): Likewise.
29301         (__have_pipe2): Likewise.
29302         (__have_dup3): Likewise.
29303
29304 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
29305
29306         [BZ #9685]
29307         * include/unistd.h (__have_pipe2): Change define into an extern int.
29308         (__have_dup3): Likewise.
29309         * socket/have_sock_cloexec.c: Include fcntl.h.
29310         (__have_pipe2): New variable.
29311         (__have_dup3): Likewise.
29312
29313 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
29314
29315         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
29316
29317 2012-08-17  Marek Polacek  <polacek@redhat.com>
29318
29319         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
29320         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
29321
29322 2012-08-17  Roland McGrath  <roland@hack.frob.com>
29323
29324         * configure.in: Add AC_SUBST for sysheaders.
29325         * configure: Regenerated.
29326         * config.make.in (sysheaders): New substituted variable.
29327
29328         * sysdeps/unix/mkfifo.c: Moved ...
29329         * sysdeps/posix/mkfifo.c: ... here.
29330         * sysdeps/unix/mkfifoat.c: Moved ...
29331         * sysdeps/posix/mkfifoat.c: ... here.
29332
29333         * sysdeps/unix/utime.c: Moved ...
29334         * sysdeps/posix/utime.c: ... here.
29335
29336         * sysdeps/unix/time.c: Moved ...
29337         * sysdeps/posix/time.c: ... here.
29338         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
29339         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
29340
29341         * sysdeps/unix/nice.c: Moved ...
29342         * sysdeps/posix/nice.c: ... here.
29343
29344         * sysdeps/unix/alarm.c: Moved ...
29345         * sysdeps/posix/alarm.c: ... here.
29346
29347         * intl/Makefile ($(codeset_mo)): Depend on the input file.
29348
29349 2012-08-17  Jeff Law <law@redhat.com>
29350
29351         * intl/Makefile (codeset_mo): New variable.
29352         ($(codeset_mo)): New target.
29353         (tst-codeset.out): Depend on that.  Remove explicit rule.
29354         (tst-gettext3.out, tst-gettext5.out): Likewise.
29355         (LOCPATH-ENV, tst-codeset-ENV): New variables.
29356         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
29357         * intl/tst-codeset.sh: Remove.
29358         * intl/tst-gettext3.sh: Likewise.
29359         * intl/tst-gettext5.sh: Likewise.
29360
29361 2012-08-17  Roland McGrath  <roland@hack.frob.com>
29362
29363         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
29364         * sysdeps/unix/syscalls.list: ... here.
29365
29366         * sysdeps/posix/getaddrinfo.c
29367         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
29368         (gaiconf_init, gaiconf_reload): Use them.
29369         [!_STATBUF_ST_NSEC]
29370         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
29371         Define using time_t rather than struct timespec.
29372
29373         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
29374         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
29375         Macros removed.
29376         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
29377         [!NO_THREADS].
29378         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
29379         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
29380         Likewise.
29381
29382         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
29383         __libc_cleanup_push argument.
29384
29385         * bits/param.h: New file.
29386         * misc/sys/param.h: New file.
29387         * include/sys/param.h: New file.
29388         * misc/Makefile (headers): Add bits/param.h.
29389         * sysdeps/generic/sys/param.h: File removed.
29390         * sysdeps/unix/sysv/linux/bits/param.h: New file.
29391         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
29392         * sysdeps/mach/hurd/bits/param.h: New file.
29393         * sysdeps/mach/hurd/sys/param.h: File removed.
29394
29395         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
29396         last change.
29397
29398         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
29399         [_IO_MTSAFE_IO].
29400         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
29401         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
29402         New macros.
29403
29404         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
29405         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
29406         rather than -D_IO_MTSAFE_IO conditionally.
29407         * stdio-common/Makefile (CPPFLAGS): Likewise.
29408         * wcsmbs/Makefile (CPPFLAGS): Likewise.
29409         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
29410         Use $(libio-mtsafe).
29411         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
29412         of -D_IO_MTSAFE_IO.
29413         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
29414         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
29415         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
29416         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
29417         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
29418         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
29419         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
29420         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
29421         (CFLAGS-fread_u_chk.c): Likewise.
29422         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
29423         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
29424         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
29425         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
29426         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
29427         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
29428         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
29429         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
29430         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
29431
29432         * libio/Makefile: Test [$(libc-reentrant) = yes]
29433         instead of [$(filter %REENTRANT, $(defines)) nonempty].
29434
29435         * Makeconfig
29436         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
29437         * sysdeps/pthread/configure: File removed.
29438         * sysdeps/pthread/Makeconfig: New file.
29439         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
29440         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
29441
29442 2012-08-16  Gary Benson  <gbenson@redhat.com>
29443
29444         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
29445         unmapping the first object in a namespace.
29446
29447 2012-08-16  Roland McGrath  <roland@hack.frob.com>
29448
29449         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
29450         (__internal_setnetgrent): ... this.  Add internal_function to
29451         definition.  Add libc_hidden_def.
29452         (setnetgrent): Update caller.
29453         (internal_endnetgrent): Renamed to ...
29454         (__internal_endnetgrent): ... this.  Add internal_function to
29455         definition.  Add libc_hidden_def.
29456         (endnetgrent): Update caller.
29457         (internal_getnetgrent_r): Renamed to ...
29458         (__internal_getnetgrent_r): ... this.  Add internal_function to
29459         definition.  Add libc_hidden_def.
29460         (__getnetgrent_r): Update caller.
29461         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
29462
29463 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
29464
29465         * stdlib/longlong.h: Update from GCC.
29466
29467 2012-08-16  Roland McGrath  <roland@hack.frob.com>
29468
29469         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
29470         on _QL, which is set by umul_ppmm but never used.
29471         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
29472         variables, which are set by GMP macros but never used.
29473         * stdio-common/_itowa.c (_itowa): Likewise.
29474         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
29475         * stdlib/mod_1.c (mpn_mod_1): Likewise.
29476
29477 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
29478
29479         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
29480         struct La_sh_regs is not constant.
29481         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
29482         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
29483         and struct La_sparc64_regs are not constant.
29484
29485 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
29486
29487         * sysdeps/unix/sysv/linux/kernel-features.h
29488         (__ASSUME_POSIX_TIMERS): Remove.
29489         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
29490         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29491         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
29492         Make code unconditional.
29493         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29494         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
29495         Make code unconditional.
29496         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29497         * sysdeps/unix/sysv/linux/clock_nanosleep.c
29498         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
29499         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29500         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
29501         Make code unconditional.
29502         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29503         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
29504         (__libc_missing_posix_timers): Remove.
29505
29506 2012-08-15  Roland McGrath  <roland@hack.frob.com>
29507
29508         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
29509         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
29510
29511         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
29512
29513         * elf/dl-sym.c: Include <stdlib.h>.
29514
29515         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
29516         constants, which avoids warnings in 32-bit builds.
29517
29518         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
29519         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
29520
29521         * misc/lseek.c: File moved to ...
29522         * io/lseek.c: ... here.
29523
29524         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
29525
29526         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
29527         shifting LEN more than 31 bits at once.
29528
29529 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29530
29531         [BZ #14195]
29532         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
29533         segmentation fault for a case of two empty input strings.
29534         * string/test-strncasecmp.c (check1): Renamed to...
29535         (bz12205): ...this.
29536         (bz14195): Add new testcase for two empty input strings and N > 0.
29537         (test_main): Call new testcase, adapt for renamed function.
29538
29539 2012-08-15  Andreas Jaeger  <aj@suse.de>
29540
29541         [BZ #14090]
29542         * crypt/md5test2.c: New test, based on test supplied by Serge
29543         Belyshev <belyshev@depni.sinp.msu.ru>.
29544         * crypt/Makefile (xtests): Add md5test-giant..
29545         * crypt/Makefile ($(objpfx)md5test-giant): Add.
29546
29547 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29548
29549         [BZ #14090]
29550         * crypt/md5.c (md5_process_block): Don't assume the buffer
29551         length is less than 2**32.
29552         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
29553         length is less than 2**64.
29554
29555 2012-08-15  Roland McGrath  <roland@hack.frob.com>
29556
29557         * string/str-two-way.h: Include <sys/param.h>.
29558         (MAX): Macro removed.
29559
29560         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
29561         Move #define and #undef of memmove to just before and after
29562         including <string.h>.
29563
29564         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
29565         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
29566         and after including <string.h>.  Move declarations of
29567         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
29568         to before #include "string/memmove.c".
29569
29570         * include/dirent.h: Declare __getdirentries.
29571
29572         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
29573         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
29574
29575 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
29576
29577         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
29578         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
29579         * sysdeps/i386/configure: Regenerated.
29580         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
29581         STABS_CURRENT_FILE, and STABS_FUN.
29582         (END): Remove call to STABS_FUN_END.
29583         (STABS_CURRENT_FILE1): Delete.
29584         (STABS_CURRENT_FILE): Likewise.
29585         (STABS_FUN): Likewise.
29586         (STABS_FUN_END): Likewise.
29587         (STABS_FUN2): Likewise.
29588         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
29589         * sysdeps/x86_64/configure: Regenerated.
29590
29591 2012-08-14  Roland McGrath  <roland@hack.frob.com>
29592
29593         * elf/dl-open.c: Include <atomic.h>.
29594         * elf/dl-lookup.c: Likewise.
29595
29596 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
29597
29598         * sysdeps/unix/sysv/linux/kernel-features.h
29599         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
29600         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
29601         unconditionally.
29602         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
29603         unconditionally.
29604         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
29605         condition on __ASSUME_CLONE_THREAD_FLAGS.
29606
29607 2012-08-14  Andreas Jaeger  <aj@suse.de>
29608
29609         * sysdeps/i386/fpu/libm-test-ulps: Update.
29610
29611 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
29612
29613         * include/atomic.h (atomic_exchange_and_add): Split into ...
29614         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
29615         New atomic macros.
29616
29617 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
29618
29619         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29620
29621 2012-08-13  Jeff Law <law@redhat.com>
29622
29623         * manual/stdio.texi (snprintf): Clarify handling of the trailing
29624         null byte in the output string.
29625
29626 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
29627
29628         * sysdeps/unix/sysv/linux/kernel-features.h
29629         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
29630         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
29631         (__ASSUME_ARG_MAX_STACK_BASED): Define.
29632         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
29633         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
29634         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
29635         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
29636
29637 2012-08-09  Jeff Law <law@redhat.com>
29638
29639         [BZ #13939]
29640         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
29641         When avoid_arena is set, don't retry in the that arena.  Pick the
29642         next one, whatever it might be.
29643         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
29644         (arena_lock): Pass in new parameter to arena_get2.
29645         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
29646         arena_get2.
29647         (__libc_malloc): Unify retrying after main arena failure with
29648         __libc_memalign version.
29649         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
29650
29651 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
29652
29653         [BZ #14166]
29654         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
29655         to __redirect_strstr.
29656         (__strstr_sse42): Use typeof __redirect_strstr.
29657         (__strstr_ia32): Likewise.
29658         (__libc_strstr): New prototype.
29659         (strstr): Renamed to ...
29660         (__libc_strstr): This.
29661         (strstr): New strong alias of __libc_strstr.
29662         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
29663         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
29664         __redirect_time.
29665         Include <time.h>.
29666         (__libc_time): New prototype.
29667         (time_ifunc): Replace time with __libc_time.
29668         (time): New strong alias and hidden definition of __libc_time.
29669         (__GI_time): Remove strong alias.
29670         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
29671         Include <stddef.h>.
29672         (memmove): Redefined to __redirect_memmove.
29673         (__memmove_sse2): Use typeof __redirect_memmove.
29674         (__memmove_ssse3): Likewise.
29675         (__memmove_ssse3_back): Likewise.
29676         (__libc_memmove): New prototype.
29677         (memmove): Renamed to ...
29678         (__libc_memmove): This.
29679         (memmove): New strong alias of __libc_memmove.
29680
29681 2012-08-08  Mark Salter  <msalter@redhat.com>
29682
29683         * elf/elf.h
29684         (R_MN10300_TLS_GD): Define.
29685         (R_MN10300_TLS_LD): Likewise.
29686         (R_MN10300_TLS_LDO): Likewise.
29687         (R_MN10300_TLS_GOTIE): Likewise.
29688         (R_MN10300_TLS_IE): Likewise.
29689         (R_MN10300_TLS_LE): Likewise.
29690         (R_MN10300_TLS_DTPMOD): Likewise.
29691         (R_MN10300_TLS_DTPOFF): Likewise.
29692         (R_MN10300_TLS_TPOFF): Likewise.
29693         (R_MN10300_SYM_DIFF): Likewise.
29694         (R_MN10300_ALIGN): Likewise.
29695         (R_MN10300_NUM): Update.
29696
29697 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
29698
29699         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
29700         Remove.
29701
29702 2012-08-08  Roland McGrath  <roland@hack.frob.com>
29703
29704         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
29705
29706         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
29707         sysdeps/unix -> sysdeps/posix move.
29708         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
29709
29710 2012-08-07      Allan McRae     <allan@archlinux.org>
29711
29712         [BZ #14303]
29713         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
29714         (SUNOS_CPP): Likewise.
29715         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
29716         not found.
29717         (open_input): Call CPP using execvp.
29718
29719 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29720
29721         * sysdeps/unix/sysv/linux/kernel-features.h
29722         (__ASSUME_PROT_GROWSUPDOWN): Remove.
29723         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29724         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29725         (__ASSUME_WAITID_SYSCALL): Likewise.
29726         * sysdeps/unix/sysv/linux/dl-execstack.c
29727         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
29728         code unconditional.
29729         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
29730         conditional code.
29731         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
29732         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
29733         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
29734         code.
29735         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
29736         unconditional.
29737         [__ASSUME_WAITID_SYSCALL]: Likewise.
29738         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
29739
29740 2012-08-07  Roland McGrath  <roland@hack.frob.com>
29741
29742         * sysdeps/unix/closedir.c: Renamed to ...
29743         * sysdeps/posix/closedir.c: ... here.
29744         * sysdeps/unix/dirfd.c: Renamed to ...
29745         * sysdeps/posix/dirfd.c: ... here.
29746         * sysdeps/unix/dirstream.h: Renamed to ...
29747         * sysdeps/posix/dirstream.h: ... here.
29748         * sysdeps/unix/fdopendir.c: Renamed to ...
29749         * sysdeps/posix/fdopendir.c: ... here.
29750         * sysdeps/unix/opendir.c: Renamed to ...
29751         * sysdeps/posix/opendir.c: ... here.
29752         * sysdeps/unix/readdir.c: Renamed to ...
29753         * sysdeps/posix/readdir.c: ... here.
29754         * sysdeps/unix/readdir_r.c: Renamed to ...
29755         * sysdeps/posix/readdir_r.c: ... here.
29756         * sysdeps/unix/rewinddir.c: Renamed to ...
29757         * sysdeps/posix/rewinddir.c: ... here.
29758         * sysdeps/unix/seekdir.c: Renamed to ...
29759         * sysdeps/posix/seekdir.c: ... here.
29760         * sysdeps/unix/telldir.c: Renamed to ...
29761         * sysdeps/posix/telldir.c: ... here.
29762         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
29763         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
29764         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
29765         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
29766
29767         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
29768         * bits/fcntl.h: ... here.
29769
29770         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
29771         not 0.
29772         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
29773         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
29774         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
29775         (struct flock): Move l_start, l_len to the beginning.
29776         Use __pid_t for l_pid.
29777         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
29778         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
29779         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
29780         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
29781         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
29782         [__USE_LARGEFILE64] (struct flock64): New type.
29783         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
29784
29785         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
29786         * bits/dirent.h: ... here.
29787
29788         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
29789         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
29790
29791 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29792
29793         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29794         Change from 2.6.0 to 2.6.16.
29795         * sysdeps/unix/sysv/linux/configure: Regenerated.
29796         * sysdeps/unix/sysv/linux/kernel-features.h
29797         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
29798         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
29799         version.
29800         (__ASSUME_UTIMES): Likewise.
29801         (__ASSUME_CLONE_STOPPED): Remove.
29802         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
29803         architectures, not kernel version.
29804         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
29805         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29806         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29807         (__ASSUME_WAITID_SYSCALL): Likewise.
29808         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
29809         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
29810         * README: State 2.6.16 as minimum Linux kernel version.  Do not
29811         refer to older versions.
29812
29813 2012-08-06  Roland McGrath  <roland@hack.frob.com>
29814
29815         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
29816         Define alphasort64 as an alias.
29817         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
29818         Define versionsort64 as an alias.
29819         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
29820         Define scandir64 as an alias.
29821         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
29822         Define scandirat64 as an alias.
29823         * dirent/alphasort64.c (alphasort64):
29824         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
29825         * dirent/versionsort64.c: Likewise.
29826         * dirent/scandir64.c: Likewise.
29827         * dirent/scandirat64.c: Likewise.
29828         * sysdeps/wordsize-64/alphasort.c: File removed.
29829         * sysdeps/wordsize-64/alphasort64.c: File removed.
29830         * sysdeps/wordsize-64/scandir.c: File removed.
29831         * sysdeps/wordsize-64/scandir64.c: File removed.
29832         * sysdeps/wordsize-64/scandirat.c: File removed.
29833         * sysdeps/wordsize-64/scandirat64.c: File removed.
29834         * sysdeps/wordsize-64/versionsort.c: File removed.
29835         * sysdeps/wordsize-64/versionsort64.c: File removed.
29836         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
29837         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
29838         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
29839         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
29840         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
29841         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
29842         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
29843         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
29844
29845         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
29846         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29847         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
29848         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29849         [defined __arch64__ || defined __sparcv9]
29850         (__INO_T_MATCHES_INO64_T): New macro.
29851         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29852         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
29853         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
29854         * sysdeps/unix/sysv/linux/bits/dirent.h
29855         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
29856         (_DIRENT_MATCHES_DIRENT64): New macro.
29857
29858         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
29859         Define lockf64 as an alias.
29860         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
29861         Define fseeko64 as an alias.
29862         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
29863         Define ftello64 as an alias.
29864         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
29865         Define _IO_fgetpos64 and fgetpos64 as aliases.
29866         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
29867         Define _IO_fsetpos64 and fsetpos64 as aliases.
29868         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
29869         Conditionalize body on this.
29870         * libio/fseeko64.c: Likewise.
29871         * libio/ftello64.c: Likewise.
29872         * libio/iofgetpos64.c: Likewise.
29873         * libio/iofsetpos64.c: Likewise.
29874         * sysdeps/wordsize-64/lockf.c: File removed.
29875         * sysdeps/wordsize-64/lockf64.c: File removed.
29876         * sysdeps/wordsize-64/fseeko.c: File removed.
29877         * sysdeps/wordsize-64/fseeko64.c: File removed.
29878         * sysdeps/wordsize-64/ftello.c: File removed.
29879         * sysdeps/wordsize-64/ftello64.c: File removed.
29880         * sysdeps/wordsize-64/iofgetpos.c: File removed.
29881         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
29882         * sysdeps/wordsize-64/iofsetpos.c: File removed.
29883         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
29884         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
29885         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
29886         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
29887         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
29888         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
29889         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
29890         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
29891         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
29892         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
29893         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
29894
29895         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29896         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29897         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
29898         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29899         [defined __arch64__ || defined __sparcv9]
29900         (__OFF_T_MATCHES_OFF64_T): New macro.
29901         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29902         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29903         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
29904         (__OFF_T_MATCHES_OFF64_T): New macro.
29905
29906 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29907
29908         * stdlib/secure-getenv.c (__secure_getenv): Replace
29909         GLIBC_2_16 with GLIBC_2_17.
29910
29911 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29912
29913         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
29914         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
29915
29916 2012-08-03  David S. Miller  <davem@davemloft.net>
29917
29918         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29919
29920 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29921
29922         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
29923         Remove.
29924         (__ASSUME_CORRECT_SI_PID): Likewise.
29925         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
29926         (__ASSUME_TMPFS_NAME): Likewise.
29927         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
29928         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
29929         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
29930         (HAVE_AUX_SECURE): Make definition unconditional.
29931         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
29932         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
29933
29934 2012-08-03  Roland McGrath  <roland@hack.frob.com>
29935
29936         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
29937         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
29938         * sysdeps/mach/hurd/eloop-threshold.h: New file.
29939         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
29940         __eloop_threshold instead of SYMLOOP_MAX.
29941
29942         * sysdeps/generic/eloop-threshold.h: New file.
29943         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
29944         of MAXSYMLINKS.
29945         * elf/chroot_canon.c (chroot_canon): Likewise.
29946
29947 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29948
29949         [BZ #13717]
29950         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29951         Change to 2.6.0 everywhere.
29952         * sysdeps/unix/sysv/linux/configure: Regenerated.
29953         * sysdeps/unix/sysv/linux/kernel-features.h
29954         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
29955         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
29956         kernel versions.
29957         (__ASSUME_POSIX_TIMERS): Define unconditionally.
29958         (__ASSUME_FUTEX_REQUEUE): Remove.
29959         (__ASSUME_STATFS64): Define unconditionally.
29960         (__ASSUME_AT_SECURE): Likewise.
29961         (__ASSUME_CORRECT_SI_PID): Likewise.
29962         (__ASSUME_TGKILL): Define without depending on kernel version for
29963         i386.
29964         (__ASSUME_UTIMES): Likewise.
29965         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
29966         kernel version.
29967         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
29968         (__ASSUME_TMPFS_NAME): Likewise.
29969         * README: Update reference to Linux kernel versions.
29970
29971 2012-08-02  Marek Polacek  <polacek@redhat.com>
29972
29973         [BZ# 14150]
29974         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
29975         libc_cv_asm_type_prefix with %.
29976         * configure: Regenerated.
29977         * include/libc-symbols.h: Remove comment about
29978         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29979         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
29980         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
29981         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
29982         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
29983         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29984         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
29985         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
29986         * elf/tst-unique2mod1.c: Likewise.
29987         * elf/tst-unique1mod2.c: Likewise.
29988         * elf/tst-unique1mod1.c: Likewise.
29989         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
29990         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
29991         Replace ASM_TYPE_DIRECTIVE with .type.
29992         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29993         * sysdeps/i386/sysdep.h: Likewise.
29994         * sysdeps/x86_64/sysdep.h: Likewise.
29995         * sysdeps/sh/sysdep.h: Likewise.
29996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
29997         Do not define ASM_TYPE_DIRECTIVE.
29998         * sysdeps/powerpc/sysdep.h: Likewise.
29999         * sysdeps/powerpc/powerpc32/sysdep.h:
30000         Replace ASM_TYPE_DIRECTIVE with .type.
30001         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
30002         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
30003         * sysdeps/i386/fpu/e_powf.S: Likewise.
30004         * sysdeps/i386/fpu/e_expl.S: Likewise.
30005         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
30006         * sysdeps/i386/fpu/e_acosh.S: Likewise.
30007         * sysdeps/i386/fpu/e_pow.S: Likewise.
30008         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
30009         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
30010         * sysdeps/i386/fpu/s_expm1.S: Likewise.
30011         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
30012         * sysdeps/i386/fpu/e_log2.S: Likewise.
30013         * sysdeps/i386/fpu/e_log2l.S: Likewise.
30014         * sysdeps/i386/fpu/e_scalb.S: Likewise.
30015         * sysdeps/i386/fpu/e_powl.S: Likewise.
30016         * sysdeps/i386/fpu/e_log10f.S: Likewise.
30017         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
30018         * sysdeps/i386/fpu/e_logl.S: Likewise.
30019         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
30020         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
30021         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
30022         * sysdeps/i386/fpu/e_log2f.S: Likewise.
30023         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
30024         * sysdeps/i386/fpu/e_log.S: Likewise.
30025         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
30026         * sysdeps/i386/fpu/e_logf.S: Likewise.
30027         * sysdeps/i386/fpu/e_log10l.S: Likewise.
30028         * sysdeps/i386/fpu/e_atanh.S: Likewise.
30029         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
30030         * sysdeps/i386/fpu/e_log10.S: Likewise.
30031         * sysdeps/i386/fpu/s_frexp.S: Likewise.
30032         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
30033         * sysdeps/i386/fpu/s_asinh.S: Likewise.
30034         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
30035         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
30036         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30037         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
30038         * sysdeps/i386/i686/strtok.S: Likewise.
30039         * sysdeps/i386/i386-mcount.S: Likewise.
30040         * sysdeps/i386/strtok.S: Likewise.
30041         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
30042         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
30043         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
30044         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
30045         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
30046         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
30047         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
30048         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
30049         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
30050         * sysdeps/x86_64/_mcount.S: Likewise.
30051         * sysdeps/x86_64/strtok.S: Likewise.
30052         * sysdeps/sh/_mcount.S: Likewise.
30053
30054 2012-08-01  Roland McGrath  <roland@hack.frob.com>
30055
30056         * libio/iofopen.c: Include <fcntl.h>.
30057         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
30058         (_IO_fopen64, fopen64): Define as aliases.
30059         * libio/iofopen64.c: Include <fcntl.h>.
30060         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
30061         Conditionalize body on this.
30062         * sysdeps/wordsize-64/iofopen.c: File removed.
30063         * sysdeps/wordsize-64/iofopen64.c: File removed.
30064
30065 2012-08-01  Marek Polacek  <polacek@redhat.com>
30066
30067         * libc/Makeconfig: Use elf in place of binfmt-subdir.
30068         Use dlfcn directly instead of a variable.
30069         (binfmt-subdir): Do not define.
30070         (dlfcn): Likewise.
30071
30072 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
30073
30074         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
30075         Remove all definitions.
30076         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
30077         <kernel-features.h>.
30078         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
30079         (miss_F_GETOWN_EX): Remove all definitions.
30080         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
30081         macro definition.
30082         [!__ASSUME_FCNTL64]: Remove conditional code.
30083         [__ASSUME_FCNTL64]: Make code unconditional.
30084         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
30085         <kernel-features.h>.
30086         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
30087         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
30088         (lockf64) [__NR_fcntl64]: Make code unconditional.
30089         (lockf64) [__ASSUME_FCNTL64]: Likewise.
30090
30091         * sysdeps/unix/sysv/linux/kernel-features.h
30092         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
30093         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
30094         Make code unconditional.
30095         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
30096         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
30097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
30098         [__NR_vfork]: Make code unconditional.
30099         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
30100         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
30101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
30102         [__NR_vfork]: Make code unconditional.
30103         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
30104         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
30105
30106 2012-08-01  Roland McGrath  <roland@hack.frob.com>
30107
30108         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
30109         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
30110
30111         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30112         Define mkstemp64 as an alias.
30113         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30114         Define mkstemps64 as an alias.
30115         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30116         Define mkostemp64 as an alias.
30117         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30118         Define mkostemps64 as an alias.
30119         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
30120         Conditionalize body on this.
30121         * misc/mkostemp64.c: Likewise.
30122         * misc/mkostemps64.c: Likewise.
30123         * misc/mkstemps64.c: Likewise.
30124         * sysdeps/wordsize-64/mkstemp64.c: File removed.
30125         * sysdeps/wordsize-64/mkostemp64.c: File removed.
30126         * sysdeps/wordsize-64/mkostemp.c: File removed.
30127         * sysdeps/wordsize-64/mkstemp.c: File removed.
30128         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
30129         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
30130         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
30131         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
30132
30133         [BZ #14138]
30134         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
30135         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
30136         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
30137         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
30138
30139         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
30140         compat_symbol macros from <shlib-compat.h> rather than the underlying
30141         default_symbol_version and symbol_version macros, so that DEFAULT
30142         lines in shlib-versions are respected.
30143         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
30144
30145 2012-08-01  Florian Weimer  <fweimer@redhat.com>
30146
30147         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
30148         Declare with warn_unused_result.
30149         (setgid, setregid, setegid, setresgid): Likewise.
30150         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
30151         Likewise.
30152         * WUR-REPORT: Remove set*id functions.
30153
30154 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
30155
30156         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
30157
30158 2012-07-31  Roland McGrath  <roland@hack.frob.com>
30159
30160         [BZ #10191]
30161         * include/sys/socket.h (__libc_accept, __libc_accept4):
30162         Add attribute_hidden.
30163         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
30164
30165         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
30166         use of PTR_MANGLE.
30167         * inet/getnetgrent_r.c (setup): Likewise.
30168
30169         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
30170
30171 2012-07-31  David S. Miller  <davem@davemloft.net>
30172
30173         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30174
30175 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
30176
30177         [BZ #13629]
30178         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
30179         value between 1.0 and 2.0 and smaller part has absolute value less
30180         than 1.0.
30181         * math/s_clog10.c (__clog10): Likewise.
30182         * math/s_clog10f.c (__clog10f): Likewise.
30183         * math/s_clog10l.c (__clog10l): Likewise.
30184         * math/s_clogf.c (__clogf): Likewise.
30185         * math/s_clogl.c (__clogl): Likewise.
30186         * math/libm-test.inc (clog_test): Add more tests.
30187         (clog10_test): Likewise.
30188         * sysdeps/i386/fpu/libm-test-ulps: Update.
30189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30190
30191 2012-07-31  Florian Weimer  <fweimer@redhat.com>
30192
30193         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
30194         Exit with zero in case no suitable GID is found, and write a
30195         message to standard error.
30196
30197 2012-07-30  Roland McGrath  <roland@hack.frob.com>
30198
30199         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
30200         rather than to 1.
30201         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
30202         (MAXPATHLEN): Removed.
30203         (NOGROUP, NODEV): New macros.
30204         (setbit, clrbit, isset, isclr): New macros.
30205         (howmany, roundup, powerof2): New macros.
30206         (DEV_BSIZE): New macro.
30207
30208         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
30209         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
30210
30211         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
30212         definition on [!__NO_LONG_DOUBLE_MATH].
30213
30214         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
30215         PTR_MANGLE and PTR_DEMANGLE.
30216
30217         * socket/accept4.c (accept4): Rename to __libc_accept4.
30218         Define accept4 as a weak alias.
30219
30220         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
30221         on [_DIRENT_HAVE_D_TYPE].
30222         * io/ftw.c (ftw_dir): Likewise.
30223
30224         * io/xmknod.c (__xmknod): Don't check PATH for being null.
30225
30226         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
30227
30228         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
30229         Use the BSD numbers rather than the arbitrary ones we had.
30230         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
30231         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
30232         (SIGXCPU, SIGXFSZ): New macros.
30233         (_NSIG): Now 32.
30234
30235         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
30236         initializer on [_LIBC_REENTRANT].
30237
30238         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
30239         definitions inside [_POSIX_MAPPED_FILES].
30240
30241         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
30242
30243         * dirent/opendir.c: Include <fcntl.h>.
30244
30245         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
30246         (__libc_getspecific): Likewise.
30247         (__libc_key_create): Likewise.
30248
30249         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
30250         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
30251         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
30252         (tmpfile64): Define as alias.
30253         * sysdeps/wordsize-64/tmpfile.c: File removed.
30254         * sysdeps/wordsize-64/tmpfile64.c: File removed.
30255         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
30256         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
30257
30258         * stdio-common/vfscanf.c: Include <stdbool.h>.
30259         * nss/makedb.c: Likewise.
30260         * stdio-common/_i18n_number.h: Likewise.
30261         * argp/argp-help.c: Likewise.
30262         * posix/wordexp.c: Likewise.
30263         * sysdeps/posix/spawni.c: Likewise.
30264         * nss/nss_files/files-initgroups.c: Likewise.
30265         * stdio-common/reg-modifier.c: Include <stdlib.h>.
30266         * nss/nss_files/files-initgroups.c: Likewise.
30267         * nss/nss_db/db-netgrp.c: Likewise.
30268         * nss/nss_db/db-initgroups.c: Likewise.
30269         * io/fchmodat.c: Include <sys/stat.h>.
30270
30271         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
30272         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
30273
30274         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
30275         [HAVE_MMAP].
30276
30277         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
30278         Add multiple inclusion protection.
30279
30280 2012-07-27  David S. Miller  <davem@davemloft.net>
30281
30282         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30283
30284 2012-07-27  Gary Benson  <gbenson@redhat.com>
30285
30286         [BZ #14298]
30287         * elf/rtld.c: Include <stap-probe.h>.
30288         (dl_main): Added static probes "init_start" and "init_complete".
30289         * elf/dl-load.c: Include <stap-probe.h>.
30290         (lose): Take new parameter "nsid".
30291         Added static probe "map_failed".
30292         (_dl_map_object_from_fd): Pass namespace id to lose.
30293         Added static probe "map_start".
30294         (open_verify): Pass namespace id to lose.
30295         * elf/dl-open.c: Include <stap-probe.h>.
30296         (dl_open_worker) Added static probes "map_complete", "reloc_start"
30297         and "reloc_complete".
30298         * elf/dl-close.c: Include <stap-probe.h>.
30299         (_dl_close_worker): Added static probes "unmap_start" and
30300         "unmap_complete".
30301         * elf/rtld-debugger-interface.txt: New file documenting the above.
30302
30303 2012-07-26  Roland McGrath  <roland@hack.frob.com>
30304
30305         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
30306         rather than a string variable.
30307         * sunrpc/rpc_main.c (h_output): Likewise.
30308         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
30309
30310 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
30311
30312         * inet/check_native.c: New file.
30313
30314 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
30315
30316         [BZ #13629]
30317         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
30318         if larger part has absolute value 1.0.
30319         * math/s_clog10.c (__clog10): Likewise.
30320         * math/s_clog10f.c (__clog10f): Likewise.
30321         * math/s_clog10l.c (__clog10l): Likewise.
30322         * math/s_clogf.c (__clogf): Likewise.
30323         * math/s_clogl.c (__clogl): Likewise.
30324         * math/libm-test.inc (clog_test): Add more tests.
30325         (clog10_test): Likewise.
30326         * sysdeps/i386/fpu/libm-test-ulps: Update.
30327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30328
30329         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
30330         (pltexit): Likewise.
30331         (La_regs): Likewise.
30332         (La_retval): Likewise.
30333         (int_retval): Likewise.
30334         Update #error for removed macros to refer only to definitions in
30335         tst-audit.h.
30336         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
30337         macro.
30338         (pltexit): Likewise.
30339         (La_regs): Likewise.
30340         (La_retval): Likewise.
30341         (int_retval): Likewise.
30342         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
30343         macro.
30344         (pltexit): Likewise.
30345         (La_regs): Likewise.
30346         (La_retval): Likewise.
30347         (int_retval): Likewise.
30348         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
30349         macro.
30350         (pltexit): Likewise.
30351         (La_regs): Likewise.
30352         (La_retval): Likewise.
30353         (int_retval): Likewise.
30354         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
30355         macro.
30356         (pltexit): Likewise.
30357         (La_regs): Likewise.
30358         (La_retval): Likewise.
30359         (int_retval): Likewise.
30360         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
30361         macro.
30362         (pltexit): Likewise.
30363         (La_regs): Likewise.
30364         (La_retval): Likewise.
30365         (int_retval): Likewise.
30366         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
30367         macro.
30368         (pltexit): Likewise.
30369         (La_regs): Likewise.
30370         (La_retval): Likewise.
30371         (int_retval): Likewise.
30372         * sysdeps/generic/tst-audit.h: Update comment to refer only to
30373         macro definitions in tst-audit.h.
30374         * sysdeps/i386/tst-audit.h: New file.
30375         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
30376         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
30377         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
30378         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
30379         * sysdeps/sh/tst-audit.h: Likewise.
30380         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
30381         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
30382         * sysdeps/x86_64/tst-audit.h: Likewise.
30383
30384 2012-07-26  Andreas Jaeger  <aj@suse.de>
30385
30386         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
30387         ptrace.
30388
30389         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
30390         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
30391         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
30392         PTRACE_O_MASK.
30393         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
30394         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
30395         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
30396
30397         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
30398         value.
30399
30400         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
30401         _sigsys.
30402         (si_call_addr, si_syscall, si_arch): Define new macro.
30403         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
30404         _sigsys.
30405         (si_call_addr, si_syscall, si_arch): Define new marcro.
30406         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
30407         _sigsys.
30408         (si_call_addr, si_syscall, si_arch): Define new macro.
30409         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
30410         _sigsys.
30411         (si_call_addr, si_syscall, si_arch): Define new macro.
30412
30413 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
30414
30415         [BZ #13717]
30416         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30417         Change to 2.4.21 where previously 2.4.1.
30418         * sysdeps/unix/sysv/linux/configure: Regenerated.
30419         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
30420         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
30421         Linux kernel version.
30422         (__ASSUME_STD_AUXV): Remove.
30423         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
30424         kernel version.
30425         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
30426         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
30427         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
30428         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
30429         (__ASSUME_NETLINK_SUPPORT): Likewise.
30430         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
30431         (__no_netlink_support): Remove conditional definition.
30432         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
30433         Remove.
30434         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
30435         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
30436         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
30437         (if_nameindex_ioctl): Remove.
30438         (if_nameindex_netlink): Do not handle __no_netlink_support.
30439         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
30440         code.
30441         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
30442         Remove conditional code.
30443         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
30444         code.
30445         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
30446         unconditional.
30447         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
30448         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
30449         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
30450         Remove.
30451         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
30452         [!__ASSUME_STD_AUXV]: Remove conditional code.
30453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
30454         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
30455         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
30456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
30457         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
30458         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
30459         code.
30460         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
30461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
30462         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
30463         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
30464         conditional code.
30465         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
30466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
30467         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
30468         code.
30469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
30470         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
30471         conditional code.
30472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
30473         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
30474         code unconditional.
30475         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30476         conditional code.
30477         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30478         unconditional.
30479         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30480         conditional code.
30481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
30482         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30483         unconditional.
30484         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30485         conditional code.
30486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
30487         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
30488         code unconditional.
30489         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30490         conditional code.
30491         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30492         unconditional.
30493         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30494         conditional code.
30495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
30496         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
30497         code unconditional.
30498         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30499         conditional code.
30500         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30501         unconditional.
30502         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30503         conditional code.
30504
30505 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
30506
30507         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
30508         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
30509         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
30510         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
30511         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
30512         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
30513         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
30514         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
30515         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
30516         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
30517         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
30518         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
30519         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
30520         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
30521         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
30522         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
30523         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
30524         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
30525         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
30526         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
30527         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
30528         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
30529         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
30530
30531 2012-07-25  Florian Weimer  <fweimer@redhat.com>
30532
30533         * Versions.def: Add GLIBC_2.17.
30534         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
30535         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
30536         Introduce __libc_secure_getenv.
30537         * stdlib/Versions (2.17): Add secure_getenv
30538         (GLIBC_PRIVATE): Add __libc_secure_getenv.
30539         * stdlib/secure-getenv.c: Rename __secure_getenv to
30540         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
30541         symbol __secure_getenv for GLIBC_2.0.
30542         * stdlib/tst-secure-getenv.c: New.
30543         * stdlib/Makefile (tests): Add testcase.
30544         * manual/startup.texi (Environment Access): Document
30545         secure_getenv.
30546         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
30547         __libc_secure_getenv.
30548         * inet/ruserpass.c (ruserpass): Likewise.
30549         * malloc/mtrace.c (mtrace): Likewise.
30550         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
30551         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
30552         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
30553         * sysdeps/posix/tempname.c: Likewise.  Evaluate
30554         HAVE_SECURE_GETENV.
30555         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
30556         __secure_getenv to __libc_secure_getenv.
30557         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
30558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30559         Likewise.
30560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30561         Likewise.
30562         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
30563         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
30564         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
30565         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
30566         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
30567         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
30568         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
30569
30570 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
30571
30572         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
30573         (struct La_i86_retval): Likewise.
30574         (struct La_x86_64_regs): Likewise.
30575         (struct La_x86_64_retval): Likewise.
30576         (struct La_x32_regs): Likewise.
30577         (struct La_x32_retval): Likewise.
30578         (struct La_ppc32_regs): Likewise.
30579         (struct La_ppc32_retval): Likewise.
30580         (struct La_ppc64_regs): Likewise.
30581         (struct La_ppc64_retval): Likewise.
30582         (struct La_sh_regs): Likewise.
30583         (struct La_sh_retval): Likewise.
30584         (struct La_s390_32_regs): Likewise.
30585         (struct La_s390_32_retval): Likewise.
30586         (struct La_s390_64_regs): Likewise.
30587         (struct La_s390_64_retval): Likewise.
30588         (struct La_sparc32_regs): Likewise.
30589         (struct La_sparc32_retval): Likewise.
30590         (struct La_sparc64_regs): Likewise.
30591         (struct La_sparc64_retval): Likewise.
30592         (struct audit_ifaces): Remove architecture-specific pltenter and
30593         pltexit members.
30594         * sysdeps/i386/ldsodefs.h: New file.
30595         * sysdeps/powerpc/ldsodefs.h: Likewise.
30596         * sysdeps/s390/ldsodefs.h: Likewise.
30597         * sysdeps/sh/ldsodefs.h: Likewise.
30598         * sysdeps/sparc/ldsodefs.h: Likewise.
30599         * sysdeps/x86_64/ldsodefs.h: Likewise.
30600
30601 2012-07-25  Marek Polacek  <polacek@redhat.com>
30602
30603         [BZ #6808]
30604         * math/libm-test.inc (yn_test): Add another test.
30605         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
30606         to ERANGE when the result is +-Inf.
30607         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
30608         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
30609         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
30610         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
30611
30612 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
30613
30614         * conform/data/time.h-data (NULL): Use macro-constant.  Require
30615         equal to 0.
30616         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
30617         clock_t.
30618         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
30619
30620 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
30621
30622         * configure.in <sysdeps resolving>: Correct printing
30623         Implies_before.
30624         * configure: Regenerate.
30625
30626 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
30627
30628         * math/w_ilogb.c: Include <limits.h>.
30629         * math/w_ilogbl.c: Likewise.
30630
30631 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30632
30633         * manual/lang.texi (__va_copy): Document primarily as ISO C99
30634         va_copy.  Document allowing for unavailable va_copy only as
30635         pre-C99 compatibility.
30636         * manual/string.texi (Copying and Concatenation): Use va_copy
30637         instead of __va_copy in concat example.
30638
30639 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
30640
30641         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
30642         (__sendto): Use create_address_port.  Initialize APORT and deallocate
30643         it if not null.
30644
30645         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
30646         with O_NOLINK passed to __file_name_lookup.
30647
30648         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
30649         with O_NOLINK passed to __file_name_lookup.
30650
30651         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
30652         negative N or less than NGIDS.
30653
30654         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
30655         type to string_t.  Set ERANGE as errno and return it if NAME is not big
30656         enough.  Use memcpy instead of strncpy.
30657
30658 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30659
30660         * elf/Makefile (check-data): Remove.
30661         (localplt.data): New vpath directive.
30662         ($(objpfx)check-localplt.out): Use localplt.data from vpath
30663         instead of $(check-data).
30664         * scripts/data/localplt-generic.data: Move to ...
30665         * sysdeps/generic/localplt.data: ... here.
30666         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
30667         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
30668         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
30669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30670         ... here.
30671         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
30672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30673         ... here.
30674         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
30675         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
30676         ... here.
30677         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
30678         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
30679         ... here.
30680         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
30681         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
30682         ... here.
30683         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
30684         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
30685         ... here.
30686
30687 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30688
30689         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
30690         PPC32 and PPC64 files.
30691         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
30692         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
30693
30694 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30695
30696         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
30697         __makecontext_ret to ...
30698         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
30699         ... here and call exit if uc_link is NULL.  New file.
30700         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
30701         __makecontext_ret.S.
30702         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
30703         __makecontext_ret to ...
30704         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
30705         ... here and call exit if uc_link is NULL.  New file.
30706         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
30707         __makecontext_ret.S.
30708
30709 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30710
30711         * elf/elf.h (R_390_IRELATIVE): New definition.
30712         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
30713         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
30714         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
30715         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
30716         (elf_machine_lazy_rel): Likewise.
30717         * sysdeps/s390/dl-irel.h: New file.
30718         * sysdeps/s390/s390-64/memcpy.S: New asm code.
30719         * sysdeps/s390/s390-64/memset.S: New asm code.
30720         * sysdeps/s390/s390-64/memcmp.S: New asm code.
30721         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
30722         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
30723         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
30724         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
30725         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
30726         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
30727         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
30728         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
30729         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
30730         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
30731         * sysdeps/s390/s390-32/memcpy.S: New asm code.
30732         * sysdeps/s390/s390-32/memset.S: New asm code.
30733         * sysdeps/s390/s390-32/memcmp.S: New asm code.
30734
30735 2012-07-17  Marek Polacek  <polacek@redhat.com>
30736
30737         [BZ #14349]
30738         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
30739         * sysdeps/s390/s390-64/configure.in: Likewise.
30740         * sysdeps/sparc/configure.in: Likewise.
30741         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
30742         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
30743         * sysdeps/i386/configure.in: Likewise.
30744         * sysdeps/x86_64/configure.in: Likewise.
30745         * sysdeps/sh/configure.in: Likewise.
30746         * sysdeps/s390/s390-32/configure: Regenerated.
30747         * sysdeps/s390/s390-64/configure: Likewise.
30748         * sysdeps/x86_64/configure: Likewise.
30749         * sysdeps/sh/configure: Likewise.
30750         * sysdeps/powerpc/powerpc64/configure: Likewise.
30751         * sysdeps/powerpc/powerpc32/configure: Likewise.
30752         * sysdeps/sparc/configure: Likwise.
30753         * sysdeps/i386/configure: Likewise.
30754
30755         * elf/dl-open.c: Comment fixes.
30756
30757 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
30758
30759         * Makefile [CXX] (check-data): Remove.
30760         [CXX] (c++-types.data): New vpath directive.
30761         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
30762         vpath.  Do not allow for C++ type data being missing.
30763         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
30764         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
30765         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
30766         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
30767         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
30768         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
30769         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
30770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30771         ... here.
30772         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
30773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30774         ... here.
30775         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
30776         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
30777         ... here.
30778         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
30779         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
30780         ... here.
30781         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
30782         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
30783         ... here.
30784         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
30785         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
30786         ... here.
30787         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
30788         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
30789         ... here.
30790         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
30791         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
30792
30793         * elf/tls-macros.h (TLS_LE): Move architecture-specific
30794         definitions to architecture-specific files.
30795         (TLS_IE): Likewise.
30796         (TLS_LD): Likewise.
30797         (TLS_GD): Likewise.
30798         * sysdeps/i386/tls-macros.h: New file.
30799         * sysdeps/powerpc/tls-macros.h: Likewise.
30800         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
30801         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
30802         * sysdeps/sh/tls-macros.h: Likewise.
30803         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
30804         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
30805         * sysdeps/x86_64/tls-macros.h: Likewise.
30806
30807 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30808
30809         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
30810         zero value for regular exit case.
30811
30812         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
30813         (__start_context): Preserve zero value for regular exit case.
30814
30815 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30816             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30817
30818         * manual/setjmp.texi (setcontext): Clarify normal process
30819         termination when uc_link is the null pointer.
30820         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
30821         exit call.
30822
30823 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
30824
30825         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
30826         preprocessor.  Test for each exception mask separately.
30827
30828 2012-07-16  Andreas Jaeger  <aj@suse.de>
30829
30830         * po/ru.po: Update from translation team.
30831
30832 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
30833
30834         * conform/data/string.h-data (NULL): Use macro-constant.  Require
30835         equal to 0.
30836         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
30837         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
30838         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
30839         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
30840         [ISO || ISO99 || ISO11] (*_t): Do not allow.
30841
30842 2012-07-13  Andreas Jaeger  <aj@suse.de>
30843
30844         * po/fr.po: Update from translation team.
30845
30846 2012-07-12  Marek Polacek  <polacek@redhat.com>
30847
30848         [BZ #14173]
30849         * math/libm-test.inc (yn_test): Add test for BZ #14173.
30850         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
30851         loop condition.
30852
30853 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
30854
30855         [BZ #13717]
30856         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30857         Change to 2.4.1 where previously 2.4.0.
30858         * sysdeps/unix/sysv/linux/configure: Regenerated.
30859         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
30860         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
30861         version.
30862         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
30863         (__ASSUME_AT_CLKTCK): Remove.
30864         (__ASSUME_AT_PAGESIZE): Likewise.
30865         (__ASSUME_AT_XID): Likewise.
30866         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
30867         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
30868         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
30869         unconditionally.
30870         (HAVE_AUX_PAGESIZE): Likewise.
30871         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
30872         [__ASSUME_AT_CLKTCK]: Make code unconditional.
30873         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
30874
30875 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
30876
30877         [BZ #14307]
30878         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
30879         the temporary buffer used to invoke __gethostbyname2_r,
30880         __gethostbyaddr_r and gethostbyname4_r to make room for struct
30881         host_data / struct gaih_addrtuple.
30882         * resolv/nss_dns/dns-host.c (global scope): Move definition of
30883         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
30884         header file nss/nsswitch.h.
30885         * nss/nsswitch.h (global scope): Add definition of implementation
30886         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
30887         resolv/nss_dns/dns-host.c).
30888
30889 2012-07-11  Andreas Jaeger  <aj@suse.de>
30890
30891         * po/fr.po: Update from translation team.
30892
30893         * po/sv.po: Update from translation team
30894         * po/fr.po: Another update from translation team.
30895
30896 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30897
30898         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
30899         for subnormals or multiply small sinh result by itself.
30900         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30901         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30902
30903 2012-07-11  David S. Miller  <davem@davemloft.net>
30904
30905         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30906
30907 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
30908
30909         [BZ #14347]
30910         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
30911         (INTERNAL_MARK): Shift it here.
30912
30913 2012-07-10  Marek Polacek  <polacek@redhat.com>
30914
30915         [BZ #14151]
30916         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
30917         libc_cv_asm_global_directive with .globl.
30918         * configure: Regenerated.
30919         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
30920         with .globl.
30921         * sysdeps/i386/configure: Regenerated.
30922         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
30923         with .globl.
30924         * sysdeps/x86_64/configure: Regenerated.
30925         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
30926         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
30927         * elf/tst-unique2mod2.c: Likewise.
30928         * elf/tst-unique2mod1.c: Likewise.
30929         * elf/tst-unique1mod2.c: Likewise.
30930         * elf/tst-unique1mod1.c: Likewise.
30931         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30932         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
30933         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30934         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
30935         * sysdeps/mach/sysdep.h: Likewise.
30936         * sysdeps/i386/sysdep.h: Likewise.
30937         * sysdeps/i386/i386-mcount.S: Likewise.
30938         * sysdeps/x86_64/_mcount.S: Likewise.
30939         * sysdeps/x86_64/sysdep.h: Likewise.
30940         * sysdeps/sh/_mcount.S: Likewise.
30941         * sysdeps/sh/sysdep.h: Likewise.
30942         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
30943         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
30944         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
30945         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30946         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
30947         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
30948         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
30949         * locale/localeinfo.h: Likewise.
30950         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
30951         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
30952
30953 2012-07-09  Roland McGrath  <roland@hack.frob.com>
30954
30955         [BZ #14336]
30956         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
30957         system".
30958         * manual/message.texi (The Uniforum approach): Likewise.
30959         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
30960         (glibc iconv Implementation): Likewise.
30961
30962 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
30963
30964         [BZ #14337]
30965         * math/s_clog.c (__clog): Avoid scaling a value down where that
30966         could result in underflow.
30967         * math/s_clog10.c (__clog10): Likewise.
30968         * math/s_clog10f.c (__clog10f): Likewise.
30969         * math/s_clog10l.c (__clog10l): Likewise.
30970         * math/s_clogf.c (__clogf): Likewise.
30971         * math/s_clogl.c (__clogl): Likewise.
30972         * math/libm-test.inc (clog_test): Add more tests.
30973         (clog10_test): Likewise.
30974         * sysdeps/i386/fpu/libm-test-ulps: Update.
30975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30976
30977 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
30978
30979         [BZ #14283]
30980         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
30981         by 7 not 8 to examine high bit of fractional part.
30982
30983         [BZ #14042]
30984         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
30985         for call to __mcount_internal.
30986         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
30987         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
30988         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
30989
30990 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
30991
30992         [BZ #14154]
30993         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
30994         approximation for values within 0x1p-13f of an odd multiple of
30995         pi/4.
30996         * math/libm-test.inc (tan_test): Do not allow spurious underflow
30997         exception.  Add more tests.
30998         * sysdeps/i386/fpu/libm-test-ulps: Update.
30999
31000         [BZ #6778]
31001         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
31002         inputs and return -1 for them.  Do not check for +Inf in case not
31003         reachable for +Inf.
31004         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
31005         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
31006         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
31007         and return -1 for them.  Do not check for +Inf in case not
31008         reachable for +Inf.
31009         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
31010         define.
31011         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
31012         and return -1 for them.  Do not check for +Inf in case not
31013         reachable for +Inf.
31014         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
31015         spurious underflow.
31016         * sysdeps/i386/fpu/libm-test-ulps: Update.
31017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31018
31019 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
31020
31021         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
31022
31023 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
31024
31025         [BZ #14157]
31026         [BZ #14331]
31027         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
31028         could result in spurious underflow.  Scale down values above
31029         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
31030         * math/s_csqrtf.c (__csqrtf): Likewise.
31031         * math/s_csqrtl.c (__csqrtl): Likewise.
31032         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
31033         spurious underflow.
31034         * sysdeps/i386/fpu/libm-test-ulps: Update.
31035         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31036
31037 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
31038
31039         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
31040         xopen-msg.sed.
31041         * catgets/xopen-msg.awk: New file.
31042         * catgets/xopen-msg.sed: Removed.
31043
31044         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
31045         po2text.sed.
31046         * intl/po2test.awk: New file.
31047         * intl/po2test.sed: Removed.
31048
31049 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
31050
31051         [BZ #14328]
31052         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
31053         or multiply small sinh result by itself.
31054         * math/s_ctanf.c (__ctanf): Likewise.
31055         * math/s_ctanh.c (__ctanh): Likewise.
31056         * math/s_ctanhf.c (__ctanhf): Likewise.
31057         * math/s_ctanhl.c (__ctanhl): Likewise.
31058         * math/s_ctanl.c (__ctanl): Likewise.
31059         * math/libm-test.inc (ctan_test_tonearest): New function.
31060         (ctan_test_towardzero): Likewise.
31061         (ctan_test_downward): Likewise.
31062         (ctan_test_upward): Likewise.
31063         (ctanh_test_tonearest): Likewise.
31064         (ctanh_test_towardzero): Likewise.
31065         (ctanh_test_downward): Likewise.
31066         (ctanh_test_upward): Likewise.
31067         (main): Call these new functions.
31068         * sysdeps/i386/fpu/libm-test-ulps: Update.
31069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31070
31071 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
31072
31073         * .gitignore: Delete /ports entry.
31074
31075 2012-07-03  Andreas Jaeger  <aj@suse.de>
31076
31077         * po/bg.po: Update from translation team.
31078         * po/cs.po: Likewise.
31079         * po/de.po: Likewise.
31080         * po/hr.po: Likewise.
31081         * po/nl.pl: Likewise.
31082         * po/pl.po: Likewise.
31083         * po/vi.po: Likewise.
31084
31085 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
31086
31087         * Makeconfig [!+link] (+link-before-libc): New variable.
31088         [!+link] (+link-after-libc): Likewise.
31089         [!+link] (+link-tests): Likewise.
31090         [!+link] (+link): Define in terms of $(+link-before-libc) and
31091         $(+link-after-libc).
31092         [!+link-static] (+link-static-before-libc): New variable.
31093         [!+link-static] (+link-static-after-libc): Likewise.
31094         [!+link-static] (+link-static-tests): Likewise.
31095         [!+link-static] (+link-static): Define in terms of
31096         $(+link-static-before-libc) and $(+link-static-after-libc).
31097         [build-shared] (link-libc-before-gnulib): New variable.
31098         [build-shared] (link-libc-tests): Likewise.
31099         [build-shared] (link-libc): Define in terms of
31100         $(link-libc-before-gnulib).
31101         [!build-shared] (link-libc-tests): New variable.
31102         (link-libc-static-tests): New variable.
31103         [!gnulib] (gnulib-arch): New variable.
31104         [!gnulib] (gnulib-tests): Likewise.
31105         [!gnulib] (static-gnulib-arch): Likewise.
31106         [!gnulib] (static-gnulib-tests): Likewise.
31107         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
31108         Define with "=" instead of ":=".
31109         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
31110         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
31111         * Rules (binaries-all-notests): New variable.
31112         (binaries-all-tests): Likewise.
31113         (binaries-static-notests): Likewise.
31114         (binaries-static-tests): Likewise.
31115         (binaries-all): Define using $(binaries-all-notests) and
31116         $(binaries-all-tests).
31117         (binaries-static): Define using $(binaries-static-notests) and
31118         $(binaries-static-tests).
31119         (binaries-shared-tests): New variable.
31120         (binaries-shared-notests): Likewise.
31121         (binaries-shared): Remove variable.
31122         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
31123         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
31124         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
31125         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
31126         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
31127         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
31128         * elf/Makefile (sln-modules): New variable.
31129         (extra-objs): Add $(sln-modules:=.o).
31130         (ldconfig-modules): Add static-stubs.
31131         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
31132         * elf/static-stubs.c: New file.
31133
31134         [BZ #14283]
31135         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
31136         by 7 not 8 to examine high bit of fractional part.  Use volatile
31137         variables when splitting into final array of floats if
31138         __FLT_EVAL_METHOD__ != 0.
31139         * math/libm-test.inc (cos_test): Add another test.
31140         (sin_test): Likewise.
31141         * sysdeps/i386/fpu/libm-test-ulps: Update.
31142
31143         [BZ #14273]
31144         * math/libm-test.inc (cosh_test): Add more tests.
31145
31146         * version.h (RELEASE): Set to "development".
31147         (VERSION): Set to "2.16.90".
31148
31149 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
31150
31151         * NEWS: Update copyright. Remove last-updated date.
31152         Mention math library bug fixes and timezone data changes.
31153         * README: Mention GNU/Hurd, x32, and HPPA support status.
31154
31155 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
31156
31157         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
31158
31159 2012-06-27  Andreas Jaeger  <aj@suse.de>
31160
31161         * manual/contrib.texi (Contributors): Add Samuel Thibault.
31162
31163 2012-06-25  Andreas Jaeger  <aj@suse.de>
31164
31165         * sysdeps/s390/fpu/libm-test-ulps: Update.
31166
31167 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
31168             Thomas Schwinge  <thomas@codesourcery.com>
31169
31170         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
31171         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
31172         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
31173         fanotify_mark.
31174
31175 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
31176
31177         * sysdeps/mach/start.c: Remove file.
31178         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
31179         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
31180         * sysdeps/sh/init-first.c: Likewise.
31181
31182         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
31183         registers for frame unwinding purposes, add CFI directives.
31184         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
31185         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
31186         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
31187         Likewise.
31188
31189         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
31190         __fortify_fail returning.
31191         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
31192
31193         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
31194         sysdeps/sh/____longjmp_chk.S.
31195         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
31196         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
31197         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
31198         (gen-as-const-headers): Append sigaltstack-offsets.sym.
31199
31200         * sysdeps/sh/abort-instr.h: New file.
31201         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
31202         process in case exit returns.
31203
31204         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
31205         initialize the GOT register before use.
31206
31207         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
31208         calculation of ARGC > 4.
31209
31210         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
31211         meaningful names to some local labels.
31212
31213 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
31214             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
31215
31216         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
31217         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
31218         (__arch_compare_and_exchange_val_16_acq): Likewise.
31219         (__arch_compare_and_exchange_val_32_acq): Likewise.
31220         (atomic_exchange_and_add): Fix gUSA sequence.
31221         (atomic_add): Likewise.
31222         (atomic_add_negative): Likewise.
31223         (atomic_add_zero): Likewise.
31224         (atomic_bit_test_set): Likewise.
31225
31226 2012-06-22  Andreas Schwab  <schwab@redhat.com>
31227
31228         [BZ #13579]
31229         * include/link.h (struct link_map): Add l_free_initfini.
31230         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
31231         l_initfini.
31232         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
31233         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
31234         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
31235         set.
31236
31237 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
31238
31239         * configure.in: Use AC_LANG_SOURCE.
31240         * configure: Regenerate.
31241
31242 2012-06-22  Roland McGrath  <roland@hack.frob.com>
31243
31244         * configure.in (libc_cv_localstatedir): New substituted variable.
31245         * configure: Regenerated.
31246         * config.make.in (localstatedir): New variable, substituted from
31247         libc_cv_localstatedir.
31248         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
31249         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
31250         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
31251         * sysdeps/gnu/configure: Regenerated.
31252
31253 2012-06-21  Jeff Law  <law@redhat.com>
31254
31255         [BZ #14277]
31256         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
31257         free.  Simplify list management for _LIBC case.
31258
31259 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
31260
31261         [BZ #14273]
31262         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
31263         Clear sign bit of 64-bit integer value before comparing against
31264         overflow value.
31265
31266         * sysdeps/mach/configure: Regenerated.
31267
31268 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
31269
31270         [BZ #14278]
31271         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
31272
31273 2012-06-21  Jeff Law  <law@redhat.com>
31274
31275         [BZ #13882]
31276         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
31277         uint16_t for elements in the "seen" array to avoid char overflows.
31278         * elf/dl-fini.c (_dl_sort_fini): Likewise.
31279         * elf/dl-open.c (dl_open_worker): Likewise.
31280
31281 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
31282
31283         * scripts/list-sources.sh: Scan PORTS for translations.
31284         * po/libc.pot: Regenerated.
31285
31286 2012-06-21  Andreas Jaeger  <aj@suse.de>
31287
31288         [BZ #12194]
31289         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
31290         warning.
31291         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
31292         * bits/byteswap-16.h (__bswap_16): Likewise.
31293         * bits/byteswap.h (__bswap_constant_16): Likewise.
31294
31295 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
31296
31297         [BZ #14117]
31298         * sysdeps/i386/fpu_control.h: Removed.
31299         * sysdeps/x86_64/fpu_control.h: Moved to ...
31300         * sysdeps/x86/fpu_control.h: Here.
31301
31302         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
31303         (_FPU_SETCW): Likewise.
31304
31305 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
31306
31307         [BZ #14117]
31308         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
31309         * sysdeps/x86/fpu/bits/mathinline.h: This.
31310         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
31311
31312         [BZ #14050]
31313         [BZ #14117]
31314         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
31315         functions if __x86_64__ is defined.
31316
31317 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
31318
31319         * string/endian.h: Add !__ASSEMBLER__ condition for including
31320         conversion interfaces.
31321
31322 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
31323
31324         [BZ #14241]
31325         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
31326         of ABS(x) in calculating zero to negative powers other than odd
31327         integers.
31328         * math/libm-test.inc (pow_test): Add more tests.
31329
31330 2012-06-15  Andreas Jaeger  <aj@suse.de>
31331
31332         * manual/contrib.texi (Contributors): Update entry of Liubov
31333         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
31334         Machado Filho.
31335
31336 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
31337
31338         * string/string.h: Add __wur to GNU version of strerror_r.
31339
31340 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
31341
31342         [BZ #14229]
31343         * string/Makefile (tests): Add tst-strtok_r.
31344         * string/tst-strtok_r.c: New file.
31345         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
31346         RAX_LP/RDX_LP on SAVE_PTR.
31347
31348 2012-06-14  Roland McGrath  <roland@hack.frob.com>
31349
31350         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
31351
31352 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
31353
31354         * libm_test.inc (csqrt_test): Allow more spurious underflow
31355         exceptions.
31356         (j0_test): Likewise.
31357         (j1_test): Likewise.
31358         (y0_test): Likewise.
31359         (y1_test): Likewise.
31360
31361 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
31362
31363         * po/Makefile (libc.pot): Use UTF-8 charset.
31364
31365 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
31366
31367         [BZ #14210]
31368         Suppress sign-conversion warning from FD_SET.
31369         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
31370         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
31371         not unsigned long int.
31372         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
31373
31374 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
31375
31376         [BZ #14050]
31377         [BZ #14117]
31378         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
31379         __extern_always_inline instead of __extern_inline.
31380         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
31381         (__signbit): Likewise.
31382         (__signbitl): Support C++ namespace.
31383         (lrintf): New inline function.
31384         (lrint): Likewise.
31385         (llrintf): Likewise.
31386         (llrint): Likewise.
31387         (fmaxf): Likewise.
31388         (fmax): Likewise.
31389         (fminf): Likewise.
31390         (fmin): Likewise.
31391         (rint): Likewise.
31392         (rintf): Likewise.
31393         (ceil): Likewise.
31394         (ceilf): Likewise.
31395         (floor): Likewise.
31396         (floorf): Likewise.
31397         (nearbyint): Likewise.
31398         (nearbyintf): Likewise.
31399
31400 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
31401
31402         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
31403         non-default versions.
31404
31405 2012-06-11  Roland McGrath  <roland@hack.frob.com>
31406
31407         [BZ #14218]
31408         * manual/argp.texi (Argp): Reword argp_parse description slightly.
31409
31410 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
31411
31412         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
31413         (FE_UPWARD, FE_DOWNWARD): Don't define.
31414         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
31415         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
31416
31417         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
31418         reading it.
31419         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
31420         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
31421
31422 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
31423
31424         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
31425         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
31426         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
31427         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
31428
31429 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
31430
31431         [BZ #14117]
31432         * sysdeps/i386/fpu/bits/fenv.h: Removed.
31433         * sysdeps/i386/fpu/Implies: New file.
31434         * sysdeps/x86_64/fpu/Implies: Likewise.
31435         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
31436         * sysdeps/x86/fpu/bits/fenv.h: This.
31437
31438         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
31439         __SSE_MATH__.
31440
31441 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
31442
31443         [BZ #14134]
31444         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
31445         character 0xffff that matches the last element of the
31446         conversion table.
31447
31448 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31449
31450         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
31451         fmodl commit.
31452
31453 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31454
31455         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
31456         values higher than 25.6283.
31457
31458 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31459
31460         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
31461         subnormal exponent extraction and add some __builtin_expect.
31462         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
31463         Fix for subnormal mantissa calculation.
31464
31465 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
31466
31467         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
31468         cpu2 is -1 and errno is not ENOSYS.
31469
31470 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
31471
31472         [BZ #14117]
31473         * sysdeps/i386/i486/bits/string.h: Renamed to ...
31474         * sysdeps/x86/bits/string.h: This.
31475         * sysdeps/x86_64/bits/string.h: Removed.
31476
31477         * sysdeps/i386/i486/bits/string.h: Define inline functions only
31478         if not compiling for x86-64, but compiling for >= i486.
31479
31480         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
31481         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
31482
31483         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
31484         New macro from Linux kernel 3.4.0.
31485         (FP_XSTATE_MAGIC2): Likewise.
31486         (FP_XSTATE_MAGIC2_SIZE): Likewise.
31487         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
31488         (struct _fpx_sw_bytes): New struct.
31489         (struct _xsave_hdr): Likewise.
31490         (struct _ymmh_state): Likewise.
31491         (struct _xstate): Likewise.
31492
31493         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
31494         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
31495         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
31496         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
31497         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
31498         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
31499
31500         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
31501         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
31502         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
31503         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
31504         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
31505         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
31506
31507 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
31508
31509         [BZ #13743]
31510         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
31511         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
31512         (sysdep_headers): Include sys/platform/ppc.h.
31513         * sysdeps/powerpc/test-gettimebase.c: Test for
31514         __ppc_get_timebase() to catch future ISA opcode/insn changes.
31515         * manual/Makefile (appendices): Include platform.texi.
31516         * manual/contrib.texi (Contributors): Update @node pointers.
31517         * manual/maint.texi (Maintenance): Likewise.
31518         (Platform): New node.
31519         * manual/platform.texi: New file.  Document the new features.
31520
31521 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
31522             Jakub Jelinek  <jakub@redhat.com>
31523
31524         [BZ #14188]
31525         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
31526         where __builtin_expect is unavailable.
31527
31528 2012-06-03  David S. Miller  <davem@davemloft.net>
31529
31530         * stdlib/longlong.h: Updated from GCC.
31531
31532 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
31533
31534         [BZ #14042]
31535         * sysdeps/powerpc/powerpc32/mcount.c: New file.
31536         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
31537         __mcount_internal.
31538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
31539         (GLIBC_2.16): Likewise.
31540
31541 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31542
31543         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
31544
31545 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
31546
31547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
31548         (default-abi): New variable.
31549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
31550         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
31551         variable.
31552         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
31553         Likewise.
31554         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
31555         Likewise.
31556         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
31557         Likewise.
31558
31559         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
31560         definition.  Document in comment.
31561
31562 2012-06-01  David S. Miller  <davem@davemloft.net>
31563
31564         * stdlib/longlong.h: Updated from GCC.
31565
31566 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31567
31568         [BZ #14117]
31569         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
31570         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
31571         sys/debugreg.h sys/io.h here.
31572         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
31573         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
31574         sys/io.h.
31575         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
31576         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
31577         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
31578         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
31579         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
31580         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
31581
31582         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
31583         Define only if __x86_64__ is defined.
31584
31585 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
31586
31587         [BZ #14048]
31588         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
31589         Use int64_t for variable i.
31590         * math/libm-test.inc (fmod_test): Add more tests.
31591
31592         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
31593         z computation is not scheduled after fetestexcept.
31594         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
31595         Use math_force_eval instead of asm to ensure calculation scheduled
31596         before exception test.
31597         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
31598         Ensure a1 + u.d computation is not scheduled after fetestexcept.
31599
31600 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
31601
31602         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
31603         computation is not scheduled after fetestexcept.
31604
31605 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31606
31607         [BZ #14117]
31608         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
31609         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
31610
31611 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31612
31613         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
31614         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
31615
31616 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31617
31618         [BZ #14117]
31619         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
31620         <bits/wordsize.h>.
31621         (__WCHAR_MIN): Support __WORDSIZE == 64.
31622         (__WCHAR_MAX): Likewise.
31623
31624         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
31625         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
31626
31627         [BZ #14183]
31628         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
31629         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
31630
31631         [BZ #14117]
31632         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
31633         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
31634
31635         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
31636         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
31637
31638         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
31639         Defined to 1 if __x86_64__ isn't defined.
31640         (_STAT_VER_LINUX_OLD): New.
31641         (st_atime): Remove duplicate.
31642         (st_mtime): Likewise.
31643         (st_ctime): Likewise.
31644
31645 2012-05-31  David S. Miller  <davem@davemloft.net>
31646
31647         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
31648         entries.
31649
31650 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
31651
31652         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
31653         gen-libm-test.pl.
31654
31655         [BZ #14132]
31656         * elf/dl-reloc.c: Include <_itoa.h>.
31657         (_dl_reloc_bad_type): Remove use of INTUSE.
31658         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
31659         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
31660         * stdio-common/psiginfo.c (psiginfo): Likewise.
31661         * stdio-common/psignal.c (psignal): Likewise.
31662         * string/strsignal.c (strsignal): Likewise.
31663         * include/signal.h (_sys_siglist): Declare hidden proto.
31664         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
31665         INTVARDEF with libc_hidden_data_def.
31666         * stdio-common/itoa-udigits.c: Likewise.
31667         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
31668         (_itoa_lower_digits_internal): Remove declaration.
31669         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
31670         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
31671         (_sys_sigabbrev_internal): Remove aliases.
31672         (_sys_siglist): Define hidden alias.
31673
31674 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
31675
31676         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
31677         bits/sysctl.h.
31678
31679 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31680
31681         [BZ #14117]
31682         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
31683         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
31684
31685         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
31686         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
31687         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
31688         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
31689         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
31690         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
31691
31692         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
31693         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
31694         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
31695
31696         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
31697         with __addr.
31698         (insw): Likewise.
31699         (insl): Likewise.
31700         (outsb): Likewise.
31701         (outsw): Likewise.
31702         (outsl): Likewise.
31703
31704         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
31705         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
31706         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
31707
31708         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
31709         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
31710         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
31711         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
31712         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
31713         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
31714
31715         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
31716         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
31717
31718         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
31719         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
31720
31721         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
31722         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
31723         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
31724
31725         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
31726         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
31727         to ...
31728         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
31729
31730         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
31731         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
31732         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
31733
31734         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
31735         for x86-64.
31736         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
31737
31738 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
31739
31740         * math/math.h (M_El): Use two more decimal places.
31741         (M_LOG2El): Likewise.
31742         (M_LOG10El): Likewise.
31743         (M_LN2l): Likewise.
31744         (M_LN10l): Likewise.
31745         (M_PIl): Likewise.
31746         (M_PI_2l): Likewise.
31747         (M_PI_4l): Likewise.
31748         (M_1_PIl): Likewise.
31749         (M_2_PIl): Likewise.
31750         (M_2_SQRTPIl): Likewise.
31751         (M_SQRT2l): Likewise.
31752         (M_SQRT1_2l): Likewise.
31753
31754 2012-05-31  David S. Miller  <davem@davemloft.net>
31755
31756         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
31757         values between float registers.
31758         * sysdeps/sparc/sparc64/memset.S: Likewise.
31759         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
31760
31761 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
31762
31763         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
31764         -D_FORTIFY_SOURCE=1.
31765         (CPPFLAGS-tst-longjmp_chk.c): Define.
31766         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
31767         (CPPFLAGS-tst-longjmp_chk2.c): Define.
31768         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
31769         CFLAGS-tst-wchar-h.c.
31770
31771 2012-05-31  Marek Polacek  <polacek@redhat.com>
31772
31773         [BZ #14132]
31774         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
31775         __endmntent_internal): Remove declaration.
31776         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
31777         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
31778         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
31779
31780 2012-05-30  David S. Miller  <davem@davemloft.net>
31781
31782         * sysdeps/sparc/sparc32/soft-fp/q_util.c
31783         (___Q_simulate_exceptions): Use real FP ops rather than writing
31784         into the %fsr.
31785         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
31786         Likewise.
31787
31788 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31789
31790         [BZ #14117]
31791         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
31792         * sysdeps/x86/bits/xtitypes.h: This.
31793
31794         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
31795         * sysdeps/x86/bits/wordsize.h: This.
31796
31797         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
31798         * sysdeps/x86/bits/huge_vall.h: This.
31799
31800         * sysdeps/i386/bits/select.h: Removed.
31801         * sysdeps/x86_64/bits/select.h: Renamed to ...
31802         * sysdeps/x86/bits/select.h: This.
31803
31804         * sysdeps/i386/bits/setjmp.h: Removed.
31805         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
31806         * sysdeps/x86/bits/setjmp.h: This.
31807
31808         * sysdeps/i386/bits/mathdef.h: Removed.
31809         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
31810         * sysdeps/x86/bits/mathdef.h: This.
31811
31812 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
31813
31814         [BZ #14132]
31815         * include/sys/socket.h (__connect_internal)
31816         (__libc_sa_len_internal): Remove declaration.
31817         (__connect, __libc_sa_len): Declare hidden_proto.
31818         (SA_LEN): Remove use of INTUSE.
31819         * socket/connect.c: Add libc_hidden_def.
31820         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
31821         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
31822         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
31823         alias.
31824         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
31825         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
31826         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
31827         of adding _internal alias.
31828
31829 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31830
31831         [BZ #14117]
31832         * sysdeps/i386/bits/link.h: Removed.
31833         * sysdeps/i386/bits/linkmap.h: Likewise.
31834         * sysdeps/x86_64/bits/link.h: Renamed to ...
31835         * sysdeps/x86/bits/link.h: This.
31836         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
31837         * sysdeps/x86/bits/linkmap.h: This.
31838
31839         * sysdeps/i386/bits/endian.h: Removed.
31840         * sysdeps/x86_64/bits/endian.h: Renamed to ...
31841         * sysdeps/x86/bits/endian.h: This.
31842
31843         * sysdeps/i386/bits/byteswap.h: Removed.
31844         * sysdeps/i386/bits/byteswap-16.h: Likewise.
31845         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
31846         * sysdeps/x86/bits/byteswap.h: This.
31847         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
31848         * sysdeps/x86/bits/byteswap-16.h: This.
31849         * sysdeps/i386/Implies: Add x86.
31850         * sysdeps/x86_64/Implies: Likewise.
31851
31852 2012-05-30  David S. Miller  <davem@davemloft.net>
31853
31854         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
31855         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
31856         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
31857         (FP_TRAPPING_EXCEPTIONS): Define.
31858         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
31859         (FP_TRAPPING_EXCEPTIONS): Define.
31860         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
31861         subnormals only when inexact has been signalled or underflow
31862         exceptions are enabled.
31863         (_FP_PACK_CANONICAL): Likewise.
31864
31865 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31866
31867         [BZ #14183]
31868         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
31869         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
31870
31871 2012-05-30  Richard Henderson  <rth@twiddle.net>
31872
31873         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
31874         with #ifndef NOT_IN_libc.
31875
31876         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
31877         marked to avoid plt entry.
31878
31879 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31880
31881         [BZ #14112]
31882         * Makeconfig (default-abi): New macro.
31883         (abi-includes): Likewise.
31884         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
31885         $(abi-$(default-abi)-lib-soname) for soname if defined.
31886         ($(common-objpfx)gnu/lib-names.stmp): Generate from
31887         abi-variants.
31888         * Makefile (installed-stubs): Likewise.
31889         * include/stubs-biarch.h: Removed.
31890         * scripts/lib-names.awk: Only handle one library at a time.
31891         * scripts/soversions.awk: Remove WORDSIZE support.
31892         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
31893         entries.
31894         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
31895         Removed.
31896         (syscall-list-default-condition): Likewise.
31897         (syscall-list-default-condition): Likewise.
31898         (syscall-list-includes): Likewise.
31899         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
31900         syscall-list-* with abi-*.  Handle undefined abi-variants.
31901         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
31902         * sysdeps/unix/sysv/linux/i386/Implies: New file.
31903         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
31904         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
31905         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
31906         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
31907         Removed.
31908         (syscall-list-32-options): Likewise.
31909         (syscall-list-32-condition): Likewise.
31910         (syscall-list-64-options): Likewise.
31911         (syscall-list-64-condition): Likewise.
31912         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
31913         macro.
31914         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
31915         Renamed to ...
31916         (abi-*): This.
31917         (abi-64-ld-soname): New macro.
31918         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
31919         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
31920         Renamed to ...
31921         (abi-*): This.
31922         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
31923         * sysdeps/x86_64/x32/shlib-versions: Likewise.
31924
31925 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
31926
31927         * sysdeps/unix/sysv/linux/kernel-features.h
31928         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
31929         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
31930         include <kernel-features.h>.
31931         [!__NR_ftruncate64]: Remove conditional code.
31932         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31933         [__NR_ftruncate64]: Make code unconditional.
31934         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31935         * sysdeps/unix/sysv/linux/truncate64.c: Do not
31936         include <kernel-features.h>.
31937         [!__NR_ftruncate64]: Remove conditional code.
31938         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31939         [__NR_ftruncate64]: Make code unconditional.
31940         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
31942         include <kernel-features.h>.
31943         [!__NR_ftruncate64]: Remove conditional code.
31944         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31945         [__NR_ftruncate64]: Make code unconditional.
31946         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
31948         include <kernel-features.h>.
31949         [!__NR_ftruncate64]: Remove conditional code.
31950         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31951         [__NR_ftruncate64]: Make code unconditional.
31952         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31953
31954         * configure.in (libc_cv_fpie): Weaken to a compile test using
31955         LIBC_TRY_CC_OPTION.
31956         * configure: Regenerated.
31957
31958 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31959
31960         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
31961         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
31962         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
31963         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
31964         Refreshed.
31965         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
31966         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
31967         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
31968         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
31969         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
31970         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
31971         Refreshed.
31972
31973 2012-05-27  David S. Miller  <davem@davemloft.net>
31974
31975         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
31976         (___Q_zero): New.
31977         (__Q_simulate_exceptions): Return void.  Change to simulate
31978         exceptions by writing into the %fsr.
31979         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
31980         (__Qp_handle_exceptions): Likewise.
31981         (numbers): Delete.
31982         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
31983         __Qp_handle_exceptions.
31984         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
31985         __Qp_handle_exceptions.
31986         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31987         as unused and give dummy FP_RND_NEAREST initializer.
31988         (FP_INHIBIT_RESULTS): Define.
31989         (___Q_simulate_exceptions): Update declaration.
31990         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
31991         formatting.
31992         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31993         as unused and give dummy FP_RND_NEAREST initializer.
31994         (__Qp_handle_exceptions): Update declaration.
31995         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
31996         formatting.
31997
31998 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
31999
32000         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
32001         the temporary FPU control word.
32002         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
32003         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
32004         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
32005         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
32006         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
32007         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
32008         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
32009         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
32010         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
32011         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
32012         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
32013
32014 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
32015
32016         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
32017         fields.
32018
32019 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
32020
32021         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
32022         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
32023         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
32024         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
32025         Likewise.
32026         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
32027         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
32028         Likewise.
32029
32030 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
32031
32032         * po/h.po: Update from translation team.
32033
32034 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
32035
32036         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
32037
32038         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
32039         handling of denormals.
32040         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
32041         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
32042         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
32043         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
32044         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
32045         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
32046         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
32047         Likewise.
32048
32049 2012-05-26  Marek Polacek  <polacek@redhat.com>
32050
32051         [BZ #14152]
32052         * math/libm-test.inc (fma_test): Don't always expect underflow
32053         exception.
32054
32055 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32056
32057         [BZ #12416]
32058         * elf/tst-execstack.c: Include stackinfo.h.
32059         (do_test): Adjust test case to ensure that pthread_getattr_np
32060         behaviour remains the same after marking stack executable.
32061
32062 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
32063
32064         * sysdeps/unix/sysv/linux/kernel-features.h
32065         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
32066         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
32067         kernel-features.h.
32068         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
32069         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
32070         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
32071         kernel-features.h.
32072         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
32073         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
32074
32075 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
32076
32077         * configure.in: Define the default includes to being none.
32078         * configure: Regenerated.
32079
32080 2012-05-25  Roland McGrath  <roland@hack.frob.com>
32081
32082         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
32083         * sysdeps/x86_64/setjmp.S: Likewise.
32084         * sysdeps/i386/bsd-setjmp.S: Likewise.
32085         * sysdeps/i386/bsd-_setjmp.S: Likewise.
32086         * sysdeps/i386/setjmp.S: Likewise.
32087         * sysdeps/i386/__longjmp.S: Likewise.
32088         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
32089         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
32090
32091         * include/stap-probe.h: New file.
32092         * configure.in: Handle --enable-systemtap.
32093         * configure: Regenerated.
32094         * config.h.in (USE_STAP_PROBE): New #undef.
32095         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
32096         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
32097         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
32098
32099 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
32100
32101         [BZ #13717]
32102         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
32103         to 2.4.0 where earlier.
32104         * sysdeps/unix/sysv/linux/configure: Regenerated.
32105         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
32106         <kernel-features.h>.
32107         [__ASSUME_32BITUIDS]: Make code unconditional.
32108         [!__ASSUME_32BITUIDS]: Remove conditional code.
32109         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
32110         <kernel-features.h>.
32111         [__ASSUME_32BITUIDS]: Make code unconditional.
32112         [!__ASSUME_32BITUIDS]: Remove conditional code.
32113         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
32114         [__ASSUME_32BITUIDS]: Make code unconditional.
32115         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
32116         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
32117         <kernel-features.h>.
32118         [__ASSUME_32BITUIDS]: Make code unconditional.
32119         [!__ASSUME_32BITUIDS]: Remove conditional code.
32120         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
32121         <kernel-features.h>.
32122         [__ASSUME_32BITUIDS]: Make code unconditional.
32123         [!__ASSUME_32BITUIDS]: Remove conditional code.
32124         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
32125         <kernel-features.h>.
32126         [__ASSUME_32BITUIDS]: Make code unconditional.
32127         [!__ASSUME_32BITUIDS]: Remove conditional code.
32128         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
32129         <kernel-features.h>.
32130         [__ASSUME_32BITUIDS]: Make code unconditional.
32131         [!__ASSUME_32BITUIDS]: Remove conditional code.
32132         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
32133         <kernel-features.h>.
32134         [__ASSUME_32BITUIDS]: Make code unconditional.
32135         [!__ASSUME_32BITUIDS]: Remove conditional code.
32136         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
32137         <kernel-features.h>.
32138         [__ASSUME_32BITUIDS]: Make code unconditional.
32139         [!__ASSUME_32BITUIDS]: Remove conditional code.
32140         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
32141         <kernel-features.h>.
32142         [__ASSUME_32BITUIDS]: Make code unconditional.
32143         [!__ASSUME_32BITUIDS]: Remove conditional code.
32144         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
32145         <kernel-features.h>.
32146         [__ASSUME_32BITUIDS]: Make code unconditional.
32147         [!__ASSUME_32BITUIDS]: Remove conditional code.
32148         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
32149         <kernel-features.h>.
32150         [__ASSUME_32BITUIDS]: Make code unconditional.
32151         [!__ASSUME_32BITUIDS]: Remove conditional code.
32152         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
32153         <kernel-features.h>.
32154         [__ASSUME_32BITUIDS]: Make code unconditional.
32155         [!__ASSUME_32BITUIDS]: Remove conditional code.
32156         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
32157         <kernel-features.h>.
32158         [__NR_setresgid] (__setresgid): Do not declare.
32159         [__ASSUME_32BITUIDS]: Make code unconditional.
32160         [!__ASSUME_32BITUIDS]: Remove conditional code.
32161         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
32162         <kernel-features.h>.
32163         [__NR_setresuid] (__setresuid): Do not declare.
32164         [__ASSUME_32BITUIDS]: Make code unconditional.
32165         [!__ASSUME_32BITUIDS]: Remove conditional code.
32166         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
32167         <kernel-features.h>.
32168         [__ASSUME_32BITUIDS]: Make code unconditional.
32169         [!__ASSUME_32BITUIDS]: Remove conditional code.
32170         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
32171         <kernel-features.h>.
32172         [__ASSUME_32BITUIDS]: Make code unconditional.
32173         [!__ASSUME_32BITUIDS]: Remove conditional code.
32174         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
32175         <kernel-features.h>.
32176         [__ASSUME_32BITUIDS]: Make code unconditional.
32177         [!__ASSUME_32BITUIDS]: Remove conditional code.
32178         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
32179         <kernel-features.h>.
32180         [__ASSUME_32BITUIDS]: Make code unconditional.
32181         [!__ASSUME_32BITUIDS]: Remove conditional code.
32182         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
32183         <kernel-features.h>.
32184         [__ASSUME_32BITUIDS]: Make code unconditional.
32185         [!__ASSUME_32BITUIDS]: Remove conditional code.
32186         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
32187         <kernel-features.h>.
32188         [__ASSUME_32BITUIDS]: Make code unconditional.
32189         [!__ASSUME_32BITUIDS]: Remove conditional code.
32190         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
32191         <kernel-features.h>.
32192         [__ASSUME_32BITUIDS]: Make code unconditional.
32193         [!__ASSUME_32BITUIDS]: Remove conditional code.
32194         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
32195         <kernel-features.h>.
32196         [__ASSUME_32BITUIDS]: Make code unconditional.
32197         [!__ASSUME_32BITUIDS]: Remove conditional code.
32198         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
32199         <kernel-features.h>.
32200         [__ASSUME_32BITUIDS]: Make code unconditional.
32201         [!__ASSUME_32BITUIDS]: Remove conditional code.
32202         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
32203         <kernel-features.h>.
32204         [__ASSUME_32BITUIDS]: Make code unconditional.
32205         [!__ASSUME_32BITUIDS]: Remove conditional code.
32206         * sysdeps/unix/sysv/linux/kernel-features.h
32207         (__ASSUME_SETRESUID_SYSCALL): Remove.
32208         (__ASSUME_SETRESGID_SYSCALL): Likewise.
32209         (__ASSUME_32BITUIDS): Likewise.
32210         (__ASSUME_LDT_WORKS): Likewise.
32211         (__ASSUME_O_DIRECTORY): Likewise.
32212         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
32213         architecture but not kernel version.
32214         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
32215         (__ASSUME_MMAP2_SYSCALL): Likewise.
32216         (__ASSUME_STAT64_SYSCALL): Likewise.
32217         (__ASSUME_IPC64): Likewise.
32218         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
32219         <kernel-features.h>.
32220         [__ASSUME_32BITUIDS]: Make code unconditional.
32221         [!__ASSUME_32BITUIDS]: Remove conditional code.
32222         * sysdeps/unix/sysv/linux/opendir.c: Do not include
32223         <kernel-features.h>.
32224         [__ASSUME_O_DIRECTORY]: Make code unconditional.
32225         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
32226         132096]: Remove conditional code.
32227         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
32228         * sysdeps/unix/sysv/linux/s390/s390-32/chown.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/s390/s390-32/lchown.c: Do not include
32233         <kernel-features.h>.
32234         [__ASSUME_32BITUIDS]: Make code unconditional.
32235         [!__ASSUME_32BITUIDS]: Remove conditional code.
32236         * sysdeps/unix/sysv/linux/setegid.c: Do not include
32237         <kernel-features.h>.
32238         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
32239         unconditional.
32240         (__setresgid): Do not declare.
32241         [__ASSUME_32BITUIDS]: Make code unconditional.
32242         [!__ASSUME_32BITUIDS]: Remove conditional code.
32243         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
32244         <kernel-features.h>.
32245         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
32246         unconditional.
32247         (__setresuid): Do not declare.
32248         [__ASSUME_32BITUIDS]: Make code unconditional.
32249         [!__ASSUME_32BITUIDS]: Remove conditional code.
32250         * sysdeps/unix/sysv/linux/sh/chown.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/sparc/sparc32/semctl.c: Do not include
32255         <kernel-features.h>.
32256         [__ASSUME_32BITUIDS]: Make code unconditional.
32257         [!__ASSUME_32BITUIDS]: Remove conditional code.
32258
32259 2012-05-25  Richard Henderson  <rth@twiddle.net>
32260
32261         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
32262         dl_hwcap to ifunc resolver.
32263         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
32264         elf_ifunc_invoke.
32265         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
32266         dl_hwcap to ifunc resolver.
32267         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
32268
32269 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
32270
32271         [BZ #14153]
32272         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
32273         for |x| <= 2**-26, not 2**-57.
32274         * math/libm-test.inc (acos_test): Do not allow spurious underflow
32275         exception.
32276
32277 2012-05-24  Jeff Law  <law@redhat.com>
32278
32279         * stdio-common/Makefile (tests): Add bug25.
32280         * stdio-common/bug25.c: New test.
32281
32282 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
32283
32284         [BZ #13576]
32285         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
32286         multiple of MALLOC_ALIGNMENT in size.
32287         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
32288
32289 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
32290
32291         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
32292         Require >= 256.
32293         (FILENAME_MAX): Use macro-int-constant.
32294         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
32295         (_IOFBF): Use macro-int-constant.
32296         (_IOLBF): Likewise.
32297         (_IONBF): Likewise.
32298         (SEEK_CUR): Likewise.
32299         (SEEK_END): Likewise.
32300         (SEEK_SET): Likewise.
32301         (TMP_MAX): Likewise.
32302         (EOF): Use macro-int-constant.  Require < 0.
32303         (NULL): Use macro-constant.  Require == 0.
32304         (stdin): Require type to be FILE *.
32305         (stdout): Likewise.
32306         (stderr): Likewise.
32307         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
32308         macro-int-constant.
32309         (EXIT_SUCCESS): Likewise.
32310         (NULL): Use macro-constant.  Require == 0.
32311         (RAND_MAX): Use macro-int-constant.
32312         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
32313         [C99-based standards] (strtof): Require function.
32314         [C99-based standards] (strtold): Likewise.
32315         [C99-based standards] (strtoll): Likewise.
32316         [C99-based standards] (strtoull): Likewise.
32317         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
32318         [ISO || ISO99 || ISO11] (limits.h): Likewise.
32319         [ISO || ISO99 || ISO11] (math.h): Likewise.
32320         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
32321         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
32322         [ISO || ISO99 || ISO11] (*_t): Do not allow.
32323
32324 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
32325
32326         [BZ #14132]
32327         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
32328         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
32329         * intl/dgettext.c (DCGETTEXT): Likewise.
32330         * intl/gettext.c (DCGETTEXT): Likewise.
32331         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
32332         * posix/regex_internal.h (gettext): Likewise.
32333         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
32334         Remove declaration.
32335         * include/argz.h (__argz_count_internal)
32336         (__argz_stringify_internal): Remove declaration.
32337         (__argz_count, __argz_stringify): Declare hidden proto.
32338         * intl/dcgettext.c: Remove use of INTDEF.
32339         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
32340         * string/argz-stringify.c: Likewise.
32341         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
32342         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
32343         Declare hidden proto.
32344         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
32345         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
32346         Declare hidden proto.
32347         * include/stdio.h (__asprintf_internal): Don't declare.
32348         (__asprintf): Don't define as macro.  Declare hidden proto.
32349         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
32350         (__fsetlocking): Declare hidden proto.
32351         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
32352         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
32353         hidden proto.
32354         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
32355         (_IO_setlinebuf): Remove use of INTUSE.
32356         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
32357         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
32358         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
32359         Remove declaration.
32360         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
32361         (_IO_do_flush): Remove use of INTUSE.
32362         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
32363         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
32364         (_IO_adjust_column, _IO_least_wmarker)
32365         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
32366         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
32367         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
32368         (_IO_default_doallocate, _IO_wdefault_doallocate)
32369         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
32370         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
32371         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
32372         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
32373         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
32374         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
32375         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
32376         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
32377         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
32378         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
32379         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
32380         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
32381         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
32382         proto.
32383         (_IO_flush_all_internal, _IO_adjust_column_internal)
32384         (_IO_default_uflow_internal, _IO_default_finish_internal)
32385         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
32386         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
32387         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
32388         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
32389         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
32390         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
32391         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
32392         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
32393         (_IO_file_close_internal, _IO_file_close_it_internal)
32394         (_IO_file_underflow_internal, _IO_file_overflow_internal)
32395         (_IO_file_init_internal, _IO_file_attach_internal)
32396         (_IO_file_fopen_internal, _IO_file_read_internal)
32397         (_IO_file_sync_internal, _IO_file_seek_internal)
32398         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
32399         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
32400         (_IO_str_underflow_internal, _IO_str_overflow_internal)
32401         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
32402         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
32403         (_IO_list_all_internal, _IO_link_in_internal)
32404         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
32405         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
32406         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
32407         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
32408         (_IO_do_write_internal, _IO_padn_internal)
32409         (_IO_getline_info_internal, _IO_getline_internal)
32410         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
32411         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
32412         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
32413         (_IO_vfscanf_internal, _IO_vfprintf_internal)
32414         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
32415         (_IO_init_internal, _IO_un_link_internal): Don't declare.
32416         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
32417         with libc_hidden_ver, remove use of INTUSE.
32418         * libio/genops.c: Likewise.
32419         * libio/freopen.c: Likewise.
32420         * libio/freopen64.c: Likewise.
32421         * libio/iofclose.c: Likewise.
32422         * libio/iofdopen.c: Likewise.
32423         * libio/iofflush.c: Likewise.
32424         * libio/iofflush_u.c: Likewise.
32425         * libio/iofgets.c: Likewise.
32426         * libio/iofgets_u.c: Likewise.
32427         * libio/iofopen.c: Likewise.
32428         * libio/iofopncook.c: Likewise.
32429         * libio/iofread.c: Likewise.
32430         * libio/iofread_u.c: Likewise.
32431         * libio/ioftell.c: Likewise.
32432         * libio/iofwrite.c: Likewise.
32433         * libio/iogetline.c: Likewise.
32434         * libio/iogets.c: Likewise.
32435         * libio/iogetwline.c: Likewise.
32436         * libio/iopadn.c: Likewise.
32437         * libio/iopopen.c: Likewise.
32438         * libio/ioseekoff.c: Likewise.
32439         * libio/ioseekpos.c: Likewise.
32440         * libio/iosetbuffer.c: Likewise.
32441         * libio/iosetvbuf.c: Likewise.
32442         * libio/ioungetc.c: Likewise.
32443         * libio/ioungetwc.c: Likewise.
32444         * libio/iovdprintf.c: Likewise.
32445         * libio/iovsprintf.c: Likewise.
32446         * libio/iovsscanf.c: Likewise.
32447         * libio/memstream.c: Likewise.
32448         * libio/obprintf.c: Likewise.
32449         * libio/oldfileops.c: Likewise.
32450         * libio/oldiofclose.c: Likewise.
32451         * libio/oldiofdopen.c: Likewise.
32452         * libio/oldiofopen.c: Likewise.
32453         * libio/oldiopopen.c: Likewise.
32454         * libio/oldstdfiles.c: Likewise.
32455         * libio/putc.c: Likewise.
32456         * libio/setbuf.c: Likewise.
32457         * libio/setlinebuf.c: Likewise.
32458         * libio/stdfiles.c: Likewise.
32459         * libio/strops.c: Likewise.
32460         * libio/vasprintf.c: Likewise.
32461         * libio/vscanf.c: Likewise.
32462         * libio/vsnprintf.c: Likewise.
32463         * libio/vswprintf.c: Likewise.
32464         * libio/wfiledoalloc.c: Likewise.
32465         * libio/wfileops.c: Likewise.
32466         * libio/wgenops.c: Likewise.
32467         * libio/wmemstream.c: Likewise.
32468         * libio/wstrops.c: Likewise.
32469         * libio/__fpurge.c: Likewise.
32470         * libio/__fsetlocking.c: Likewise.
32471         * assert/assert.c: Likewise.
32472         * debug/fgets_chk.c: Likewise.
32473         * debug/fgets_u_chk.c: Likewise.
32474         * debug/fread_chk.c: Likewise.
32475         * debug/fread_u_chk.c: Likewise.
32476         * debug/gets_chk.c: Likewise.
32477         * debug/obprintf_chk.c: Likewise.
32478         * debug/vasprintf_chk.c: Likewise.
32479         * debug/vdprintf_chk.c: Likewise.
32480         * debug/vsnprintf_chk.c: Likewise.
32481         * debug/vsprintf_chk.c: Likewise.
32482         * malloc/mtrace.c: Likewise.
32483         * misc/error.c: Likewise.
32484         * misc/syslog.c: Likewise.
32485         * stdio-common/asprintf.c: Likewise.
32486         * stdio-common/fxprintf.c: Likewise.
32487         * stdio-common/getw.c: Likewise.
32488         * stdio-common/isoc99_fscanf.c: Likewise.
32489         * stdio-common/isoc99_scanf.c: Likewise.
32490         * stdio-common/isoc99_vfscanf.c: Likewise.
32491         * stdio-common/isoc99_vscanf.c: Likewise.
32492         * stdio-common/isoc99_vsscanf.c: Likewise.
32493         * stdio-common/printf-prs.c: Likewise.
32494         * stdio-common/printf_fp.c: Likewise.
32495         * stdio-common/printf_fphex.c: Likewise.
32496         * stdio-common/printf_size.c: Likewise.
32497         * stdio-common/putw.c: Likewise.
32498         * stdio-common/scanf.c: Likewise.
32499         * stdio-common/sprintf.c: Likewise.
32500         * stdio-common/tmpfile.c: Likewise.
32501         * stdio-common/vfprintf.c: Likewise.
32502         * stdio-common/vfscanf.c: Likewise.
32503         * stdlib/strfmon_l.c: Likewise.
32504         * sunrpc/openchild.c: Likewise.
32505         * sunrpc/xdr_stdio.c: Likewise.
32506         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
32507         * sysdeps/mach/hurd/tmpfile.c: Likewise.
32508
32509 2012-05-24  Roland McGrath  <roland@hack.frob.com>
32510
32511         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
32512
32513         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
32514         in the third column, to generate for the shared library an IFUNC
32515         that uses _dl_vdso_vsym.
32516         * Makerules (COMPILE.c, compile-stdin.c): New variables.
32517         * Makeconfig (object-suffixes-noshared): New variable.
32518
32519         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
32520         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
32521         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
32522         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
32523
32524         [BZ #14132]
32525         * include/sys/time.h (__gettimeofday): Remove macro.
32526         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
32527         * time/gettimeofday.c (__gettimeofday): Remove #undef.
32528         Remove INTDEF.
32529         (__gettimeofday): Add libc_hidden_def.
32530         (gettimeofday): Add libc_hidden_weak.
32531         * sysdeps/mach/gettimeofday.c: Likewise.
32532         * sysdeps/posix/gettimeofday.c: Likewise.
32533         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
32534         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
32535         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
32536         (__gettimeofday_internal): Remove strong_alias.
32537         (__gettimeofday): Add libc_hidden_def.
32538         (gettimeofday): Add libc_hidden_weak.
32539         * sysdeps/unix/syscalls.list (gettimeofday):
32540         Remove __gettimeofday_internal alias.
32541
32542 2012-05-24  Daniel Jacobowitz  <drow@false.org>
32543             H.J. Lu  <hongjiu.lu@intel.com>
32544
32545         [BZ #12495]
32546         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
32547         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
32548         (largebin_index_32_big): New.
32549         (largebin_index): Use it for 16-byte alignment.
32550         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
32551         correction with front_misalign.
32552
32553 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
32554
32555         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
32556         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32557         Likewise.
32558         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
32559         Likewise.
32560         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
32561         Likewise.
32562         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
32563         Likewise.
32564         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
32565         Likewise.
32566         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
32567         Likewise.
32568         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
32569         Likewise.
32570         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
32571         Likewise.
32572         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
32573         Likewise.
32574         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
32575         Likewise.
32576         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32577         Likewise.
32578         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
32579         Likewise.
32580
32581         * scripts/data/c++-types-x32-linux-gnu.data: New file.
32582         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
32583
32584 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
32585
32586         [BZ #10846]
32587         [BZ #14036]
32588         * math/libm-test.inc (exp_test): Add test from bug 14036.
32589         (pow_test): Add test from bug 10846.
32590
32591         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
32592         and other flags.
32593         (special_function): Do not include flags in test name.
32594         (parse_args): Likewise.
32595         * sysdeps/i386/fpu/libm-test-ulps: Update.
32596         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
32597         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
32598         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
32599         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32600
32601         * math/gen-libm-test.pl (%beautify): Add entries for underflow
32602         exceptions.
32603         * math/libm-test.inc ("Philosophy"): Update comment about
32604         exception testing.
32605         (UNDERFLOW_EXCEPTION): New macro.
32606         (UNDERFLOW_EXCEPTION_OK): Likewise.
32607         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
32608         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
32609         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
32610         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
32611         (INVALID_EXCEPTION_OK): Update value.
32612         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
32613         (OVERFLOW_EXCEPTION_OK): Likewise.
32614         (IGNORE_ZERO_INF_SIGN): Likewise.
32615         (test_exceptions): Handle underflow exceptions.
32616         (acos_test): Update for underflow exception expectations.
32617         (cexp_test): Likewise.
32618         (clog_test): Likewise.
32619         (clog10_test): Likewise.
32620         (csqrt_test): Likewise.
32621         (ctan_test): Likewise.
32622         (ctanh_test): Likewise.
32623         (exp_test): Likewise.
32624         (exp10_test): Likewise.
32625         (exp2_test): Likewise.
32626         (expm1_test): Likewise.
32627         (fma_test): Likewise.
32628         (j0_test): Likewise.
32629         (jn_test): Likewise.
32630         (nexttoward_test): Likewise.
32631         (pow_test): Likewise.
32632         (scalbn_test): Likewise.
32633         (scalbln_test): Likewise.
32634         (tan_test): Likewise.
32635         (y1_test): Likewise.
32636         * sysdeps/i386/fpu/libm-test-ulps: Update.
32637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32638
32639 2012-05-23  David S. Miller  <davem@davemloft.net>
32640
32641         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
32642         (__libc_sigaction): Remove unused local variables.
32643
32644 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32645
32646         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
32647
32648 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
32649
32650         mktime: avoid signed integer overflow
32651         * time/mktime.c (__mktime_internal): Do not mishandle the case
32652         where diff == INT_MIN.
32653
32654         mktime: simplify computation of average
32655         * time/mktime.c (ranged_convert): Use new time_t_avg function
32656         instead of rolling our own (probably-slower) code.
32657
32658         mktime: do not assume signed right shift propagates sign bit
32659         * time/mktime.c (isdst_differ): New static function.
32660         (__mktime_internal): No need to normalize tm_isdst now.
32661         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
32662         tm_isdst values.
32663
32664         mktime: merge another wrapv change from gnulib
32665         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
32666         from some compilers.
32667
32668         mktime: remove incorrect attempt at unusual arithmetics
32669         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
32670         The code didn't really work on such machines anyway.
32671         (TYPE_MINIMUM): Assume two's complement.
32672         (twos_complement_arithmetic): Verify that long_int and time_t
32673         are two's complement (or unsigned, in the latter case).
32674
32675         mktime: check signed shifts on long_int and time_t, too
32676         * time/mktime.c (SHR): Check that shifts work as desired
32677         on the types long_int and time_t too, as SHR is used on
32678         such types.
32679
32680         mktime: do not assume 'long' is wide enough
32681         * time/mktime.c (verify): Move decl up.
32682         (long_int): New type.
32683         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
32684         to remove assumption in the code that 'long' is wide enough to
32685         store year values.  This assumption is not true on x32 and on
32686         some non-glibc platforms.
32687
32688         mktime: merge wrapv change from gnulib
32689         * time/mktime.c (WRAPV): New macro.
32690         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
32691         (guess_time_tm, __mktime_internal): Do not assume that signed
32692         integer overflow wraps around; modern compilers generate code
32693         where this assumption is no longer valid.
32694
32695 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32696
32697         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32698         Replace "jmp L(pseudo_end)" with "ret".
32699         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
32700         Likewise.
32701
32702 2012-05-23  Andreas Jaeger  <aj@suse.de>
32703
32704         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
32705         * sysdeps/unix/sysv/linux/poll.c: Remove file.
32706
32707 2012-05-23  Andreas Jaeger  <aj@suse.de>
32708             Maximilian Attems  <max@stro.at>
32709
32710         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
32711         New macros.
32712
32713 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32714
32715         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
32716         code so that pseudo_end is just ret and the stack pointer is
32717         correct also for static library in error case.
32718
32719 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
32720
32721         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
32722         move to syscalls.list.
32723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
32724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32727
32728         * manual/install.texi (Running make install): Do not mention Linux
32729         kernel version for which pt_chown is not needed.
32730         (Linux): Do not mention problems with nscd with 2.0 kernels.
32731         * INSTALL: Regenerated.
32732
32733 2012-05-23  Andreas Jaeger  <aj@suse.de>
32734
32735         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
32736         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
32737         macro.
32738         * sysdeps/unix/sysv/linux/s390/bits/mman.h
32739         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32740         * sysdeps/unix/sysv/linux/sh/bits/mman.h
32741         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32742         * sysdeps/unix/sysv/linux/i386/bits/mman.h
32743         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32744         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
32745         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32746         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
32747         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32748         * sysdeps/unix/sysv/linux/bits/in.h
32749         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
32750
32751 2012-05-22  Roland McGrath  <roland@hack.frob.com>
32752
32753         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
32754         (PREPARE_VERSION): Just use assert instead, it will be elided
32755         under [NDEBUG] anyway.
32756
32757 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32758
32759         * sysdeps/unix/sysv/linux/Makefile: Include
32760         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
32761         (sysdep_routines): Remove sysctl.
32762         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
32763         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
32764         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
32765         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
32766         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
32767
32768 2012-05-22  Andreas Jaeger  <aj@suse.de>
32769
32770         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
32771         that pseudo_end is just ret and the stack pointer is correct also
32772         for static library in error case.
32773
32774 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
32775
32776         [BZ #14122]
32777         * nss/nsswitch.c (defconfig_entries): New variable.
32778         (__nss_database_lookup): Don't leak defconfig entries.
32779         (nss_parse_service_list): Don't leak on error paths.
32780         (free_database_entries): New function.
32781         (free_defconfig): New function.
32782         (free_mem): Move common code to free_database_entries.
32783
32784 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32785
32786         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
32787         Add arch_prctl.
32788         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
32789
32790         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32791         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
32792         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
32793         New macro.
32794         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
32795         (INTERNAL_SYSCALL_TYPES): Likewise.
32796         (LOAD_ARGS_TYPES_[1-6]): Likewise.
32797         (LOAD_REGS_TYPES_[1-6]): Likewise.
32798         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
32799         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
32800
32801 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32802
32803         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
32804         copysignl for GLIBC_2_0.
32805         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
32806         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
32807         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
32808         logbl for GLIBC_2_0.
32809         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
32810         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
32811
32812 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32813
32814         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
32815         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32816
32817         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32818         Use "neg %eax".
32819
32820         * time/mktime.c: Update copyright years.
32821
32822 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32823
32824         mktime: merge comment-quoting-style change from gnulib
32825         * time/mktime.c: Quote 'like this' in comments.
32826         The GNU coding standards suggest that we no longer quote `like this',
32827         as "`" and "'" are typically rendered asymmetrically nowadays.
32828         The typical gnulib style is to quote 'like this' when quoting
32829         code, and "like this" when quoting English.
32830
32831         * time/mktime.c (compile-command): Add "-I.".
32832
32833         mktime: merge mktime-internal.h change from gnulib
32834         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
32835
32836         mktime: merge time_r change from gnulib
32837         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
32838
32839         mktime: merge DEBUG change from gnulib
32840         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
32841         case system <time.h> has a #define.
32842
32843         mktime: merge <sys/types.h> change from gnulib
32844         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
32845         since <time.t> is now guaranteed to define time_t.
32846
32847         mktime: merge HAVE_CONFIG_H change from gnulib
32848         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
32849
32850 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32851
32852         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32853         Use "neg %eax".
32854
32855         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
32856         __rlim_t cast.
32857         (struct rusage): Use anonymous union to pad each field to
32858         __syscall_slong_t.
32859
32860 2012-05-21  David S. Miller  <davem@davemloft.net>
32861
32862         * Makefules (o-iterator): Remove .s cases.
32863         (compile-command.s): Delete.
32864         (COMPILE.s): Delete.
32865         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
32866
32867 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
32868
32869         * configure.in (libc_cv_predef_stack_protector): Only consider
32870         "foobar" and "__stack_chk_fail" lines in libc_undefs.
32871         * configure: Regenerated.
32872
32873 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32874
32875         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32876         New macro.  Use R*LP on int and pointer.
32877         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
32878         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
32879         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
32880         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
32881
32882         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
32883         [__WORDSIZE_TIME64_COMPAT32] instead of
32884         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
32885         (struct utmp): Likewise.
32886         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
32887         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
32888         Renamed to ...
32889         (__WORDSIZE_TIME64_COMPAT32): This.
32890         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
32891         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
32892         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
32893         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
32894         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
32895         (__WORDSIZE_TIME64_COMPAT32): New macro.
32896
32897 2012-05-21  Andreas Jaeger  <aj@suse.de>
32898
32899         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
32900         only if [SHARED]. Add prototype for __wcschr_ia32.
32901
32902 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32903
32904         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
32905         of %rbp unmolested in the jmp_buf while mangling the low bits.
32906         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
32907         unmolested high bits of %rbp while demangling the low bits.
32908         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
32909
32910 2012-05-21  Andreas Jaeger  <aj@suse.de>
32911
32912         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
32913         * sunrpc/svc_simple.c: Use it for registerrpc.
32914         * sunrpc/xcrypt.c: Use it for passwd2des.
32915
32916         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
32917
32918 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32919
32920         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
32921         Don't define if [__SYSCALL_WORDSIZE != 32].
32922         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
32923         New macro.
32924
32925 2012-05-21  Bruno Haible  <bruno@clisp.org>
32926             Andreas Jaeger  <aj@suse.de>
32927
32928         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
32929         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
32930         inptr and inend for must_buffer_ch.
32931         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
32932         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
32933         * stdio-common/Makefile (tests): Remove bug15.
32934         (bug15-ENV): Remove macro.
32935         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
32936         anymore.
32937
32938 2012-05-19  Andreas Jaeger  <aj@suse.de>
32939             Roland McGrath  <roland@hack.frob.com>
32940
32941         * manual/contrib.texi: Completely rewritten. It contains now an
32942         alphabetical list of contributors and their contributions.
32943
32944 2012-05-21  Richard Henderson  <rth@twiddle.net>
32945
32946         * misc/getauxval.c (__getauxval): Use unsigned long int.
32947         * misc/sys/auxv.h: Include <sys/cdefs.h>.
32948         (getauxval): Use unsigned long int.
32949
32950 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32951
32952         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
32953
32954 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32955
32956         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
32957         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
32958         __alignof__ (long double).
32959
32960 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32961
32962         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32963
32964 2012-05-20  Richard Henderson  <rth@twiddle.net>
32965
32966         * misc/getauxval.c: New file.
32967         * misc/sys/auxv.h: New file.
32968         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
32969         (routines): Add getauxval.
32970         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
32971         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
32972         * elf/dl-sysdep.c (_dl_auxv): Remove.
32973         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
32974         * elf/dl-support.c (_dl_auxv): New variable.
32975         (_dl_aux_init): Initialize it.
32976         * manual/startup.texi (Auxiliary Vector): New node.
32977         * sysdeps/generic/bits/hwcap.h: New file.
32978         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
32979         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
32980         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
32981         * sysdeps/sparc/sysdep.h: ... here.  Include it.
32982         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
32983         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
32984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
32985         Update.
32986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
32987         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
32988         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
32989         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
32990         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32991         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32992         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
32993         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
32994
32995 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32996
32997         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32998
32999 2012-05-19  David S. Miller  <davem@davemloft.net>
33000
33001         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33002
33003 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
33004
33005         [BZ #14123]
33006         * math/s_ccosh.c: Include <float.h>
33007         (__ccosh): Avoid internal overflow calculating sinh and cosh
33008         values before multiplying by sin and cos values.
33009         * math/s_ccoshf.c: Likewise.
33010         * math/s_ccoshl.c: Likewise.
33011         * math/s_csin.c: Likewise.
33012         * math/s_csinf.c: Likewise.
33013         * math/s_csinl.c: Likewise.
33014         * math/s_csinh.c: Likewise.
33015         * math/s_csinhf.c: Likewise.
33016         * math/s_csinhl.c: Likewise.
33017         * math/libm-test.inc (ccos_test): Add more tests.
33018         (ccosh_test): Likewise.
33019         (csin_test): Likewise.
33020         (csinh_test): Likewise.
33021         * sysdeps/i386/fpu/libm-test-ulps: Update.
33022         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33023
33024 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
33025
33026         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
33027         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
33028
33029         * sysdeps/x86_64/x32/_itoa.h: Add comment.
33030
33031 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
33032
33033         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
33034         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
33035         * sysdeps/powerpc/soft-fp/Versions: Likewise.
33036         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
33037         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
33038         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
33039         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
33040         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
33041         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
33042         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
33043         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
33044         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
33045         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
33046         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
33047         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
33048         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
33049         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
33050         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
33051         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
33052         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
33053         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
33054         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
33055         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
33056         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
33057         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
33058         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
33059         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
33060         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
33061         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
33062         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
33063         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
33064
33065 2012-05-18  Andreas Jaeger  <aj@suse.de>
33066
33067         * csu/.gitignore: Delete.
33068
33069 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
33070
33071         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
33072         (timex): Use __syscall_slong_t.
33073
33074 2012-05-18  Andreas Jaeger  <aj@suse.de>
33075             Carlos O'Donell  <carlos_odonell@mentor.com>
33076
33077         * manual/install.texi (Configuring and compiling): Update
33078         description about files modified in the source directory.
33079         * INSTALL: Regenerated.
33080
33081 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
33082
33083         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
33084         value.  Use "or" to set return value to -1.
33085         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
33086         negate return value.
33087
33088 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
33089
33090         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
33091         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
33092         failure if the compiler has Graphite support disabled.
33093         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
33094         Likewise.
33095         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
33096         (CFLAGS-memmove.c): Likewise.
33097         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
33098         Likewise.
33099
33100 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
33101
33102         * sysdeps/x86_64/x32/_itoa.h: New file.
33103
33104         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
33105         getdents system call only if kernel and user dirents have the
33106         same d_ino and d_off.
33107
33108         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
33109         LLONG_MAX != LONG_MAX.
33110         (_itoa_word): Use _ITOA_WORD_TYPE on value.
33111         (_fitoa_word): Likewise.
33112
33113         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
33114         years.
33115         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
33116         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
33117         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
33118
33119         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
33120         include <bits/wordsize.h>.  Check __x86_64__ instead of
33121         __WORDSIZE.
33122         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
33123         if __x86_64__ is defined.  Use anonymous union on fpstate.
33124
33125         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
33126         anonymous union.
33127
33128 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
33129
33130         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
33131         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
33132         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
33133         Refer to _rtld_local_ro instead of _rtld_global_ro.
33134         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
33135         Likewise.
33136         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
33137         Likewise.
33138         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
33139         Likewise.
33140         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
33141         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
33142         of _rtld_global, and rtld_progname instead of _dl_argv[0].
33143
33144         * sysdeps/powerpc/powerpc32/dl-machine.c
33145         (__elf_machine_runtime_setup) [PROF]: Don't reference
33146         _dl_prof_resolve.
33147
33148 2012-05-18  Andreas Jaeger  <aj@suse.de>
33149
33150         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
33151         function only available for GCCs before 3.4 since GCC 3.4
33152         introduced a builtin.
33153         (lrint): Likewise.
33154         (llrintf): Likewise.
33155         (llrint): Likewise.
33156         (fmaxf): Likewise.
33157         (fmax): Likewise.
33158         (fminf): Likewise.
33159         (fmin): Likewise.
33160         (rint): Likewise.
33161         (rintf): Likewise.
33162         (nearbyint): Likewise.
33163         (nearbyintf): Likewise.
33164         (ceil): Likewise.
33165         (ceilf): Likewise.
33166         (floor): Likewise.
33167         (floorf): Likewise.
33168
33169 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
33170
33171         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
33172         on both fields and cast pointer to __syscall_ulong_t.
33173
33174         * bits/types.h (__fsword_t): New type.
33175         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
33176         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
33177         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33178         (__FSWORD_T_TYPE): Likewise.
33179         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
33180         (__FSWORD_T_TYPE): Likewise.
33181         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
33182         (__FSWORD_T_TYPE): Likewise.
33183         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
33184         (__FSWORD_T_TYPE): Likewise.
33185         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
33186         __SWORD_TYPE with __fsword_t.
33187         (statfs64): Likewise.
33188
33189 2012-05-17  David S. Miller  <davem@davemloft.net>
33190
33191         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
33192
33193 2012-05-17  Andreas Jaeger  <aj@suse.de>
33194
33195         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
33196         warning.
33197
33198 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
33199
33200         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
33201
33202 2012-05-17  Andreas Jaeger  <aj@suse.de>
33203
33204         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
33205         when it is used.
33206
33207 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
33208
33209         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
33210
33211 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
33212
33213         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
33214         * sysdeps/x86_64/tst-mallocalign1.c: New file.
33215
33216 2012-05-17  Andreas Jaeger  <aj@suse.de>
33217             Carlos O'Donell  <carlos_odonell@mentor.com>
33218
33219         [BZ #14059]
33220         * sysdeps/x86_64/multiarch/init-arch.h
33221         (bit_YMM_Usable): Rename to...
33222         (bit_AVX_Usable): ... this.
33223         (bit_FMA4_Usable): New macro.
33224         (bit_XMM_state): New macro.
33225         (bit_YMM_state): New macro.
33226         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
33227         [__ASSEMBLER__] (index_AVX_Usable): ... this.
33228         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
33229         (CPUID_OSXSAVE): New macro.
33230         (CPUID_AVX): New macro.
33231         (CPUID_FMA4): New macro.
33232         (index_YMM_Usable): Rename to...
33233         (index_AVX_Usable): ... this.
33234         (HAS_AVX): Use HAS_ARCH_FEATURE.
33235         (HAS_FMA4): Likewise.
33236         (HAS_YMM_USABLE): Remove.
33237         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33238         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
33239         are present.
33240         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
33241         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
33242         * sysdeps/x86_64/multiarch/Makefile: Likewise.
33243         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
33244         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
33245
33246 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
33247
33248         * math/libm-test.c: Support platforms without multiple rounding modes.
33249         * math/bug-nextafter.c: Support platforms without FP exceptions.
33250         * math/bug-nexttoward.c: Likewise.
33251         * math/test-fenv.c: Likewise.
33252         * math/test-misc.c: Likewise.
33253         * stdlib/bug-getcontext.c: Likewise.
33254
33255 2012-05-17  Andreas Jaeger  <aj@suse.de>
33256
33257         * manual/examples/search.c (critter_cmp): Change signature to
33258         avoid warnings.
33259         * manual/string.texi (Collation Functions): Likewise.
33260
33261 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33262
33263         * bits/types.h: Fold copyright years.
33264         * bits/typesizes.h: Likewise.
33265         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
33266         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
33267         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
33268         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
33269         * time/time.h: Likewise.
33270
33271 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
33272
33273         [BZ #208]
33274         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
33275         in instead of returning them.  Return void.
33276         (__libc_mallinfo): Accumulate over all arenas.
33277         (__malloc_stats): Adjust for change in int_mallinfo interface.
33278
33279 2012-05-16  Roland McGrath  <roland@hack.frob.com>
33280
33281         [BZ #10375]
33282         * configure.in (NM): Add AC_CHECK_TOOL for it.
33283         (libc_extra_cflags): New substituted variable.
33284         Check for -fstack-protector being used implicitly.
33285         * configure: Regenerated.
33286         * config.make.in (config-extra-cflags): New variable,
33287         gets @libc_extra_cflags@.
33288         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
33289
33290         [BZ #10375]
33291         * configure.in: Check for _FORTIFY_SOURCE being predefined.
33292         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
33293         * configure: Regenerated.
33294         * config.make.in (CPPUNDEFS): New substituted variable.
33295         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
33296         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
33297         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
33298
33299 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33300
33301         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
33302         (mq_attr): Use __syscall_slong_t.
33303
33304 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33305
33306         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
33307         Check __x86_64__ instead of __WORDSIZE.
33308         (_STAT_VER_LINUX): Likewise.
33309         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
33310         __syscall_ulong_t and __syscall_slong_t.
33311         (stat64): Likewise.
33312
33313 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33314
33315         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
33316
33317 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33318
33319         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
33320
33321 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33322
33323         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
33324         __syscall_ulong_t.
33325
33326         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
33327         include <bits/wordsize.h>.  Check __x86_64__ instead of
33328         __WORDSIZE.
33329         (greg_t): Use "__extension__ long long int" if __x86_64__ is
33330         defined.
33331         (mcontext_t): Replace "unsigned long" with "unsigned long long".
33332
33333         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
33334         include <bits/wordsize.h>.  Check __x86_64__ instead of
33335         __WORDSIZE.
33336         (user_regs_struct): Use "__extension__ unsigned long long"
33337         instead of "unsigned long" if __x86_64__ is defined.
33338         (user): Likewise.  Pad after pointer field if __ILP32__ is
33339         defined.
33340
33341 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
33342
33343         * configure.in (makeinfo): Require version 4.5 or later.  Allow
33344         versions 5 to 9.
33345         * configure: Regenerated.
33346         * manual/install.texi (texinfo): Increase version requirement to
33347         4.5 or later.
33348         * INSTALL: Regenerated.
33349
33350         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
33351
33352 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33353
33354         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
33355
33356         * sysdeps/x86_64/x32/ffs.c: New file.
33357
33358         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
33359         __syscall_ulong_t.
33360         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
33361         defined.  Use __syscall_ulong_t.
33362         (shminfo): Use __syscall_ulong_t.
33363         (shm_info): Likewise.
33364
33365         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
33366         __syscall_ulong_t.
33367
33368         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
33369         <bits/wordsize.h>.
33370         (msgqnum_t): Use __syscall_ulong_t.
33371         (msglen_t): Likewise.
33372         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
33373         __syscall_ulong_t.
33374
33375         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
33376         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
33377
33378         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
33379
33380         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
33381         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
33382
33383         * sysvipc/sys/msg.h (msgbuf): Replace long int with
33384         __syscall_slong_t.
33385
33386         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
33387         include <bits/wordsize.h>.  Check __x86_64__ instead of
33388         __WORDSIZE.
33389
33390         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
33391         "unsigned long long int" if __x86_64__ is defined.
33392         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
33393
33394         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
33395         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
33396         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
33397
33398         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
33399         <stdint.h>.
33400         (GET_PC): Cast to uintptr_t first.
33401         (GET_FRAME): Likewise.
33402         (GET_STACK): Likewise.
33403
33404         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
33405         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
33406         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
33407         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
33408         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
33409         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
33410         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
33411         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
33412         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
33413         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
33414         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
33415         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
33416         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
33417         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
33418         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
33419         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
33420         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
33421         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
33422         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
33423         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
33424         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
33425         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
33426         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
33427         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
33428         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
33429         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
33430         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
33431         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
33432         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
33433
33434 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
33435
33436         * Makerules (+depfiles): Also collect depfiles from .oS in
33437         $(extra-objs).
33438         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
33439         .oS, $(libnldbl-routines)).
33440
33441         * Makerules (native-compile-mkdep-flags): Define.
33442         * sunrpc/Makefile (extra-objs): Add $(addprefix
33443         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
33444         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
33445         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
33446         calling $(make-target-directory).
33447
33448 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33449
33450         * bits/types.h (__snseconds_t): Removed.
33451         * time/time.h (struct timespec): Replace __snseconds_t with
33452         __syscall_slong_t.
33453         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
33454         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
33455         Likewise.
33456         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33457         (__SNSECONDS_T_TYPE): Likewise.
33458         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
33459         (__SNSECONDS_T_TYPE): Likewise.
33460         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
33461         (__SNSECONDS_T_TYPE): Likewise.
33462
33463 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33464
33465         * sysdeps/mach/hurd/bits/typesizes.h
33466         (__SYSCALL_SLONG_TYPE): New macro.
33467         (__SYSCALL_ULONG_TYPE): Likewise.
33468
33469 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33470
33471         * bits/types.h (__syscall_slong_t): New type.
33472         (__syscall_ulong_t): Likewise.
33473
33474         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
33475         (__SYSCALL_ULONG_TYPE): Likewise.
33476         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33477         (__SYSCALL_SLONG_TYPE): Likewise.
33478         (__SYSCALL_ULONG_TYPE): Likewise.
33479         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
33480         (__SYSCALL_SLONG_TYPE): Likewise.
33481         (__SYSCALL_ULONG_TYPE): Likewise.
33482         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
33483         (__SYSCALL_SLONG_TYPE): Likewise.
33484         (__SYSCALL_ULONG_TYPE): Likewise.
33485
33486 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33487
33488         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
33489         Add sigaltstack-offsets.sym.
33490         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
33491         <sigaltstack-offsets.h>.
33492         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
33493         longjmp_msg pointer.
33494         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
33495         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
33496         signal stack.
33497         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
33498
33499 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
33500
33501         * elf/stackguard-macros.h: Remove file.
33502         * sysdeps/generic/stackguard-macros.h: New file.
33503         * sysdeps/i386/stackguard-macros.h: Likewise.
33504         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
33505         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
33506         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
33507         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
33508         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
33509         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
33510         * sysdeps/x86_64/stackguard-macros.h: Likewise.
33511         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
33512         <elf/stackguard-macros.h>.
33513
33514         [BZ #14109]
33515         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
33516         __aligned__ in attribute.
33517         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
33518         (gregset_t): Likewise.
33519
33520 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33521
33522         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
33523         * sysdeps/x86_64/64/Implies-after: Here.  New file.
33524         * sysdeps/x86_64/x32/Implies-after: New file.
33525
33526 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33527
33528         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
33529         and access return value for _dl_profile_fixup.  Use R10_LP to
33530         load frame size.
33531
33532 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33533
33534         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
33535
33536 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33537
33538         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
33539         * sysdeps/x86_64/x32/sysdep.h: New file.
33540
33541 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33542
33543         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
33544         * sysdeps/x86_64/setjmp.S: Likewise.
33545
33546 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33547
33548         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
33549         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
33550         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
33551         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
33552         remove unused global constant.
33553
33554 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
33555
33556         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
33557         include of <not-cancel.h>.
33558
33559 2012-05-15  Roland McGrath  <roland@hack.frob.com>
33560
33561         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
33562
33563 2012-05-15  Jeff Law  <law@redhat.com>
33564             Andreas Jaeger  <aj@suse.de>
33565
33566         [BZ #13594]
33567         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
33568         out from...
33569         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
33570         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
33571         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
33572         code changing __hst_map_handle.map.
33573
33574 2012-05-15  Roland McGrath  <roland@hack.frob.com>
33575
33576         * configure.in (sysnames): Look for Implies-before and Implies-after
33577         files.
33578         * configure: Regenerated.
33579
33580 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33581
33582         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
33583         8-byte data alignment with LP_SIZE alignment.
33584
33585 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33586
33587         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
33588         into R10_LP.
33589
33590 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33591
33592         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
33593
33594 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33595
33596         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
33597         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
33598         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
33599         Likewise.
33600         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
33601
33602 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33603
33604         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
33605         (stackinfo_sub_sp): Likewise.
33606
33607 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33608
33609         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
33610         RAX_LP.
33611
33612 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33613
33614         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
33615         into R*_LP.
33616
33617 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33618
33619         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
33620         sizes into R*_LP.
33621
33622 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33623
33624         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
33625
33626 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33627
33628         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
33629         into R11_LP and load __x86_64_shared_cache_size_half into
33630         R8_LP.
33631
33632 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33633
33634         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
33635         R8_LP.
33636
33637 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33638
33639         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
33640         logb for POWER7.
33641         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
33642         logbf for POWER7.
33643         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
33644         logbl for POWER7.
33645         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
33646         powerpc32/power7/fpu/s_logb.c via #include.
33647         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
33648         powerpc32/power7/fpu/s_logbf.c via #include.
33649         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
33650         powerpc32/power7/fpu/s_logbl.c via #include.
33651
33652 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
33653
33654         * README.libm: Remove file.
33655
33656 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33657
33658         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
33659         count for x32.  Use R*_LP and omit operand-size suffix.
33660
33661 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33662
33663         * shlib-versions: Move x86_64-.*-linux.* entries to ...
33664         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
33665         * sysdeps/x86_64/x32/shlib-versions: New file.
33666
33667 2012-05-14  Roland McGrath  <roland@hack.frob.com>
33668
33669         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
33670         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
33671         Use _dl_fatal_printf instead.
33672
33673 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33674
33675         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
33676         set if not set by the user.  Do not allow for being unset.
33677         * sysdeps/unix/sysv/linux/configure: Regenerated.
33678
33679 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33680
33681         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
33682         the `q' suffix from lea and replace .quad with ASM_ADDR.
33683
33684 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33685
33686         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
33687         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
33688         instead of $17.
33689         (PTR_DEMANGLE): Likewise.
33690
33691 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33692
33693         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
33694         (LP_OP): Likewise.
33695         (ASM_ADDR): Likewise.
33696         (RAX_LP): Likewise.
33697         (RBP_LP): Likewise.
33698         (RBX_LP): Likewise.
33699         (RCX_LP): Likewise.
33700         (RDI_LP): Likewise.
33701         (RSI_LP): Likewise.
33702         (RSP_LP): Likewise.
33703         (R8_LP): Likewise.
33704         (R9_LP): Likewise.
33705         (R10_LP): Likewise.
33706         (R10_LP): Likewise.
33707         (R11_LP): Likewise.
33708         (R12_LP): Likewise.
33709         (R13_LP): Likewise.
33710         (R14_LP): Likewise.
33711         (R15_LP): Likewise.
33712
33713 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33714
33715         * sysdeps/x86_64/x32/dl-machine.h: New file.
33716
33717 2012-05-14  Andreas Jaeger  <aj@suse.de>
33718
33719         * manual/Makefile (subdir): Remove export of subdir.
33720         (all): Remove target.
33721         (.PHONY): Remove all from list.
33722         (mkinstalldirs): Remove.
33723         (.PHONY): Remove installdirs from list.
33724         ($(inst_infodir)/libc.info): Use make-target-directory.
33725         (installdirs): Remove.
33726         (subdir_%): Remove.
33727         (glibc-targets): Remove.
33728         (lib): Remove.
33729         (stubs): Remove.
33730         ($(objpfx)stubs ../po/manual.pot): Remove.
33731         ($(objpfx)stamp%): Remove.
33732         (make-target-directory): Remove.
33733         (subdir_install): Remove.
33734         (routines): Remove.
33735         (aux): Remove.
33736         (sources): Remove.
33737         (objects): Remove.
33738         (headers): Remove.
33739
33740         [BZ #13750]
33741         * manual/.gitignore: Remove, it's not needed anymore.
33742         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
33743         all files in it.
33744         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
33745         directory.
33746         (texis): Renamed to $(objpfx)texis.
33747         (texis-path): New, contains path to generated files.
33748         (chapters.%): Use texis-path for complete path, add extra argument
33749         libc-texinfo.sh.
33750         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
33751         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
33752         (summary,texi, stamp-summary): Use complete path of
33753         files. Generate files in build dir.
33754         (dir-add.texi): Build in build dir.
33755         (libm-err.texi,stamp-libm-err): Likewise.
33756         (version.texi, stamp-version): Likewise.
33757         (.%c.texi): Likewise.
33758         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
33759         (mostlyclean): Remove target.
33760         (realclean): Remove target.
33761         (generated): Add new variable with contents from mostlyclean and
33762         realclean, remove entries duplicated in common-mostlyclean, add
33763         stamp-libm-err and stamp-version.
33764         (generated-dirs): Add libc directory.
33765         ($(inst_infodir)/libc.info): Install files from build dir.
33766
33767         * manual/install.texi (Configuring and compiling): Adjust since
33768         the info files are not part of the tar ball anymore.
33769
33770 2012-05-14  Andreas Jaeger  <aj@suse.de>
33771
33772         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
33773         variable.
33774
33775 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33776
33777         [BZ #13717]
33778         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
33779         to 2.2.0 where earlier.
33780         * sysdeps/unix/sysv/linux/configure: Regenerated.
33781         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
33782         Remove conditional code.
33783         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
33784         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
33785         Remove conditional code.
33786         [!__NR_lchown]: Likewise.
33787         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33788         [__NR_lchown]: Likewise.
33789         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
33790         comment referencing __ASSUME_LCHOWN_SYSCALL.
33791         * sysdeps/unix/sysv/linux/i386/sigaction.c
33792         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33793         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33794         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
33795         Remove conditional code.
33796         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
33797         (__protocol_available): Remove #if 0 code.
33798         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
33799         conditional code.
33800         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
33801         * sysdeps/unix/sysv/linux/kernel-features.h
33802         (__ASSUME_GETCWD_SYSCALL): Don't define.
33803         (__ASSUME_REALTIME_SIGNALS): Likewise.
33804         (__ASSUME_PREAD_SYSCALL): Likewise.
33805         (__ASSUME_PWRITE_SYSCALL): Likewise.
33806         (__ASSUME_POLL_SYSCALL): Likewise.
33807         (__ASSUME_LCHOWN_SYSCALL): Likewise.
33808         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
33809         non-SPARC.
33810         (__ASSUME_SIOCGIFNAME): Don't define.
33811         (__ASSUME_MSG_NOSIGNAL): Likewise.
33812         (__ASSUME_SENDFILE): Define unconditionally.
33813         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
33814         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
33815         conditional code.
33816         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
33817         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
33818         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33819         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33820         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
33821         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33822         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
33824         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33825         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
33827         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33828         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
33830         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33831         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
33833         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33834         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
33836         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33837         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
33839         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33840         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
33842         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33843         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
33845         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33846         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33847         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
33848         Remove conditional code.
33849         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33850         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33851         Remove conditional code.
33852         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33853         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
33854         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
33855         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33856         Remove conditional code.
33857         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33858         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
33859         Remove conditional code.
33860         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33861         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
33862         Remove conditional code.
33863         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33864         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33865         Remove conditional code.
33866         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33867         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33868         Remove conditional code.
33869         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33870         * sysdeps/unix/sysv/linux/sh/pwrite64.c
33871         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33872         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33873         * sysdeps/unix/sysv/linux/sigaction.c
33874         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33875         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33876         * sysdeps/unix/sysv/linux/sigpending.c
33877         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33878         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33879         * sysdeps/unix/sysv/linux/sigprocmask.c
33880         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33881         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33882         * sysdeps/unix/sysv/linux/sigsuspend.c
33883         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33884         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33885         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
33886         (__libc_missing_rt_sigs): Remove.
33887         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
33888         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
33889         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
33890         Remove conditional code.
33891         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
33892         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
33893         return 1.
33894         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
33895         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
33896         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
33897         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
33898
33899 2012-05-14  Andreas Jaeger  <aj@suse.de>
33900
33901         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
33902         it's not used in glibc.
33903         (__coshm1): Likewise.
33904         (__acosh1p): Likewise.
33905         (__sgn): Likewise.
33906
33907         * manual/string.texi (Copying and Concatenation): Add missing
33908         variable in concat example.
33909         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33910
33911 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33912
33913         [BZ #14103]
33914         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
33915         __builtin_clzl with __builtin_clzll.
33916
33917 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33918
33919         [BZ #14104]
33920         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
33921         libc_freeres_ptr.
33922
33923 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33924
33925         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
33926         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
33927         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
33928         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
33929
33930 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
33931
33932         * NEWS: Update ia64 info.
33933
33934 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
33935
33936         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
33937         used as bcopy.
33938
33939 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
33940
33941         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
33942         * sysdeps/unix/syscalls.list (dup3): Likewise.
33943         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
33944         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
33945
33946 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33947
33948         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
33949         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
33950
33951 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33952
33953         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
33954         thread pointer.
33955         (TLS_IE): Use mov/add instead of movq/addq to load thread
33956         pointer.
33957         (TLS_GD_PREFIX): New.
33958         (TLS_GD): Use it.
33959
33960 2012-05-11  David S. Miller  <davem@davemloft.net>
33961
33962         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
33963         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
33964         (_FPU_SETCW): Likewise.
33965
33966 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33967
33968         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
33969         is 32-byte aligned.
33970
33971 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
33972
33973         [BZ #11837]
33974         * iconvdata/gb18030.c: Update tables.
33975         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
33976         characters specially.
33977         (BODY for TO_LOOP): Add encoding of missing ranges.
33978
33979 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
33980
33981         [BZ #13673]
33982         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
33983         * sysdeps/mach/hurd/dup3.c: Likewise.
33984         * sysdeps/mach/hurd/readlinkat.c: Likewise.
33985         * sysdeps/powerpc/memmove.c:: Likewise.
33986
33987 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33988
33989         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
33990         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
33991
33992 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33993
33994         * elf/elf.h (R_X86_64_RELATIVE64): New.
33995         (R_X86_64_NUM): Updated.
33996         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
33997         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
33998         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
33999         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
34000         tst-quad1pie tst-quad2pie
34001         (modules-names): Add tst-quadmod1 tst-quadmod2.
34002         ($(objpfx)tst-quad1): New dependency.
34003         ($(objpfx)tst-quad2): Likewise.
34004         ($(objpfx)tst-quad1pie): Likewise.
34005         ($(objpfx)tst-quad2pie): Likewise.
34006         * sysdeps/x86_64/tst-quad1.c: New file.
34007         * sysdeps/x86_64/tst-quad1pie.c: New file.
34008         * sysdeps/x86_64/tst-quad2.c: Likewise.
34009         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
34010         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
34011         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
34012         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
34013         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
34014
34015 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34016
34017         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
34018         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
34019         * streams/stropts.h (t_scalar_t): Define type.
34020
34021         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
34022         (_PATH_PRESERVE): Set to "/var/lib".
34023         (_PATH_RWHODIR): Set to "/var/spool/rwho".
34024
34025         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
34026         instead of int.
34027
34028         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
34029         if __dir_mkfile succeeded.
34030
34031         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
34032         checking for _hurd_dtablesize.  Unlock it right after having
34033         finished _hurd_dtable allocation.
34034
34035 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34036
34037         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
34038         * sysdeps/mach/hurd/configure: Regenerated.
34039         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
34040         special-casing to...
34041         * sysdeps/gnu/configure.in: ... this new file.
34042         * sysdeps/unix/sysv/linux/configure: Regenerated.
34043         * sysdeps/gnu/configure: New generated file.
34044
34045         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
34046         for Linux: use nsec instead of usec, as well as:
34047         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
34048         members of type struct timespec.
34049         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
34050         New macros.
34051         (struct stat64): Likewise.
34052         (_STATBUF_ST_NSEC): New macro.
34053         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
34054
34055         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
34056         __strtoul_internal rather than strtoul.
34057
34058 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34059
34060         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
34061         and reject them.
34062
34063 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34064
34065         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
34066         which preserves existing values.
34067         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
34068
34069 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34070
34071         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
34072         TIMEOUT values.  Return EINVAL for NFDS values either negative or
34073         greater than FD_SETSIZE.
34074
34075 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34076
34077         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
34078         allocated, call __vm_protect to finish enabling the existing space, and
34079         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
34080         allocate the remainder.
34081
34082 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34083
34084         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
34085         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
34086
34087 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34088
34089         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
34090         sysdeps/mach/hurd/readlink.c.
34091
34092         * posix/tst-sysconf.c (posix_options): Only use
34093         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
34094         _POSIX_SYNCHRONIZED_IO when they are defined
34095         * sysdeps/mach/hurd/bits/posix_opt.h:
34096         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
34097         (_XOPEN_REALTIME): Undefine macro.
34098         (_XOPEN_REALTIME_THREADS): Undefine macro.
34099         (_XOPEN_SHM): Undefine macro.
34100         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
34101         macro to -1.
34102         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
34103         macro to -1.
34104         (_POSIX_ASYNC_IO): Undefine macro.
34105         (_POSIX_PRIORITIZED_IO): Undefine macro.
34106         (_POSIX_SPIN_LOCKS): Define macro to -1.
34107
34108         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
34109         SA_NODEFER, SA_RESETHAND.
34110         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
34111         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
34112         F_DUPFD_CLOEXEC.
34113
34114 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34115
34116         * elf/Makefile (pldd-modules): Define unconditionally.
34117
34118 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34119
34120         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
34121
34122 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34123
34124         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
34125         Return ENOENT when name is empty.
34126         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
34127
34128 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34129
34130         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
34131
34132         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
34133
34134 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34135
34136         Fix mlock in all cases except non-readable pages.
34137         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
34138         instead of VM_PROT_ALL as parameter to __vm_wire function.
34139
34140         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
34141         (__mkdir): When path is `/', just fail with EEXIST.
34142         * sysdeps/mach/hurd/mkdirat.c: Likewise.
34143
34144 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34145
34146         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
34147         <sys/uio.h> (for writev).
34148         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
34149         and <sys/param.h> (for MIN).
34150
34151 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34152
34153         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
34154         REQUESTED_TIME.  Properly set the remaining time and return EINTR
34155         if interrupted.
34156
34157 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34158
34159         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
34160         Depend on against $(link-rpcuserlibs).
34161
34162 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34163
34164         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
34165         (__libc_stack_end): Do not use attribute_relro.
34166         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
34167         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
34168         to libthread-provided value.
34169         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
34170         attribute_relro.
34171
34172 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34173
34174         [BZ #3748]
34175         * bits/libc-lock.h (__libc_once_get): New macro.
34176         * sysdeps/mach/bits/libc-lock.h: Likewise.
34177         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
34178         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
34179         instead of using implementation details.
34180
34181         * libio/fileops.c: Unconditionally include <kernel-features.h>.
34182         * libio/freopen.c: Likewise.
34183         * libio/freopen64.c: Likewise.
34184         * misc/syslog.c: Likewise.
34185         * nscd/connections.c: Likewise.
34186         * nscd/netgroupcache.c: Likewise.
34187         * sysdeps/posix/getcwd.c: Likewise.
34188
34189 2012-05-10  Roland McGrath  <roland@hack.frob.com>
34190
34191         * math/w_ilogbf.c: Add #include <limits.h>.
34192
34193 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34194
34195         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
34196         path instead of returning without unlocking.
34197
34198         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
34199         immediate-write ioctls.
34200         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
34201
34202 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34203
34204         * sysdeps/mach/hurd/i386/init-first.c (init): Use
34205         __builtin_frame_address instead of making assumptions about the
34206         location of the return address relative to DATA.  Force early load of
34207         the return address.
34208         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
34209         __builtin_frame_address.
34210
34211         dup3 for GNU Hurd.
34212         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
34213         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
34214         implement dup3 and do some further code clean-ups.
34215         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
34216         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
34217
34218 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34219
34220         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
34221
34222         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
34223         HURD_CRITICAL_END around holding _hurd_dtable_lock.
34224         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
34225         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
34226         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
34227         d->port.lock.
34228
34229         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
34230         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
34231         when handler == SIG_ERR, not when handler != SIG_ERR.
34232
34233 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34234
34235         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
34236         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
34237         definitions.
34238
34239         accept4 for GNU Hurd.
34240         * include/sys/socket.h (__libc_accept4): New prototype.
34241         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
34242         to implement __libc_accept4.
34243         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
34244         __libc_accept4.
34245         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
34246
34247         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
34248         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
34249         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
34250         signal-defines.sym.
34251
34252 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34253
34254         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
34255
34256 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34257
34258         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
34259         assertion on O_CLOEXEC flag.
34260         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
34261         * hurd/intern-fd.c: Likewise.
34262         * hurd/port2fd.c: Likewise.
34263
34264 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34265
34266         [BZ #3906]
34267         * bits/in.h (IPV6_PKTINFO): Define new macro.
34268         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
34269
34270 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34271
34272         [BZ #13954]
34273         [BZ #13955]
34274         [BZ #13956]
34275         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
34276         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
34277         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
34278         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
34279         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
34280         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
34281         * math/libm-test.inc (logb_test) : Additional logb tests.
34282
34283 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
34284             Andreas Jaeger  <aj@suse.de>
34285
34286         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
34287         * configure: Regenerated.
34288         * config.h.in (LINK_OBSOLETE_RPC): New macro.
34289         * config.make.in (link-obsolete-rpc): New substituted variable.
34290         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
34291         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
34292         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
34293         (shared-only-routines): Don't set it under [link-obsolete-rpc],
34294         so that libc.a contains the symbols.
34295         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
34296         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
34297         * sunrpc/auth_none.c: Likewise.
34298         * sunrpc/auth_unix.c: Likewise.
34299         * sunrpc/authdes_prot.c: Likewise.
34300         * sunrpc/authuxprot.c: Likewise.
34301         * sunrpc/clnt_gen.c: Likewise.
34302         * sunrpc/clnt_perr.c: Likewise.
34303         * sunrpc/clnt_raw.c: Likewise.
34304         * sunrpc/clnt_simp.c: Likewise.
34305         * sunrpc/clnt_tcp.c: Likewise.
34306         * sunrpc/clnt_udp.c: Likewise.
34307         * sunrpc/clnt_unix.c: Likewise.
34308         * sunrpc/des_crypt.c: Likewise.
34309         * sunrpc/des_soft.c: Likewise.
34310         * sunrpc/get_myaddr.c: Likewise.
34311         * sunrpc/key_call.c: Likewise.
34312         * sunrpc/key_prot.c: Likewise.
34313         * sunrpc/netname.c: Likewise.
34314         * sunrpc/pm_getmaps.c: Likewise.
34315         * sunrpc/pm_getport.c: Likewise.
34316         * sunrpc/pmap_clnt.c: Likewise.
34317         * sunrpc/pmap_prot.c: Likewise.
34318         * sunrpc/pmap_prot2.c: Likewise.
34319         * sunrpc/pmap_rmt.c: Likewise.
34320         * sunrpc/publickey.c: Likewise.
34321         * sunrpc/rpc_cmsg.c: Likewise.
34322         * sunrpc/rpc_common.c: Likewise.
34323         * sunrpc/rpc_dtable.c: Likewise.
34324         * sunrpc/rpc_prot.c: Likewise.
34325         * sunrpc/rpc_thread.c: Likewise.
34326         * sunrpc/rtime.c: Likewise.
34327         * sunrpc/svc.c: Likewise.
34328         * sunrpc/svc_auth.c: Likewise.
34329         * sunrpc/svc_raw.c: Likewise.
34330         * sunrpc/svc_run.c: Likewise.
34331         * sunrpc/svc_tcp.c: Likewise.
34332         * sunrpc/svc_udp.c: Likewise.
34333         * sunrpc/svc_unix.c: Likewise.
34334         * sunrpc/svcauth_des.c: Likewise.
34335         * sunrpc/xcrypt.c: Likewise.
34336         * sunrpc/xdr.c: Likewise.
34337         * sunrpc/xdr_array.c: Likewise.
34338         * sunrpc/xdr_float.c: Likewise.
34339         * sunrpc/xdr_intXX_t.c: Likewise.
34340         * sunrpc/xdr_mem.c: Likewise.
34341         * sunrpc/xdr_rec.c: Likewise.
34342         * sunrpc/xdr_ref.c: Likewise.
34343         * sunrpc/xdr_sizeof.c: Likewise.
34344         * sunrpc/xdr_stdio.c: Likewise.
34345
34346 2012-05-10  Roland McGrath  <roland@hack.frob.com>
34347
34348         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
34349         change.  Update copyright years.
34350
34351 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
34352
34353         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
34354
34355 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
34356             Joseph Myers  <joseph@codesourcery.com>
34357             Paul Pluzhnikov  <ppluzhnikov@google.com>
34358
34359         [BZ #14012]
34360         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
34361         requiring rpcgen.
34362         [cross-compiling] (extra-libs): Likewise.
34363         [cross-compiling] (extra-libs-others): Likewise.
34364         [cross-compiling] (librpcsvc-routines): Likewise.
34365         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
34366         [cross-compiling] (omit-deps): Likewise.
34367         (sunrpc-CPPFLAGS): New variable.
34368         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
34369         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
34370         (cross-rpcgen-objs): New variable.
34371         (extra-objs): Append $(cross-rpcgen-objs).
34372         ($(cross-rpcgen-objs)): New rule.
34373         ($(objpfx)cross-rpcgen): Likewise.
34374         (rpcgen-cmd): Define to use $(built-program-file).  Expand
34375         comment.
34376         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
34377         ($(objpfx)x%.stmp): Likewise.
34378         * sunrpc/proto.h [IS_IN_build] (_): Define.
34379         [IS_IN_build] (_libc_intl_domainname): Likewise.
34380
34381 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
34382
34383         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
34384         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
34385         and R_X86_64_TPOFF64.
34386
34387 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
34388
34389         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
34390         sysdeps/unix/sysv/syscalls.list.
34391         (stime): Likewise.
34392         (utime): Likewise.
34393         * sysdeps/unix/sysv/syscalls.list: Remove file.
34394
34395 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
34396
34397         [BZ #3440]
34398         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
34399         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
34400         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
34401         (__LC_IDENTIFICATION): Make these macros useful in #if
34402         expressions, as required by C99.
34403
34404 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
34405
34406         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
34407         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
34408         after this.
34409
34410 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
34411
34412         * stdlib/longlong.h: Updated from GCC.
34413
34414 2012-05-09  Andreas Jaeger  <aj@suse.de>
34415
34416         * nscd/nscd.c (run_modes): Make named enum, reorder so that
34417         default is first entry.
34418         (run_mode): Set type.
34419         (main): Remove informal message about syslog.
34420         (options): Fix typo.
34421
34422         [BZ #14053]
34423         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
34424         to asm.
34425         (lrint): Likewise.
34426         (llrintf): Likewise.
34427         (llrint): Likewise.
34428         (rint): Likewise.
34429         (rintf): Likewise.
34430         (nearbyint): Likewise.
34431         (nearbyintf): Likewise.
34432
34433 2012-05-09  Andreas Jaeger  <aj@suse.de>
34434             Pedro Alves  <palves@redhat.com>
34435
34436         * nscd/nscd.c (run_mode): Use enum.
34437         (main): Cleanup coding style issue.
34438
34439 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
34440             Andreas Jaeger  <aj@suse.de>
34441
34442         * nscd/nscd.c (go_background): Replaced with...
34443         (run_mode): ... this.
34444         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
34445         (options): Add -F --foreground.
34446         (main): Implement it.
34447         (parse_opt): Parse it.
34448
34449 2012-05-09  Andreas Jaeger  <aj@suse.de>
34450
34451         [BZ #14083]
34452         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
34453         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
34454         -Wconversion warning.
34455         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
34456         Likewise.
34457
34458 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
34459
34460         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
34461         == 0.
34462         (LC_ALL): Use macro-int-constant.
34463         (LC_COLLATE): Likewise.
34464         (LC_CTYPE): Likewise.
34465         (LC_MESSAGES): Likewise.
34466         (LC_MONETARY): Likewise.
34467         (LC_NUMERIC): Likewise.
34468         (LC_TIME): Likewise.
34469         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
34470         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
34471         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34472         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
34473         Specify type.
34474         [C99-based standards] (float_t): Expect type.
34475         [C99-based standards] (double_t): Expect type.
34476         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
34477         type.
34478         [C99-based standards] (HUGE_VALL): Likewise.
34479         [C99-based standards] (INFINITY): Likewise.
34480         [C99-based standards] (NAN): Likewise.
34481         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
34482         [C99-based standards] (FP_NAN): Likewise.
34483         [C99-based standards] (FP_NORMAL): Likewise.
34484         [C99-based standards] (FP_SUBNORMAL): Likewise.
34485         [C99-based standards] (FP_ZERO): Likewise.
34486         [C99-based standards] (FP_FAST_FMA): Use
34487         optional-macro-int-constant.  Specify type.  Require == 1.
34488         [C99-based standards] (FP_FAST_FMAF): Likewise.
34489         [C99-based standards] (FP_FAST_FMAL): Likewise.
34490         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
34491         [C99-based standards] (FP_ILOGBNAN): Likewise.
34492         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
34493         Specify type.
34494         [C99-based standards] (MATH_ERREXCEPT): Likewise.
34495         [C99-based standards] (math_errhandling): Specify type.
34496         [ISO99 || ISO11] (signgam): Do not allow.
34497         [non-C99-based standards] (copysignf): Do not allow.
34498         [non-C99-based standards] (exp2f): Likewise.
34499         [non-C99-based standards] (log2f): Likewise.
34500         [non-C99-based standards] (modff): Allow.
34501         [non-C99-based standards] (erff): Do not allow.
34502         [non-C99-based standards] (erfcf): Likewise.
34503         [non-C99-based standards] (gammaf): Likewise.
34504         [non-C99-based standards] (hypotf): Likewise.
34505         [non-C99-based standards] (j0f): Likewise.
34506         [non-C99-based standards] (j1f): Likewise.
34507         [non-C99-based standards] (jnf): Likewise.
34508         [non-C99-based standards] (lgammaf): Likewise.
34509         [non-C99-based standards] (tgammaf): Likewise.
34510         [non-C99-based standards] (y0f): Likewise.
34511         [non-C99-based standards] (y1f): Likewise.
34512         [non-C99-based standards] (ynf): Likewise.
34513         [non-C99-based standards] (isnanf): Likewise.
34514         [non-C99-based standards] (acoshf): Likewise.
34515         [non-C99-based standards] (asinhf): Likewise.
34516         [non-C99-based standards] (atanhf): Likewise.
34517         [non-C99-based standards] (cbrtf): Likewise.
34518         [non-C99-based standards] (expm1f): Likewise.
34519         [non-C99-based standards] (ilogbf): Likewise.
34520         [non-C99-based standards] (log1pf): Likewise.
34521         [non-C99-based standards] (logbf): Likewise.
34522         [non-C99-based standards] (nextafterf): Likewise.
34523         [non-C99-based standards] (remainderf): Likewise.
34524         [non-C99-based standards] (rintf): Likewise.
34525         [non-C99-based standards] (scalbf): Likewise.
34526         [non-C99-based standards] (copysignl): Likewise.
34527         [non-C99-based standards] (exp2l): Likewise.
34528         [non-C99-based standards] (log2l): Likewise.
34529         [non-C99-based standards] (modfl): Allow.
34530         [non-C99-based standards] (erfl): Do not allow.
34531         [non-C99-based standards] (erfcl): Likewise.
34532         [non-C99-based standards] (gammal): Likewise.
34533         [non-C99-based standards] (hypotl): Likewise.
34534         [non-C99-based standards] (j0l): Likewise.
34535         [non-C99-based standards] (j1l): Likewise.
34536         [non-C99-based standards] (jnl): Likewise.
34537         [non-C99-based standards] (lgammal): Likewise.
34538         [non-C99-based standards] (tgammal): Likewise.
34539         [non-C99-based standards] (y0l): Likewise.
34540         [non-C99-based standards] (y1l): Likewise.
34541         [non-C99-based standards] (ynl): Likewise.
34542         [non-C99-based standards] (isnanl): Likewise.
34543         [non-C99-based standards] (acoshl): Likewise.
34544         [non-C99-based standards] (asinhl): Likewise.
34545         [non-C99-based standards] (atanhl): Likewise.
34546         [non-C99-based standards] (cbrtl): Likewise.
34547         [non-C99-based standards] (expm1l): Likewise.
34548         [non-C99-based standards] (ilogbl): Likewise.
34549         [non-C99-based standards] (log1pl): Likewise.
34550         [non-C99-based standards] (logbl): Likewise.
34551         [non-C99-based standards] (nextafterl): Likewise.
34552         [non-C99-based standards] (remainderl): Likewise.
34553         [non-C99-based standards] (rintl): Likewise.
34554         [non-C99-based standards] (scalbl): Likewise.
34555         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34556         [non-C99-based standards] (FP_*): Do not allow.
34557         [C99-based standards] (FP_*): Change to
34558         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
34559         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34560         allow.
34561         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
34562         (SIG_ERR): Likewise.
34563         [X/Open-based standards] (SIG_HOLD): Likewise.
34564         (SIG_IGN): Likewise.
34565         (SIGABRT): Use macro-int-constant.  Specify type.  Require
34566         positive value.
34567         (SIGFPE): Likewise.
34568         (SIGILL): Likewise.
34569         (SIGINT): Likewise.
34570         (SIGSEGV): Likewise.
34571         (SIGTER): Likewise.
34572         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
34573         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
34574         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
34575         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
34576         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
34577         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
34578         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
34579         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
34580         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
34581         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
34582         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
34583         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
34584         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
34585         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
34586         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
34587         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
34588         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
34589         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
34590         [X/Open-based standards] (SIGTRAP): Likewise.
34591         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
34592         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
34593         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
34594         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
34595         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34596         allow.
34597
34598 2012-05-08  Ian Wienand  <ianw@vmware.com>
34599
34600         [BZ #14080]
34601         * time/tzset.c (__tzset_parse_tz): Update default rules for
34602         daylight time changes in the Energy Policy Act of 2005.
34603
34604 2012-05-09  Andreas Jaeger  <aj@suse.de>
34605
34606         [BZ #13983]
34607         * elf/ldconfig.c (parse_conf): Change string to make clear that
34608         ldconfig only issued a warning if ld.so.conf does not exist.
34609
34610 2012-05-08  David S. Miller  <davem@davemloft.net>
34611
34612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
34613         movxtod instead of popping the value on the stack.
34614
34615         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34616
34617 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
34618
34619         * config.h.in: Add HAVE_ARM_PCS_VFP.
34620
34621 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
34622
34623         [BZ #13979]
34624         * include/features.h: Warn if user requests __FORTIFY_SOURCE
34625         checking but the checks are disabled for any reason.
34626
34627 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
34628
34629         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
34630         and ELF64_R_TYPE with ELFW(R_TYPE).
34631
34632 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
34633
34634         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
34635         (ulimit): Likewise.
34636
34637         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
34638         (settimeofday): Likewise.
34639
34640 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
34641
34642         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
34643         a struct th_u2 inside the union, and move tu_block/tu_code into
34644         a new th_u3 union of tu_block/tu_code inside of that.  Move
34645         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
34646         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
34647         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
34648         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
34649         (th_stuff): Change to th_u1.tu_stuff.
34650         (th_data): Define.
34651         (th_msg): Change to th_u1.th_u2.tu_data.
34652
34653 2012-05-07  David S. Miller  <davem@davemloft.net>
34654
34655         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34656
34657         [BZ #14074]
34658         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
34659         (SETUP_PIC_REG): Use it.
34660         (SETUP_PIC_REG_LEAF): Use it.
34661
34662 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
34663
34664         [BZ #13885]
34665         [BZ #13923]
34666         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34667         USE_AS_EXPM1L.
34668         (EXPL_FINITE): Likewise.
34669         (FLDLOG): Likewise.
34670         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34671         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34672         e_expl.S.
34673         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34674         USE_AS_EXPM1L.
34675         (EXPL_FINITE): Likewise.
34676         (FLDLOG): Likewise.
34677         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34678         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34679         e_expl.S.
34680         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
34681         test of -max_value argument for long double.
34682         * sysdeps/i386/fpu/libm-test-ulps: Update.
34683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34684
34685 2012-05-06  David S. Miller  <davem@davemloft.net>
34686
34687         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
34688         quad soft-float symbols whose references which are compiler
34689         generated.
34690         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34691
34692 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
34693
34694         [BZ #13884]
34695         [BZ #13914]
34696         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34697         USE_AS_EXP10L.
34698         (EXPL_FINITE): Likewise.
34699         (FLDLOG): Likewise.
34700         (c0): Likewise.
34701         (c1): Likewise.
34702         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34703         Adjust comments for base varying.
34704         (__expl_finite): Change alias to EXPL_FINITE.
34705         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
34706         e_expl.S.
34707         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
34708         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
34709         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
34710         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
34711         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34712         USE_AS_EXP10L.
34713         (EXPL_FINITE): Likewise.
34714         (FLDLOG): Likewise.
34715         (c0): Likewise.
34716         (c1): Likewise.
34717         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34718         Adjust comments for base varying.
34719         (__expl_finite): Change alias to EXPL_FINITE.
34720         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
34721         tests for bugs.
34722         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34723
34724         [BZ #14064]
34725         * math/libm-test.inc (check_float_internal): Correct ulp
34726         calculation for subnormal expected results.
34727
34728 2012-05-06  Andreas Jaeger  <aj@suse.de>
34729
34730         * Makeconfig (+math-flags): New, set to -frounding-math.
34731         (+cflags): Add +math-flags so that all of glibc gets compiled with
34732         it.
34733
34734         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
34735
34736 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
34737
34738         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
34739         Disable one test.
34740
34741         [BZ #13787]
34742         [BZ #13922]
34743         [BZ #14036]
34744         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
34745         (__ieee754_expl): Allow for and saturate large arguments.
34746         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
34747         (u_threshold): Likewise.
34748         (__exp): Call __ieee754_exp before checking for overflow and
34749         underflow.
34750         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
34751         (u_threshold): Likewise.
34752         (__expf): Call __ieee754_expf before checking for overflow and
34753         underflow.
34754         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
34755         (u_threshold): Likewise.
34756         (__expl): Call __ieee754_expl before checking for overflow and
34757         underflow.
34758         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
34759         (__ieee754_expl): Allow for and saturate large arguments.
34760         * math/libm-test.inc (exp_test): Add another test.  Do not allow
34761         missing overflow exception on overflow.
34762         (expm1_test): Do not allow missing overflow exception on overflow.
34763
34764         * sysdeps/i386/fpu/e_expl.c: Move to ...
34765         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
34766         rather than using inline asm.
34767         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
34768         * sysdeps/x86_64/fpu/e_expl.S: Copy from
34769         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
34770
34771         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
34772         (nice): Likewise.
34773         (poll): Likewise.
34774         (signal): Likewise.
34775         (time): Likewise.
34776         (times): Likewise.
34777
34778 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34779
34780         * sysdeps/unix/syscalls.list (adjtime): Add entry from
34781         sysdeps/unix/common/syscalls.list.
34782         (fchmod): Likewise.
34783         (fchown): Likewise.
34784         (ftruncate): Likewise.
34785         (getrusage): Likewise.
34786         (gettimeofday): Likewise.
34787         (setpgid): Likewise.
34788         (setregid): Likewise.
34789         (setreuid): Likewise.
34790         (sigaction): Likewise.
34791         (truncate): Likewise.
34792         (vhangup): Likewise.
34793         * sysdeps/unix/common/syscalls.list: Remove file.
34794         * sysdeps/unix/bsd/Implies: Don't include unix/common.
34795         * sysdeps/unix/sysv/linux/Implies: Likewise.
34796
34797 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
34798
34799         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
34800         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
34801         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
34802         Moved to ...
34803         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
34804         Here.
34805         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
34806         to ...
34807         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
34808         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
34809         to ...
34810         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
34811         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
34812         to ...
34813         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
34814         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
34815         to ...
34816         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
34817         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
34818         to ...
34819         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
34820         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
34821         to ...
34822         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
34823         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
34824         to ...
34825         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
34826         Here.
34827         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
34828         to ...
34829         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
34830         Here.
34831         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
34832         to ...
34833         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
34834         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
34835         Moved to ...
34836         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
34837         Here.
34838         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
34839         to ...
34840         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
34841
34842 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34843
34844         * sysdeps/unix/common/bits/dirent.h: Remove file.
34845         * sysdeps/unix/common/bits/fcntl.h: Likewise.
34846
34847         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
34848         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
34849         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
34850         * sysdeps/unix/bsd/isatty.c: Likewise.
34851         * sysdeps/unix/bsd/tcdrain.c: Likewise.
34852         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
34853         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
34854
34855 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34856
34857         [BZ #13563]
34858         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
34859         long double comparison inaccuracies.
34860         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
34861         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34862
34863 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
34864
34865         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
34866         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
34867
34868 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34869
34870         [BZ #14049]
34871         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
34872         nonzero digits before rounding a hex value.
34873         * stdlib/tst-strtod.c (tests): Add another test.
34874
34875 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34876
34877         * sysdeps/s390/fpu/libm-test-ulps: Update.
34878
34879 2012-05-03  Andreas Jaeger  <aj@suse.de>
34880
34881         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
34882         does not get optimized out.
34883         (malloc_opt_barrier): New.
34884
34885 2012-05-03  Andreas Jaeger  <aj@suse.de>
34886             Roland McGrath  <roland@hack.frob.com>
34887
34888         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
34889         intermediate file deletion.
34890         (generated): Add .symlist files.
34891
34892 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
34893
34894         [BZ #13775]
34895         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
34896         Redirect under this condition.
34897         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34898         [__USE_GNU] (__dprintf_chk): Not under this condition.
34899         [__USE_GNU] (__vdprintf_chk): Likewise.
34900         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
34901         under this condition.
34902         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34903         [__USE_XOPEN2K8] (dprintf): Define under this condition.
34904         [__USE_XOPEN2K8] (vdprintf): Likewise.
34905         [__USE_GNU] (__dprintf_chk): Not under this condition.
34906         [__USE_GNU] (__vdprintf_chk): Likewise.
34907         [__USE_GNU] (dprintf): Likewise.
34908         [__USE_GNU] (vdprintf): Likewise.
34909
34910 2012-05-03  Roland McGrath  <roland@hack.frob.com>
34911
34912         * elf/Makefile (common-generated): Set this instead of generated for
34913         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
34914         $(all-built-dso)-derived lists.
34915
34916 2012-05-03  Andreas Jaeger  <aj@suse.de>
34917
34918         * sysdeps/i386/fpu/libm-test-ulps: Update.
34919
34920         * FAQ: Removed.
34921         * FAQ.in: Likewise.
34922         * scripts/gen-FAQ.pl: Likewise.
34923         * manual/install.texi (Installation): Point to online location of
34924         FAQ.
34925         * Makefile (files-for-dist): Remove FAQ.
34926         (FAQ): Remove.
34927
34928 2012-05-02  Allan McRae  <allan@archlinux.org>
34929
34930         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
34931         (LDFLAGS-reldepmod5.so): Likewise.
34932         (LDFLAGS-reldep6mod1.so): Likewise.
34933         (LDFLAGS-reldep6mod4.so): Likewise.
34934         (LDFLAGS-reldep8mod3.so): Likewise.
34935         (LDFLAGS-unload4mod1.so): Likewise.
34936         (LDFLAGS-unload4mod2.so): Likewise.
34937         (LDFLAGS-tst-initorder): Likewise.
34938         (LDFLAGS-tst-initordera2.so): Likewise.
34939         (LDFLAGS-tst-initordera3.so): Likewise.
34940         (LDFLAGS-tst-initordera4.so): Likewise.
34941         (LDFLAGS-tst-initorderb2.so): Likewise.
34942         (LDFLAGS-noload): Likewise.
34943         (LDFLAGS-next): Likewise.
34944         (LDFLAGS-order2mod1.so): Likewise.
34945         (LDFLAGS-order2mod2.so): Likewise.
34946         (LDFLAGS-tst-initorder2): Likewise.
34947         (LDFLAGS-tst-initorder2a.so): Likewise.
34948         (LDFLAGS-tst-initorder2b.so): Likewise.
34949         (LDFLAGS-tst-initorder2c.so): Likewise.
34950         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
34951
34952 2012-05-02  David S. Miller  <davem@davemloft.net>
34953
34954         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34955
34956 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
34957
34958         [BZ #14055]
34959         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
34960
34961 2012-05-02  Andreas Jaeger  <aj@suse.de>
34962
34963         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
34964         since we manipulate rounding mode.
34965         (CPPFLAGS-test-idouble.c): Likewise.
34966         (CPPFLAGS-test-ifloat.c): Likewise.
34967         (CFLAGS-test-ldouble.c): Likewise.
34968         (CFLAGS-test-double.c): Likewise.
34969         (CFLAGS-test-float.c): Likewise.
34970         (CFLAGS-test-misc.c): Likewise.
34971         (CFLAGS-test-test-fenv.c): Likewise.
34972
34973 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34974
34975         [BZ #2550]
34976         [BZ #2570]
34977         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
34978         comparisons to determine direction to adjust input.
34979
34980 2012-05-01  Roland McGrath  <roland@hack.frob.com>
34981
34982         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
34983         output to the target.
34984
34985         * scripts/localplt.awk: New file.
34986         * elf/Makefile ($(objpfx)check-localplt): Target removed.
34987         (check-localplt-CFLAGS): Variable removed.
34988         ($(all-built-dso:=.jmprel)): New static pattern rule.
34989         (generated): Add those targets.
34990         (localplt-built-dso): New variable.
34991         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
34992
34993         * elf/check-localplt.c: File removed.
34994
34995         * scripts/check-execstack.awk: New file.
34996         * elf/Makefile ($(objpfx)check-execstack): Target removed.
34997         (check-execstack-CFLAGS): Variable removed.
34998         ($(objpfx)check-execstack.h): Target removed.
34999         ($(objpfx)execstack-default): New target.
35000         (generated): Add that instead of check-execstack.h.
35001         ($(all-built-dso:=.phdr)): New static pattern rule.
35002         (generated): Add those targets.
35003         * elf/check-execstack.c: File removed.
35004
35005         * scripts/check-textrel.awk: New file.
35006         * elf/Makefile ($(objpfx)check-textrel): Target removed.
35007         (check-textrel-CFLAGS): Variable removed.
35008         (all-built-dso): Use := to define.o
35009         ($(all-built-dso:=.dyn)): New static pattern rule.
35010         (generated): Add those targets.
35011         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
35012         * config.make.in (READELF): New substituted variable.
35013         * elf/check-textrel.c: File removed.
35014
35015 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
35016
35017         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
35018         allow.
35019         * conform/data/ctype.h-data [C99-based standards] (isblank):
35020         Expect function.
35021         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
35022         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
35023         [ISO || ISO99 || ISO11] (*_t): Do not allow.
35024         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
35025         Specify type.  Require positive value.
35026         (EILSEQ): Likewise.
35027         (ERANGE): Likewise.
35028         [ISO || POSIX] (EILSEQ): Do not expect.
35029         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
35030         Specify type.  Require positive value.
35031         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
35032         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
35033         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
35034         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
35035         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
35036         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
35037         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
35038         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
35039         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
35040         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
35041         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
35042         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
35043         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
35044         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
35045         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
35046         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
35047         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
35048         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
35049         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
35050         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
35051         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
35052         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
35053         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
35054         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
35055         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
35056         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
35057         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
35058         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
35059         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
35060         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
35061         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
35062         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
35063         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
35064         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
35065         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
35066         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
35067         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
35068         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
35069         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
35070         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
35071         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
35072         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
35073         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
35074         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
35075         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
35076         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
35077         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
35078         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
35079         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
35080         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
35081         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
35082         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
35083         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
35084         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
35085         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
35086         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
35087         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
35088         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
35089         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
35090         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
35091         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
35092         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
35093         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
35094         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
35095         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
35096         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
35097         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
35098         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
35099         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
35100         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
35101         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
35102         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
35103         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
35104         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
35105         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
35106         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
35107         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
35108         Require >= 2.
35109         (FLT_ROUNDS): Expect as macro, not constant.
35110         (FLT_MANT_DIG): Use macro-int-constant.
35111         (DBL_MANT_DIG): Likewise.
35112         (LDBL_MANT_DIG): Likewise.
35113         (FLT_DIG): Likewise.
35114         (DBL_DIG): Likewise.
35115         (LDBL_DIG): Likewise.
35116         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
35117         (DBL_MIN_EXP): Likewise.
35118         (LDBL_MIN_EXP): Likewise.
35119         (FLT_MAX_EXP): Use macro-int-constant.
35120         (DBL_MAX_EXP): Likewise.
35121         (LDBL_MAX_EXP): Likewise.
35122         (FLT_MAX_10_EXP): Likewise.
35123         (DBL_MAX_10_EXP): Likewise.
35124         (LDBL_MAX_10_EXP): Likewise.
35125         (FLT_MAX): Use macro-constant.
35126         (DBL_MAX): Likewise.
35127         (LDBL_MAX): Likewise.
35128         (FLT_EPSILON): Use macro-constant.  Give upper bound.
35129         (DBL_EPSILON): Likewise.
35130         (LDBL_EPSILON): Likewise.
35131         (FLT_MIN): Likewise.
35132         (DBL_MIN): Likewise.
35133         (LDBL_MIN): Likewise.
35134         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
35135         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
35136         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
35137         [ISO11] (FLT_HAS_SUBNORM): Likewise.
35138         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
35139         [ISO11] (DBL_DECIMAL_DIG): Likewise.
35140         [ISO11] (FLT_DECIMAL_DIG): Likewise.
35141         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
35142         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
35143         [ISO11] (FLT_TRUE_MIN): Likewise.
35144         [ISO11] (LDBL_TRUE_MIN): Likewise.
35145         [ISO || ISO99 || ISO11] (*_t): Do not allow.
35146         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
35147         (SCHAR_MIN): Use macro-int-constant.  Specify type.
35148         (SCHAR_MAX): Likewise.
35149         (UCHAR_MAX): Likewise.
35150         (CHAR_MIN): Likewise.
35151         (CHAR_MAX): Likewise.
35152         (MB_LEN_MAX): Use macro-int-constant.
35153         (SHRT_MIN): Use macro-int-constant.  Specify type.
35154         (SHRT_MAX): Likewise.
35155         (USHRT_MAX): Likewise.
35156         (INT_MAX): Likewise.
35157         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
35158         bound negative.
35159         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
35160         bound with "U".
35161         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
35162         bound with "L".
35163         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
35164         bound negative.  Suffix upper bound with "L".
35165         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
35166         bound with "UL".
35167         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
35168         Specify type.
35169         [C99-based standards] (LLONG_MAX): Likewise.
35170         [C99-based standards] (ULLONG_MAX): Likewise.
35171         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
35172         == 0.
35173         [ISO11] (max_align_t): Require type.
35174         [ISO || ISO99 || ISO11] (*_t): Do not allow.
35175
35176         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
35177         from $CFLAGS, without defining away __attribute__ calls.
35178         (checknamespace): Use $CFLAGS_namespace.
35179
35180         * conform/conformtest.pl (@keywords): Only include C99 keywords
35181         for standards based on C99 or C11.
35182
35183         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
35184         Disable tests.
35185         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
35186         UNIX98]: Likewise.
35187
35188         * conform/conformtest.pl: Handle "macro-int-constant" and test for
35189         usability of symbols in #if.
35190
35191         * conform/conformtest.pl: If macro or constant types start
35192         "promoted:", expect the symbol to be of the following type
35193         promoted by the integer promotions.
35194
35195         * conform/conformtest.pl: Parse all "constant" and "macro" lines
35196         in one place.  Also handle "macro-constant".
35197
35198         * conform/conformtest.pl: Only accept expected macro values with
35199         "==".  Parse all "macro" lines in one place.
35200         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
35201
35202         * conform/conformtest.pl: Handle braced types on "constant" lines
35203         instead of handling "typed-constant".
35204         * conform/data/signal.h-data: Use "constant" instead of
35205         "typed-constant".
35206
35207         * conform/conformtest.pl: Handle "optional-" at start of lines in
35208         one place rather than duplicating several cases.  Handle each
35209         format of "macro" line with initial "optional-".
35210
35211         * conform/conformtest.pl: Only accept expected constant or
35212         optional-constant values with "==".  Parse all "constant" lines in
35213         one place.  Parse all "optional-constant" lines in one place.
35214         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
35215         * conform/data/fmtmsg.h-data: Likewise.
35216         * conform/data/netinet/in.h-data: Likewise.
35217         * conform/data/tar.h-data: Likewise.
35218         * conform/data/limits.h-data: Use "==" form on "constant" and
35219         "optional-constant" lines.
35220
35221         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
35222         Use -std=c99 for XOPEN2K.
35223         (@knownproblems): Remove.
35224         (newtoken): Don't check %isknown.
35225
35226         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
35227         Do not expect macro.
35228         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
35229         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
35230         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
35231         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
35232         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
35233         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
35234         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
35235         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
35236         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
35237         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
35238         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
35239         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
35240         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
35241         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
35242         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
35243         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
35244         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
35245         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
35246         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
35247         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
35248         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
35249         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
35250         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
35251         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
35252         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
35253         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
35254         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
35255         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
35256         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
35257         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
35258         [XPG3] (acosh): Likewise.
35259         [XPG3] (asinh): Likewise.
35260         [XPG3] (atanh): Likewise.
35261         [XPG3] (cbrt): Likewise.
35262         [XPG3] (expm1): Likewise.
35263         [XPG3] (ilogb): Likewise.
35264         [XPG3] (log1p): Likewise.
35265         [XPG3] (logb): Likewise.
35266         [XPG3] (nextafter): Likewise.
35267         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
35268         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
35269         [XPG3] (remainder): Likewise.
35270         [XPG3] (rint): Likewise.
35271         [XPG3 || XPG4 || UNIX98] (round): Likewise.
35272         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
35273         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
35274         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
35275         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
35276         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
35277         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
35278         [UNIX98 || XOPEN2K] (scalb): Expect.
35279         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
35280         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
35281         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
35282         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
35283         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
35284         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
35285         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
35286         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
35287         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
35288         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
35289         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
35290         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
35291         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
35292         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
35293         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
35294         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
35295         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
35296         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
35297         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
35298         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
35299         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
35300         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
35301         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
35302         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
35303         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
35304         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
35305         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
35306         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
35307         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
35308         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
35309         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
35310         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
35311         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
35312         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
35313         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
35314         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
35315         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
35316         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
35317         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
35318         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
35319         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
35320         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
35321         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
35322         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
35323         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
35324         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
35325         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
35326         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
35327         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
35328         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
35329         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
35330         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
35331         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
35332         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
35333         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
35334         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
35335         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
35336         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
35337         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
35338         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
35339         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
35340         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
35341         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
35342         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
35343         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
35344         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
35345         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
35346         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
35347         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
35348         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
35349         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
35350         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
35351         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
35352         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
35353         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
35354         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
35355         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
35356         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
35357         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
35358         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
35359         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
35360         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
35361         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
35362         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
35363         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
35364         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
35365         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
35366         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
35367         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
35368         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
35369         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
35370         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
35371         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
35372         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
35373         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
35374         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
35375         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
35376         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
35377         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
35378         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
35379         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
35380         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
35381         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
35382         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
35383         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
35384         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
35385         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
35386         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
35387         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
35388         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
35389         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
35390         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
35391         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
35392         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
35393         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
35394         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
35395         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
35396         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
35397         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
35398         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
35399         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
35400         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
35401         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
35402         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
35403         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
35404         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
35405         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
35406         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
35407         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
35408         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
35409         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
35410         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
35411         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
35412         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
35413         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
35414         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
35415         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
35416
35417         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
35418         _XOPEN_SOURCE_EXTENDED for XPG4.
35419
35420         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
35421
35422         * Makeconfig (localtime): Remove variable.
35423         (inst_localtime-file): Likewise.
35424
35425 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
35426
35427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
35428         Update.
35429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
35430         Update.
35431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
35432         Update.
35433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
35434         Update.
35435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
35436         Update.
35437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
35438         Update.
35439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
35440         Update.
35441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
35442         Update.
35443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
35444         Update.
35445
35446 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
35447
35448         [BZ #2550]
35449         [BZ #2570]
35450         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
35451         comparisons to determine direction to adjust input.
35452         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
35453         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
35454         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35455         Likewise.
35456         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35457         Likewise.
35458         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35459         Likewise.
35460         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35461         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35462         Likewise.
35463         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35464         Likewise.
35465         * math/libm-test.inc (nexttoward_test): Add more tests.
35466
35467 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
35468
35469         [BZ #14040]
35470         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
35471         in version GLIBC_2.1, not GLIBC_2.0.
35472         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
35473         Likewise.
35474
35475 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
35476
35477         [BZ #13942]
35478         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
35479         (1 - x) * (1 + x).
35480         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
35481         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
35482         * math/libm-test.inc (acos_test): Add more tests.
35483         (asin_test): Likewise.
35484         * sysdeps/i386/fpu/libm-test-ulps: Update.
35485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35486
35487         [BZ #14034]
35488         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
35489         of square root.
35490         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
35491         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
35492         * math/libm-test.inc (acos_test_tonearest): New function.
35493         (acos_test_towardzero): Likewise.
35494         (acos_test_downward): Likewise.
35495         (acos_test_upward): Likewise.
35496         (asin_test_tonearest): Likewise.
35497         (asin_test_towardzero): Likewise.
35498         (asin_test_downward): Likewise.
35499         (asin_test_upward): Likewise.
35500         (main): Call the new functions.
35501         * sysdeps/i386/fpu/libm-test-ulps: Update.
35502         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35503
35504         [BZ #13884]
35505         [BZ #13924]
35506         * math/e_exp10.c: Include <float.h>.
35507         (__ieee754_exp10): Handle underflow here rather than multiplying
35508         large negative argument by M_LN10.
35509         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
35510         of __ieee754_expf.
35511         * math/e_exp10l.c: Include <float.h>.
35512         (__ieee754_exp10l): Handle underflow here rather than multiplying
35513         large negative argument by M_LN10l.
35514         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
35515         spurious overflow exception on underflow.
35516
35517 2012-04-29  Marek Polacek  <polacek@redhat.com>
35518
35519         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
35520         (__fortify_function): New macro.
35521         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
35522         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
35523         __extern_always_inline.
35524         * libio/bits/stdio2.h: Likewise.
35525         * libio/bits/stdio.h: Likewise.
35526         * string/string.h: Likewise.
35527         * string/bits/string3.h: Likewise.
35528         * include/stdio.h: Likewise.
35529         * stdlib/bits/stdlib.h: Likewise.
35530         * stdlib/stdlib.h: Likewise.
35531         * rt/bits/mqueue2.h: Likewise.
35532         * rt/mqueue.h: Likewise.
35533         * posix/bits/unistd.h: Likewise.
35534         * posix/unistd.h: Likewise.
35535         * io/bits/poll2.h: Likewise.
35536         * io/bits/fcntl2.h: Likewise.
35537         * io/fcntl.h: Likewise.
35538         * io/sys/poll.h: Likewise.
35539         * misc/bits/syslog.h: Likewise.
35540         * misc/bits/syslog-ldbl.h: Likewise.
35541         * misc/sys/syslog.h: Likewise.
35542         * socket/bits/socket2.h: Likewise.
35543         * socket/sys/socket.h: Likewise.
35544         * debug/tst-chk1.c: Likewise.
35545         * wcsmbs/bits/wchar2.h: Likewise.
35546         * wcsmbs/bits/wchar-ldbl.h: Likewise.
35547         * wcsmbs/wchar.h: Likewise.
35548
35549 2012-04-29  Andreas Jaeger  <aj@suse.de>
35550
35551         * Makerules (tests): Remove enable-check-abi protection.
35552         (check-abi-warn): Remove.
35553         (check-abi-%): Remove check-abi-warn usage.
35554
35555         * configure.in: Remove check-abi configure option.
35556         * configure: Regenerated.
35557         * config.make.in (enable-check-abi): Remove.
35558
35559 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
35560
35561         [BZ #14033]
35562         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
35563         double functions to double *_finite functions.
35564
35565         [BZ #13941]
35566         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
35567         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
35568         LDBL_MIN_EXP.
35569         * stdio-common/Makefile (tests): Add tst-sprintf3.
35570         * stdio-common/tst-sprintf3.c: New file.
35571
35572         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
35573         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
35574
35575 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35576
35577         * conform/conformtest.pl: Remove duplicate typed-constant
35578         handling.
35579
35580 2012-04-28  David S. Miller  <davem@davemloft.net>
35581
35582         * Makerules (%.abilist): Add vpath on sysdep_dirs.
35583         (check-abi-%): Remove AWK script prerequisite and explicit
35584         abilist directory.
35585         (check-abi): Rewrite to just diff the symlist with the abilist.
35586         (config-tls, config-abi-config): Delete, no longer used.
35587         (update-abi-%): Remove AWK script and explicit abilist directory.
35588         (update-abi): Rewrite to simply compare and conditionally copy the
35589         symlist and the sysdep abilist file.  Remove update-abi-config
35590         checks.
35591         * abilist/ld.abilist: Remove.
35592         * abilist/libBrokenLocale.abilist: Remove.
35593         * abilist/libanl.abilist: Remove.
35594         * abilist/libcrypt.abilist: Remove.
35595         * abilist/libdl.abilist: Remove.
35596         * abilist/librt.abilist: Remove.
35597         * abilist/libthread_db.abilist: Remove.
35598         * abilist/libutil.abilist: Remove.
35599         * scripts/extract-abilist.awk: Remove.
35600         * scripts/merge-abilist.awk: Remove.
35601         * sysdeps/generic/libcidn.abilist: New file.
35602         * sysdeps/generic/libnss_compat.abilist: New file.
35603         * sysdeps/generic/libnss_db.abilist: New file.
35604         * sysdeps/generic/libnss_dns.abilist: New file.
35605         * sysdeps/generic/libnss_files.abilist: New file.
35606         * sysdeps/generic/libnss_hesiod.abilist: New file.
35607         * sysdeps/generic/libnss_nis.abilist: New file.
35608         * sysdeps/generic/libnss_nisplus.abilist: New file.
35609         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
35610         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
35611         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
35612         file.
35613         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
35614         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
35615         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
35616         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
35617         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
35618         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
35619         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
35620         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
35621         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
35622         file.
35623         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
35624         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
35625         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
35626         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
35627         file.
35628         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
35629         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
35630         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
35631         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
35632         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
35633         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
35634         file.
35635         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
35636         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
35637         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
35638         file.
35639         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
35640         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
35641         New file.
35642         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
35643         New file.
35644         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
35645         New file.
35646         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
35647         New file.
35648         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
35649         New file.
35650         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
35651         New file.
35652         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
35653         New file.
35654         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
35655         New file.
35656         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
35657         New file.
35658         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
35659         New file.
35660         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
35661         New file.
35662         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
35663         New file.
35664         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
35665         New file.
35666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
35667         file.
35668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
35669         New file.
35670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
35671         New file.
35672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
35673         file.
35674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
35675         New file.
35676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
35677         New file.
35678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
35679         file.
35680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
35681         New file.
35682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
35683         New file.
35684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
35685         New file.
35686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
35687         New file.
35688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
35689         New file.
35690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
35691         New file.
35692         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
35693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
35694         file.
35695         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35696         New file.
35697         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
35698         file.
35699         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
35700         file.
35701         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
35702         file.
35703         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
35704         file.
35705         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
35706         file.
35707         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35708         New file.
35709         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
35710         file.
35711         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
35712         file.
35713         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35714         New file.
35715         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
35716         file.
35717         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
35718         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
35719         file.
35720         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35721         New file.
35722         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
35723         file.
35724         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
35725         file.
35726         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
35727         file.
35728         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
35729         file.
35730         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
35731         file.
35732         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35733         New file.
35734         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
35735         file.
35736         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
35737         file.
35738         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35739         New file.
35740         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
35741         file.
35742         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
35743         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
35744         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
35745         file.
35746         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
35747         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
35748         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
35749         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
35750         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
35751         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
35752         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
35753         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
35754         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
35755         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
35756         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
35757         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
35758         file.
35759         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35760         New file.
35761         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
35762         file.
35763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
35764         file.
35765         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
35766         file.
35767         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
35768         file.
35769         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
35770         file.
35771         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35772         New file.
35773         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35774         New file.
35775         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
35776         file.
35777         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35778         New file.
35779         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
35780         file.
35781         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
35782         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
35783         file.
35784         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35785         New file.
35786         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
35787         file.
35788         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
35789         file.
35790         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
35791         file.
35792         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
35793         file.
35794         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
35795         file.
35796         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35797         New file.
35798         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35799         New file.
35800         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
35801         file.
35802         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35803         New file.
35804         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
35805         file.
35806
35807 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35808
35809         * conform/conformtest.pl: Fix typo in handling typed-constant from
35810         allow-header.
35811
35812 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35813
35814         * README: Cut down references to pre-2.6 Linux kernels and
35815         Linuxthreads.  Update lists of configurations in libc and ports
35816         and sort alphabetically.  Say "or newer" with Linux kernel version
35817         requirements.
35818
35819         * config.h.in [IS_IN_build]: Allow compiling without optimization.
35820
35821 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
35822
35823         [BZ #887]
35824         * math/libm-test.inc (logb_test_downward): New test to expose
35825         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
35826         rounding mode.
35827
35828 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35829
35830         [BZ #14027]
35831         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
35832         to be done.
35833         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
35834         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
35835
35836 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
35837
35838         * sysdeps/unix/i386/brk.S: Remove file.
35839         * sysdeps/unix/i386/dl-brk.S: Likewise.
35840         * sysdeps/unix/i386/pipe.S: Likewise.
35841         * sysdeps/unix/i386/sigreturn.S: Likewise.
35842         * sysdeps/unix/i386/syscall.S: Likewise.
35843         * sysdeps/unix/i386/vfork.S: Likewise.
35844         * sysdeps/unix/i386/wait.S: Likewise.
35845
35846         * sysdeps/unix/common/tcsendbrk.c: Move to ...
35847         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
35848
35849         * configure.in (arm*-none*): Do not allow without
35850         --enable-hacker-mode.
35851         (netbsd*): Remove case setting base_os.
35852         (386bsd*): Likewise.
35853         (freebsd*): Likewise.
35854         (bsdi*): Likewise.
35855         (osf*): Likewise.
35856         (sunos*): Likewise.
35857         (ultrix*): Likewise.
35858         (newsos*): Likewise.
35859         (dynix*): Likewise.
35860         (*bsd*): Likewise.
35861         (sysv*): Likewise.
35862         (isc*): Likewise.
35863         (esix*): Likewise.
35864         (sco*): Likewise.
35865         (minix*): Likewise.
35866         (irix4*): Likewise.
35867         (irix6*): Likewise.
35868         (solaris[2-9]*): Likewise.
35869         (none): Likewise.
35870         * configure: Regenerated.
35871
35872 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35873
35874         [BZ #11521]
35875         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
35876         overflow or cancellation in calculating denominator.
35877         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
35878         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
35879         down expression to avoid unexpected rounding in newer GCCs.
35880         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
35881
35882 2012-04-26  David S. Miller  <davem@davemloft.net>
35883
35884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
35885         long-double compat symbols.
35886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
35887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
35888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
35889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
35890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
35891         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
35892         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
35893         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
35894         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
35895         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
35896         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
35897         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
35898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
35899
35900 2012-04-25  David S. Miller  <davem@davemloft.net>
35901
35902         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
35903         HWCAP_* values only after the memory barriers have been defined.
35904         (atomic_full_barrier): Define.
35905         (atomic_read_barrier): Define.
35906         (atomic_write_barrier): Define.
35907
35908 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35909
35910         * shlib-versions: Add libgcc_s version information.
35911         * sysdeps/generic/libgcc_s.h: Remove.
35912         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
35913         libgcc_s.h.
35914         * sysdeps/gnu/unwind-resume.c: Likewise.
35915         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
35916
35917 2012-04-25  David S. Miller  <davem@davemloft.net>
35918
35919         * sysdeps/unix/sparc/brk.S: Delete.
35920         * sysdeps/unix/sparc/dl-brk.S: Delete.
35921         * sysdeps/unix/sparc/pipe.S: Delete.
35922         * sysdeps/unix/sparc/sysdep.S: Delete.
35923         * sysdeps/unix/sparc/sysdep.h: Delete.
35924         * sysdeps/unix/sparc/vfork.S: Delete.
35925         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
35926         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
35927         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
35928         (ret_ERRVAL, r0, r1, MOVE): Define.
35929         (JUMPTARGET): Remove.
35930         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
35931         sysdeps/unix/sparc/sysdep.h
35932         (ENTRY, END): Remove.
35933         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
35934
35935 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
35936
35937         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
35938         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
35939         -DIS_IN_build.
35940
35941         * timezone/README: Update upstream location and email address for
35942         tzcode and tzdata.
35943         * timezone/zdump.c: Update from tzcode 2012b.
35944         * timezone/zic.c: Likewise.
35945
35946         * configure.in (libc_cv_as_needed): Remove test.
35947         * configure: Regenerated.
35948         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
35949         conditional definition.
35950         [$(have-as-needed) != yes] (no-as-needed): Likewise.
35951         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
35952         * config.make.in (have-as-needed): Remove variable.
35953
35954 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
35955             Paul Pluzhnikov  <ppluzhnikov@google.com>
35956
35957         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
35958         strings correctly.
35959
35960 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
35961
35962         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
35963         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
35964         * sysdeps/sh/strlen.S: Likewise.
35965
35966 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35967
35968         * sysdeps/unix/fork.S: Remove file.
35969         * sysdeps/unix/i386/fork.S: Likewise.
35970         * sysdeps/unix/sparc/fork.S: Likewise.
35971
35972         * sysdeps/unix/system.c: Remove file.
35973         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
35974
35975         * sysdeps/unix/getegid.S: Remove file.
35976         * sysdeps/unix/geteuid.S: Likewise.
35977
35978 2012-04-24  Roland McGrath  <roland@hack.frob.com>
35979
35980         * scripts/check-localplt.awk: New file.
35981         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
35982         of diff.
35983         * scripts/data/localplt-generic.data: Add a comment.
35984
35985         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
35986         NODE when __dir_mkfile failed.
35987         * sysdeps/mach/hurd/symlinkat.c: Likewise.
35988         Reported by Ludovic Courtès <ludo@gnu.org>.
35989
35990 2012-04-24  Andreas Jaeger  <aj@suse.de>
35991
35992         * Makerules (common-clean): Also remove gen-as-const-headers
35993         files.
35994
35995 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35996
35997         * Makerules (native-compile): Do not change working directory for
35998         build.  Use $(OUTPUT_OPTION) in command.
35999         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
36000
36001 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36002
36003         [BZ #13886]
36004         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
36005         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
36006         * math/libm-test.inc (floor_test): Add more tests.
36007         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
36008
36009 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
36010
36011         * sysdeps/unix/getdents.c: Remove file.
36012         * sysdeps/unix/sysv/getdents.c: Likewise.
36013         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
36014
36015         * sysdeps/unix/syscalls.list (madvise): Add syscall from
36016         sysdeps/unix/mman/syscalls.list.
36017         (mmap): Likewise.
36018         (mprotect): Likewise.
36019         (msync): Likewise.
36020         (munmap): Likewise.
36021         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
36022         * sysdeps/unix/mman/syscalls.list: Remove.
36023         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
36024
36025         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
36026         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
36027         * configure: Regenerated.
36028         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
36029         $(libgcc_s_suffix).
36030         * config.make.in (libgcc_s_suffix): Remove variable.
36031
36032 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
36033
36034         * sysdeps/unix/sysv/gethostname.c: Move to ...
36035         * sysdeps/posix/gethostname.c: ... here.
36036
36037         * sysdeps/unix/execve.S: Remove file.
36038
36039         * sysdeps/unix/_exit.S: Remove file.
36040
36041 2012-04-23  Andreas Jaeger  <aj@suse.de>
36042
36043         [BZ #13739]
36044         * manual/Makefile: Remove make dist support, there's no
36045         need for a stand-alone documentation tar ball.
36046         (TEXI2DVI): Define always, it's not in Makeconfig.
36047         (dist): Removed.
36048         (tar-it): Removed.
36049         (edition): Removed.
36050         (glibc-doc-$(edition).tar): Removed
36051         (%.Z): Removed.
36052         (%.gz): Removed.
36053         (%.uu): Removed.
36054         (ETAGS): Remove, it's in Makeconfig.
36055         (move-if-change): Remove, it's in Makeconfig.
36056
36057 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
36058
36059         [BZ #13970]
36060         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
36061         (strtod, strtof, strtold, strtol, strtoul, strtoq)
36062         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
36063         (strtod_l, strtof_l, strtold_l): Remove __wur.
36064         It is not necessarily an error to ignore strtol's return value.
36065         One can reliably look at the stored endptr to decide whether
36066         the number had valid syntax.
36067
36068 2012-04-21  Andreas Jaeger  <aj@suse.de>
36069
36070         [BZ #13739]
36071         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
36072
36073 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
36074
36075         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
36076         * sysdeps/unix/sysv/Versions: Remove file.
36077
36078 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
36079
36080         [BZ #13927]
36081         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36082
36083 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
36084
36085         [BZ #7064]
36086         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
36087         version from __vm86.
36088
36089 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
36090
36091         * sysdeps/unix/common/lxstat.c: Remove file.
36092         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
36093
36094         * sysdeps/unix/sysv/Makefile: Remove file.
36095
36096         * sysdeps/unix/sysv/direct.h: Remove file.
36097
36098         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
36099         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
36100         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
36101         * sysdeps/unix/sysv/bits/signum.h: Likewise.
36102         * sysdeps/unix/sysv/bits/stat.h: Likewise.
36103         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
36104         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
36105
36106         * sysdeps/unix/sysv/setrlimit.c: Remove file.
36107
36108         * sysdeps/unix/xmknod.c: Remove file.
36109         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
36110
36111         * sysdeps/unix/sysv/settimeofday.c: Remove file.
36112
36113         * sysdeps/unix/sysv/i386/time.S: Remove file.
36114
36115         * sysdeps/unix/fxstat.c: Remove file.
36116         * sysdeps/unix/xstat.c: Likewise.
36117         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
36118
36119         * sysdeps/unix/sysv/sigaction.c: Remove file.
36120
36121         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
36122         (sysdep_headers): Remove variable.
36123         [termio.h not in sysdep_headers] (generated): Likewise.
36124         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
36125         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
36126         * sysdeps/unix/sysv/tcdrain.c: Likewise.
36127         * sysdeps/unix/sysv/tcflow.c: Likewise.
36128         * sysdeps/unix/sysv/tcflush.c: Likewise.
36129         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
36130         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
36131         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
36132         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
36133         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
36134
36135         * sysdeps/unix/siglist.c: Remove file.
36136
36137         * sysdeps/unix/getppid.S: Remove file.
36138
36139         * sysdeps/unix/mkdir.c: Remove file.
36140         * sysdeps/unix/rmdir.c: Likewise.
36141
36142 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
36143
36144         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
36145         ERR_MAX value.
36146         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
36147         errlist-compat value.
36148
36149 2012-04-18  David S. Miller  <davem@davemloft.net>
36150
36151         * sysdeps/generic/memcopy.h (reg_char): Delete.
36152         * debug/strcat_chk.c: Use char, not reg_char.
36153         * debug/strcpy_chk.c: Likewise.
36154         * debug/strncat_chk.c: Likewise.
36155         * debug/strncpy_chk.c: Likewise.
36156         * string/memchr.c: Likewise.
36157         * string/memrchr.c: Likewise.
36158         * string/rawmemchr.c: Likewise.
36159         * string/strcat.c: Likewise.
36160         * string/strchr.c: Likewise.
36161         * string/strchrnul.c: Likewise.
36162         * string/strcmp.c: Likewise.
36163         * string/strcpy.c: Likewise.
36164         * string/strncat.c: Likewise.
36165         * string/strncmp.c: Likewise.
36166         * string/strncpy.c: Likewise.
36167
36168 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
36169
36170         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
36171         __builtin_memcopy is called when src and dest ranges are known to not
36172         overlap.
36173
36174 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
36175
36176         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
36177         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
36178         fwd_align_merge macro call.
36179         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
36180         bwd_align_merge macro call.
36181         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
36182
36183 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
36184
36185         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
36186         bwd_align_merge macros.
36187         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
36188         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
36189         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
36190
36191 2012-04-18  David S. Miller  <davem@davemloft.net>
36192
36193         * sysdeps/sparc/sparc64/memcopy.h: Delete.
36194
36195 2012-04-18  Andreas Jaeger  <aj@suse.de>
36196
36197         [BZ# 6794]
36198         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
36199         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
36200         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
36201
36202         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
36203         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
36204         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
36205
36206         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
36207         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
36208         Adjust for changed ldbl-128 files.
36209
36210         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
36211         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
36212         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
36213
36214 2012-04-17  David S. Miller  <davem@davemloft.net>
36215
36216         * sysdeps/sparc/sparc32/memcopy.h: Delete.
36217
36218 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
36219
36220         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
36221         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
36222         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
36223         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
36224         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
36225         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
36226
36227 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36228
36229         [BZ #6794]
36230         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
36231         * math/libm-test.inc: Add ilogb errno and exception tests.
36232         * math/w_ilogb.c: New file: ilogb wrapper.
36233         * math/w_ilogbf.c: New file: ilogbf wrapper.
36234         * math/w_ilogbl.c: New file: ilogbl wrapper.
36235         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
36236         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
36237         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
36238         exception being thrown with 0.0 as argument.
36239         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
36240         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
36241         exception being thrown with 0.0 as argument.
36242         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
36243         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
36244         exception being thrown with 0.0 as argument.
36245         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
36246         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
36247         exception being thrown with 0.0 as argument.
36248         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
36249         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
36250         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
36251         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
36252         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
36253         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
36254         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
36255         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
36256         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
36257
36258 2012-04-17  Petr Baudis  <pasky@ucw.cz>
36259
36260         * include/sys/uio.h: Change __vector to __iovec to avoid clash
36261         with altivec.
36262
36263 2012-04-16  Marek Polacek  <polacek@redhat.com>
36264
36265         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
36266
36267 2012-04-16  Marek Polacek  <polacek@redhat.com>
36268
36269         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
36270         operands of fdivp instruction.
36271
36272 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
36273
36274         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
36275         * elf/tst-auditmod3b.c: Likewise.
36276         * elf/tst-auditmod4b.c: Likewise.
36277         * elf/tst-auditmod5b.c: Likewise.
36278         * elf/tst-auditmod6b.c: Likewise.
36279         * elf/tst-auditmod6c.c: Likewise.
36280         * elf/tst-auditmod7b.c: Likewise.
36281         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
36282         * sysdeps/x86_64/preconfigure.in: Likewise.
36283         * sysdeps/x86_64/preconfigure: Regenerated.
36284
36285 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
36286
36287         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
36288         __ILP32__.
36289
36290 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
36291
36292         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
36293         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
36294
36295 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
36296
36297         [BZ #13973]
36298         * locale/iso-639.def: Fix gl language name. Spotted by
36299         Yaron Shahrabani.
36300
36301 2012-04-12  Roland McGrath  <roland@hack.frob.com>
36302
36303         [BZ #2074]
36304         * libio/libio.h (__io_write_fn): Update comment.
36305
36306 2012-04-12  Petr Baudis  <pasky@ucw.cz>
36307
36308         [BZ #2074]
36309         * stdio.texi (Hook Functions): The user provided writer function
36310         is not allowed to return -1.
36311
36312 2012-04-11  David S. Miller  <davem@davemloft.net>
36313
36314         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36315
36316 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
36317
36318         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
36319         Add a leading slash to rtkaio.
36320
36321 2012-04-11  Jim Meyering  <meyering@redhat.com>
36322
36323         [BZ #11959]
36324         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
36325         It is not necessarily an error to ignore fwrite's return
36326         value.  One can reliably use ferror to test for errors after
36327         the fact.
36328
36329 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
36330
36331         * bits/types.h (__snseconds_t): New type.
36332         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
36333
36334         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
36335         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
36336         (__SNSECONDS_T_TYPE): Likewise.
36337         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
36338         (__SNSECONDS_T_TYPE): Likewise.
36339         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
36340         (__SNSECONDS_T_TYPE): Likewise.
36341
36342 2012-04-10  Andreas Jaeger  <aj@suse.de>
36343
36344         [BZ #2636]
36345         * manual/time.texi (Processor Time): Return type of times is
36346         elapsed real time since an arbitrary point in the past.
36347         (CPU Time): Move CLK_TCK from here...
36348         (Processor Time): ...to here.  Correct description.
36349         * manual/conf.texi (Constants for Sysconf): Correct description of
36350         _SC_CLK_TCK.
36351
36352 2012-04-10  David S. Miller  <davem@davemloft.net>
36353
36354         [BZ #13967]
36355         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
36356         where the is a gap between DT_REL(A) and DT_JMPREL.
36357
36358 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
36359
36360         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
36361         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
36362         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
36363
36364 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
36365
36366         * elf/dl-support.c (_dl_inhibit_cache): New variable.
36367         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
36368         (dl_main): Handle --inhibit-cache.
36369         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
36370         _dl_inhibit_cache.
36371         * elf/dl-load.c (_dl_map_object): Use it.
36372         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
36373
36374 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
36375
36376         [BZ #13872]
36377         * sysdeps/i386/fpu/e_powl.S (p78): New object.
36378         (__ieee754_powl): Saturate large exponents rather than testing for
36379         overflow of y*log2(x).
36380         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
36381         * math/libm-test.inc (pow_test): Do not permit spurious overflow
36382         exceptions.
36383
36384         [BZ #11521]
36385         * math/s_ctan.c: Include <float.h>.
36386         (__ctan): Avoid internal overflow or cancellation in calculating
36387         denominator.
36388         * math/s_ctanf.c: Likewise.
36389         * math/s_ctanl.c: Likewise.
36390         * math/s_ctanh.c: Likewise.
36391         * math/s_ctanhf.c: Likewise.
36392         * math/s_ctanhl.c: Likewise.
36393         * math/libm-test.inc (ctan_test): Add more tests.
36394         (ctanh_test): Likewise.
36395         * sysdeps/i386/fpu/libm-test-ulps: Update.
36396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36397
36398 2012-04-09  Andreas Jaeger  <aj@suse.de>
36399
36400         [BZ #6894]
36401         * manual/filesys.texi (Directory Entries): Mention that d_namlen
36402         is an optional BSD extension.
36403
36404         [BZ #10254]
36405         * manual/stdio.texi (Opening Streams): Document additional fopen
36406         parameters.
36407
36408 2012-04-09  Roland McGrath  <roland@hack.frob.com>
36409
36410         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
36411         %eax without telling the compiler.
36412
36413 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
36414
36415         [BZ # 13963]
36416         * manual/install.texi: Use sourceware.org.
36417
36418 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
36419
36420         [BZ #13873]
36421         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
36422         (__ieee754_pow): Generate overflow and underflow using huge*huge
36423         and tiny*tiny rather than just returning constant infinity or zero
36424         for large exponents.
36425         * math/libm-test.inc (pow_test): Require overflow exceptions for
36426         applicable cases of large exponents.
36427
36428         [BZ #706]
36429         * sysdeps/i386/fpu/e_pow.S (p10): New object.
36430         (__ieee754_pow): Use iterative multiplication algorithm only for
36431         integer exponents with absolute value below 1024.  Check for odd
36432         integer exponents when using algorithm for real exponents.
36433         * math/libm-test.inc (pow_test): Add more tests.
36434         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36435
36436 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
36437
36438         [BZ #13705]
36439         * math/libm-test.inc (exp_test): Do not allow overflow exception
36440         on underflow test.
36441
36442 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
36443
36444         [BZ #13705]
36445         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
36446         instead of __kernel_standard_f.
36447
36448 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
36449
36450         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
36451         * sysdeps/x86_64/memset_chk.S: Likewise.
36452
36453 2012-04-08  Andreas Jaeger  <aj@suse.de>
36454
36455         [BZ #10153]
36456         * manual/startup.texi (Environment Access): Describe return value
36457         for putenv and setenv.
36458
36459         [BZ #6895]
36460         * manual/filesys.texi (Directory Entries): Add description for
36461         DT_LNK.
36462
36463         [BZ #6890]
36464         * manual/filesys.texi (Directory Entries): Clarify that it's file
36465         system not operating system in the description of DT_UNKNOWN.
36466
36467         [BZ #6578]
36468         * manual/syslog.texi (closelog): Fix reference, it's openlog.
36469
36470 2012-04-08  Stephen Compall  <s11@member.fsf.org>
36471
36472         [BZ #6649]
36473         * manual/llio.texi (Opening and Closing Files): Add cross
36474         reference to explain mode argument.
36475
36476 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
36477
36478         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
36479         * sysdeps/x86_64/memset_chk.S: Likewise.
36480
36481 2012-04-07  David S. Miller  <davem@davemloft.net>
36482
36483         * elf/elf.h (R_SPARC_WDISP10): Define.
36484         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
36485         R_SPARC_SIZE32.
36486         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
36487         R_SPARC_SIZE64 and R_SPARC_H34.
36488
36489 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
36490
36491         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
36492         conditions and remove no longer applicable assertion.
36493
36494 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
36495
36496         * bits/byteswap.h: Include <features.h>.
36497         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
36498         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
36499
36500 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
36501
36502         * bits/byteswap.h (__bswap_16): Removed.
36503         Include <bits/byteswap-16.h> to get __bswap_16.
36504         * sysdeps/i386/bits/byteswap.h: Likewise.
36505         * sysdeps/s390/bits/byteswap.h: Likewise.
36506         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36507         * bits/byteswap-16.h: New file.
36508         * sysdeps/i386/bits/byteswap-16.h: Likewise.
36509         * sysdeps/s390/bits/byteswap-16.h: Likewise.
36510         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
36511         * string/Makefile (headers): Add bits/byteswap-16.h.
36512
36513 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36514
36515         [BZ #13895]
36516         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
36517         extra indirection.
36518         * nss/Makefile (tests-static, tests): Add tst-nss-static.
36519         * nss/tst-nss-static.c: New.
36520
36521 2012-04-06  Robert Millan  <rmh@gnu.org>
36522
36523         [BZ #6486]
36524         * manual/llio.texi (File Position Primitive): lseek
36525         refers to WHENCE when it really means OFFSET.
36526
36527 2012-04-06  Andreas Jaeger  <aj@suse.de>
36528
36529         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
36530         strncmp declarations.
36531
36532         * abilist/libc.abilist: Add __poll and __ppoll.
36533
36534 2012-04-05  David S. Miller  <davem@davemloft.net>
36535
36536         * scripts/check-local-headers.sh: Accept a host triplet in the
36537         path matched by the exclude regexp.
36538
36539         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
36540         definition.
36541         * sysdeps/powerpc/powerpc32/dl-machine.h
36542         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
36543         * sysdeps/s390/s390-32/dl-machine.h
36544         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
36545         * sysdeps/sparc/sparc32/dl-machine.h
36546         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
36547         * sysdeps/sparc/sparc64/dl-machine.h
36548         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
36549
36550         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
36551         lazy binding.
36552         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
36553         undefined symbol errors.
36554
36555         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
36556         DT_NEEDED entries.
36557
36558 2012-04-05  Michael Matz  <matz@suse.de>
36559
36560         [BZ #13592]
36561         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
36562
36563 2012-04-05  Andreas Jaeger  <aj@suse.de>
36564
36565         [BZ #13908]
36566         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
36567         comment.
36568
36569 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36570
36571         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
36572         which ROUND is no valid rounding mode.
36573
36574 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36575
36576         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
36577         read again.
36578         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
36579
36580 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36581
36582         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
36583         an exception using FPU order intentionally.
36584
36585 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36586
36587         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
36588         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
36589         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
36590         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
36591
36592 2012-04-05  Simon Josefsson  <simon@josefsson.org>
36593
36594         [BZ #12340]
36595         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
36596         EINVAL when BUFLEN is too smal.
36597
36598 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
36599
36600         [BZ #13553]
36601         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
36602         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
36603
36604 2012-04-03  Andreas Jaeger  <aj@suse.de>
36605
36606         [BZ #13938]
36607         * manual/setjmp.texi (System V contexts): Fix sentence.
36608
36609         [BZ #13926]
36610         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
36611         New macro for this case.
36612         [!__GNUC__] (__bswap_64): New inline function for this case.
36613         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36614         * bits/byteswap.h: Likewise.
36615         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
36616         ull, guard with __GLIBC_HAVE_LONG_LONG.
36617
36618         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
36619         __GLIBC_HAVE_LONG_LONG.
36620
36621         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
36622         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
36623
36624 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
36625
36626         [BZ #13691]
36627         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
36628         inptr and inend, rather than using last_ch.
36629
36630 2012-04-02  David S. Miller  <davem@davemloft.net>
36631
36632         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
36633         * stdio-common/printf-parse.h (read_int): Change return type to
36634         'int', return -1 on INT_MAX overflow.
36635         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
36636         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
36637         overflows INT_MAX.  Check for overflow of in-format-string precision
36638         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
36639         SIZE_MAX not INT_MAX for integer overflow test.
36640         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
36641         skip the construct in the format string but do not record anything.
36642         * stdio-common/bug22.c: Adjust to test both width/prevision
36643         INT_MAX overflow as well as total length INT_MAX overflow.  Check
36644         explicitly for proper errno values.
36645
36646 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
36647
36648         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
36649         CHAR_MAX.
36650         * string/test-strcmp.c [! WIDE]: Likewise.
36651         * time/tst-mktime2.c: Likewise for INT_MAX.
36652         * string/test-string.h: #include <sys/param.h> for MIN.
36653
36654         * csu/init-first.c (__libc_init_first): Call __ctype_init.
36655         * sysdeps/i386/init-first.c (init): Likewise.
36656         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
36657         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
36658         * sysdeps/sh/init-first.c (init): Likewise.
36659
36660 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
36661
36662         * po/ru.po: Update from translation team.
36663         * po/vi.po: Likewise.
36664
36665 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
36666
36667         * resolv/nss_dns/dns-host.c: Merge copyright years.
36668
36669 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
36670
36671         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
36672         Optimize memcpy with prefetch if
36673         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
36674         src, dst pointers have unequal 16 byte alignments.
36675
36676 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
36677
36678         [BZ #13928]
36679         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
36680         from a CNAME entry and return the minimum ttl for the query.
36681         (gaih_getanswer_slice): Likewise.
36682
36683 2012-03-30  Jeff Law  <law@redhat.com>
36684
36685         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
36686         due to long keys.
36687         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
36688         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
36689
36690         * resolv/nss_dns/dns-host.c: Update copyright year.
36691
36692 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
36693
36694         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
36695         requests to save a system call.  Fix check that all bytes are sent.
36696
36697         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
36698         comments for sendmmsg.
36699
36700 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
36701
36702         [BZ #13691]
36703         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
36704         with only 1 character between 0x0041 and 0x01b0.
36705         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
36706         * wcsmbs/tst-mbsnrtowcs.c: New file.
36707
36708 2012-03-29  David S. Miller  <davem@davemloft.net>
36709
36710         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
36711         small copies by hand.
36712
36713 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
36714
36715         [BZ #13761]
36716         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
36717         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
36718         group memberships.
36719
36720 2012-03-28  David S. Miller  <davem@davemloft.net>
36721
36722         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
36723         that branches into memcpy.
36724         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
36725         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
36726         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
36727         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
36728         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
36729         bits.
36730         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
36731         implementation too.
36732         * sysdeps/sparc/mempcpy.S: New file.
36733
36734         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
36735         the IFUNC routine in the libc case.
36736         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
36737
36738         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
36739         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
36740         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
36741         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
36742         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
36743         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
36744         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
36745         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
36746
36747         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
36748         loop to 256 bytes instead of 64 bytes and fix test signedness.
36749
36750         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
36751         * sysdeps/sparc/sparc32/Makefile: rather than here...
36752         * sysdeps/sparc/sparc64/Makefile: and here.
36753
36754 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
36755
36756         * malloc/mallocbug.c: Avoid warnings about unused variables.
36757
36758 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
36759
36760         [BZ #13760]
36761         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
36762         in the right place. Discard and retry query if response is
36763         larger than input buffer size.
36764
36765 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
36766
36767         [BZ #369]
36768         [BZ #2678]
36769         [BZ #3866]
36770         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
36771         x for large integer exponent.
36772         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36773         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
36774         sign of result as needed afterwards.
36775         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
36776         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
36777         result for underflowing pow the same as for overflow.
36778         (__kernel_standard_l): Handle powl overflow and underflow here
36779         rather than calling __kernel_standard.
36780         * math/libm-test.inc (pow_test): Add more tests.
36781
36782         [BZ #3868]
36783         [BZ #13879]
36784         [BZ #13910]
36785         [BZ #13911]
36786         [BZ #13912]
36787         [BZ #13913]
36788         [BZ #13915]
36789         [BZ #13916]
36790         [BZ #13917]
36791         [BZ #13918]
36792         [BZ #13919]
36793         [BZ #13920]
36794         [BZ #13921]
36795         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
36796         * sysdeps/ieee754/k_standard.c: Include <float.h>.
36797         (__kernel_standard_l): New function.
36798         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
36799         __kernel_standard.
36800         * math/w_acosl.c (__acosl): Likewise.
36801         * math/w_asinl.c (__asinl): Likewise.
36802         * math/w_atan2l.c (__atan2l): Likewise.
36803         * math/w_atanhl.c (__atanhl): Likewise.
36804         * math/w_coshl.c (__coshl): Likewise.
36805         * math/w_exp10l.c (__exp10l): Likewise.
36806         * math/w_exp2l.c (__exp2l): Likewise.
36807         * math/w_fmodl.c (__fmodl): Likewise.
36808         * math/w_hypotl.c (__hypotl): Likewise.
36809         * math/w_j0l.c (__j0l, __y0l): Likewise.
36810         * math/w_j1l.c (__j1l, __y1l): Likewise.
36811         * math/w_jnl.c (__jnl, __ynl): Likewise.
36812         * math/w_lgammal.c (__lgammal): Likewise.
36813         * math/w_log10l.c (__log10l): Likewise.
36814         * math/w_log2l.c (__log2l): Likewise.
36815         * math/w_logl.c (__logl): Likewise.
36816         * math/w_powl.c (__powl): Likewise.
36817         * math/w_remainderl.c (__remainderl): Likewise.
36818         * math/w_scalbl.c (sysv_scalbl): Likewise.
36819         * math/w_sinhl.c (__sinhl): Likewise.
36820         * math/w_sqrtl.c (__sqrtl): Likewise.
36821         * math/w_tgammal.c (__tgammal): Likewise.
36822         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
36823         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
36824         * math/libm-test.inc (acos_test): Add more tests.
36825         (acosh_test): Likewise.
36826         (asin_test): Likewise.
36827         (atanh_test): Likewise.
36828         (exp_test): Likewise.
36829         (exp10_test): Likewise.
36830         (exp2_test): Likewise.
36831         (expm1_test): Likewise.
36832         (lgamma_test): Likewise.
36833         (log_test): Likewise.
36834         (log10_test): Likewise.
36835         (log1p_test): Likewise.
36836         (log2_test): Likewise.
36837         (pow_test): Do not allow some spurious overflow exceptions.
36838         (sqrt_test): Add more tests.
36839         (tgamma_test): Likewise.
36840         (y0_test): Likewise.
36841         (y1_test): Likewise.
36842         (yn_test): Likewise.
36843
36844 2012-03-27  Anton Blanchard  <anton@samba.org>
36845
36846         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
36847         MAP_HUGETLB.
36848         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36849         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36850         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36851
36852 2012-03-27  David S. Miller  <davem@davemloft.net>
36853
36854         * conform/Makefile: Run run-conformtest.sh using $(BASH).
36855
36856         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
36857         have-as-vis3 check.
36858
36859 2012-03-27  Andreas Jaeger  <aj@suse.de>
36860
36861         * sysdeps/x86_64/elf/configure.in: Moved to ...
36862         * sysdeps/x86_64/configure.in: ... here.
36863         * sysdeps/x86_64/elf/start.S: Moved to ...
36864         * sysdeps/x86_64/start.S: ... here.
36865         * sysdeps/x86_64/elf/configure: Delete.
36866
36867         * sysdeps/x86_64/configure.in: Merge contents from
36868         sysdeps/i386/configure.in (without i686 check).
36869
36870         * sysdeps/i386/elf/Versions: Merge into ...
36871         * sysdeps/i386/Versions: ... this.
36872         * sysdeps/i386/elf/Versions: Delete file.
36873         * sysdeps/i386/elf/start.S: Moved to ...
36874         * sysdeps/i386/start.S: ...here.
36875         * sysdeps/i386/elf/configure.in: Merge into...
36876         * sysdeps/i386/configure.in: ...here.
36877         * sysdeps/i386/elf/configure.in: Delete file.
36878         * sysdeps/i386/elf/configure: Delete file.
36879
36880         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
36881         * debug/backtracesyms.c: ... here.
36882         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
36883         * debug/backtracesymsfd.c: ... here.
36884         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
36885         * sysdeps/generic/ifunc-sel.h: ... here.
36886
36887         * sysdeps/unix/i386/start.c: Delete file.
36888         * sysdeps/unix/sparc/start.c: Delete file.
36889         * sysdeps/unix/start.c: Delete file.
36890
36891         * sysdeps/sh/elf/configure.in: Moved to ...
36892         * sysdeps/sh/configure.in: ... here.
36893         * sysdeps/sh/elf/start.S: Moved to ...
36894         * sysdeps/sh/start.S: ... here.
36895         * sysdeps/sh/elf/configure: Delete file.
36896
36897         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
36898         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
36899         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
36900         * sysdeps/powerpc/powerpc64/entry.h: ... here.
36901         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
36902         * sysdeps/powerpc/powerpc64/start.S: here.
36903         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
36904         * sysdeps/powerpc/powerpc64/Makefile: ... this.
36905         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
36906         * sysdeps/powerpc/powerpc64/configure.in: ... this.
36907         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
36908
36909         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
36910         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
36911         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
36912         * sysdeps/powerpc/powerpc32/start.S: ... here.
36913         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
36914         * sysdeps/powerpc/powerpc32/configure.in: ... this.
36915         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
36916
36917         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
36918         * sysdeps/powerpc/ifunc-sel.h: ... here.
36919         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
36920         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
36921
36922         * sysdeps/sparc/elf/configure.in: Moved to ...
36923         * sysdeps/sparc/configure.in: ... here.
36924         * sysdeps/sparc/elf/configure: Delete file.
36925         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
36926         * sysdeps/sparc/sparc32/start.S: ... here.
36927         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
36928         * sysdeps/sparc/sparc64/start.S: ... here.
36929         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
36930         * sysdeps/sparc/sparc32/Makefile: ... this.
36931         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
36932         * sysdeps/sparc/sparc64/Makefile: ... this.
36933
36934         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
36935         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
36936         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
36937         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
36938         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
36939         * sysdeps/s390/s390-32/setjmp.S: ... here.
36940         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
36941         * sysdeps/s390/s390-32/configure.in: ... here.
36942         * sysdeps/s390/s390-32/elf/configure: Delete file.
36943         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
36944         * sysdeps/s390/s390-32/start.S: ... here.
36945
36946         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
36947         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
36948         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
36949         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
36950         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
36951         * sysdeps/s390/s390-64/setjmp.S: ... here.
36952         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
36953         * sysdeps/s390/s390-64/configure.in: ... here
36954         * sysdeps/s390/s390-64/elf/configure: Delete file.
36955         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
36956         * sysdeps/s390/s390-64/start.S: ... here.
36957         * sysdeps/s390/s390-64/elf/configure: Delete.
36958
36959         * configure.in: Remove support for elf directories in sysdeps.
36960
36961         * configure: Regenerated.
36962         * sysdeps/i386/configure: Regenerated.
36963         * sysdeps/powerpc/powerpc32/configure: Regenerated.
36964         * sysdeps/powerpc/powerpc64/configure: Regenerated.
36965         * sysdeps/s390/s390-32/configure: Regenerated.
36966         * sysdeps/s390/s390-64/configure: Regenerated.
36967         * sysdeps/sh/configure: Regenerated.
36968         * sysdeps/sparc/configure: Regenerated.
36969         * sysdeps/x86_64/configure: Regenerated.
36970
36971 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
36972
36973         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36974
36975         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
36976         denormal result into account.
36977
36978 2012-03-25  Roland McGrath  <roland@hack.frob.com>
36979
36980         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
36981         Reported by Allan McRae <allan@archlinux.org>.
36982
36983 2012-03-23  Jeff Law  <law@redhat.com>
36984
36985         * nss/getnssent.c (__nss_getent): Fix typo.
36986
36987 2012-03-23  David S. Miller  <davem@davemloft.net>
36988
36989         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36990
36991 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
36992
36993         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
36994         to pad to uint64_t for each field.
36995         (dl_tls_index): Replace unsigned long with uint64_t.
36996
36997 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
36998         Paul Pluzhnikov  <ppluzhnikov@google.com>
36999
37000         [BZ #6528]
37001         * grp/Makefile (otherlibs): Don't set it.
37002         * inet/Makefile (otherlibs): Likewise.
37003         * login/Makefile (otherlibs): Likewise.
37004         * nscd/Makefile (otherlibs): Likewise.
37005         * posix/Makefile (otherlibs): Likewise.
37006         * pwd/Makefile (otherlibs): Likewise.
37007         * rt/Makefile (otherlibs): Likewise.
37008         * sunrpc/Makefile (otherlibs): Likewise.
37009         * nss/Makefile (otherlibs): Likewise.
37010         Add libnss_files to routines and static-only-routines.
37011         ($(objpfx)getent): Remove rule.
37012         * resolv/Makefile: Add libnss_dns and libresolv to routines and
37013         static-only-routines.
37014
37015 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
37016
37017         [BZ #13892]
37018         * math/s_cexp.c: Include <float.h>.
37019         (__cexp): Handle exp result overflowing not necessarily
37020         overflowing both real and imaginary parts of result.
37021         * math/s_cexpf.c: Likewise.
37022         * math/s_cexpl.c: Likewise.
37023         * math/libm-test.inc (cexp_test): Add more tests.
37024         * sysdeps/i386/fpu/libm-test-ulps: Update.
37025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37026
37027 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37028
37029         * include/link.h (ELFW): New macro.
37030         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
37031         Replace ELF64_R_TYPE with ELFW(R_TYPE).
37032
37033 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37034
37035         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
37036         with uint64_t.
37037
37038 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37039
37040         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
37041         declaration.
37042         (struct La_x32_retval): Likewise.
37043
37044 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37045
37046         * sysdeps/x86_64/preconfigure.in: New file.
37047         * sysdeps/x86_64/preconfigure: New generated file.
37048
37049 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
37050
37051         [BZ #13824]
37052         * math/e_exp2l.c: Include <float.h>.
37053         (__ieee754_exp2l): Handle overflow and underflow cases
37054         separately.  Only pass fractional part of argument to
37055         __ieee754_expl.
37056         * math/libm-test.inc (exp2_test): Add more tests.
37057
37058         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
37059         negating x to take absolute value.
37060         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
37061         Likewise.
37062         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
37063         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
37064         Likewise.
37065         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
37066         computing low part if x was negated.
37067         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
37068
37069 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
37070
37071         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
37072         la_x32_gnu_pltexit.
37073         (pltexit): Cast int_retval to ptrdiff_t.
37074         * elf/tst-auditmod3b.c: Likewise.
37075         * elf/tst-auditmod4b.c: Likewise.
37076         * elf/tst-auditmod5b.c: Likewise.
37077         * elf/tst-auditmod6b.c: Likewise.
37078         * elf/tst-auditmod6c.c: Likewise.
37079         * elf/tst-auditmod7b.c: Likewise.
37080
37081         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
37082         and x32_gnu_pltexit.
37083
37084         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
37085         __ELF_NATIVE_CLASS.
37086         (La_x32_regs): New macro.
37087         (La_x32_retval): Likewise.
37088         (la_x32_gnu_pltenter): New function prototype.
37089         (la_x32_gnu_pltexit): Likewise.
37090
37091 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
37092
37093         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
37094         exponent.
37095
37096         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37097
37098         * configure.in (libc_cv_cc_nofma): Check for option to disable
37099         generation of FMA instructions.
37100         * configure: Regenerate.
37101         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
37102         * sysdeps/ieee754/dbl-64/Makefile: New file.
37103         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37104         Remove brandred-fma4.
37105         (CFLAGS-brandred-fma4.c): Remove.
37106         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
37107         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
37108         define.
37109         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
37110         define.
37111
37112 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
37113
37114         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
37115         LLONG_MAX != LONG_MAX.
37116         (_itoa_word): Use _ITOA_WORD_TYPE on value.
37117         (_fitoa_word): Likewise.
37118         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
37119         LLONG_MAX != LONG_MAX.
37120         * stdio-common/_itowa.h: Include <_itoa.h>.
37121         (_itowa_word): Use _ITOA_WORD_TYPE on value.
37122         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
37123         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
37124         only if not defined.
37125         (_ITOA_WORD_TYPE): Likewise.
37126         (_itoa_word): Use _ITOA_WORD_TYPE on value.
37127         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
37128
37129 2012-03-21  David S. Miller  <davem@davemloft.net>
37130
37131         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37132
37133 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
37134
37135         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
37136         of x86_64 when setting libc_cv_slibdir, libdir and
37137         libc_cv_localedir.
37138         * sysdeps/unix/sysv/linux/configure: Regenerated.
37139
37140 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
37141
37142         * manual/lang.texi (Old Varargs): Remove section.
37143         (How Variadic): Update menu.
37144         (va_start): Do not mention varargs.h.
37145
37146 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
37147             Joseph Myers  <joseph@codesourcery.com>
37148
37149         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
37150         link test.
37151         * configure: Regenerated.
37152
37153 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
37154
37155         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
37156         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
37157         conformtest.pl
37158
37159 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
37160
37161         * NOTES: Remove.
37162         * Makefile (files-for-dist): Remove NOTES.
37163         (NOTES): Remove rule.
37164         * README: Don't refer to NOTES.
37165         * manual/creature.texi: Don't include macros.texi.
37166         * manual/intro.texi (creature.texi): Remove comment referring to
37167         NOTES.
37168
37169         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
37170         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
37171         * configure: Regenerated.
37172         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
37173         LIBC_TRY_CC_OPTION.
37174         (libc_cv_as_i686): Likewise.
37175         (libc_cv_cc_avx): Likewise.
37176         (libc_cv_cc_sse2avx): Likewise.
37177         (libc_cv_cc_fma4): Likewise.
37178         (libc_cv_cc_novzeroupper): Likewise.
37179         * sysdeps/i386/configure: Regenerated.
37180
37181         [BZ #13883]
37182         * sysdeps/i386/fpu/s_cexp.S: Remove.
37183         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
37184         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
37185         * math/libm-test.inc (cexp_test): Add more tests.
37186         * sysdeps/i386/fpu/libm-test-ulps: Update.
37187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37188
37189 2012-03-21  Allan McRae  <allan@archlinux.org>
37190
37191         * timezone/Makefile: Do not install iso3166.tab and zone.tab
37192
37193 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
37194
37195         [BZ #13871]
37196         * math/w_exp2.c: Do not include <float.h>.
37197         (o_threshold, u_threshold): Remove.
37198         (__exp2): Calculate result before checking finiteness and calling
37199         __kernel_standard.
37200         * math/w_exp2f.c: Likewise.
37201         * math/w_exp2l.c: Likewise.
37202         * math/libm-test.inc (exp2_test): Require overflow exception for
37203         1e6 input.
37204
37205         [BZ #3866]
37206         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
37207         range of signed 64-bit integers before using fistpll.  Remove
37208         checks for whether integers fit in mantissa bits.
37209         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
37210         the range of signed 32-bit integers before using fistpl.  Remove
37211         checks for whether integers fit in mantissa bits.
37212         * sysdeps/i386/fpu/e_powl.S (p64): New object.
37213         (__ieee754_powl): Test for y outside the range of signed 64-bit
37214         integers before using fistpll.  Reduce 64-bit values to 63-bit
37215         ones as needed.
37216         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
37217         divide-by-zero is raised for zero to large negative powers.
37218         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
37219         (__ieee754_powl): Test for y outside the range of signed 64-bit
37220         integers before using fistpll.  Reduce 64-bit values to 63-bit
37221         ones as needed.
37222         * math/libm-test.inc (pow_test): Add more tests.
37223
37224 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
37225
37226         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
37227         <stdio-common/_itoa.h>.
37228         * debug/segfault.c: Likewise.
37229         * elf/dl-cache.c: Likewise.
37230         * elf/dl-minimal.c: Likewise.
37231         * elf/dl-misc.c: Likewise.
37232         * elf/dl-sysdep.c: Likewise.
37233         * elf/dl-version.c: Likewise.
37234         * elf/rtld.c: Likewise.
37235         * hurd/hurdsock.c: Likewise.
37236         * hurd/lookup-retry.c: Likewise.
37237         * malloc/malloc.c: Likewise.
37238         * malloc/mtrace.c: Likewise.
37239         * nscd/nscd_getgr_r.c: Likewise.
37240         * nscd/nscd_getpw_r.c: Likewise.
37241         * nscd/nscd_getserv_r.c: Likewise.
37242         * posix/getopt_init.c: Likewise.
37243         * posix/wordexp.c: Likewise.
37244         * stdio-common/_itoa.c: Likewise.
37245         * stdio-common/printf_fphex.c: Likewise.
37246         * stdio-common/vfprintf.c: Likewise.
37247         * string/_strerror.c: Likewise.
37248         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
37249         * sysdeps/i386/i686/hp-timing.h: Likewise.
37250         * sysdeps/mach/_strerror.c: Likewise.
37251         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
37252         * sysdeps/mach/hurd/sethostid.c: Likewise.
37253         * sysdeps/mach/hurd/xmknodat.c: Likewise.
37254         * sysdeps/mach/xpg-strerror.c: Likewise.
37255         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
37256         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
37257         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
37258         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
37259         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
37260         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
37261         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
37262         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
37263         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
37264         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
37265         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
37266         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
37267         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
37268         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
37269         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
37270         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
37271         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
37272         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
37273         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
37274         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
37275         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
37276
37277         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
37278
37279         * stdio-common/_itoa.h: Moved to ...
37280         * sysdeps/generic/_itoa.h: Here.
37281
37282         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
37283
37284         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
37285         instead of "_itoa.h" and "_itowa.h".
37286         * stdio-common/vfprintf.: Likewise.
37287
37288 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
37289
37290         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
37291         <bits/wordsize.h>.
37292         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
37293         (__signbit): Likwise.
37294         (llrintf): Likwise.
37295         (llrint): Likwise.
37296
37297 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
37298
37299         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
37300         __WORDSIZE != 64.
37301
37302 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
37303
37304         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
37305         OVERFLOW_EXCEPTION_OK.
37306         * math/libm-test.inc ("Philosophy"): Update comment about
37307         exception testing.
37308         (OVERFLOW_EXCEPTION): Define.
37309         (OVERFLOW_EXCEPTION_OK): Likewise.
37310         (INVALID_EXCEPTION_OK): Renumber.
37311         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
37312         (IGNORE_ZERO_INF_SIGN): Likewise.
37313         (test_exceptions): Handle FE_OVERFLOW.
37314         (exp10_test): Expect overflow exceptions.
37315         (exp2_test): Likewise.
37316         (expm1_test): Likewise.
37317         (nextafter_test): Likewise.
37318         (pow_test): Likewise.
37319         (scalbn_test): Likewise.
37320         (scalbln_test): Likewise.
37321
37322 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37323
37324         * sysdeps/x86_64/bits/atomic.h
37325         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
37326         64bit integer.
37327         (atomic_exchange_acq): Likewise.
37328         (__arch_exchange_and_add_body): Likewise.
37329         (__arch_add_body): Likewise.
37330         (atomic_add_negative): Likewise.
37331         (atomic_add_zero): Likewise.
37332
37333 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37334
37335         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
37336         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
37337
37338 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37339
37340         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
37341         Check __x86_64__ instead of __WORDSIZE.
37342
37343 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37344
37345         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
37346
37347 2012-03-19  David S. Miller  <davem@davemloft.net>
37348
37349         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37350
37351         * sysdeps/sparc/fpu/fenv_private.h: New file.
37352         * sysdeps/sparc/fpu/math_private.h: Use it.
37353         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
37354         Remove.
37355         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
37356         (libc_feholdexcept_setroundl): Remove.
37357         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
37358         Remove.
37359         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
37360         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
37361
37362 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37363
37364         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
37365         int64_t instead of long int.
37366         (INSERT_WORDS64): Likwise.
37367
37368 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37369
37370         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
37371         _Unwind_GetCFA return to _Unwind_Ptr first.
37372
37373 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
37374
37375         [BZ #13629]
37376         * math/s_clog.c: Include <float.h>.
37377         (__clog): Scale large or subnormal inputs.
37378         * math/s_clogf.c: Likewise.
37379         * math/s_clogl.c: Likewise.
37380         * math/s_clog10.c: Include <float.h>.
37381         (M_LOG10_2): Define.
37382         (__clog10): Scale large or subnormal inputs.
37383         * math/s_clog10f.c: Likewise.
37384         * math/s_clog10l.c: Likewise.
37385         * math/libm-test.inc (clog_test): Add more tests.
37386         (clog10_test): Likewise.
37387         * sysdeps/i386/fpu/libm-test-ulps: Update.
37388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37389
37390         [BZ #11451]
37391         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
37392         x and y.
37393         * math/libm-test.inc (atan2_test): Add another test.
37394
37395         * Makerules (common-objdir-compile): Remove.
37396         * sysdeps/unix/Makefile (config-generated): Do not add
37397         $(unix-generated) to variable.
37398         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
37399         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
37400         Remove rule.
37401         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
37402         Likewise.
37403         [generic bits/local_lim.h] (before-compile): Do not append to
37404         variable.
37405         [generic bits/local_lim.h] (common-generated): Likewise.
37406         [generic sys/param.h] (before-compile): Do not append to variable.
37407         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
37408         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
37409         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
37410         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
37411         include.
37412         [generic sys/param.h] (sys/param.h-includes): Remove variable.
37413         [generic sys/param.h] (sys/param.h-includes): Remove rule.
37414         [generic sys/param.h] ($(addprefix
37415         $(common-objpfx),$(sys/param.h-includes))): Likewise.
37416         [generic sys/param.h] (common-generated): Do not append to
37417         variable.
37418         [generic sys/param.h] (sysdep_headers): Likewise.
37419         [generic bits/errno.h] (before-compile): Do not append to
37420         variable.
37421         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
37422         rule.
37423         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
37424         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
37425         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
37426         [generic bits/errno.h] (common-generated): Do not append to
37427         variable.
37428         [generic bits/ioctls.h] (before-compile): Do not append to
37429         variable.
37430         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
37431         rule.
37432         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
37433         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
37434         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
37435         rule.
37436         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
37437         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
37438         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
37439         [generic bits/ioctls.h] (common-generated): Do not append to
37440         variable.
37441         [generic sys/syscall.h] (syscall.h): Remove variable.
37442         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
37443         rule.
37444         [generic sys/syscall.h] (before-compile): Do not append to
37445         variable.
37446         [generic sys/syscall.h] (common-generated): Likewise.
37447         * sysdeps/unix/errnos-tmpl.c: Remove file.
37448         * sysdeps/unix/errnos.awk: Likewise.
37449         * sysdeps/unix/ioctls-tmpl.c: Likewise.
37450         * sysdeps/unix/ioctls.awk: Likewise.
37451         * sysdeps/unix/mk-local_lim.c: Likewise.
37452         * sysdeps/unix/snarf-ioctls: Likewise.
37453
37454 2012-03-19  Richard Henderson  <rth@twiddle.net>
37455
37456         * sysdeps/i386/fpu/fenv_private.h: New file.
37457         * sysdeps/i386/fpu/math_private.h: Use it.
37458         (math_opt_barrier, math_force_eval): Remove.
37459         (libc_feholdexcept_setround_53bit): Remove.
37460         (libc_feupdateenv_53bit): Remove.
37461         * sysdeps/x86_64/fpu/math_private.h: Likewise.
37462         (math_opt_barrier, math_force_eval): Remove.
37463         (libc_feholdexcept): Remove.
37464         (libc_feholdexcept_setround): Remove.
37465         (libc_fetestexcept, libc_fesetenv): Remove.
37466         (libc_feupdateenv_test): Remove.
37467         (libc_feupdateenv, libc_feholdsetround): Remove.
37468         (libc_feresetround): Remove.
37469
37470         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
37471         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
37472
37473         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
37474         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
37475         (libc_feupdateenv_testl): New.
37476         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
37477         (libc_feupdateenv_testf): New.
37478         (libc_feupdateenv): Use libc_feupdateenv_test.
37479         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
37480         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
37481
37482         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
37483         (libc_feholdsetroundf, libc_feholdsetroundl): New.
37484         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
37485         (libc_feresetround_noex): New.
37486         (libc_feresetround_noexf): New.
37487         (libc_feresetround_noexl): New.
37488         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
37489         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
37490         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
37491         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
37492         SET_RESTORE_ROUND.
37493         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
37494         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
37495         (__cos): Likewise.
37496         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
37497         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
37498         SET_RESTORE_ROUND_NOEX.
37499         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
37500         SET_RESTORE_ROUND_NOEXF.
37501         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
37502         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
37503         (libc_feholdsetroundf): New.
37504         (libc_feresetround, libc_feresetroundf): New.
37505
37506         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
37507         (libc_feholdexcept_setround_53bit): Convert from macro to function.
37508         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
37509
37510         * sysdeps/generic/math_private.h: Include <fenv.h>.
37511         (default_libc_feholdexcept): New.
37512         (default_libc_feholdexcept_setround): New.
37513         (default_libc_fesetenv, default_libc_feupdateenv): New.
37514         (libc_feholdexcept): Only define if undefined.
37515         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
37516         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
37517         (libc_feholdexcept_setroundl): Likewise.
37518         (libc_feholdexcept_setround_53bit): Likewise.
37519         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
37520         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
37521         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
37522         (libc_feupdateenv_53bit): Likewise.
37523         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
37524         (libc_feholdexcept): Convert from macro to inline function.
37525         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
37526         (libc_fesetenv, libc_feupdateenv): Likewise.
37527
37528         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
37529         not previously defined.
37530         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
37531         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
37532         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
37533         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
37534         * sysdeps/ieee754/flt-32/math_private.h: New file.
37535         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
37536         math_private.h below SET_FLOAT_WORD.
37537         (__isnan, __isinf_ns, __finite): Remove.
37538         (__isnanf, __isinf_nsf, __finitef): Remove.
37539
37540 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
37541
37542         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37543
37544 2012-03-17  David S. Miller  <davem@davemloft.net>
37545
37546         [BZ #6471]
37547         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
37548         for 2.16.
37549
37550 2012-03-16  David S. Miller  <davem@davemloft.net>
37551
37552         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
37553         warnings.
37554
37555         [BZ #6471]
37556         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
37557         properly.
37558         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
37559         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
37560         sysdep_routines when subdir is sysvipc.
37561         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
37562         __getshmlba helper.
37563
37564         * sysdeps/sparc/fpu/libm-test/ulps: Update.
37565
37566 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37567
37568         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
37569         [__LP64__].
37570
37571 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37572
37573         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
37574         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
37575         (__lround): Renamed to ...
37576         (__llround): This.  Replace long int with long long int.
37577         Define lround functions as aliases of llround functions.
37578         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
37579
37580 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37581
37582         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
37583         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
37584         adresses to uintptr_t.  Replace "long int" and "unsigned long
37585         int" with "greg_t" on va_arg.
37586
37587 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37588
37589         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
37590         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
37591
37592         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
37593         Move e_machine check before EI_CLASS check.  Handle x32
37594         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
37595         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
37596         SKIP_EM_IA_64 and include
37597         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
37598
37599         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
37600         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
37601         (add_system_dir): New macro.
37602
37603         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
37604         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
37605
37606 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37607
37608         [BZ #2551]
37609         [BZ #2552]
37610         [BZ #2553]
37611         [BZ #2554]
37612         [BZ #2562]
37613         [BZ #2563]
37614         [BZ #2565]
37615         [BZ #2566]
37616         [BZ #2576]
37617         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
37618         (y0): Likewise.
37619         * math/w_j0f.c (j0f): Likewise.
37620         (y0f): Likewise.
37621         * math/w_j0l.c (__j0l): Likewise.
37622         (__y0l): Likewise.
37623         * math/w_j1.c (j1): Likewise.
37624         (y1): Likewise.
37625         * math/w_j1f.c (j1f): Likewise.
37626         (y1f): Likewise.
37627         * math/w_j1l.c (__j1l): Likewise.
37628         (__y1l): Likewise.
37629         * math/w_jn.c (jn): Likewise.
37630         (yn): Likewise.
37631         * math/w_jnf.c (jnf): Likewise.
37632         (ynf): Likewise.
37633         * math/w_jnl.c (__jnl): Likewise.
37634         (__ynl): Likewise.
37635         * math/libm-test.inc (j0_test): Add more tests.
37636         (j1_test): Likewise.
37637         (jn_test): Likewise.  Add trailing semicolon to existing test.
37638         (y0_test): Likewise.
37639         (y1_test): Likewise.
37640         * sysdeps/i386/fpu/libm-test-ulps: Update.
37641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37642
37643         [BZ #13851]
37644         [BZ #13854]
37645         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
37646         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
37647         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
37648         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
37649         (__tanl): Set errno for infinite argument.
37650         * sysdeps/i386/fpu/mptan.c: Remove.
37651         * sysdeps/i386/fpu/s_tan.S: Likewise.
37652         * sysdeps/i386/fpu/s_tanl.S: Likewise.
37653         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
37654         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
37655         * math/libm-test.inc (tan_test): Add more tests and enable more
37656         tests for double and long double.
37657         * sysdeps/i386/fpu/libm-test-ulps: Update.
37658         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37659
37660 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
37661
37662         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
37663         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
37664
37665 2012-03-16  Roland McGrath  <roland@hack.frob.com>
37666
37667         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
37668         * configure.in: Use it for both main tree and add-ons.
37669         * configure: Regenerated.
37670
37671 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37672
37673         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
37674
37675 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37676
37677         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
37678         in comment.
37679
37680         [BZ #13851]
37681         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
37682         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
37683         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
37684         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
37685         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
37686         infinite argument.
37687         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
37688         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
37689         != 0 for prec == 2.
37690         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
37691         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
37692         * sysdeps/i386/fpu/s_cosl.S: Likewise.
37693         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
37694         * sysdeps/i386/fpu/s_sinl.S: Likewise.
37695         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
37696         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
37697         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
37698         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
37699         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
37700         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
37701         * math/libm-test.inc (cos_test): Add more tests and enable more
37702         tests for long double.
37703         (sin_test): Likewise.
37704         (sincos_test): Likewise.
37705         * sysdeps/i386/fpu/libm-test-ulps: Update.
37706         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37707
37708 2012-03-16  David S. Miller  <davem@davemloft.net>
37709
37710         * sysdeps/sparc/fpu/math_private.h: New file.
37711
37712 2012-03-15  David S. Miller  <davem@davemloft.net>
37713
37714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
37715         file.
37716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
37717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
37718         file.
37719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
37720         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
37721         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
37722         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
37723         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
37724         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
37725         sysdep routines.
37726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37727
37728         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
37729         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
37730
37731         * sysdeps/sparc/sparc-ifunc.h: New file.
37732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
37733         sparc-ifunc.h
37734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
37735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
37736         Likewise.
37737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
37738         Likewise.
37739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
37740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
37741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
37742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
37743         Likewise.
37744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
37745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
37746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
37747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
37748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
37749         Likewise.
37750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
37751         Likewise.
37752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
37753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
37754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
37755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
37756         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
37757         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
37758         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
37759         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
37760         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
37761         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
37762         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
37763         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
37764         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
37765         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
37766         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
37767         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
37768         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
37769         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
37770         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
37771         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
37772         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
37773         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
37774         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
37775         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
37776
37777 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37778
37779         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
37780         scaling.
37781         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37782
37783 2012-03-15  Andreas Jaeger  <aj@suse.de>
37784
37785         [BZ #13852]
37786         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
37787         ieee754/flt-32 implementation for sin, cos and sincos.
37788         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
37789         * sysdeps/i386/fpu/s_cosf.S: Likewise.
37790         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
37791         * sysdeps/i386/fpu/s_sinf.S: Likewise.
37792         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
37793         ieee754/flt-32 implementation for tan.
37794
37795         * math/libm-test.inc (cos_test): Enable some large input tests for
37796         float as well
37797         (sin_test): Likewise.
37798         (sincos_test): Likewise.
37799         (tan_test): Add tests for large input.
37800
37801         * sysdeps/i386/fpu/libm-test-ulps: Update.
37802
37803 2012-03-15  Andreas Jaeger  <aj@suse.de>
37804
37805         [BZ #13658]
37806         * math/libm-test.inc (cos_test): Add more test cases.
37807         (sin_test): Likewise.
37808         (sincos_test): Likewise.
37809
37810 2012-03-15  Andreas Jaeger  <aj@suse.de>
37811
37812         [BZ #13837]
37813         * math/libm-test.inc (cos_test): Add a test case for large input
37814         value.
37815         (sin_test): Likewise.
37816         (sincos_test): Likewise.
37817
37818 2012-03-15  Andreas Jaeger  <aj@suse.de>
37819             Joseph Myers  <joseph@codesourcery.com>
37820
37821         [BZ #13658]
37822         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
37823         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
37824         * sysdeps/i386/fpu/branred.c: Likewise.
37825         * sysdeps/i386/fpu/dosincos.c: Likewise.
37826         * sysdeps/i386/fpu/mpa.c: Likewise.
37827         * sysdeps/i386/fpu/s_cos.S: Likewise.
37828         * sysdeps/i386/fpu/s_sin.S: Likewise.
37829         * sysdeps/i386/fpu/s_sincos.S: Likewise.
37830         * sysdeps/i386/fpu/sincos32.c: Likewise.
37831
37832         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
37833         Define.
37834         (libc_feupdateenv_53bit): Define.
37835         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
37836         Define.
37837         (libc_feupdateenv_53bit): Define.
37838
37839         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
37840         53 bit (without extend i386 double precision).
37841
37842         * math/libm-test.inc (sincos_test): Add tests for large input.
37843         (sin): Likewise.
37844         (cos): Likewise.
37845
37846         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
37847
37848 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37849
37850         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37851
37852 2012-03-15  David S. Miller  <davem@davemloft.net>
37853
37854         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
37855         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
37856         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
37857         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
37858         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
37859         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
37860         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
37861         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
37862         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
37863         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
37864         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
37865         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
37866         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
37867         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
37868         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
37869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
37870         file.
37871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
37872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
37873         file.
37874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
37875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
37876         file.
37877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
37878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
37879         file.
37880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
37881         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
37882         fmin/fmax sysdep routines.
37883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37884
37885 2012-03-14  David S. Miller  <davem@davemloft.net>
37886
37887         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
37888         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
37889         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
37890         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
37891         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
37892         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
37893         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
37894         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
37895         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
37896         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
37897         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
37898         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
37899         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
37900         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
37901         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
37902         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
37903         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
37904         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
37905         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
37906         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
37907         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
37908         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
37909         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
37910         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
37911         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
37912         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
37913         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
37914         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
37915         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
37916         routines.
37917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
37918         file.
37919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
37920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
37921         file.
37922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
37923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
37924         file.
37925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
37926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
37927         file.
37928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
37929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
37930         file.
37931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
37932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
37933         file.
37934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
37935         file.
37936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
37937         file.
37938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
37939         file.
37940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
37941         New file.
37942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
37943         file.
37944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
37945         file.
37946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
37947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
37948         file.
37949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
37950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
37951         file.
37952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
37953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
37954         file.
37955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
37956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
37957         VIS3 routines.
37958
37959         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
37960         New file.
37961
37962         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37963
37964         * sysdeps/sparc/configure.in: New file.
37965         * sysdeps/sparc/configure: Generate.
37966         * configure.in (libc_cv_sparc_as_vis3): Substitute.
37967         * configure: Regenerate.
37968         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
37969         * config.make.in (have-as-vis3): New.
37970         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
37971         available use -Av9d instead of -Av9a.
37972         * sysdeps/sparc/sparc64/Makefile: Likewise.
37973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
37974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
37975         New file.
37976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
37977         file.
37978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
37979         New file.
37980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
37981         file.
37982         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
37983         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
37984         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
37985         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
37986         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
37987
37988         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
37989         fzeros/fnegs to load 0x80000000 into a float register instead of
37990         using the stack.
37991         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
37992
37993 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37994
37995         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37996         bits/syscall.h.
37997         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
37998         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
37999         ($(inst_includedir)/bits/syscall.h): Remove rule.
38000         ($(objpfx)bits/syscall.d): Include instead of
38001         $(objpfx)syscall-list.d.
38002         (generated): Change syscall-list.h and syscall-list.d to
38003         bits/syscall.h and bits/syscall.d.
38004
38005 2012-03-14  Roland McGrath  <roland@hack.frob.com>
38006
38007         [BZ #13846]
38008         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
38009
38010 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
38011
38012         [BZ #13841]
38013         * math/s_csqrt.c: Include <float.h>.
38014         (__csqrt): Scale large or subnormal inputs.
38015         * math/s_csqrtf.c: Likewise.
38016         * math/s_csqrtl.c: Likewise.
38017         * math/libm-test.inc (csqrt_test): Add more tests.
38018         * sysdeps/i386/fpu/libm-test-ulps: Update.
38019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38020
38021         [BZ #13840]
38022         * math/libm-test.inc (hypot_test): Add more tests.
38023
38024 2012-03-13  David S. Miller  <davem@davemloft.net>
38025
38026         [BZ #13840]
38027         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
38028         double-precision for the calculation instead of scaling.
38029
38030 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
38031
38032         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
38033         manipulate bits before adding and subtracting TWO52[sx].
38034         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
38035         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
38036         Likewise.
38037         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
38038
38039 2012-03-13  David S. Miller  <davem@davemloft.net>
38040
38041         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
38042         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
38043         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
38044         rtld-global-offsets.h
38045         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38046
38047         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
38048         large parameters.
38049
38050         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
38051
38052         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
38053         'err' in the ifdef scope in which it is actually used.
38054
38055         * nss/nss_db/db-init.c: Include string.h
38056
38057 2012-03-12  David S. Miller  <davem@davemloft.net>
38058
38059         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
38060         masking out of the most significant byte of random value used.
38061         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38062         Fix coding style in previous change.
38063
38064         * sysdeps/unix/sysv/linux/kernel-features.h
38065         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
38066         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
38067         expression.
38068         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
38069         later.
38070
38071 2012-03-11  David S. Miller  <davem@davemloft.net>
38072
38073         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
38074         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
38075         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
38076         for 'resultvar' otherwise things get truncated on 64-bit.
38077
38078         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38079         Fix masking out of the most significant byte of random value used.
38080
38081         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38082
38083 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
38084
38085         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38086
38087 2012-03-09  David S. Miller  <davem@davemloft.net>
38088
38089         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
38090         variables with appropriate CPP guards.
38091         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
38092         from the frame pointer, not the stack pointer.  Correct layout
38093         comments.  Fix test on resulting framesize and the management of
38094         the outregs buffer for pltexit.  Preserve floating point return
38095         values across _dl_call_pltexit call.
38096         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
38097         framesize and the management of the outregs buffer for pltexit.
38098         Preserve floating point return values across _dl_call_pltexit
38099         call.
38100         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
38101         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
38102         (la_sparc64_gnu_pltexit): New functions.
38103         (print_exit): Fix format string for return register value.
38104
38105 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
38106
38107         * sunrpc/Makefile (others): Add rpcgen.
38108         ($(objpfx)rpcgen): Remove special build rule and dependency on
38109         libc.
38110         * sunrpc/rpcgen.c: New file.
38111
38112 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
38113
38114         [BZ #13673]
38115         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
38116         * stdio-common/bug-vfprintf-nargs.c: Likewise.
38117         * sysdeps/i386/crti.S: Likewise.
38118         * sysdeps/i386/crtn.S: Likewise.
38119         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
38120         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
38121         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
38122         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
38123         * sysdeps/sh/crti.S: Likewise.
38124         * sysdeps/sh/crtn.S: Likewise.
38125         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
38126
38127         [BZ #13673]
38128         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
38129         with URL.
38130         * locale/programs/locfile-kw.gperf: Likewise.
38131         * locale/programs/charmap-kw.h: Regenerated.
38132         * locale/programs/locfile-kw.h: Likewise.
38133
38134         [BZ #13673]
38135         * intl/plural.y: Replace FSF snail mail address with URL.
38136         * intl/plural.c: Regenerated.
38137
38138 2012-03-09  Richard Henderson  <rth@twiddle.net>
38139
38140         * include/math_private.h: Remove file.
38141         * math/math_private.h: Move file ...
38142         * sysdeps/generic/math_private.h: ... here.
38143
38144         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
38145         * sysdeps/powerpc/fpu/math_private.h: Likewise.
38146         * sysdeps/x86_64/fpu/math_private.h: Likewise.
38147
38148         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
38149         and <math_private.h>.
38150         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
38151         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
38152         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
38153         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
38154         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
38155         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
38156         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
38157         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
38158         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
38159         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
38160         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
38161         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
38162         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
38163         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
38164         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
38165         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
38166         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
38167         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
38168         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
38169         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
38170         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
38171         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
38172         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
38173         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
38174         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
38175         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
38176         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
38177         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
38178         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
38179         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
38180         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
38181         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
38182         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
38183         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
38184         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
38185         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
38186         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
38187         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
38188         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
38189         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
38190         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
38191         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
38192         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
38193         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
38194         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
38195         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
38196         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
38197         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
38198         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
38199         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
38200         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
38201         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
38202         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
38203         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
38204         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
38205         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
38206         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
38207         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
38208         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
38209         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
38210         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
38211         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
38212         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
38213         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
38214         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
38215         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
38216         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
38217         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
38218         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
38219         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
38220         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
38221         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
38222         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
38223         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
38224         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
38225         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
38226         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
38227         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
38228         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
38229         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
38230         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
38231         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
38232         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
38233         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
38234         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
38235         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
38236         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
38237         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
38238         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
38239         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
38240         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
38241         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
38242         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
38243         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
38244         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
38245         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
38246         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
38247         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
38248         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
38249         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
38250         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
38251         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
38252         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
38253         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
38254         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
38255         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
38256         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
38257         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
38258         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
38259         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
38260         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
38261         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
38262         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
38263         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
38264         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
38265         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
38266         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
38267         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
38268         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
38269         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
38270         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
38271         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
38272         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
38273         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
38274         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
38275         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
38276         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
38277         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
38278         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
38279         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
38280         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
38281         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
38282         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
38283         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
38284         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
38285         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
38286         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
38287         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
38288         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
38289         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
38290         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
38291         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
38292         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
38293         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
38294         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
38295         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
38296         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
38297         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
38298         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
38299         * sysdeps/ieee754/k_standard.c: Likewise.
38300         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
38301         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
38302         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
38303         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
38304         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
38305         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
38306         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
38307         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
38308         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
38309         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
38310         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
38311         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
38312         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
38313         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
38314         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
38315         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
38316         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
38317         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
38318         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
38319         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
38320         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
38321         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
38322         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
38323         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
38324         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
38325         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
38326         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
38327         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
38328         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
38329         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
38330         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
38331         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
38332         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
38333         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
38334         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
38335         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
38336         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
38337         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
38338         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
38339         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
38340         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
38341         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
38342         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
38343         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
38344         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
38345         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
38346         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
38347         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
38348         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
38349         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
38350         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
38351         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
38352         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
38353         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
38354         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
38355         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
38356         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
38357         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
38358         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
38359         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
38360         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
38361         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
38362         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
38363         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
38364         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
38365         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
38366         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
38367         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
38368         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
38369         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
38370         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
38371         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
38372         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
38373         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
38374         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
38375         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
38376         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
38377         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
38378         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
38379         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
38380         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
38381         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
38382         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
38383         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
38384         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
38385         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
38386         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
38387         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
38388         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
38389         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
38390         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
38391         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
38392         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
38393         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
38394         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
38395         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
38396         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
38397         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
38398         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
38399         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
38400         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
38401         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
38402         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
38403         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
38404         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
38405         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
38406         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
38407         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
38408         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
38409         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
38410         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
38411         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
38412         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
38413         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
38414         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
38415         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
38416         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
38417         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
38418         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
38419         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
38420         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
38421         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
38422         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
38423         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
38424         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
38425         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
38426         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
38427         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
38428         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
38429         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
38430         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
38431         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
38432         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
38433         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
38434         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
38435         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
38436         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
38437         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
38438         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
38439         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
38440         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
38441         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
38442         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
38443         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
38444         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
38445         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
38446         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
38447         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
38448         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
38449         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
38450         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
38451         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
38452         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
38453         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
38454         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
38455         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
38456         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
38457         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
38458         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
38459         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
38460         * sysdeps/ieee754/s_lib_version.c: Likewise.
38461         * sysdeps/ieee754/s_matherr.c: Likewise.
38462         * sysdeps/ieee754/s_signgam.c: Likewise.
38463         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
38464         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
38465         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
38466         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
38467         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
38468         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
38469         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
38470         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
38471         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
38472         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
38473         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
38474         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
38475         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
38476         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
38477         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
38478         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
38479         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
38480         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
38481         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
38482         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
38483         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
38484
38485 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
38486
38487         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
38488         * sunrpc/rpc_main.c: Likewise.
38489         * sunrpc/rpc_svcout.c: Likewise.
38490
38491 2012-03-09  David S. Miller  <davem@davemloft.net>
38492
38493         * include/math_private.h: New file.
38494
38495 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
38496
38497         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
38498         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
38499         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
38500         from <bits/socket_type.h>.
38501         (enum __socket_type): Don't define here.
38502         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
38503         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38504         bits/socket_type.h.
38505
38506         [BZ #13566]
38507         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
38508         checking __USE_GNU.
38509
38510         * Makerules ($(inst_includedir)/%.h): New rule.
38511         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
38512         (install-others): Remove variable setting.
38513         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
38514
38515 2012-03-08  Richard Henderson  <rth@twiddle.net>
38516
38517         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
38518         from macro to inline function; merge with the
38519         !__LIBC_INTERNAL_MATH_INLINES version.
38520         (__ieee754_sqrtf): Likewise.
38521
38522         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
38523         to inline function.
38524         (__rintf, __floor, __floorf): Likewise.
38525
38526         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
38527         macro to inline function.
38528         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
38529
38530         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
38531         not <math/math_private.h>.
38532
38533 2012-03-08  David S. Miller  <davem@davemloft.net>
38534
38535         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
38536         copyright year.
38537         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
38538
38539 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
38540
38541         * resolv/gai_misc.c (handle_requests): Fix struct timespec
38542         normalization.
38543         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
38544         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
38545
38546 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
38547
38548         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
38549         be defined individually, they must be defined as a block.  Define
38550         S for printing a string instead of hidint the different by using a
38551         macro for adding the 'l'.
38552         * stdio-common/tst-fphex-wide.c: Adjust.
38553
38554 2012-03-07  Marek Polacek  <polacek@redhat.com>
38555
38556         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
38557
38558 2012-03-08  Marek Polacek  <polacek@redhat.com>
38559
38560         [BZ #13806]
38561         * stdio-common/Makefile (tests): Add tst-fphex-wide.
38562         * stdio-common/tst-fphex.c: Define a few macros to make the
38563         test reusable.  Use them.
38564         * stdio-common/tst-fphex-wide.c: New file.
38565
38566 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
38567
38568         [BZ #6911]
38569         * manual/macros.texi (gnusystems): New macro.
38570         (nongnusystems): Likewise.
38571         (gnulinuxhurdsystems): Likewise.
38572         (gnuhurdsystems): Likewise..
38573         (gnulinuxsystems): Likewise.
38574         * manual/charset.texi: Use new macros or @theglibc{} to refer to
38575         variants of the GNU system, not "GNU system".
38576         * manual/conf.texi: Likewise.
38577         * manual/errno.texi: Likewise.  Update example of errno macro
38578         expansion.
38579         * manual/filesys.texi: Likewise.
38580         (getumask): Document as specific to GNU/Hurd.
38581         * manual/install.texi: Likewise.  Reword some references to
38582         GNU/Linux.
38583         * manual/intro.texi: Likewise.
38584         * manual/io.texi: Likewise.
38585         (File Name Portability): Detail which constraints are inapplicable
38586         to all GNU systems and which are only inapplicable to GNU/Hurd.
38587         * manual/job.texi: Likewise.
38588         * manual/llio.texi: Likewise.
38589         (O_NOCTTY): Document as present on GNU/Linux.
38590         * manual/maint.texi: Likewise.
38591         * manual/memory.texi: Likewise.
38592         * manual/pattern.texi: Likewise.
38593         * manual/pipe.texi: Likewise.
38594         * manual/process.texi: Likewise.
38595         * manual/resource.texi: Likewise.
38596         (RUSAGE_CHILDREN): Remove statement about specifying a particular
38597         child on GNU/Hurd.
38598         * manual/setjmp.texi: Likewise.
38599         * manual/signal.texi: Likewise.
38600         * manual/startup.texi: Likewise.
38601         * manual/stdio.texi: Likewise.
38602         * manual/terminal.texi: Likewise.
38603         (ONLCR): Document as POSIX.
38604         (OXTABS): Document availability on GNU/Linux as XTABS.
38605         (ONOEOT): Document availability separately from other bits.
38606         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
38607         * manual/time.texi: Likewise.
38608         * manual/users.texi: Likewise.
38609         * INSTALL: Regenerated.
38610         * sysdeps/gnu/errlist.c: Regenerated.
38611
38612         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
38613         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
38614         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
38615         puts.
38616         * configure: Regenerated.
38617
38618 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
38619
38620         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
38621         default includes instead of AC_HEADER_CHECK.
38622         * sysdeps/i386/configure: Regenerated.
38623
38624         [BZ #10716]
38625         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
38626         * math/s_cacoshf.c (__cacoshf): Likewise.
38627         * math/s_cacoshl.c (__cacoshl): Likewise.
38628         * math/s_casinh.c (__casinh): Set signs of result from argument.
38629         * math/s_casinhf.c (__casinhf): Likewise.
38630         * math/s_casinhl.c (__casinhl): Likewise.
38631         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
38632         (casinh_test): Add more tests.
38633         * sysdeps/i386/fpu/libm-test-ulps: Update.
38634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38635
38636 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
38637
38638         * po/zh_TW.po: Update from translation team.
38639
38640         * login/Makefile (distribute): Remove variable.
38641         * catgets/Makefile: Likewise.
38642         * mach/Makefile: Likewise.
38643         * malloc/Makefile: Likewise.
38644         * misc/Makefile: Likewise.
38645         * iconv/Makefile: Likewise.
38646         * nscd/Makefile: Likewise.
38647         * hurd/Makefile: Likewise.
38648         * manual/Makefile: Likewise.
38649         * locale/Makefile: Likewise.
38650         * intl/Makefile: Likewise.
38651         * conform/Makefile: Likewise.
38652         * nss/Makefile: Likewise.
38653         * time/Makefile: Likewise.
38654         * soft-fp/Makefile: Likewise.
38655         * dirent/Makefile: Likewise.
38656         * gmon/Makefile: Likewise.
38657         * po/Makefile: Likewise.
38658         * rt/Makefile: Likewise.
38659         * socket/Makefile: Likewise.
38660         * math/Makefile: Likewise.
38661         * signal/Makefile: Likewise.
38662         * debug/Makefile: Likewise.
38663         * elf/Makefile: Likewise.
38664         * timezone/Makefile: Likewise.
38665         * stdlib/Makefile: Likewise.
38666         * iconvdata/Makefile: Likewise.
38667         * sunrpc/Makefile: Likewise.
38668         * io/Makefile: Likewise.
38669         * argp/Makefile: Likewise.
38670         * inet/Makefile: Likewise.
38671         * hesiod/Makefile: Likewise.
38672         * grp/Makefile: Likewise.
38673         * csu/Makefile: Likewise.
38674         * wctype/Makefile: Likewise.
38675         * crypt/Makefile: Likewise.
38676         * libio/Makefile: Likewise.
38677         * string/Makefile: Likewise.
38678         * nis/Makefile: Likewise.
38679         * resolv/Makefile: Likewise.
38680         * stdio-common/Makefile: Likewise.
38681         * wcsmbs/Makefile: Likewise.
38682         * dlfcn/Makefile: Likewise.
38683         * posix/Makefile: Likewise.
38684
38685         [BZ #6959]
38686         * timezone/Makefile: Don't install timezone files, just the programs
38687         and scripts.
38688
38689 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
38690
38691         * nss/databases.def: Add missing gshadow entry.
38692
38693         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
38694
38695 2012-03-06  Marek Polacek  <polacek@redhat.com>
38696
38697         [BZ #13726]
38698         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
38699         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
38700         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
38701         * stdio-common/tst-long-dbl-fphex.c: New file.
38702
38703 2012-03-06  David S. Miller  <davem@davemloft.net>
38704
38705         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
38706         (set_obp_int): New function.
38707         (get_obp_int): New function.
38708         (__get_clockfreq_via_dev_openprom): Likewise.
38709         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
38710         Avoid unused variable warnings on 'val' and use builtin_expect.
38711         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
38712         __builtin_expect.
38713         (INLINE_CLONE_SYSCALL): Likewise.
38714
38715 2012-03-05  David S. Miller  <davem@davemloft.net>
38716
38717         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38718
38719 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
38720
38721         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38722
38723         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
38724         only for |x| >= 40.
38725         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
38726
38727 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
38728
38729         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
38730         Replace gettimeofday with __vdso_gettimeofday.
38731
38732         * sysdeps/unix/sysv/linux/x86_64/init-first.c
38733         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
38734         __vdso_clock_gettime and __vdso_getcpu.
38735
38736         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
38737         time with __vdso_time.
38738
38739 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38740
38741         * manual/lang.texi (size_t): Note types to which size_t may be
38742         equivalent with the GNU C Library, but do not describe when
38743         differences between them are significant.
38744
38745 2012-03-05  Andreas Jaeger  <aj@suse.de>
38746
38747         * sysdeps/i386/fpu/libm-test-ulps: Update.
38748
38749 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38750
38751         [BZ #3976]
38752         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
38753         (__ieee754_pow): Save and restore rounding mode and use
38754         round-to-nearest for main computations.
38755         * math/libm-test.inc (pow_test_tonearest): New function.
38756         (pow_test_towardzero): Likewise.
38757         (pow_test_downward): Likewise.
38758         (pow_test_upward): Likewise.
38759         (main): Call the new functions.
38760         * sysdeps/i386/fpu/libm-test-ulps: Update.
38761         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38762
38763         [BZ #3976]
38764         * math/libm-test.inc (cosh_test_tonearest): New function.
38765         (cosh_test_towardzero): Likewise.
38766         (cosh_test_downward): Likewise.
38767         (cosh_test_upward): Likewise.
38768         (sinh_test_tonearest): Likewise.
38769         (sinh_test_towardzero): Likewise.
38770         (sinh_test_downward): Likewise.
38771         (sinh_test_upward): Likewise.
38772         (main): Call the new functions.
38773         * sysdeps/i386/fpu/libm-test-ulps: Update.
38774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38775
38776 2012-03-05  Tom de Vries  <tom@codesourcery.com>
38777
38778         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
38779         default stack guard is set in last bytes.
38780         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
38781
38782 2012-03-05  Kees Cook  <keescook@chromium.org>
38783
38784         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
38785
38786         [BZ #13656]
38787         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
38788         possibly allocate from heap instead of stack.
38789         * stdio-common/bug-vfprintf-nargs.c: New file.
38790         * stdio-common/Makefile (tests): Add nargs overflow test.
38791
38792 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
38793
38794         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38795
38796 2012-03-03  Marek Polacek  <polacek@redhat.com>
38797
38798         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
38799         * math/math_private.h: Likewise.
38800         * stdlib/tst-strtod.c: Likewise.
38801         * sysdeps/i386/i486/bits/atomic.h: Likewise.
38802         * sysdeps/x86_64/bits/atomic.h: Likewise.
38803
38804 2012-03-02  David S. Miller  <davem@davemloft.net>
38805
38806         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
38807         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
38808         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
38809         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
38810         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
38811         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
38812         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
38813         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
38814
38815 2012-03-02  Roland McGrath  <roland@hack.frob.com>
38816
38817         [BZ #13792]
38818         * manual/examples/README: New file, says the example source files
38819         can be used under GPL>=2.
38820         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
38821         line containing just "*/".
38822         * manual/examples/add.c: Add copyright header (GPL>=2).
38823         * manual/examples/argp-ex1.c: Likewise.
38824         * manual/examples/argp-ex2.c: Likewise.
38825         * manual/examples/argp-ex3.c: Likewise.
38826         * manual/examples/argp-ex4.c: Likewise.
38827         * manual/examples/atexit.c: Likewise.
38828         * manual/examples/db.c: Likewise.
38829         * manual/examples/dir.c: Likewise.
38830         * manual/examples/dir2.c: Likewise.
38831         * manual/examples/execinfo.c: Likewise.
38832         * manual/examples/filecli.c: Likewise.
38833         * manual/examples/filesrv.c: Likewise.
38834         * manual/examples/fmtmsgexpl.c: Likewise.
38835         * manual/examples/genpass.c: Likewise.
38836         * manual/examples/inetcli.c: Likewise.
38837         * manual/examples/inetsrv.c: Likewise.
38838         * manual/examples/isockad.c: Likewise.
38839         * manual/examples/longopt.c: Likewise.
38840         * manual/examples/memopen.c: Likewise.
38841         * manual/examples/memstrm.c: Likewise.
38842         * manual/examples/mkfsock.c: Likewise.
38843         * manual/examples/mkisock.c: Likewise.
38844         * manual/examples/mygetpass.c: Likewise.
38845         * manual/examples/pipe.c: Likewise.
38846         * manual/examples/popen.c: Likewise.
38847         * manual/examples/rprintf.c: Likewise.
38848         * manual/examples/search.c: Likewise.
38849         * manual/examples/select.c: Likewise.
38850         * manual/examples/setjmp.c: Likewise.
38851         * manual/examples/sigh1.c: Likewise.
38852         * manual/examples/sigusr.c: Likewise.
38853         * manual/examples/stpcpy.c: Likewise.
38854         * manual/examples/strdupa.c: Likewise.
38855         * manual/examples/strftim.c: Likewise.
38856         * manual/examples/strncat.c: Likewise.
38857         * manual/examples/subopt.c: Likewise.
38858         * manual/examples/swapcontext.c: Likewise.
38859         * manual/examples/termios.c: Likewise.
38860         * manual/examples/testopt.c: Likewise.
38861         * manual/examples/testpass.c: Likewise.
38862         * manual/examples/timeval_subtract.c: Likewise.
38863
38864         [BZ #13792]
38865         * manual/time.texi (Elapsed Time): Move timeval_subtract example
38866         function to ...
38867         * manual/timeval_subtract.c.texi: ... here, new file.
38868
38869 2012-03-02  David S. Miller  <davem@davemloft.net>
38870
38871         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
38872
38873 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
38874
38875         [BZ #3976]
38876         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
38877         (__sin): Save and restore rounding mode and use round-to-nearest
38878         for all computations.
38879         (__cos): Save and restore rounding mode and use round-to-nearest
38880         for all computations.
38881         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
38882         <fenv.h>.
38883         (tan): Save and restore rounding mode and use round-to-nearest for
38884         all computations.
38885         * math/libm-test.inc (cos_test_tonearest): New function.
38886         (cos_test_towardzero): Likewise.
38887         (cos_test_downward): Likewise.
38888         (cos_test_upward): Likewise.
38889         (sin_test_tonearest): Likewise.
38890         (sin_test_towardzero): Likewise.
38891         (sin_test_downward): Likewise.
38892         (sin_test_upward): Likewise.
38893         (tan_test_tonearest): Likewise.
38894         (tan_test_towardzero): Likewise.
38895         (tan_test_downward): Likewise.
38896         (tan_test_upward): Likewise.
38897         (main): Call the new functions.
38898         * sysdeps/i386/fpu/libm-test-ulps: Update.
38899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38900
38901         [BZ #10135]
38902         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
38903         small n, then large n, before computing and testing k+n.
38904         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38905         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
38906         Likewise.
38907         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
38908         Likewise.
38909         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
38910         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
38911         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
38912         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
38913         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
38914         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
38915         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
38916         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
38917         * math/libm-test.inc (scalbn_test): Add more tests.
38918         (scalbln_test): Likewise.
38919
38920         * manual/filesys.texi (mode_t): Describe constraints on size and
38921         signedness, not exact equivalence to a particular type.
38922         (ino_t): Likewise.
38923         (ino64_t): Likewise.
38924         (dev_t): Likewise.
38925         (nlink_t): Likewise.
38926         (blkcnt_t): Likewise.
38927         (blkcnt64_t): Likewise.
38928         * manual/llio.texi (off_t): Likewise.
38929
38930         [BZ #3976]
38931         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
38932         (__ieee754_exp): Save and restore rounding mode and use
38933         round-to-nearest for all computations.
38934         * math/libm-test.inc (exp_test_tonearest): New function.
38935         (exp_test_towardzero): Likewise.
38936         (exp_test_downward): Likewise.
38937         (exp_test_upward): Likewise.
38938         (main): Call the new functions.
38939         * sysdeps/i386/fpu/libm-test-ulps: Update.
38940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38941
38942 2012-03-01  Chris Demetriou  <cgd@google.com>
38943
38944         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
38945         have predictable order.
38946
38947 2012-03-01  David S. Miller  <davem@davemloft.net>
38948
38949         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
38950
38951         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
38952         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
38953         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
38954         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
38955
38956         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
38957         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
38958         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
38959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
38960         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
38961         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
38962         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
38963         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
38964         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
38965
38966         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38967
38968         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
38969         * sysdeps/sparc/fpu/libm-test-ulps: to here.
38970         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
38971
38972         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
38973         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
38974         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38975         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
38976         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
38977         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
38978         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
38979         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
38980         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38981         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
38982         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
38983         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38984         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38985         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38986         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38987         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38988         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
38989         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
38990         * sysdeps/sparc/elf/configure: Regenerated.
38991
38992 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
38993
38994         * configure.in (AS, LD): Require binutils 2.20 or later.
38995         * configure: Regenerated.
38996         * manual/install.texi (Tools for Compilation): Give binutils 2.20
38997         as required minimum version.
38998         * INSTALL: Regenerated.
38999
39000         [BZ #2541]
39001         [BZ #4108]
39002         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
39003         before squaring exponent.
39004         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
39005         bottom long double and 27 bits of top long double before squaring
39006         exponent.
39007         * math/libm-test.inc (erfc_test): Add more tests.
39008         * sysdeps/i386/fpu/libm-test-ulps: Update.
39009         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
39010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39011
39012 2012-03-01  Kai Tietz  <ktietz@redhat.com>
39013
39014         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
39015         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
39016         containing bit-fields.
39017         * soft-fp/extended.h (_FP_UNION_E): Likewise.
39018         * soft-fp/single.h (_FP_UNION_S): Likewise.
39019         * soft-fp/double.h (_FP_UNION_D): Likewise.
39020
39021 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
39022
39023         [BZ #13786]
39024         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
39025         not include ../strcmp.S.
39026         [USE_AS_STRNCASECMP_L]: Likewise.
39027         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
39028         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
39029         * sysdeps/i386/i686/multiarch/strncase_l-c.c
39030         (__strncasecmp_l_ia32): Define as alias to
39031         __strncasecmp_l_nonascii.
39032
39033         [BZ #5794]
39034         * math/libm-test.inc (expm1_test): Add test for bug 5794.
39035         * sysdeps/i386/fpu/libm-test-ulps: Update.
39036         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39037
39038         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
39039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39040
39041 2012-02-29  Jeff Law  <law@redhat.com>
39042
39043         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
39044         out of bounds read.
39045
39046 2012-02-29  Marek Polacek  <polacek@redhat.com>
39047
39048         [BZ #13706]
39049         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
39050         * elf/Makefile: Add rules to run tst-unused-dep.out.
39051
39052 2012-02-28  David S. Miller  <davem@davemloft.net>
39053
39054         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
39055         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
39056         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
39057         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
39058         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
39059         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
39060
39061 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
39062
39063         * math/libm-test.inc (llround_test): Move one test from
39064         lround_test.  Use TEST_f_L in moved test.
39065         (lround_test): Move misplaced test to llround_test.  Add testcase
39066         from bug 2561.
39067
39068 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
39069
39070         * sysdeps/x86_64/fpu/e_expf.S: New file.
39071         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
39072
39073 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
39074
39075         [BZ #13637]
39076         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
39077         of remain_len that may cause incomplete multi-byte character and
39078         false match.
39079         * posix/bug-regex33.c: New file.
39080         * posix/Makefile (tests): Add bug-regex33.
39081
39082 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
39083
39084         * manual/macros.texi: New file.
39085         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
39086         * manual/libc.texinfo: Include macros.texi.
39087         * manual/creatute.texi: Likewise.
39088         * manual/install.texi: Likewise.
39089         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
39090         @glibcadj{} in references to the GNU C Library.
39091         * manual/charset.texi: Likewise.
39092         * manual/conf.texi: Likewise.
39093         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
39094         when not using those macros.
39095         * manual/creature.texi: Likewise.
39096         * manual/crypt.texi: Likewise.
39097         * manual/errno.texi: Likewise.
39098         * manual/filesys.texi: Likewise.
39099         * manual/header.texi: Likewise.
39100         * manual/install.texi: Likewise.
39101         * manual/intro.texi: Likewise.
39102         * manual/io.texi: Likewise.
39103         * manual/job.texi: Likewise.
39104         * manual/lang.texi: Likewise.
39105         * manual/libc.texiinfo: Likewise.
39106         * manual/llio.texi: Likewise.
39107         * manual/locale.texi: Likewise.
39108         * manual/maint.texi: Likewise.
39109         * manual/math.texi: Likewise.
39110         * manual/memory.texi: Likewise.
39111         * manual/message.texi: Likewise.
39112         * manual/nss.texi: Likewise.
39113         * manual/pattern.texi: Likewise.
39114         * manual/process.texi: Likewise.
39115         * manual/resource.texi: Likewise.
39116         * manual/search.texi: Likewise.
39117         * manual/setjmp.texi: Likewise.
39118         * manual/signal.texi: Likewise.
39119         * manual/socket.texi: Likewise.
39120         * manual/startup.texi: Likewise.
39121         * manual/stdio.texi: Likewise.
39122         * manual/string.texi: Likewise.
39123         * manual/sysinfo.texi: Likewise.
39124         * manual/syslog.texi: Likewise.
39125         * manual/terminal.texi: Likewise.
39126         * manual/time.texi: Likewise.
39127         * manual/users.texi: Likewise.
39128         * INSTALL: Regenerated.
39129         * NOTES: Regenerated.
39130         * sysdeps/gnu/errlist.c: Regenerated.
39131
39132 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
39133
39134         * include/dirent.h: Include <dirstream.h> before
39135         <dirent/dirent.h>.
39136
39137 2012-02-28  David S. Miller  <davem@davemloft.net>
39138
39139         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
39140         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
39141         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
39142         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
39143
39144 2012-02-27  David S. Miller  <davem@davemloft.net>
39145
39146         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
39147         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
39148         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
39149         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
39150
39151         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
39152         frame pointer instead of stack pointer relative arg slot.
39153         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
39154         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
39155         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
39156
39157 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
39158
39159         [BZ #3992]
39160         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
39161
39162 2012-02-27  David S. Miller  <davem@davemloft.net>
39163
39164         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
39165         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
39166         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
39167         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
39168         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
39169         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
39170         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
39171         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
39172
39173 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
39174
39175         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
39176         later.  Allow versions 5-9.
39177         * configure: Regenerated.
39178         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
39179         required minimum version and 4.6 as recommended version.  Do not
39180         mention bugs in GCC 2.7 and 2.8.
39181         * INSTALL: Regenerated.
39182
39183 2012-02-27  David S. Miller  <davem@davemloft.net>
39184
39185         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
39186         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
39187         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
39188         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
39189         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
39190         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
39191         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
39192         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
39193
39194         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
39195         manipulate bits before adding and subtracting TWO112[sx].
39196         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
39197
39198 2012-02-27  Roland McGrath  <roland@hack.frob.com>
39199
39200         [BZ #13775]
39201         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
39202         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
39203         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
39204         being in POSIX, because they are in 1003.1-2008.
39205
39206         * rt/tst-aio.c: Include <fcntl.h>.
39207         * rt/tst-aio7.c: Likewise.
39208         * rt/tst-aio64.c: Likewise.
39209
39210         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
39211
39212 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
39213
39214         * manual/install.texi (--with-headers): Describe headers as
39215         interface headers, not private headers.
39216         (Specific advice for GNU/Linux systems): Describe use of headers
39217         from "make headers_install", not private headers from older
39218         kernels.
39219         * INSTALL: Regenerated.
39220         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
39221         Change to 2.6.19.
39222         * sysdeps/unix/sysv/linux/configure: Regenerated.
39223
39224         * manual/llio.texi (fclean): Remove documentation.
39225
39226         * manual/Makefile (libc-texi-generated): New variable.  Include
39227         version.texi.
39228         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
39229         $(libc-texi-generated), not duplicated list of files.
39230         (version.texi, stamp-version): New rules.
39231         (realclean): Remove $(libc-texi-generated), not individual files
39232         from that list.  Do not remove dir-add.texinfo.
39233         * manual/libc.texinfo: Comment out uses of edition numbers and
39234         references to printed manual.  Remove last-updated dates.
39235         (EDITION): Comment out.
39236         (ISBN): Likewise.
39237         (VERSION, UPDATED): Remove.
39238         (version.texi): Include.
39239
39240 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
39241
39242         * sysdeps/posix/spawni.c: Include <signal.h>.
39243         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
39244         * sysdeps/pthread/aio_fsync.c: Likewise.
39245
39246 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
39247
39248         * conform/Makefile (tests): Run only when not cross-compiling and
39249         when fast-check is not defined.
39250
39251         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
39252         * conform/data/limits.h-data: Fixes for POSIX2008.
39253         * conform/run-conformtest.sh: Run all tests.
39254         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
39255         headers.
39256         * include/bits/dlfcn.h: Likewise.
39257         * include/langinfo.h: Likewise.
39258         * include/monetary.h: Likewise.
39259         * include/sys/poll.h: Likewise.
39260
39261         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
39262         for __USE_GNU.
39263         * posix/spawn.h: Define __need_sigset_t.
39264         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
39265         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
39266         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
39267         to get sigevent_t only.
39268         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
39269         only for __USE_GNU.
39270         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
39271         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
39272         process_vm_writev only for __USE_GNU.
39273         * termios/termios.h: Declare tcgetsid also for POSIX2008.
39274
39275         * conform/Makefile: For now ignore errors from run-conformtest.
39276         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
39277         POSIX to avoid namespace pollution.  Don't prepend headers.
39278         * conform/data/aio.h-data: Fixes for POSIX testing.
39279         * conform/data/fcntl.h-data: Likewise.
39280         * conform/data/glob.h-data: Likewise.
39281         * conform/data/grp.h-data: Likewise.
39282         * conform/data/pthread.h-data: Likewise.
39283         * conform/data/pwd.h-data: Likewise.
39284         * conform/data/signal.h-data: Likewise.
39285         * conform/data/spawn.h-data: Likewise.
39286         * conform/data/stdio.h-data: Likewise.
39287         * conform/data/stdlib.h-data: Likewise.
39288         * conform/data/stropts.h-data: Likewise.
39289         * conform/data/sys/mman.h-data: Likewise.
39290         * conform/data/sys/stat.h-data: Likewise.
39291         * conform/data/sys/types.h-data: Likewise.
39292         * conform/data/sys/wait.h-data: Likewise.
39293         * conform/data/time.h-data: Likewise.
39294         * conform/data/unistd.h-data: Likewise.
39295         * conform/data/utime.h-data: Likewise.
39296
39297         * io/sys/stat.h: fchmod was always in POSIX.
39298         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
39299         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
39300         * rt/aio.h: Define __need_timespec before including <time.h>.
39301         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
39302         struct.  Add forward declaration of pthread_attr_t and use it in
39303         sigevent.
39304         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
39305         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
39306         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
39307         always remove CLK_TCK definition.
39308
39309 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
39310
39311         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
39312
39313 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
39314
39315         * conform/run-conformtest.sh: New file.
39316         * conform/Makefile: Run run-conformtest for tests.
39317         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
39318         support.
39319
39320         * conform/data/uchar.h-data: New file.
39321         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
39322         * conform/data/arpa/inet.h-data: Likewise.
39323         * conform/data/assert.h-data: Likewise.
39324         * conform/data/complex.h-data: Likewise.
39325         * conform/data/cpio.h-data: Likewise.
39326         * conform/data/ctype.h-data: Likewise.
39327         * conform/data/dirent.h-data: Likewise.
39328         * conform/data/dlfcn.h-data: Likewise.
39329         * conform/data/errno.h-data: Likewise.
39330         * conform/data/fcntl.h-data: Likewise.
39331         * conform/data/float.h-data: Likewise.
39332         * conform/data/fmtmsg.h-data: Likewise.
39333         * conform/data/fnmatch.h-data: Likewise.
39334         * conform/data/ftw.h-data: Likewise.
39335         * conform/data/glob.h-data: Likewise.
39336         * conform/data/grp.h-data: Likewise.
39337         * conform/data/iconv.h-data: Likewise.
39338         * conform/data/inttypes.h-data: Likewise.
39339         * conform/data/langinfo.h-data: Likewise.
39340         * conform/data/libgen.h-data: Likewise.
39341         * conform/data/limits.h-data: Likewise.
39342         * conform/data/locale.h-data: Likewise.
39343         * conform/data/math.h-data: Likewise.
39344         * conform/data/monetary.h-data: Likewise.
39345         * conform/data/mqueue.h-data: Likewise.
39346         * conform/data/ndbm.h-data: Likewise.
39347         * conform/data/net/if.h-data: Likewise.
39348         * conform/data/netdb.h-data: Likewise.
39349         * conform/data/netinet/in.h-data: Likewise.
39350         * conform/data/nl_types.h-data: Likewise.
39351         * conform/data/poll.h-data: Likewise.
39352         * conform/data/pthread.h-data: Likewise.
39353         * conform/data/pwd.h-data: Likewise.
39354         * conform/data/regex.h-data: Likewise.
39355         * conform/data/sched.h-data: Likewise.
39356         * conform/data/search.h-data: Likewise.
39357         * conform/data/semaphore.h-data: Likewise.
39358         * conform/data/setjmp.h-data: Likewise.
39359         * conform/data/signal.h-data: Likewise.
39360         * conform/data/spawn.h-data: Likewise.
39361         * conform/data/stdarg.h-data: Likewise.
39362         * conform/data/stdio.h-data: Likewise.
39363         * conform/data/stdlib.h-data: Likewise.
39364         * conform/data/string.h-data: Likewise.
39365         * conform/data/strings.h-data: Likewise.
39366         * conform/data/stropts.h-data: Likewise.
39367         * conform/data/sys/ipc.h-data: Likewise.
39368         * conform/data/sys/mman.h-data: Likewise.
39369         * conform/data/sys/msg.h-data: Likewise.
39370         * conform/data/sys/resource.h-data: Likewise.
39371         * conform/data/sys/select.h-data: Likewise.
39372         * conform/data/sys/sem.h-data: Likewise.
39373         * conform/data/sys/shm.h-data: Likewise.
39374         * conform/data/sys/socket.h-data: Likewise.
39375         * conform/data/sys/stat.h-data: Likewise.
39376         * conform/data/sys/statvfs.h-data: Likewise.
39377         * conform/data/sys/time.h-data: Likewise.
39378         * conform/data/sys/timeb.h-data: Likewise.
39379         * conform/data/sys/times.h-data: Likewise.
39380         * conform/data/sys/types.h-data: Likewise.
39381         * conform/data/sys/uio.h-data: Likewise.
39382         * conform/data/sys/un.h-data: Likewise.
39383         * conform/data/sys/utsname.h-data: Likewise.
39384         * conform/data/sys/wait.h-data: Likewise.
39385         * conform/data/syslog.h-data: Likewise.
39386         * conform/data/tar.h-data: Likewise.
39387         * conform/data/termios.h-data: Likewise.
39388         * conform/data/utime.h-data: Likewise.
39389         * conform/data/utmpx.h-data: Likewise.
39390         * conform/data/varargs.h-data: Likewise.
39391         * conform/data/wchar.h-data: Likewise.
39392         * conform/data/wctype.h-data: Likewise.
39393         * conform/data/wordexp.h-data: Likewise.
39394
39395         * include/stropts.h: New file.
39396         * include/uchar.h: New file.
39397         * include/aio.h: Changes to allow conformtest.pl to use the headers.
39398         * include/assert.h: Likewise.
39399         * include/ctype.h: Likewise.
39400         * include/dirent.h: Likewise.
39401         * include/dlfcn.h: Likewise.
39402         * include/fcntl.h: Likewise.
39403         * include/fnmatch.h: Likewise.
39404         * include/glob.h: Likewise.
39405         * include/grp.h: Likewise.
39406         * include/libio.h: Likewise.
39407         * include/locale.h: Likewise.
39408         * include/math.h: Likewise.
39409         * include/net/if.h: Likewise.
39410         * include/netdb.h: Likewise.
39411         * include/netinet/in.h: Likewise.
39412         * include/pthread.h: Likewise.
39413         * include/pwd.h: Likewise.
39414         * include/regex.h: Likewise.
39415         * include/sched.h: Likewise.
39416         * include/search.h: Likewise.
39417         * include/setjmp.h: Likewise.
39418         * include/signal.h: Likewise.
39419         * include/stdio.h: Likewise.
39420         * include/stdlib.h: Likewise.
39421         * include/string.h: Likewise.
39422         * include/sys/cdefs.h: Likewise.
39423         * include/sys/mman.h: Likewise.
39424         * include/sys/msg.h: Likewise.
39425         * include/sys/resource.h: Likewise.
39426         * include/sys/select.h: Likewise.
39427         * include/sys/socket.h: Likewise.
39428         * include/sys/stat.h: Likewise.
39429         * include/sys/statvfs.h: Likewise.
39430         * include/sys/time.h: Likewise.
39431         * include/sys/times.h: Likewise.
39432         * include/sys/uio.h: Likewise.
39433         * include/sys/utsname.h: Likewise.
39434         * include/sys/wait.h: Likewise.
39435         * include/termios.h: Likewise.
39436         * include/time.h: Likewise.
39437         * include/ulimit.h: Likewise.
39438         * include/unistd.h: Likewise.
39439         * include/utime.h: Likewise.
39440         * include/wchar.h: Likewise.
39441         * include/wctype.h: Likewise.
39442         * include/wordexp.h: Likewise.
39443
39444         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
39445
39446         * time/time.h: TIME_UTC must be a macro.
39447         Make timespec_get available for ISO C11 only as well.
39448
39449 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
39450
39451         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
39452         Reported by Peng Haitao <penght@cn.fujitsu.com>.
39453
39454 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
39455
39456         * configure.in: Use -o not -a in test for unsupported multi-arch.
39457
39458 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
39459
39460         * manual/texinfo.tex: Update to version 2012-01-19.16.
39461
39462 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
39463
39464         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
39465
39466 2012-02-24  Roland McGrath  <roland@hack.frob.com>
39467
39468         [BZ #13738]
39469         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
39470         * manual/fdl-1.3.texi: New file.
39471         * manual/fdl-1.1.texi: File removed.
39472
39473         [BZ #13738]
39474         * manual/libc.texinfo (FDL_VERSION): New @set.
39475         Use it for mention of FDL in cover text.
39476         (Documentation License): Use it in @include file name.
39477
39478 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39479             Roland McGrath  <roland@hack.frob.com>
39480
39481         [BZ #5461]
39482         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
39483         (not LONG_LONG_MAX and LONG_LONG_MIN.
39484         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
39485         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
39486         name.
39487         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
39488
39489 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39490
39491         [BZ #2547]
39492         [BZ #11365]
39493         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
39494         manipulate bits before adding and subtracting TWO23[sx].
39495         * math/libm-test.inc (nearbyint_test): Add more tests.
39496
39497 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39498
39499         [BZ #2548]
39500         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
39501         bits before adding and subtracting TWO23[sx].
39502         * math/libm-test.inc (rint_test): Add more tests.
39503         (rint_test_tonearest): Likewise.
39504         (rint_test_towardzero): Likewise.
39505         (rint_test_downward): Likewise.
39506         (rint_test_upward: Likewise.
39507
39508 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39509
39510         [BZ #10110]
39511         * include/stdc-predef.h: New file.  Extracted from features.h.
39512         * include/features.h: Include stdc-predef.h.
39513         * Makefile (headers): Add stdc-predef.h.
39514         * CONFORMANCE (Compiler limitations): Update.
39515
39516 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39517
39518         * manual/libc.texinfo (VERSION, UPDATED): Revert.
39519
39520 2012-02-21  David S. Miller  <davem@davemloft.net>
39521
39522         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
39523         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
39524
39525 2012-02-20  David S. Miller  <davem@davemloft.net>
39526
39527         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
39528         using a normal save/restore sequence, rather than allocating a
39529         dummy stack frame just to store a frame pointer and restore.
39530         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
39531
39532 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
39533
39534         * manual/install.texi: Fix stray word in line-wrapped comment.
39535
39536 2012-02-20  David S. Miller  <davem@davemloft.net>
39537
39538         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
39539         both binutils and gcc support GOTDATA.
39540
39541         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
39542         "rd %pc" in the PIC register setup sequences.
39543
39544         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
39545         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
39546         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
39547         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
39548         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
39549         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
39550         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
39551         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
39552         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
39553         (SYSCALL_ERROR_HANDLER): Likewise.
39554         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
39555         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
39556         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
39557         (SYSCALL_ERROR_HANDLER): Likewise.
39558
39559         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
39560         (HAVE_GCC_GOTDATA): New.
39561         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
39562         relocation support in both binutils and gcc.
39563         * sysdeps/sparc/elf/configure: Regenerate.
39564
39565         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
39566         * sysdeps/sparc/sparc32/elf/configure: Delete.
39567         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
39568         * sysdeps/sparc/sparc64/elf/configure: Delete.
39569         * sysdeps/sparc/elf/configure.in: New file.
39570         * sysdeps/sparc/elf/configure: Generate.
39571
39572         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
39573         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
39574         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
39575         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
39576         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
39577
39578 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
39579
39580         * manual/install.texi: Do not mention specific glibc version
39581         numbers.
39582         * manual/libc.texinfo (VERSION, UPDATED): Update.
39583         (@copying): Use @copyright{} and range of years.
39584
39585 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
39586
39587         [BZ #13695]
39588         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
39589         [crti.S not in sysdirs] (generated): Do not append.
39590         [crti.S not in sysdirs] (omit-deps): Likewise.
39591         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
39592         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
39593         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
39594         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
39595         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
39596         Likewise.
39597         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
39598         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
39599         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
39600         * csu/defs.awk: Remove file.
39601         * sysdeps/generic/initfini.c: Likewise.
39602         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
39603         variable.
39604         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
39605         Likewise.
39606
39607 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39608
39609         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
39610         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
39611         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
39612         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
39613         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39614         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
39615         <bits/epoll.h>.
39616         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
39617         (__EPOLL_PACKED): Define to empty if not defined by
39618         <bits/epoll.h>.
39619         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
39620         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39621         bits/epoll.h.
39622
39623 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39624
39625         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
39626         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
39627         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
39628         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
39629         <bits/timerfd.h>.
39630         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
39631         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39632         bits/timerfd.h.
39633
39634 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39635
39636         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
39637         in C locale.
39638         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
39639         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
39640         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
39641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39642
39643 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
39644
39645         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39646         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
39647
39648 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
39649
39650         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
39651         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
39652         defined.
39653         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
39654         Likewise.
39655         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
39656         entry for 2.16.
39657
39658 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
39659
39660         * math/w_acos.c: Use non-signaling floating-point comparisons.
39661         * math/w_acosf.c: Likewise.
39662         * math/w_acosh.c: Likewise.
39663         * math/w_acoshf.c: Likewise.
39664         * math/w_acoshl.c: Likewise.
39665         * math/w_acosl.c: Likewise.
39666         * math/w_asin.c: Likewise.
39667         * math/w_asinf.c: Likewise.
39668         * math/w_asinl.c: Likewise.
39669         * math/w_atanh.c: Likewise.
39670         * math/w_atanhf.c: Likewise.
39671         * math/w_atanhl.c: Likewise.
39672         * math/w_exp2.c: Likewise.
39673         * math/w_exp2f.c: Likewise.
39674         * math/w_exp2l.c: Likewise.
39675         * math/w_j0.c: Likewise.
39676         * math/w_j0f.c: Likewise.
39677         * math/w_j0l.c: Likewise.
39678         * math/w_j1.c: Likewise.
39679         * math/w_j1f.c: Likewise.
39680         * math/w_j1l.c: Likewise.
39681         * math/w_jn.c: Likewise.
39682         * math/w_jnf.c: Likewise.
39683         * math/w_log.c: Likewise.
39684         * math/w_log10.c: Likewise.
39685         * math/w_log10f.c: Likewise.
39686         * math/w_log10l.c: Likewise.
39687         * math/w_log2.c: Likewise.
39688         * math/w_log2f.c: Likewise.
39689         * math/w_log2l.c: Likewise.
39690         * math/w_logf.c: Likewise.
39691         * math/w_logl.c: Likewise.
39692         * math/w_sqrt.c: Likewise.
39693         * math/w_sqrtf.c: Likewise.
39694         * math/w_sqrtl.c: Likewise.
39695         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
39696         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
39697         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39698         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
39699         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
39700
39701 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39702
39703         [BZ #9739]
39704         * manual/string.texi (strnlen): Use correct parameter name in
39705         equivalent expression.
39706
39707 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39708
39709         [BZ #11174]
39710         * manual/users.texi (seteuid): Consistently use neweuid for
39711         argument name.
39712
39713 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39714
39715         [BZ #13704]
39716         * manual/nss.texi (Services in the NSS configuration): Correct
39717         list of services in example configuration file.
39718
39719 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
39720
39721         [BZ #11322]
39722         * manual/arith.texi: Remove statements about negative zero
39723         behaving identically to zero.
39724
39725 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39726
39727         [BZ #5993]
39728         * manual/install.texi: Do not document upgrading from libc5.
39729
39730 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39731
39732         [BZ #4596]
39733         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
39734
39735 2012-02-18  David S. Miller  <davem@davemloft.net>
39736
39737         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
39738         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
39739         %o7 across the call.
39740         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
39741         instead.
39742         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
39743         SETUP_PIC_REG_LEAF.
39744         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
39745         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
39746         * sysdeps/sparc/crtn.S: Likewise.
39747
39748 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
39749
39750         * aout/Makefile: Remove.
39751
39752 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
39753
39754         [BZ #13058]
39755         * manual/examples/argp-ex1.c (main): Format definition in GNU
39756         style.
39757         * manual/examples/argp-ex2.c (main): Likewise.
39758         * manual/examples/argp-ex3.c (main): Likewise.
39759         * manual/examples/argp-ex4.c (main): Likewise.
39760         * manual/examples/longopt.c (main): Use new-style prototype
39761         definition.
39762         * manual/examples/strncat.c (main): Specify return type and use
39763         (void) for arguments.
39764         * manual/examples/subopt.c (main): Use char **argv argument.
39765
39766 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39767
39768         [BZ #5077]
39769         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
39770         rounding modes.
39771
39772 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
39773
39774         [BZ #6907]
39775         * manual/string.texi (strchr): Change when strchrnul is
39776         recommended.
39777
39778 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
39779
39780         [BZ #174]
39781         * manual/locale.texi (setlocale): Document LOCPATH.
39782
39783 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39784
39785         [BZ #10210]
39786         * manual/process.texi (execle): Move @dots{} before last argument.
39787
39788 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
39789
39790         [BZ #12047]
39791         * manual/charset.texi (Generic Charset Conversion): Fix typo
39792         (LC_TYPE -> LC_CTYPE).
39793
39794 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
39795
39796         [BZ #5805]
39797         * manual/arith.texi (scalbn): Use @var{} on parameter names.
39798         (scalbnf): Likewise.
39799         (scalbnl): Likewise.
39800         (scalbln): Likewise.
39801         (scalblnf): Likewise.
39802         (scalblnl): Likewise.
39803         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
39804         (vwarnx): Likewise.
39805         (verr): Likewise.
39806         (verrx): Likewise.
39807         * manual/filesys.texi (telldir): Use braces around return type.
39808         * manual/llio.texi (mmap): Add space after comma.
39809         (mmap64): Likewise.
39810         * manual/math.texi (jn): Use @var{} on parameter names.
39811         (jnf): Likewise.
39812         (jnl): Likewise.
39813         (yn): Likewise.
39814         (ynf): Likewise.
39815         (ynl): Likewise.
39816         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
39817         line.
39818         * manual/resource.texi (ulimit): Use @dots{} instead of literal
39819         "...".
39820         (sched_get_priority_min): Remove semicolon on @deftypefun line.
39821         (sched_get_priority_max): Likewise.
39822         * manual/signal.texi (sigvec): Add space after comma.
39823         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
39824         names.
39825         (if_indextoname): Likewise.
39826         (if_freenameindex): Likewise.
39827         (sendto): Use ',' instead of '.' in prototype.
39828         * manual/startup.texi (syscall): Use @dots{} instead of literal
39829         "...".
39830         * manual/stdio.texi (__fpending): Separate initial words of
39831         paragraph from @deftypefun line.
39832         * manual/syslog.texi (syslog): Use @dots{} instead of literal
39833         "...".
39834         (vsyslog): Use @var{} on parameter names.
39835         * manual/terminal.texi (stty): Use @var{} on parameter names.
39836         * manual/users.texi (getutmp): Use @var{} on parameter names.
39837         (getutmpx): Likewise.
39838
39839 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39840
39841         [BZ #6884]
39842         * manual/stdio.texi (fopen): Fix typos in description of
39843         ",ccs=STRING".
39844
39845 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
39846
39847         [BZ #4026]
39848         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
39849         get clock_id definition.
39850
39851 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
39852
39853         [BZ #4822]
39854         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
39855         (madvise): Cast every argument to void on its own.
39856
39857 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39858
39859         [BZ #9902]
39860         * manual/startup.texi (Exit Status): Fix typo.
39861
39862 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39863
39864         [BZ #10140]
39865         * manual/examples/argp-ex1.c: Include <stdlib.h>.
39866         * manual/examples/argp-ex2.c: Likewise.
39867         * manual/examples/argp-ex3.c: Likewise.
39868
39869 2012-02-16  Richard Henderson  <rth@redhat.com>
39870
39871         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
39872         * sysdeps/s390/s390-32/initfini.c: Remove.
39873         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
39874         * sysdeps/s390/s390-64/initfini.c: Remove.
39875
39876 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39877
39878         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
39879         compiler output for sysdeps/generic/initfini.c.
39880         * sysdeps/sh/elf/initfini.c: Remove file.
39881
39882 2012-02-16  David S. Miller  <davem@davemloft.net>
39883
39884         [BZ #11494]
39885         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
39886
39887         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
39888         * sysdeps/sparc/crti.S: New file.
39889         * sysdeps/sparc/crtn.S: New file.
39890         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
39891         * sysdeps/sparc/sparc64/Makefile: Likewise.
39892
39893 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
39894
39895         [BZ #3335]
39896         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
39897
39898 2012-02-15  Roland McGrath  <roland@hack.frob.com>
39899
39900         [BZ #4822]
39901         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
39902
39903         * mach/devstream.c (cookie_io_functions_t): Macro removed.
39904         (write, read, close): Likewise.
39905         Patch by Aurelien Jarno <aurelien@aurel32.net>.
39906
39907 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
39908
39909         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
39910         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
39911         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
39912         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
39913         <bits/signalfd.h>.
39914         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
39915         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39916         bits/signalfd.h.
39917
39918 2012-02-14  Marek Polacek  <polacek@redhat.com>
39919
39920         * sysdeps/x86_64/crti.S: New file.
39921         * sysdeps/x86_64/crtn.S: New file.
39922         * sysdeps/x86_64/elf/initfini.c: Remove file.
39923
39924 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39925
39926         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
39927         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
39928         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
39929         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
39930         <bits/inotify.h>.
39931         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
39932         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39933         bits/inotify.h.
39934
39935 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39936
39937         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
39938         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
39939         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
39940         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
39941         <bits/eventfd.h>.
39942         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
39943         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39944         bits/eventfd.h.
39945
39946 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
39947
39948         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
39949         __feraiseexcept instead of feraiseexcept.
39950
39951         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
39952         nanosleep invocations.
39953         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
39954         strings, and add error checking for a nanosleep invocations.
39955
39956 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39957
39958         Replace FSF snail mail address with URLs, as per GNU coding standards.
39959         Most of the snail mail addresses were wrong anyway, and omitting
39960         them makes the source code easier to maintain.  Almost all of the
39961         changes are to license notices and to locale LC_IDENTIFICATION
39962         addresses, except for this one:
39963         * manual/libc.texinfo: In "Published by", give the FSF's URL,
39964         not its snail mail address.
39965
39966 2012-02-09  Richard Henderson  <rth@twiddle.net>
39967
39968         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
39969         of kernel-features.h.
39970
39971         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
39972
39973 2012-02-08  Marek Polacek  <polacek@redhat.com>
39974
39975         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
39976         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
39977         * sysdeps/gnu/_G_config.h: Likewise.
39978         * sysdeps/generic/_G_config.h: Likewise.
39979
39980 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
39981
39982         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
39983         tests.
39984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39985
39986         * sysdeps/powerpc/powerpc32/crti.S: New file.
39987         * sysdeps/powerpc/powerpc32/crtn.S: New file.
39988         * sysdeps/powerpc/powerpc64/crti.S: New file.
39989         * sysdeps/powerpc/powerpc64/crtn.S: New file.
39990
39991         * Makeconfig (have-initfini): Don't set.
39992         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
39993         * configure.in (nopic_initfini): Don't substitute.
39994         * config.h.in (HAVE_INITFINI): Don't #undef.
39995         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
39996         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
39997
39998 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
39999
40000         Support crti.S and crtn.S provided directly by architectures.
40001         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
40002         [crti.S in sysdirs] (omit-deps): Likewise.
40003         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
40004         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
40005         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
40006         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
40007         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
40008         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
40009         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
40010         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
40011         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
40012         compiler output for sysdeps/generic/initfini.c.
40013         * sysdeps/i386/elf/Makefile: Remove file.
40014         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
40015
40016 2012-02-07  Marek Polacek  <polacek@redhat.com>
40017
40018         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
40019         * sysdeps/gnu/_G_config.h: Likewise.
40020         * sysdeps/mach/hurd/_G_config.h: Likewise.
40021
40022 2012-02-07  Marek Polacek  <polacek@redhat.com>
40023
40024         * math/Makefile (tests): Add tst-CMPLX2.
40025         * math/tst-CMPLX2.c: New file.
40026
40027 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
40028
40029         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
40030
40031         * math/libm-test.inc (jn_test): Add missing L suffix.
40032
40033 2012-02-06  Marek Polacek  <polacek@redhat.com>
40034
40035         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
40036         * sysdeps/i386/fpu/e_powf.S: Likewise.
40037         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
40038         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
40039         * sysdeps/i386/fpu/e_acosh.S: Likewise.
40040         * sysdeps/i386/fpu/e_pow.S: Likewise.
40041         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
40042         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
40043         * sysdeps/i386/fpu/s_expm1.S: Likewise.
40044         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
40045         * sysdeps/i386/fpu/e_log2.S: Likewise.
40046         * sysdeps/i386/fpu/e_log2l.S: Likewise.
40047         * sysdeps/i386/fpu/e_scalb.S: Likewise.
40048         * sysdeps/i386/fpu/e_powl.S: Likewise.
40049         * sysdeps/i386/fpu/s_log1p.S: Likewise.
40050         * sysdeps/i386/fpu/e_log10f.S: Likewise.
40051         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
40052         * sysdeps/i386/fpu/e_logl.S: Likewise.
40053         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
40054         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
40055         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
40056         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
40057         * sysdeps/i386/fpu/e_log2f.S: Likewise.
40058         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
40059         * sysdeps/i386/fpu/e_log.S: Likewise.
40060         * sysdeps/i386/fpu/s_cexp.S: Likewise.
40061         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
40062         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
40063         * sysdeps/i386/fpu/e_logf.S: Likewise.
40064         * sysdeps/i386/fpu/e_log10l.S: Likewise.
40065         * sysdeps/i386/fpu/e_atanh.S: Likewise.
40066         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
40067         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
40068         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
40069         * sysdeps/i386/fpu/e_log10.S: Likewise.
40070         * sysdeps/i386/fpu/s_frexp.S: Likewise.
40071         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
40072         * sysdeps/i386/fpu/s_asinh.S: Likewise.
40073         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
40074         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
40075         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
40076         * sysdeps/i386/asm-syntax.h: Likewise.
40077         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
40078         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
40079         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
40080         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
40081         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
40082         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
40083         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
40084         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
40085         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
40086         * sysdeps/powerpc/sysdep.h: Likewise.
40087         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
40088         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
40089
40090 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
40091
40092         [BZ #411]
40093         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
40094
40095 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
40096
40097         * sysdeps/i386/sysdep.h: Include <features.h>.
40098         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
40099         version.
40100
40101 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
40102
40103         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
40104         Define.
40105         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
40106         LOAD_PIC_REG_STR.
40107
40108 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
40109
40110         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
40111         (SETUP_PIC_REG): Use GET_PC_THUNK.
40112         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
40113         macro.
40114
40115 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
40116
40117         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
40118         for non-PIC compilation.
40119         (SETUP_PIC_REG): Add .p2align directive.
40120         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
40121         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
40122         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
40123         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
40124         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
40125         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
40126         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
40127         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
40128         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
40129         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
40130         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
40131         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
40132         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
40133         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
40134         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
40135         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
40136         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
40137         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
40138         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
40139         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
40140         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
40141         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
40142         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
40143         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
40144         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
40145         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
40146         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40147         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
40148         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
40149         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
40150         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
40151         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40152         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
40153         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
40154         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
40155         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
40156         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
40157         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
40158         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
40159         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
40160         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
40161
40162 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
40163
40164         * math/tst-CMPLX.c: Include <stdio.h>.
40165
40166 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
40167
40168         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
40169         float.
40170         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
40171         * sysdeps/sparc/bits/mathdef.h: Likewise.
40172
40173 2012-01-31  Marek Polacek  <polacek@redhat.com>
40174
40175         * libio/libio.h: Don't define _PARAMS.
40176         * locale/programs/config.h: Don't define PARAMS.
40177         * stdlib/strtol_l.c: Likewise.
40178         (__strtol_l): Remove PARAMS from the prototype.
40179
40180 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
40181
40182         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
40183         names.  Just use the correct names.  Remove unnecessary wrapper
40184         functions.
40185         * malloc/arena.c: Likewise.
40186         * malloc/hooks.c: Likewise.
40187
40188         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
40189         ARENA_TEST says not to.  Simplify test for creation of a new arena.
40190         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
40191
40192 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
40193
40194         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
40195         into tail calls.
40196         (update_get_addr): New function.
40197         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
40198         GET_ADDR_MODULE parameter.
40199
40200 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
40201
40202         * crypt/cert.c: Remove __STDC__ conditionals.
40203         * crypt/crypt-entry.c: Likewise.
40204         * crypt/crypt_util.c: Likewise.
40205         * libio/filedoalloc.c: Likewise.
40206         * libio/fileops.c: Likewise.
40207         * libio/genops.c: Likewise.
40208         * libio/iofclose.c: Likewise.
40209         * libio/iofdopen.c: Likewise.
40210         * libio/iofopen.c: Likewise.
40211         * libio/iofopen64.c: Likewise.
40212         * libio/iogetdelim.c: Likewise.
40213         * libio/iopopen.c: Likewise.
40214         * libio/obprintf.c: Likewise.
40215         * libio/oldfileops.c: Likewise.
40216         * libio/oldiofclose.c: Likewise.
40217         * libio/oldiofdopen.c: Likewise.
40218         * libio/oldiofopen.c: Likewise.
40219         * libio/oldiopopen.c: Likewise.
40220         * libio/wfiledoalloc.c: Likewise.
40221         * libio/wgenops.c: Likewise.
40222         * locale/programs/xmalloc.c: Likewise.
40223         * misc/syslog.c: Likewise.
40224         * stdio-common/xbug.c: Likewise.
40225         * string/memchr.c: Likewise.
40226         * string/memcmp.c: Likewise.
40227         * string/memrchr.c: Likewise.
40228         * string/rawmemchr.c: Likewise.
40229         * sysdeps/posix/getcwd.c: Likewise.
40230         * time/strftime_l.c: Likewise.
40231
40232 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
40233
40234         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
40235         * config.make.in (config-cflags-sse2avx): Define.
40236         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
40237         Fix typo.
40238
40239 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
40240
40241         * scripts/config.guess: Update from upstream config git repository.
40242         * scripts/config.sub: Likewise.
40243
40244 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
40245
40246         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
40247         (EM_NUM): Update.
40248         (R_TILEPRO_*, R_TILEGX_*): New macros.
40249
40250         * scripts/firstversions.awk: Fix bug in version range handling.
40251
40252         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
40253
40254         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
40255
40256         * include/sys/epoll.h: New file.
40257         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
40258         libc_hidden_def.
40259
40260 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
40261
40262         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
40263         Avoid unnecessary __WORDSIZE == 64 test.
40264         (fmaxf): Use VEX format if possible.
40265         (fmax): Likewise.
40266         (fminf): Likewise.
40267         (fmin): Likewise.
40268
40269         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
40270         * math/math_private.h: Remove libc_fegetround* and
40271         libc_fesetround*.
40272         * sysdeps/i386/configure.in: Check for -msse2avx.
40273         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
40274         also if SSE2AVX is defined.
40275         Remove libc_fegetround* and libc_fesetround*.
40276         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
40277         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
40278         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
40279         of HAS_YMM_USABLE.
40280         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
40281         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
40282         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
40283         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
40284         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
40285
40286         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
40287
40288 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40289
40290         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
40291         size is not set.
40292         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
40293
40294 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
40295
40296         [BZ #13618]
40297         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
40298         relocation.
40299         * Makeconfig (libm): Define.
40300         * elf/Makefile: Add rules to build and run tst-relsort1.
40301         * elf/tst-relsort1.c: New file.
40302         * elf/tst-relsort1mod1.c: New file.
40303         * elf/tst-relsort1mod2.c: New file.
40304
40305 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
40306
40307         * math/s_ldexp.c: Remove __STDC__ conditionals.
40308         * math/s_ldexpf.c: Likewise.
40309         * math/s_ldexpl.c: Likewise.
40310         * math/s_nextafter.c: Likewise.
40311         * math/s_nexttowardf.c: Likewise.
40312         * math/s_significand.c: Likewise.
40313         * math/s_significandf.c: Likewise.
40314         * math/s_significandl.c: Likewise.
40315         * math/w_jnl.c: Likewise.
40316         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
40317         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
40318         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
40319         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
40320         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
40321         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
40322         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
40323         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
40324         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
40325         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
40326         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
40327         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
40328         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
40329         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
40330         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
40331         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
40332         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
40333         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
40334         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
40335         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
40336         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
40337         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
40338         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
40339         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
40340         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
40341         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
40342         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
40343         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
40344         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
40345         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
40346         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
40347         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
40348         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
40349         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
40350         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
40351         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
40352         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
40353         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
40354         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
40355         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
40356         * sysdeps/ieee754/k_standard.c: Likewise.
40357         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
40358         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
40359         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
40360         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
40361         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
40362         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
40363         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
40364         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
40365         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
40366         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
40367         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
40368         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
40369         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
40370         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
40371         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
40372         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
40373         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
40374         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
40375         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
40376         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
40377         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
40378         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
40379         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
40380         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
40381         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
40382         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
40383         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
40384         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
40385         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
40386         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
40387         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
40388         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
40389         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
40390         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
40391         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
40392         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
40393         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
40394         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
40395         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
40396         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
40397         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
40398         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
40399         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
40400         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
40401         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
40402         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
40403         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
40404         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
40405         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
40406         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
40407         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
40408         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
40409         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
40410         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
40411         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
40412         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
40413         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
40414         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
40415         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
40416         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
40417         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
40418         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
40419         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
40420         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
40421         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
40422         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
40423         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
40424         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
40425         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
40426         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
40427         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
40428         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
40429         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
40430         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
40431         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
40432         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
40433         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
40434         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
40435         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
40436         * sysdeps/ieee754/s_matherr.c: Likewise.
40437         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
40438         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
40439         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
40440         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
40441
40442 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
40443
40444         * crypt/md5.h: Remove __STDC__ conditionals.
40445         * libio/libioP.h: Likewise.
40446         * locale/programs/config.h: Likewise.
40447         * sysdeps/generic/sysdep.h: Likewise.
40448         * sysdeps/i386/asm-syntax.h: Likewise.
40449         * sysdeps/s390/asm-syntax.h: Likewise.
40450         * sysdeps/unix/sysdep.h: Likewise.
40451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
40452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
40453
40454 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
40455
40456         * libio/libio.h: Remove __STDC__ conditionals.
40457         * malloc/obstack.h: Likewise.
40458         * math/complex.h: Likewise.
40459         * math/math.h: Likewise.
40460         * sysdeps/generic/_G_config.h: Likewise.
40461         * sysdeps/gnu/_G_config.h: Likewise.
40462         * sysdeps/mach/hurd/_G_config.h: Likewise.
40463         * sysdeps/powerpc/bits/mathdef.h: Likewise.
40464         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
40465         * sysdeps/sparc/bits/mathdef.h: Likewise.
40466
40467 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
40468
40469         [BZ #13583]
40470         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
40471         Clean up HAS_* macros.
40472         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
40473         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
40474         possible.
40475         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
40476         HAS_AVX.
40477         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
40478         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
40479         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
40480         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
40481         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
40482
40483 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
40484
40485         * elf/tst-unique3.cc (gets): Remove declaration.
40486         * elf/tst-unique3lib.cc (gets): Likewise.
40487         * elf/tst-unique3lib2.cc (gets): Likewise.
40488         * elf/tst-unique4.cc (gets): Likewise.
40489
40490 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
40491
40492         * include/stdio.h: Add C++ protection.  Add gets declarations and
40493         definitions.
40494         * debug/tst-chk1.c: Don't declare gets here.
40495         * stdio-common/tst-gets.c: Likewise.
40496
40497 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
40498
40499         * posix/glob: Remove directory.
40500
40501 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
40502
40503         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
40504
40505 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
40506
40507         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
40508         of the non-standard EPFNOSUPPORT.
40509
40510 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40511
40512         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
40513         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
40514         ANYWHERE set to 1 only on KERN_NO_SPACE error.
40515
40516 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
40517
40518         * wcsmbs/uchar.h: Test __STDC_VERSION__.
40519
40520 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
40521
40522         * nscd/aicache.c (addhstaiX): Do not cache negative results of
40523         transient errors.
40524         * nscd/grpcache.c (cache_addgr): Likewise.
40525         * nscd/hstcache.c (cache_addhst): Likewise.
40526         * nscd/initgrcache.c (addinitgroupsX): Likewise.
40527         * nscd/pwdcache.c (cache_addpw): Likewise.
40528         * nscd/servicescache.c (cache_addserv): Likewise.
40529
40530 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
40531
40532         * malloc/malloc.c: Various cleanups.
40533         * malloc/hooks.c: Likewise.
40534
40535         * stdlib/Makefile (tests): Add bug-fmtmsg1.
40536         * stdlib/bug-fmtmsg1.c: New file.
40537
40538         * stdlib/fmtmsg.c (init): Add missing unlock.
40539         Patch by Peng Haitao <penght@cn.fujitsu.com>.
40540
40541 2012-01-12  Marek Polacek  <polacek@redhat.com>
40542
40543         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
40544         and _GNU_SOURCE.
40545
40546 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
40547
40548         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
40549         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
40550         macro to ensure uniqueness of label name.
40551         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40552         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40553
40554 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
40555
40556         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
40557
40558         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
40559         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
40560         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
40561         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
40562
40563 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
40564
40565         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
40566
40567         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
40568         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
40569         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
40570
40571         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
40572
40573         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
40574         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
40575         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
40576         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
40577
40578         * math/bits/math-finite.h: Add ldexp support.
40579
40580 2012-01-10  Marek Polacek  <polacek@redhat.com>
40581
40582         * locale/programs/localedef.h (show_archive_content): Add noreturn
40583         attribute.
40584
40585 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
40586
40587         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
40588
40589 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40590
40591         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
40592
40593         * io/Makefile (headers): Add bits/poll2.h.
40594
40595 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
40596
40597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
40598         typo #include statement.
40599
40600 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40601
40602         * include/sys/cdefs.h: Define __attribute_alloc_size.
40603         * catgets/gencat.c: Add alloc_size attribute and apply consistently
40604         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
40605         * elf/pldd.c: Likewise.
40606         * iconv/iconv_charmap.c: Likewise.
40607         * iconv/iconvconfig.c: Likewise.
40608         * iconv/strtab.c: Likewise.
40609         * locale/programs/locale.c: Likewise.
40610         * locale/programs/localedef.h: Likewise.
40611         * locale/programs/simple-hash.c: Likewise.
40612         * nscd/nscd.h: Likewise.
40613         * nss/makedb.c: Likewise.
40614         * sysdeps/generic/ldconfig.h: Likewise.
40615         * locale/programs/localedef.c: Remove xmalloc prototype.
40616         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
40617
40618 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
40619
40620         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
40621         appropriate.
40622
40623 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40624
40625         * math/Makefile (tests): Add tst-CMPLX.
40626         * math/tst-CMPLX.c: New file.
40627
40628         * math/complex.h (CMPLXL): Fix typo.
40629
40630         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
40631         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
40632         GLIBC_2.16.
40633         * debug/tst-chk1.c: Add poll and ppoll tests.
40634         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
40635         * include/sys/poll.h: Add hidden proto for ppoll.
40636         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
40637         * sysdeps/mach/hurd/ppoll.c: Likewise.
40638         * io/ppoll.c: Likewise.
40639         * debug/poll_chk.c: New file.
40640         * debug/ppoll_chk.c: New file.
40641         * include/bits/poll2.h: New file.
40642         * io/bits/poll2.h: New file.
40643
40644         [BZ #1350]
40645         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
40646
40647         * configure.in: static is always set to yes.  Remove.
40648         * config.make.in: Don't set build-static.
40649         * Makeconfig: Remove use of build-static.
40650         * dlfcn/Makefile: Likewise.
40651         * elf/Makefile: Likewise.
40652         * math/Makefile: Likewise.
40653         * misc/Makefile: Likewise.
40654         * nptl/Makefile: Likewise.
40655         * sysdeps/mach/hurd/Makefile: Likewise.
40656
40657         * configure.in: PWD_P is not used anymore.
40658         * config.make.in: Remove PWD_P entry.
40659
40660         * configure.in: Remove last remnants of RANLIB.
40661         No need to check for signed size_t anymore.
40662         Don't set libc_commonpagesize and libc_relro_required here for Alpha
40663         and IA-64.
40664         Remove __builtin_expect test because we require at least gcc 3.4.
40665         * aclocal.m4: Likewise.
40666
40667         * wcsmbs/mbrtoc16.c: Implement using towc function.
40668         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
40669         * wcsmbs/wcsmbsload.c: Likewise.
40670         * iconv/gconv_simple.c: Likewise.
40671         * iconv/gconv_int.h: Likewise.
40672         * iconv/gconv_builtin.h: Likewise.
40673         * iconv/iconv_prog.c: Remove CHAR16 handling.
40674
40675         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
40676
40677         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
40678
40679         * configure.in: Remove --with-elf and --enable-bounded options.
40680         Dont set base_machine for ia64.  More non-ELF conditions removed.
40681         Remove testing and setting of leading underscore information.
40682         * config.make.in (build-bounded): Set to no.
40683         * config.h.in: Remove NO_UNDERSCORES entry.
40684         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
40685         them.
40686         * csu/start.c: Remove !NO_UNDERSCORE code.
40687         * locale/localeinfo.h: Likewise.
40688         * sysdeps/generic/machine-gmon.h: Likewise.
40689         * sysdeps/generic/sysdep.h: Likewise.
40690         * sysdeps/i386/sysdep.h: Likewise.
40691         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40692         * sysdeps/mach/sysdep.h: Likewise.
40693         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40694         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40695         * sysdeps/sh/sysdep.h: Likewise.
40696         * sysdeps/sparc/sparc32/alloca.S: Likewise.
40697         * sysdeps/unix/i386/sysdep.S: Likewise.
40698         * sysdeps/unix/sparc/start.c: Likewise.
40699         * sysdeps/unix/sparc/sysdep.S: Likewise.
40700         * sysdeps/unix/sparc/sysdep.h: Likewise.
40701         * sysdeps/unix/start.c: Likewise.
40702         * sysdeps/unix/x86_64/sysdep.S: Likewise.
40703         * sysdeps/x86_64/sysdep.h: Likewise.
40704
40705 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
40706
40707         [BZ #13553]
40708         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
40709         for non-gcc.
40710         * argp/argp-fmtstream.h: Use const instead __const.
40711         * argp/argp.h: Likewise.
40712         * assert/assert.h: Likewise.
40713         * bits/fenv.h: Likewise.
40714         * bits/sched.h: Likewise.
40715         * bits/sigset.h: Likewise.
40716         * bits/sigthread.h: Likewise.
40717         * catgets/nl_types.h: Likewise.
40718         * conform/data/pthread.h-data: Likewise.
40719         * crypt/crypt-private.h: Likewise.
40720         * crypt/crypt.h: Likewise.
40721         * crypt/crypt_util.c: Likewise.
40722         * ctype/ctype.h: Likewise.
40723         * debug/execinfo.h: Likewise.
40724         * debug/mbsnrtowcs_chk.c: Likewise.
40725         * debug/mbsrtowcs_chk.c: Likewise.
40726         * debug/wcsnrtombs_chk.c: Likewise.
40727         * debug/wcsrtombs_chk.c: Likewise.
40728         * debug/wcstombs_chk.c: Likewise.
40729         * dirent/dirent.h: Likewise.
40730         * dlfcn/dlfcn.h: Likewise.
40731         * elf/neededtest4.c: Likewise.
40732         * grp/grp.h: Likewise.
40733         * gshadow/gshadow.h: Likewise.
40734         * iconv/gconv.h: Likewise.
40735         * iconv/gconv_int.h: Likewise.
40736         * iconv/gconv_simple.c: Likewise.
40737         * iconv/iconv.h: Likewise.
40738         * iconv/loop.c: Likewise.
40739         * iconv/skeleton.c: Likewise.
40740         * include/aio.h: Likewise.
40741         * include/aliases.h: Likewise.
40742         * include/argz.h: Likewise.
40743         * include/arpa/inet.h: Likewise.
40744         * include/assert.h: Likewise.
40745         * include/dirent.h: Likewise.
40746         * include/dlfcn.h: Likewise.
40747         * include/execinfo.h: Likewise.
40748         * include/fcntl.h: Likewise.
40749         * include/fenv.h: Likewise.
40750         * include/glob.h: Likewise.
40751         * include/grp.h: Likewise.
40752         * include/libintl.h: Likewise.
40753         * include/mntent.h: Likewise.
40754         * include/netdb.h: Likewise.
40755         * include/pwd.h: Likewise.
40756         * include/rpc/netdb.h: Likewise.
40757         * include/sched.h: Likewise.
40758         * include/search.h: Likewise.
40759         * include/shadow.h: Likewise.
40760         * include/signal.h: Likewise.
40761         * include/stdio.h: Likewise.
40762         * include/stdlib.h: Likewise.
40763         * include/string.h: Likewise.
40764         * include/sys/socket.h: Likewise.
40765         * include/sys/stat.h: Likewise.
40766         * include/sys/statfs.h: Likewise.
40767         * include/sys/statvfs.h: Likewise.
40768         * include/sys/syslog.h: Likewise.
40769         * include/sys/time.h: Likewise.
40770         * include/sys/uio.h: Likewise.
40771         * include/time.h: Likewise.
40772         * include/unistd.h: Likewise.
40773         * include/utmp.h: Likewise.
40774         * include/wchar.h: Likewise.
40775         * include/wctype.h: Likewise.
40776         * inet/aliases.h: Likewise.
40777         * inet/arpa/inet.h: Likewise.
40778         * inet/netinet/ether.h: Likewise.
40779         * inet/netinet/in.h: Likewise.
40780         * intl/libintl.h: Likewise.
40781         * io/bits/fcntl2.h: Likewise.
40782         * io/fcntl.h: Likewise.
40783         * io/ftw.h: Likewise.
40784         * io/sys/poll.h: Likewise.
40785         * io/sys/stat.h: Likewise.
40786         * io/sys/statfs.h: Likewise.
40787         * io/sys/statvfs.h: Likewise.
40788         * io/utime.h: Likewise.
40789         * libio/bits/stdio.h: Likewise.
40790         * libio/bits/stdio2.h: Likewise.
40791         * libio/libio.h: Likewise.
40792         * libio/libioP.h: Likewise.
40793         * libio/stdio.h: Likewise.
40794         * locale/lc-ctype.c: Likewise.
40795         * locale/locale.h: Likewise.
40796         * login/utmp.h: Likewise.
40797         * malloc/arena.c: Likewise.
40798         * malloc/malloc.c: Likewise.
40799         * malloc/malloc.h: Likewise.
40800         * malloc/mcheck.c: Likewise.
40801         * malloc/mtrace.c: Likewise.
40802         * math/bits/mathcalls.h: Likewise.
40803         * math/fenv.h: Likewise.
40804         * math/math_private.h: Likewise.
40805         * misc/bits/error.h: Likewise.
40806         * misc/bits/syslog.h: Likewise.
40807         * misc/err.h: Likewise.
40808         * misc/error.h: Likewise.
40809         * misc/fstab.h: Likewise.
40810         * misc/mntent.h: Likewise.
40811         * misc/regexp.h: Likewise.
40812         * misc/search.h: Likewise.
40813         * misc/sgtty.h: Likewise.
40814         * misc/sys/mman.h: Likewise.
40815         * misc/sys/syslog.h: Likewise.
40816         * misc/sys/uio.h: Likewise.
40817         * misc/sys/xattr.h: Likewise.
40818         * misc/ttyent.h: Likewise.
40819         * nis/rpcsvc/ypclnt.h: Likewise.
40820         * nss/nss.h: Likewise.
40821         * posix/bits/unistd.h: Likewise.
40822         * posix/fnmatch.h: Likewise.
40823         * posix/glob.h: Likewise.
40824         * posix/sched.h: Likewise.
40825         * posix/spawn.h: Likewise.
40826         * posix/sys/wait.h: Likewise.
40827         * posix/unistd.h: Likewise.
40828         * posix/wordexp.h: Likewise.
40829         * pwd/pwd.h: Likewise.
40830         * resolv/netdb.h: Likewise.
40831         * resource/sys/resource.h: Likewise.
40832         * rt/aio.h: Likewise.
40833         * rt/bits/mqueue2.h: Likewise.
40834         * rt/mqueue.h: Likewise.
40835         * shadow/shadow.h: Likewise.
40836         * signal/signal.h: Likewise.
40837         * socket/send.c: Likewise.
40838         * socket/sendto.c: Likewise.
40839         * socket/sys/socket.h: Likewise.
40840         * stdio-common/printf.h: Likewise.
40841         * stdlib/bits/stdlib.h: Likewise.
40842         * stdlib/fmtmsg.h: Likewise.
40843         * stdlib/monetary.h: Likewise.
40844         * stdlib/stdlib.h: Likewise.
40845         * stdlib/ucontext.h: Likewise.
40846         * streams/stropts.h: Likewise.
40847         * string/argz.h: Likewise.
40848         * string/bits/string2.h: Likewise.
40849         * string/string.h: Likewise.
40850         * string/strings.h: Likewise.
40851         * sunrpc/rpc/auth.h: Likewise.
40852         * sunrpc/rpc/auth_des.h: Likewise.
40853         * sunrpc/rpc/clnt.h: Likewise.
40854         * sunrpc/rpc/netdb.h: Likewise.
40855         * sunrpc/rpc/pmap_clnt.h: Likewise.
40856         * sunrpc/rpc/xdr.h: Likewise.
40857         * sysdeps/generic/inttypes.h: Likewise.
40858         * sysdeps/generic/net/if.h: Likewise.
40859         * sysdeps/generic/sys/swap.h: Likewise.
40860         * sysdeps/gnu/net/if.h: Likewise.
40861         * sysdeps/gnu/utmpx.h: Likewise.
40862         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
40863         * sysdeps/i386/i486/bits/string.h: Likewise.
40864         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
40865         * sysdeps/s390/bits/string.h: Likewise.
40866         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
40867         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
40868         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
40869         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
40870         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
40871         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
40872         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
40873         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
40874         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
40875         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
40876         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
40877         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
40878         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
40879         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
40880         * sysdeps/unix/sysv/linux/readv.c: Likewise.
40881         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
40882         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
40883         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
40884         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
40885         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
40886         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40887         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
40888         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
40889         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
40890         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
40891         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
40892         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
40893         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40894         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
40895         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
40896         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
40897         * sysvipc/sys/ipc.h: Likewise.
40898         * sysvipc/sys/msg.h: Likewise.
40899         * sysvipc/sys/sem.h: Likewise.
40900         * sysvipc/sys/shm.h: Likewise.
40901         * termios/termios.h: Likewise.
40902         * time/sys/time.h: Likewise.
40903         * time/time.h: Likewise.
40904         * wcsmbs/bits/wchar2.h: Likewise.
40905         * wcsmbs/uchar.h: Likewise.
40906         * wcsmbs/wchar.h: Likewise.
40907         * wctype/wctype.h: Likewise.
40908
40909         [BZ #13551]
40910         * Makeconfig: Remove all but ELF support including AIX support.
40911         * Makerules: Likewise.
40912         * config.h.in: Likewise.
40913         * config.make.in: Likewise.
40914         * configure: Likewise.
40915         * configure.in: Likewise.
40916         * csu/Makefile: Likewise.
40917         * csu/version.c: Likewise.
40918         * debug/Makefile: Likewise.
40919         * dlfcn/Makefile: Likewise.
40920         * elf/Makefile: Likewise.
40921         * extra-lib.mk: Likewise.
40922         * iconv/Makefile: Likewise.
40923         * include/libc-symbols.h: Likewise.
40924         * include/shlib-compat.h: Likewise.
40925         * resolv/Makefile: Likewise.
40926         * resolv/res_libc.c: Likewise.
40927         * rt/Makefile: Likewise.
40928         * sysdeps/i386/asm-syntax.h: Likewise.
40929         * sysdeps/i386/sysdep.h: Likewise.
40930         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40931         * sysdeps/mach/sysdep.h: Likewise.
40932         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
40933         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
40934         * sysdeps/s390/asm-syntax.h: Likewise.
40935         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40936         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40937         * sysdeps/sh/sysdep.h: Likewise.
40938         * sysdeps/unix/sparc/sysdep.h: Likewise.
40939         * sysdeps/wordsize-32/divdi3.c: Likewise.
40940         * sysdeps/x86_64/sysdep.h: Likewise.
40941
40942         * argp/Versions: Remove _argp_unlock_xxx.
40943
40944         [BZ #13559]
40945         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
40946         * abilist/libBrokenLocale.abilist: Likewise.
40947         * abilist/libanl.abilist: Likewise.
40948         * abilist/libc.abilist: Likewise.
40949         * abilist/libcrypt.abilist: Likewise.
40950         * abilist/libdl.abilist: Likewise.
40951         * abilist/libm.abilist: Likewise.
40952         * abilist/libnsl.abilist: Likewise.
40953         * abilist/libpthread.abilist: Likewise.
40954         * abilist/libresolv.abilist: Likewise.
40955         * abilist/librt.abilist: Likewise.
40956         * abilist/libthread_db.abilist: Likewise.
40957         * abilist/libutil.abilist: Likewise.
40958         * abilist/libnss_db.abilist: New file.
40959
40960         * scripts/abilist.awk: Add support for indirect functions.
40961
40962         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
40963
40964         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
40965
40966         * shlib-versions: Remove entries for ports architectures.
40967
40968         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
40969         files in ports.
40970         * elf/stackguard-macros.h: Remove support for IA-64.
40971         * elf/tst-auditmod1.c: Likewise.
40972         * sysdeps/generic/ldsodefs.h: Likewise.
40973
40974         * sysdeps/unix/sysv/linux/configure.in: Ports should define
40975         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
40976         configure files.
40977
40978         [BZ #13552]
40979         * configure.in: Remove --enable-omitfp support.
40980         * FAQ.in: Adjust.
40981         * config.make.in: Likewise.
40982         * Makeconfig: Likewise.
40983         * manual/install.texi: Likewise.
40984
40985         In case anyone cares, the IA-64 architecture could move to ports.
40986         * sysdeps/ia64/*: Removed.
40987         * sysdeps/unix/sysv/linux/ia64/*: Removed.
40988         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
40989
40990         [BZ #13555]
40991         * configure.in: Remove entries for unsupported architectures.
40992
40993         [BZ #13533]
40994         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
40995         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
40996         routines.
40997         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
40998         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
40999         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
41000         fall back to using wcrtomb.
41001         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
41002         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
41003         renaming.
41004         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
41005         * wcsmbs/tst-c16c32-1.c: New file.
41006
41007         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
41008         local variable.
41009
41010         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
41011
41012         * elf/tst-unique3.cc: Add explicit declaration of gets.
41013         * elf/tst-unique3lib.cc: Likewise.
41014         * elf/tst-unique3lib2.cc: Likewise.
41015         * elf/tst-unique4.cc: Likewise.
41016
41017         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
41018
41019 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
41020
41021         [BZ #13566]
41022         * assert/assert.h (static_assert): Don't define for C++.
41023         * libio/stdio.h (gets): Do declare for C++ <= C++11.
41024         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
41025
41026 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
41027
41028         * iconv/loop.c (single loop): Fix assertion in storing of
41029         remaining bytes.
41030
41031         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
41032
41033 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
41034
41035         * posix/getconf.c: Update copyright year.
41036         * nss/getent.c: Likewise.
41037         * nss/makedb.c: Likewise.
41038         * iconv/iconvconfig.c: Likewise.
41039         * iconv/iconv_prog.c: Likewise.
41040         * elf/ldconfig.c: Likewise.
41041         * elf/pldd.c: Likewise.
41042         * elf/sotruss.ksh: Likewise.
41043         * catgets/gencat.c: Likewise.
41044         * csu/version.c: Likewise.
41045         * elf/ldd.bash.in: Likewise.
41046         * elf/sprof.c (print_version): Likewise.
41047         * locale/programs/locale.c: Likewise.
41048         * locale/programs/localedef.c: Likewise.
41049         * login/programs/pt_chown.c: Likewise.
41050         * nscd/nscd.c (print_version): Likewise.
41051         * debug/xtrace.sh: Likewise.
41052         * malloc/memusage.sh: Likewise.
41053         * malloc/mtrace.pl: Likewise.
41054         * debug/catchsegv.sh: Likewise.
41055
41056 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
41057
41058         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
41059         pure attribute.
41060
41061 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
41062
41063         [BZ #13533]
41064         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
41065         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
41066         transformations.
41067         * iconv/gconv_int.h: Likewise.
41068         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
41069         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
41070         from libc for GLIBC_2.16.
41071         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
41072         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
41073         * wcsmbs/uchar.h: Really define mbstate_t.
41074         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
41075         * wcsmbs/c16rtomb.c: New file.
41076         * wcsmbs/mbrtoc16.c: New file.
41077         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
41078         for C/POSIX locale.
41079         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
41080         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
41081
41082         * wcsmbs/wchar.h: Add missing __restrict.
41083
41084 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
41085
41086         [BZ #13532]
41087         * time/Makefile (routines): Add timespec_get.
41088         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
41089         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
41090         timespec for ISO C11.
41091         * time/timespec_get.c: New file.
41092         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
41093         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
41094
41095         [BZ #13531]
41096         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
41097         * stdlib/stdlib.h: Declare aligned_alloc.
41098         * Versions.def: Add GLIBC_2.16 for libc.
41099         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
41100
41101         [BZ 13527]
41102         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
41103         ISO C11.
41104
41105         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
41106         code.
41107
41108         [BZ #13528]
41109         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
41110
41111         [BZ #13529]
41112         * assert/assert.h (static_assert): Define.
41113
41114         * version.h: Update for 2.16 development version.
41115
41116         [BZ #13526]
41117         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
41118         _ISOC11_SOURCE.
41119
41120         * version.h (RELEASE): Bump for 2.15 release.
41121         * include/features.h (__GLIBC_MINOR__): Bump to 15.
41122
41123         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
41124         Patch by Marek Polacek <mpolacek@redhat.com>.
41125
41126         * bits/byteswap.h: Protect long long constants with __extension__.
41127         * sysdeps/i386/bits/byteswap.h: Likewise.
41128         * sysdeps/ia64/bits/byteswap.h: Likewise.
41129         * sysdeps/s390/bits/byteswap.h: Likewise.
41130         * sysdeps/x86_64/bits/byteswap.h: Likewise.
41131
41132 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41133
41134         [BZ #13540]
41135         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
41136         destination buffer.
41137         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
41138
41139 2011-12-23  Marek Polacek  <polacek@redhat.com>
41140
41141         * elf/dl-addr.c (determine_info): Add inline keyword.
41142         * elf/tst-auditmod4b.c (check_avx): Likewise.
41143         * elf/tst-auditmod6b.c (check_avx): Likewise.
41144         * elf/tst-auditmod6c.c (check_avx): Likewise.
41145         * elf/tst-auditmod7b.c (check_avx): Likewise.
41146
41147 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
41148
41149         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
41150         !__SSE_MATH__.
41151
41152 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41153
41154         [BZ #13540]
41155         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
41156         processing for last bytes.
41157
41158 2011-08-06  Bruno Haible  <bruno@clisp.org>
41159
41160         [BZ #13061]
41161         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
41162         U+0385, not to U+1FEE.
41163
41164         [BZ #13062]
41165         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
41166         entry for U+00A5 U+0301.
41167
41168 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
41169
41170         [BZ #13166]
41171         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
41172         buffer for the output is too small.
41173
41174         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
41175         optimization.
41176
41177         [BZ #13185]
41178         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
41179         SSE flags if possible.
41180
41181 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41182
41183         [BZ #13540]
41184         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
41185         processing for last bytes.
41186
41187 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
41188
41189         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
41190         (syscall-list-default-options, syscall-list-default-condition)
41191         (syscall-list-includes): Define.
41192         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
41193         list of ABIs and options and #if conditions for each ABI.  Do not
41194         handle common syscalls between ABIs specially.
41195         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
41196         Remove.
41197         (syscall-list-variants, syscall-list-32bit-options)
41198         (syscall-list-32bit-condition, syscall-list-64bit-options)
41199         (syscall-list-64bit-condition): Define.
41200         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
41201         (syscall-list-variants, syscall-list-32bit-options)
41202         (syscall-list-32bit-condition, syscall-list-64bit-options)
41203         (syscall-list-64bit-condition): Define.
41204         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
41205         Remove.
41206         (syscall-list-variants, syscall-list-32bit-options)
41207         (syscall-list-32bit-condition, syscall-list-64bit-options)
41208         (syscall-list-64bit-condition): Define.
41209         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
41210         Remove.
41211         (syscall-list-variants, syscall-list-32bit-options)
41212         (syscall-list-32bit-condition, syscall-list-64bit-options)
41213         (syscall-list-64bit-condition): Define.
41214
41215 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
41216
41217         * locale/iso-639.def: Add brx entry.
41218
41219         [BZ #13328]
41220         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
41221         Proposed by Mariusz_Cukr <marcukr@op.pl>.
41222
41223         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
41224         __feraiseexcept_renamed.
41225
41226 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
41227
41228         [BZ #13538]
41229         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
41230         EPOLLET with unsigned values.
41231         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
41232         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
41233
41234         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
41235         to large cancellation.
41236         * math/s_cacoshf.c: Likewise.
41237         * math/s_cacoshl.c: Likewise.
41238
41239 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
41240
41241         [BZ #13305]
41242         [BZ #12786]
41243         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
41244         * math/s_cacoshf.c: Likewise.
41245         * math/s_cacoshl.c: Likewise.
41246
41247 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
41248
41249         [BZ #13439]
41250         * iconv/gconv.h: Define __GCONV_SWAP.
41251         * iconvdata/unicode.c: The swap bit must be stored in __flags.
41252         * iconvdata/utf-16.c: Likewise.
41253         * iconvdata/utf-32.c: Likewise.
41254
41255 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
41256
41257         [BZ #13524]
41258         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
41259         numerator after shifting it by one limb.
41260
41261 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
41262
41263         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
41264         under [__USE_EXTERN_INLINES].
41265
41266 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
41267
41268         [BZ #13446]
41269         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
41270
41271 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41272
41273         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
41274         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
41275         optimized code.
41276         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
41277         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
41278         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
41279         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
41280         for strncasecmp/strncasecmp_l compilation.
41281         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
41282         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
41283
41284 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
41285
41286         [BZ #13484]
41287         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
41288         of __asm__.
41289
41290 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
41291
41292         [BZ #13506]
41293         * time/tzfile.c (__tzfile_read): Check values from file header.
41294
41295 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
41296
41297         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
41298         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
41299         * powerpc/powerpc32/dl-start.S: Likewise.
41300         * powerpc/powerpc32/elf/start.S: Likewise.
41301         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41302         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
41303         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
41304         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
41305         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
41306         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
41307         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
41308         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
41309         * powerpc/powerpc32/fpu/s_round.S: Likewise.
41310         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
41311         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
41312         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
41313         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
41314         * powerpc/powerpc32/memset.S: Likewise.
41315         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
41316         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
41317         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
41318         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
41319         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
41320         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
41321         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
41322         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
41323         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
41324         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
41325         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
41326         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
41327         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
41328
41329 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41330
41331         * math/libm-test.inc: Added more nearbyint tests.
41332         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
41333         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
41334         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
41335         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
41336
41337 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
41338
41339         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
41340         FD_CLOEXEC.
41341
41342 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41343
41344         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
41345         Add wcscpy-ssse3 wcscpy-c.
41346         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
41347         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
41348         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
41349         * sysdeps/x86_64/wcschr.S: New file.
41350         * sysdeps/x86_64/wcsrchr.S: New file.
41351         * string/test-strcmp.c: Remove checking of wcscmp function for
41352         wrong alignments.
41353         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
41354         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
41355         wcsrchr-sse2 wcsrchr-c.
41356         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
41357         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
41358         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
41359         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
41360         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
41361         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
41362         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
41363         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
41364         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
41365         * wcsmbc/wcschr.c (WCSCHR): New macro.
41366
41367 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41368
41369         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
41370         * wcsmbs/test-wcsrchr.c: New file.
41371         * string/test-strrchr.c: Add wcsrchr support.
41372         (WIDE): New macro.
41373         * wcsmbs/test-wcscpy.c: New file.
41374         * string/test-strcpy.c: Add wcscpy support.
41375         (WIDE): New macro.
41376
41377 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
41378
41379         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
41380         the inner loop.
41381
41382 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
41383
41384         [BZ #13472]
41385         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
41386
41387 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
41388
41389         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
41390         Minor optimizations.
41391
41392         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
41393         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
41394         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
41395
41396 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
41397
41398         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
41399         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
41400         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
41401         for gcc to avoid warnings.
41402         * inet/Makefile (tests): Add tst-checks.
41403         * inet/tst-checks.c: New file.
41404
41405         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
41406         warning.
41407
41408         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
41409         __wmemcmp_sse2.
41410
41411         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
41412         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
41413
41414         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
41415
41416 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
41417
41418         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
41419         problem.
41420
41421         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
41422
41423 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
41424
41425         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
41426         conditional on GCC version.
41427         (__arch_compare_and_exchange_val_8_acq)
41428         (__arch_compare_and_exchange_val_16_acq)
41429         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
41430         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
41431         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
41432
41433 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
41434
41435         * sysdeps/sh/backtrace.c: New file.
41436
41437 2011-12-02  Andreas Schwab  <schwab@redhat.com>
41438
41439         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
41440         parenthesis.
41441
41442 2011-12-01  Andreas Schwab  <schwab@redhat.com>
41443
41444         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
41445         falling back to utime.
41446
41447 2011-11-30  Andreas Schwab  <schwab@redhat.com>
41448
41449         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
41450         expectations for float.
41451
41452 2011-11-29  Andreas Schwab  <schwab@redhat.com>
41453
41454         * locale/weight.h (findidx): Add parameter len.
41455         * locale/weightwc.h (findidx): Likewise.
41456         * posix/fnmatch_loop.c (FCT): Adjust caller.
41457         * posix/regcomp.c (build_equiv_class): Likewise.
41458         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
41459         * posix/regexec.c (check_node_accept_bytes): Likewise.
41460         * string/strcoll_l.c (STRCOLL): Likewise.
41461         * string/strxfrm_l.c (STRXFRM): Likewise.
41462
41463 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
41464
41465         * Makefile.in: Remove CVSOPT handling.
41466         * configure.in: Remove use of AC_REVISION.
41467         * iconvdata/Makefile (distribute): No need to filter out CVS.
41468         * scripts/list-sources.sh: Remove CVS, subversion and monotone
41469         handling.
41470
41471 2011-11-16  Andreas Schwab  <schwab@redhat.com>
41472
41473         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
41474         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
41475         [USE_AS_STRNCASECMP_L]: Likewise.
41476         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
41477         NO_TLS_DIRECT_SEG_REFS.
41478         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
41479         Fix argument offsets for non-PIC.
41480         [USE_AS_STRNCASECMP_L]: Likewise.
41481         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
41482         NO_TLS_DIRECT_SEG_REFS.
41483
41484 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
41485
41486         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
41487         O_CLOEXEC.
41488         * locale/loadlocale.c (_nl_load_locale): Likewise.
41489
41490 2011-11-15  Andreas Schwab  <schwab@redhat.com>
41491
41492         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
41493         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
41494         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
41495         (SYSCALL_GETTIME): Set errno on error.
41496
41497         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
41498         count references to noai6ai_cached.
41499
41500 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
41501
41502         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
41503
41504         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
41505         FD_CLOEXEC for /proc/self/maps.
41506
41507         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
41508         FD_CLOEXEC for /proc/meminfo.
41509
41510         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
41511         gai.conf.
41512
41513         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
41514         FD_CLOEXEC for given file.
41515
41516         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
41517
41518         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
41519         FD_CLOEXEC for /etc/hosts.
41520         (_gethtent): Likewise.
41521
41522         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
41523
41524         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
41525         cancellation and set FD_CLOEXEC for /etc/netgroup.
41526
41527         * nss/nss_files/files-key.c (search): Don't allow cancellation when
41528         reading /etc/publickey.
41529
41530         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
41531         allow cancellation when reading /etc/group.
41532
41533         * nss/nss_files/files-alias.c (internal_setent): Don't allow
41534         cancellation.
41535         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
41536
41537         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
41538         when using data file.
41539
41540         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
41541
41542         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
41543         (write_nis_obj): Use "c" and "e" in fopen.
41544
41545         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
41546
41547         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
41548
41549         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
41550
41551         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
41552
41553         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
41554         locale.alias.
41555
41556         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
41557
41558         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
41559
41560         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
41561
41562         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
41563         file parsing and set FD_CLOEXEC.
41564
41565 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
41566
41567         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
41568
41569 2011-11-14  Andreas Schwab  <schwab@redhat.com>
41570
41571         * malloc/arena.c (arena_get2): Don't call reused_arena when
41572         _int_new_arena failed.
41573
41574 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
41575
41576         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
41577         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
41578         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
41579         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
41580         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
41581         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
41582         to compile strcasecmp and strncasecmp.
41583         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
41584         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
41585
41586         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
41587
41588 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
41589
41590         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
41591         locale-defines.sym to gen-as-const-headers.
41592         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
41593         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
41594         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
41595         to compile strcasecmp and strncasecmp.
41596         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
41597         strcasecmp_l and strncasecmp_l.
41598         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
41599         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
41600         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
41601         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
41602         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
41603         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
41604         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
41605         * sysdeps/i386/i686/multiarch/strncase.S: New file.
41606         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
41607         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
41608         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
41609
41610 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
41611
41612         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
41613         result of SYSDEP_GETTIME_CPU to retval.
41614         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
41615         parameter list to macro.  Remove trailing semicolon.  Adjust users.
41616
41617         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
41618         variable.
41619
41620         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
41621         mantissa words.
41622         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
41623
41624         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
41625         from unused variable.
41626
41627         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
41628         DWARF definitions.
41629         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
41630         for assembling.
41631
41632         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
41633         over namespaces.
41634
41635         * sunrpc/rpc_prot.c (rejected): Fix case value.
41636
41637         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
41638         unsigned long long int to avoid warnings in shift.
41639
41640         * posix/regex_internal.c (re_string_reconstruct): Actually use result
41641         of use of trans.
41642         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
41643         variable tmp.
41644
41645         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
41646         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
41647         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
41648
41649         * nis/nis_table.c (nis_list): Use variable of correct type for
41650         result of __follow_path call.
41651
41652 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41653
41654         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
41655         of math functions ceil, trunc, floor, round, and sqrt, when
41656         avaliable on the platform.
41657         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
41658         name clash.
41659         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41660         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41661         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41662
41663 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
41664
41665         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
41666         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
41667
41668 2011-11-11  Roland McGrath  <roland@hack.frob.com>
41669
41670         * include/unistd.h: Fix __readlink return type.
41671         Reported by Chris Metcalf <cmetcalf@tilera.com>.
41672
41673 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
41674
41675         * stdlib/ucontext.h: Undo last change for makecontext.
41676
41677 2011-11-11  Andreas Schwab  <schwab@redhat.com>
41678
41679         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
41680
41681         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
41682         * setjmp/setjmp.h: Mark functions as non-leaf.
41683         * setjmp/bits/setjmp2.h: Likewise.
41684         * stdlib/ucontext.h: Likewise.
41685
41686 2011-11-10  Andreas Schwab  <schwab@redhat.com>
41687
41688         * malloc/arena.c (_int_new_arena): Don't increment narenas.
41689         (reused_arena): Don't check arena limit.
41690         (arena_get2): Atomically check arena limit.
41691
41692 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
41693
41694         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
41695         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
41696
41697         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
41698         instructions.
41699
41700 2011-11-07  Andreas Schwab  <schwab@redhat.com>
41701
41702         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
41703         handler when locking.
41704
41705         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
41706         Fix size of allocated buffer.
41707
41708 2011-11-04  Andreas Schwab  <schwab@redhat.com>
41709
41710         [BZ #10103]
41711         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
41712         declarations for long double functions.
41713         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
41714
41715         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
41716
41717 2011-11-03  Andreas Schwab  <schwab@redhat.com>
41718
41719         * nscd/nscd.c (main): Don't start AVC thread until credentials are
41720         installed.
41721
41722         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
41723         is disabled.
41724
41725 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41726
41727         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
41728
41729 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
41730
41731         * include/alloca.h (stackinfo_alloca_round): Define.
41732         (extend_alloca): Use it.
41733         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
41734         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
41735         here.
41736
41737         * scripts/check-local-headers.sh: Ignore libaudit.h.
41738
41739         * nscd/Makefile (extra-objs): Make recursively expanded.
41740
41741 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
41742
41743         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
41744         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
41745
41746         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
41747         * posix/tst-rfc3484-2.c: Likewise.
41748         * posix/tst-rfc3484-3.c: Likewise.
41749
41750         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
41751         process_vm_writev.
41752         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
41753         process_vm_writev.
41754         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
41755         process_vm_writev from libc using GLIBC_2.15 version.
41756
41757         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
41758
41759 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
41760
41761         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
41762         stack usage.
41763
41764 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
41765
41766         [BZ #13367]
41767         * nss/getent.c (initgroups_keys): Show error message in case no group
41768         names are given.
41769
41770         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
41771         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
41772         __bump_nl_timestamp.
41773         * nscd/connections (nscd_init): When host database is served open
41774         netlink socket and request notification about configuration changes.
41775         (main_loop_poll): Track netlink file descriptor and bump timestamp
41776         in case data becomes available.
41777         (main_loop_epoll): Likewise.
41778         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
41779         (database_pers_head): Add extra_data fileds.
41780         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
41781         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
41782         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
41783         Adjust caller.
41784         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
41785         in6ai data, call __free_in6ai.
41786         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
41787         Add -DHAVE_NETLINK.
41788         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
41789         interface information.  Reuse previous data if netlink timestamp
41790         is not changed.
41791         (__bump_nl_timestamp): New function.
41792         (__free_in6ai): New function.
41793
41794 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
41795
41796         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
41797         close_not_cancel_no_status here.
41798         (__check_pf): Reorganize code a bit to not call close twice if OOM.
41799
41800 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41801
41802         [BZ #13276]
41803         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
41804         return value.
41805
41806         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
41807         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
41808         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
41809
41810 2011-07-03  Andreas Jaeger  <aj@suse.de>
41811
41812         [BZ #10709]
41813         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
41814         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
41815         * math/libm-test.inc (sin_test): Add test case.
41816
41817 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41818
41819         [BZ #13337]
41820         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
41821         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41822
41823         * elf/chroot_canon.c (chroot_canon): Cleanups.
41824
41825         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
41826
41827         [BZ #13335]
41828         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
41829         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41830
41831         * string/test-strchr.c: Make usable for strchrnul testing.
41832         * string/test-strchrnul.c: New file.
41833         * string/Makefile (strop-tests): Add strchrnul.
41834
41835         * po/it.po: Update from translation team.
41836         * po/es.po: Likewise.
41837
41838 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
41839
41840         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
41841         the three constants needed as parameters.  Drop the others.
41842         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
41843         __m128i_strloadu_tolower.
41844         Create and initialize variable zero and use it in all the places
41845         where _mm_setzero_si128 was used.
41846
41847         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
41848         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
41849         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
41850         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
41851         anymore.
41852         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
41853         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
41854         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
41855         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
41856         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
41857         __mpranred, __mptan.
41858         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
41859         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
41860         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
41861         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
41862         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
41863         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
41864         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
41865         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
41866         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
41867
41868 2011-10-28  Andreas Schwab  <schwab@redhat.com>
41869
41870         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
41871         redefine if SHARED.
41872         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
41873
41874         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
41875         wide char related routines to wcsmbs subdir.
41876
41877 2011-10-27  Andreas Schwab  <schwab@redhat.com>
41878
41879         [BZ #13344]
41880         * misc/sys/cdefs.h (__THROWNL): Define.
41881         * posix/unistd.h: Use __THREADNL instead of __THREAD
41882         for memory synchronization functions.
41883
41884 2011-10-26  Roland McGrath  <roland@hack.frob.com>
41885
41886         [BZ #13349]
41887         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
41888         doesn't exist.
41889         * manual/stdio.texi (Obstack Streams): Node removed.
41890
41891 2011-10-26  Andreas Schwab  <schwab@redhat.com>
41892
41893         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
41894         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41895         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41896
41897         * math/math_private.h (math_force_eval): Allow non-addressable
41898         arguments.
41899         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
41900
41901 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41902
41903         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
41904         file is not needed.
41905
41906         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
41907         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
41908         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
41909         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
41910         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
41911         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
41912         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
41913         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
41914         Add AVX variants.
41915         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
41916         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
41917         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
41918         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
41919         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
41920         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
41921         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
41922         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
41923         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
41924         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
41925         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
41926         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
41927         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
41928         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
41929         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
41930         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
41931         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
41932         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
41933         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
41934
41935         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
41936         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
41937
41938         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
41939         place.  Use VEX encoding when compiling for AVX.
41940
41941 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41942
41943         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
41944         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
41945
41946         * string/test-strchr.c (do_test): Don't generate NUL bytes.
41947
41948 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41949
41950         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
41951         useless if() expression.
41952         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41953         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
41954         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
41955         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41956         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
41957         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41958         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41959         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41960         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
41961         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41962         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41963         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41964         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
41965         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41966         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
41967         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41968         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41969         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41970         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
41971
41972         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
41973
41974 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41975
41976         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
41977         condition.
41978         * elf/dl-fini.c (_dl_sort_fini): Likewise.
41979
41980 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41981
41982         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
41983         .text section.  Avoid duplicate constants.
41984         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
41985         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41986         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41987         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41988         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41989         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41990         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41991         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41992         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
41993         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
41994         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
41995         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
41996         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
41997         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
41998         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
41999         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
42000         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
42001         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42002         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42003         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42004         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
42005         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
42006         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
42007         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
42008         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
42009         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
42010         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
42011         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
42012         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
42013         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
42014         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
42015         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
42016         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
42017         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
42018         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
42019         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
42020         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
42021         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
42022         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
42023         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
42024         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
42025         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
42026         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
42027         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
42028         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
42029
42030 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
42031
42032         * sysdeps/x86_64/dla.h: Move to ...
42033         * sysdeps/x86_64/fpu/dla.h: ...here.
42034         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
42035         situations.  Use __builtin_fma only for gcc 4.6 and up.
42036
42037         * config.make.in: Add have-mfma4 entry.
42038         * configure.in: Substitute libc_cv_cc_fma4.
42039         * math/Makefile (dbl-only-routines): Add sincostab.
42040         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
42041         Use __sincostab not sincos.
42042         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
42043         name is a macro.
42044         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
42045         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42046         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42047         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
42048         using __copysign.
42049         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
42050         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
42051         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
42052         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
42053         and __inv.
42054         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
42055         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
42056         __copysign.
42057         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
42058         define aliases when function name is a macro.
42059         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
42060         sysdeps/ieee754/dbl-64/sincos.tbl.
42061         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
42062         fma4-enabled routines.
42063         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
42064         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
42065         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
42066         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
42067         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
42068         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
42069         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
42070         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
42071         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
42072         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
42073         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
42074         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
42075         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
42076         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
42077         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
42078         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
42079         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
42080         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
42081         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
42082         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
42083         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
42084         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
42085         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
42086         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
42087         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
42088         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
42089         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
42090         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
42091         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
42092         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
42093
42094         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
42095         rename.
42096         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42097         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42098         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42099         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42100         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42101         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42102         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42103         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42104
42105 2011-10-24  Andreas Schwab  <schwab@redhat.com>
42106
42107         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
42108
42109 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
42110
42111         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
42112
42113         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
42114         prediction.
42115         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
42116
42117         * string/strnlen.c: Don't define STRNLEN, reverse logic.
42118         Remove unused variable magic_bits.
42119         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
42120
42121         * string/strnlen.c: Define and use STRNLEN macro.
42122         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
42123         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
42124         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
42125         * wcsmbs/wcslen.c: Define and use WCSLEN.
42126         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
42127         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
42128         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
42129         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
42130         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
42131         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
42132         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
42133
42134 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42135
42136         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42137         strnlen-sse2-no-bsf.
42138         Rename strlen-no-bsf to strlen-sse2-no-bsf.
42139         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
42140         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
42141         Add strnlen support.
42142         (USE_AS_STRNLEN): New macro.
42143         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
42144         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
42145         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
42146         * sysdeps/x86_64/wcslen.S: New file.
42147
42148 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
42149
42150         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
42151         XMM-moves are used for copying on small sizes.
42152
42153 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42154
42155         * wcsmbs/Makefile (strop-tests): Add wcschr.
42156         * wcsmbs/test-wcschr.c: New file.
42157         * string/test-strchr.c: Update.
42158         Add wcschr support.
42159         (WIDE): New macro.
42160
42161 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42162
42163         * wcsmbs/Makefile (strop-tests): Add wcslen.
42164         * wcsmbs/test-wcslen.c: New file.
42165         * string/test-strlen.c: Update.
42166         Add wcslen support.
42167         (WIDE): New macro.
42168
42169 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
42170
42171         * po/it.po: Update from translation team.
42172
42173 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42174
42175         * sysdeps/x86_64/wcscmp.S: Update.
42176         Fix wrong comparison semantics.
42177         wcscmp shall use signed comparison not unsigned.
42178         Don't use substraction to avoid overflow bug.
42179         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
42180         * wcsmbc/wcscmp.c: Likewise.
42181         * string/test-strcmp.c: Likewise.
42182         Add new tests to check cases with negative values.
42183
42184 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
42185
42186         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
42187         * sysdeps/x86_64/dla.h: ...here.  New file.
42188         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
42189         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42190         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42191         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42192         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42193         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42194         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42195         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42196         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42197
42198 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
42199
42200         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
42201         __ynl_finite aliases.
42202
42203 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
42204
42205         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
42206
42207         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
42208         define DLA_FMA.
42209         [DLA_FMA] (EMULV): Use DLA_FMA.
42210         [DLA_FMA] (MUL12): Use EMULV.
42211         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
42212         that are not needed.
42213         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42214         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42215         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42216         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42217         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42218         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42219         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42220
42221 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
42222
42223         * math/s_nan.c: Undef __nan.
42224         * math/s_nanf.c: Undef __nanf.
42225         * math/s_nanl.c: Undef __nanl.
42226         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
42227         "math_private.h".
42228
42229 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
42230
42231         * math/s_catan.c: Add branch predictions.
42232         * math/s_catanf.c: Likewise.
42233         * math/s_catanh.c: Likewise.
42234         * math/s_catanhf.c: Likewise.
42235         * math/s_catanhl.c: Likewise.
42236         * math/s_catanl.c: Likewise.
42237         * math/s_cexp.c: Likewise.
42238         * math/s_cexpf.c: Likewise.
42239         * math/s_cexpl.c: Likewise.
42240         * math/s_clog.c: Likewise.
42241         * math/s_clog10.c: Likewise.
42242         * math/s_clog10f.c: Likewise.
42243         * math/s_clog10l.c: Likewise.
42244         * math/s_clogf.c: Likewise.
42245         * math/s_clogl.c: Likewise.
42246         * math/s_csqrt.c: Likewise.
42247         * math/s_csqrtf.c: Likewise.
42248         * math/s_csqrtl.c: Likewise.
42249         * math/s_ctanf.c: Likewise.
42250         * math/s_ctanh.c: Likewise.
42251         * math/s_ctanhf.c: Likewise.
42252         * math/s_ctanhl.c: Likewise.
42253         * math/s_ctanl.c: Likewise.
42254
42255         * math/math_private.h: Define __nan, __nanf, __nanl.
42256         * math/s_cacosh.c: Include <math_private.h>.
42257         * math/s_cacoshl.c: Likewise.
42258         * math/s_casinh.c: Likewise.
42259         * math/s_casinhf.c: Likewise.
42260         * math/s_casinhl.c: Likewise.
42261         * math/s_ccos.c: Rely entire on ccosh.
42262         * math/s_ccosf.c: Rely entire on ccoshf.
42263         * math/s_ccosl.c: Rely entirely on ccoshl.
42264         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
42265         Remove tests for FE_INVALID.
42266         * math/s_ccoshf.c: Likewise.
42267         * math/s_ccoshl.c: Likewise.
42268         * math/s_csin.c: Likewise.
42269         * math/s_csinf.c: Likewise.
42270         * math/s_csinh.c Likewise.
42271         * math/s_csinhf.c: Likewise.
42272         * math/s_csinhl.c: Likewise.
42273         * math/s_csinl.c: Likewise.
42274         * math/s_ctan.c: Likewise.
42275         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
42276         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
42277         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
42278
42279 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
42280
42281         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
42282         compilation problems.
42283
42284         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
42285         __builtin_expect.
42286
42287 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
42288
42289         * sysdeps/i386/configure.in: Test for -mfma4 option.
42290         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
42291         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
42292         COMMON_CPUID_INDEX_80000001.
42293         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
42294         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
42295         use it if FMA3 is not supported.
42296         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
42297
42298         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
42299         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
42300
42301 2011-10-20  Andreas Schwab  <schwab@redhat.com>
42302
42303         [BZ #12892]
42304         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
42305         it would create a cycle with a link time dependency.
42306
42307 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
42308
42309         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
42310         instruction.
42311         * string/Makefile (strop-tests): Add rawmemchr.
42312         * string/test-rawmemchr.c: New file.
42313
42314         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
42315         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
42316         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
42317         when compiling str{,n}casecmp and when AVX is available.  Hook up
42318         new optimized code in initializers.
42319
42320 2011-10-19  Andreas Schwab  <schwab@redhat.com>
42321
42322         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
42323         __feraiseexcept instead of feraiseexcept.
42324
42325 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
42326
42327         * math/math_private.h: Define defaults for libc_fetestexcept and
42328         libc_feupdateenv.
42329         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
42330         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
42331         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
42332         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
42333         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
42334         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
42335         libc_fetestexcept and libc_feupdateenv.
42336
42337         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
42338         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
42339         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
42340         * sysdeps/x86_64/fpu/math_private.h: Define special version of
42341         libc_feholdexcept_setround.
42342
42343         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
42344         Add s_nearbyint-c and s_nearbyintf-c.
42345         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
42346         nearbyintf inlines.
42347         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
42348         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
42349         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
42350         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
42351
42352         * math/math_private.h: Define defaults for libc_fegetround,
42353         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
42354         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
42355         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
42356         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
42357         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
42358         standard functions.
42359         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42360         Remove comments and hacks for old compiler versions.
42361         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
42362         libc_fegetround, libc_fesetround, libc_feholdexcept, and
42363         libc_feholdexceptl.
42364
42365 2011-10-18  Andreas Schwab  <schwab@redhat.com>
42366
42367         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
42368         (__feraiseexcept_renamed): Add __NTH.
42369         (feraiseexcept): Add __NTH.  Rename local variables to fix
42370         namespace violations.
42371
42372 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
42373
42374         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
42375
42376         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
42377
42378         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
42379         recently added interfaces.
42380         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
42381
42382         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
42383         about macro parameter expansion.
42384
42385         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
42386         __NO_MATH_INLINES is defined.  Cleanups.
42387
42388         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
42389         and __floorf is target has SSE4.1.
42390         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
42391         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
42392         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
42393         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
42394
42395         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
42396         name.
42397         (floorf): Likewise.
42398
42399         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
42400
42401 2011-10-17  Andreas Schwab  <schwab@redhat.com>
42402
42403         * misc/sys/cdefs.h: Fix last change.
42404
42405         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
42406         database lookup.
42407
42408 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
42409
42410         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
42411
42412         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
42413         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42414         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42415         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
42416         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
42417         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
42418         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
42419         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
42420         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
42421         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
42422         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
42423         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
42424         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
42425         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
42426         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
42427         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
42428         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
42429         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
42430         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
42431         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
42432         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
42433         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
42434
42435         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
42436         ceil, ceilf, floor, floorf.
42437
42438         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
42439         Perform IRELATIVE relocations last.
42440
42441         * elf/do-rel.h: Add another parameter nrelative, replacing the
42442         local variable with the same name.  Change name of the function
42443         to end in Rel or Rela (uppercase).
42444         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
42445         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
42446         elf_dynamic_do_##reloc function.
42447
42448 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
42449
42450         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
42451         is sufficient, at least on modern CPUs.
42452
42453         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
42454
42455         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
42456         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
42457
42458         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
42459         __expl_finite.
42460         * math/bits/math-finite.h: Add entries for exp.
42461         * math/e_expl.c: Add __*_finite alias.
42462         * sysdeps/i386/fpu/e_exp.S: Likewise.
42463         * sysdeps/i386/fpu/e_expf.S: Likewise.
42464         * sysdeps/i386/fpu/e_expl.c: Likewise.
42465         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
42466         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
42467         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
42468         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
42469         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
42470         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
42471         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
42472
42473         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
42474         is sufficient, at least on modern CPUs.
42475
42476         * ctype/ctype-info.c (__ctype_init): Define.
42477         * include/ctype.h (__ctype_init): Declare.
42478         (__ctype_b_loc): The variable is always initialized.
42479         (__ctype_toupper_loc): Likewise.
42480         (__ctype_tolower_loc): Likewise.
42481         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
42482         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
42483
42484 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
42485
42486         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
42487
42488         * configure.in: Also look in $cxxmachine/include for C++ system
42489         headers.
42490
42491 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42492
42493         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
42494         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
42495         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
42496         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
42497         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
42498         (USE_AS_WMEMCMP): New macro.
42499         Fixing indents.
42500         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
42501         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
42502         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
42503         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
42504         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42505         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
42506         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
42507         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
42508         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
42509         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
42510         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
42511         (USE_AS_WMEMCMP): New macro.
42512         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
42513         * sysdeps/string/test-memcmp.c: Update.
42514         Fix simple_wmemcmp.
42515         Add new tests.
42516         * wcsmbs/wmemcmp.c: Update.
42517         (WMEMCMP): New macro.
42518         Fix overflow bug.
42519
42520 2011-10-12  Andreas Jaeger  <aj@suse.de>
42521
42522         [BZ #13268]
42523         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
42524
42525 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
42526
42527         * libio/iofwide.c (do_length): Avoid warning.
42528
42529         * ctype/ctype.h (__isctype_f): Add missing __THROW.
42530
42531 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
42532
42533         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
42534
42535         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
42536         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
42537         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
42538         * sysdeps/i386/i686/fpu/e_log.S: New file.
42539         * sysdeps/i386/i686/fpu/e_logf.S: New file.
42540         * sysdeps/i386/i686/fpu/e_logl.S: New file.
42541
42542         * ctype/ctype.h: Add support for inlined isXXX functions when
42543         compiling C++ code.
42544
42545 2011-10-14  Andreas Schwab  <schwab@redhat.com>
42546
42547         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42548
42549         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
42550
42551 2011-10-13  Roland McGrath  <roland@hack.frob.com>
42552
42553         [BZ #13291]
42554         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
42555
42556 2011-10-13  Andreas Schwab  <schwab@redhat.com>
42557
42558         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
42559         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
42560         feraiseexcept.
42561
42562         * sysdeps/x86_64/memrchr.S: Check for zero size.
42563
42564         * string/stratcliff.c: Add memrchr tests.
42565
42566 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42567
42568         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42569         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
42570         rawmemchr-sse2 rawmemchr-sse2-bsf.
42571         * sysdeps/i386/i686/multiarch/memchr.S: New file.
42572         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
42573         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
42574         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
42575         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
42576         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
42577         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
42578         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
42579         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
42580         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
42581         * string/memrchr.c (MEMRCHR): New macro.
42582
42583 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
42584
42585         Add integration with gcc's -ffinite-math-only and optimize wrapper
42586         functions in libm.
42587         * Versions.def: Define GLIBC_2.15 version for libm.
42588         * math/Makefile (headers): Add bits/math-finite.h.
42589         * math/bits/math-finite.h: New file.
42590         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
42591         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
42592         * math/e_acoshl.c: Add __*_finite alias.
42593         * math/e_acosl.c: Likewise.
42594         * math/e_asinl.c: Likewise.
42595         * math/e_atan2l.c: Likewise.
42596         * math/e_atanhl.c: Likewise.
42597         * math/e_coshl.c: Likewise.
42598         * math/e_exp10.c: Likewise.
42599         * math/e_exp10f.c: Likewise.
42600         * math/e_exp10l.c: Likewise.
42601         * math/e_exp2l.c: Likewise.
42602         * math/e_fmodl.c: Likewise.
42603         * math/e_gammal_r.c: Likewise.
42604         * math/e_hypotl.c: Likewise.
42605         * math/e_j0l.c: Likewise.
42606         * math/e_j1l.c: Likewise.
42607         * math/e_jnl.c: Likewise.
42608         * math/e_lgammal_r.c: Likewise.
42609         * math/e_log10l.c: Likewise.
42610         * math/e_log2l.c: Likewise.
42611         * math/e_logl.c: Likewise.
42612         * math/e_powl.c: Likewise.
42613         * math/e_sinhl.c: Likewise.
42614         * math/e_sqrtl.c: Likewise.
42615         * math/e_scalb.c: Completely rewritten and optimized.
42616         * math/e_scalbf.c: Likewise.
42617         * math/e_scalbl.c: Likewise.
42618         * math/w_acos.c: Likewise.
42619         * math/w_acosf.c: Likewise.
42620         * math/w_acosl.c: Likewise.
42621         * math/w_acosh.c: Likewise.
42622         * math/w_acoshf.c: Likewise.
42623         * math/w_acoshl.c: Likewise.
42624         * math/w_asin.c: Likewise.
42625         * math/w_asinf.c: Likewise.
42626         * math/w_asinl.c: Likewise.
42627         * math/w_atan2.c: Likewise.
42628         * math/w_atan2f.c: Likewise.
42629         * math/w_atan2l.c: Likewise.
42630         * math/w_atanh.c: Likewise.
42631         * math/w_atanhf.c: Likewise.
42632         * math/w_atanhl.c: Likewise.
42633         * math/w_exp10.c: Likewise.
42634         * math/w_exp10f.c: Likewise.
42635         * math/w_exp10l.c: Likewise.
42636         * math/w_fmod.c: Likewise.
42637         * math/w_fmodf.c: Likewise.
42638         * math/w_fmodl.c: Likewise.
42639         * math/w_j0.c: Likewise.
42640         * math/w_j0f.c: Likewise.
42641         * math/w_j0l.c: Likewise.
42642         * math/w_j1.c: Likewise.
42643         * math/w_j1f.c: Likewise.
42644         * math/w_j1l.c: Likewise.
42645         * math/w_jn.c: Likewise.
42646         * math/w_jnf.c: Likewise.
42647         * math/w_log.c: Likewise.
42648         * math/w_logf.c: Likewise.
42649         * math/w_logl.c: Likewise.
42650         * math/w_log10.c: Likewise.
42651         * math/w_log10f.c: Likewise.
42652         * math/w_log10l.c: Likewise.
42653         * math/w_log2.c: Likewise.
42654         * math/w_log2f.c: Likewise.
42655         * math/w_log2l.c: Likewise.
42656         * math/w_pow.c: Likewise.
42657         * math/w_powf.c: Likewise.
42658         * math/w_powl.c: Likewise.
42659         * math/w_remainder.c: Likewise.
42660         * math/w_remainderf.c: Likewise.
42661         * math/w_remainderl.c: Likewise.
42662         * math/w_scalb.c: Likewise.
42663         * math/w_scalbf.c: Likewise.
42664         * math/w_scalbl.c: Likewise.
42665         * math/w_sqrt.c: Likewise.
42666         * math/w_sqrtf.c: Likewise.
42667         * math/w_sqrtl.c: Likewise.
42668         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
42669         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
42670         used.
42671         * math/math_private.h: Declare __kernel_standard_f.
42672         * math/w_cosh.c: Remove cruft and optimize a bit.
42673         * math/w_coshf.c: Likewise.
42674         * math/w_coshl.c: Likewise.
42675         * math/w_exp2.c: Likewise.
42676         * math/w_exp2f.c: Likewise.
42677         * math/w_exp2l.c: Likewise.
42678         * math/w_hypot.c: Likewise.
42679         * math/w_hypotf.c: Likewise.
42680         * math/w_hypotl.c: Likewise.
42681         * math/w_lgamma.c: Likewise.
42682         * math/w_lgamma_r.c: Likewise.
42683         * math/w_lgammaf.c: Likewise.
42684         * math/w_lgammaf_r.c: Likewise.
42685         * math/w_lgammal.c: Likewise.
42686         * math/w_lgammal_r.c: Likewise.
42687         * math/w_sinh.c: Likewise.
42688         * math/w_sinhf.c: Likewise.
42689         * math/w_sinhl.c: Likewise.
42690         * math/w_tgamma.c: Likewise.
42691         * math/w_tgammaf.c: Likewise.
42692         * math/w_tgammal.c: Likewise.
42693         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
42694         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
42695         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
42696         Minor optimizations.  Pretty printing.  Remove cruft.
42697         * sysdeps/i386/fpu/e_acosf.S: Likewise.
42698         * sysdeps/i386/fpu/e_acosh.S: Likewise.
42699         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
42700         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
42701         * sysdeps/i386/fpu/e_acosl.c: Likewise.
42702         * sysdeps/i386/fpu/e_asin.S: Likewise.
42703         * sysdeps/i386/fpu/e_asinf.S: Likewise.
42704         * sysdeps/i386/fpu/e_atan2.S: Likewise.
42705         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
42706         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
42707         * sysdeps/i386/fpu/e_atanh.S: Likewise.
42708         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
42709         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
42710         * sysdeps/i386/fpu/e_exp10.S: Likewise.
42711         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
42712         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
42713         * sysdeps/i386/fpu/e_exp2.S: Likewise.
42714         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
42715         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
42716         * sysdeps/i386/fpu/e_fmod.S: Likewise.
42717         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
42718         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
42719         * sysdeps/i386/fpu/e_hypot.S: Likewise.
42720         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
42721         * sysdeps/i386/fpu/e_log.S: Likewise.
42722         * sysdeps/i386/fpu/e_log10.S: Likewise.
42723         * sysdeps/i386/fpu/e_log10f.S: Likewise.
42724         * sysdeps/i386/fpu/e_log10l.S: Likewise.
42725         * sysdeps/i386/fpu/e_log2.S: Likewise.
42726         * sysdeps/i386/fpu/e_log2f.S: Likewise.
42727         * sysdeps/i386/fpu/e_log2l.S: Likewise.
42728         * sysdeps/i386/fpu/e_logf.S: Likewise.
42729         * sysdeps/i386/fpu/e_logl.S: Likewise.
42730         * sysdeps/i386/fpu/e_pow.S: Likewise.
42731         * sysdeps/i386/fpu/e_powf.S: Likewise.
42732         * sysdeps/i386/fpu/e_powl.S: Likewise.
42733         * sysdeps/i386/fpu/e_remainder.S: Likewise.
42734         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
42735         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
42736         * sysdeps/i386/fpu/e_scalb.S: Likewise.
42737         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
42738         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
42739         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
42740         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
42741         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
42742         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42743         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
42744         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42745         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42746         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42747         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42748         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42749         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42750         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42751         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42752         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42753         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
42754         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42755         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42756         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42757         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42758         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42759         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42760         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42761         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42762         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42763         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
42764         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
42765         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
42766         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
42767         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
42768         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
42769         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
42770         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
42771         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
42772         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
42773         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
42774         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42775         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
42776         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
42777         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
42778         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
42779         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
42780         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
42781         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
42782         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
42783         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
42784         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
42785         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
42786         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
42787         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
42788         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
42789         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
42790         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
42791         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
42792         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
42793         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
42794         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
42795         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42796         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
42797         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
42798         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
42799         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
42800         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
42801         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
42802         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
42803         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
42804         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
42805         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
42806         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
42807         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
42808         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
42809         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
42810         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
42811         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
42812         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
42813         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
42814         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
42815         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
42816         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
42817         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
42818         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
42819         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
42820         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
42821         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
42822         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
42823         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
42824         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
42825         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
42826         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
42827         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
42828         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42829         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
42830         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
42831         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
42832         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
42833         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
42834         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
42835         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
42836         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
42837         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
42838         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
42839         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
42840         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
42841         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
42842         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
42843         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
42844         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
42845         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
42846         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
42847         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
42848         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
42849         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
42850         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
42851         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
42852         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
42853         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
42854         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
42855         (__isnanf): Likewise.
42856         (__isinf_ns): Likewise.
42857         (__isinf_nsf): Likewise.
42858         (__finite): Likewise.
42859         (__finitef): Likewise.
42860         (__ieee754_sqrt): Define as macro.
42861         (__ieee754_sqrtf): Define as macro.
42862         (__ieee754_sqrtl): Define as macro.
42863         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
42864         inlined copy.
42865         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
42866         __FINITE_MATH_ONLY__ consistent.
42867         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
42868
42869 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
42870
42871         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
42872         of rawmemchr.
42873
42874         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
42875
42876 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
42877
42878         * po/ja.po: Update from translation team.
42879
42880 2011-10-08  Roland McGrath  <roland@hack.frob.com>
42881
42882         * locale/programs/locarchive.c (prepare_address_space): New function.
42883         (create_archive, enlarge_archive, open_archive): Use it.
42884
42885         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
42886         inside [SHARED], where it is used.
42887
42888         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
42889
42890         * nss/getent.c (netgroup_keys): Remove unused variable.
42891         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
42892
42893 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
42894
42895         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
42896         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
42897         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
42898         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
42899         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
42900         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
42901         * math/Makefile (libm-calls): Add s_isinf_ns.
42902         * math/divtc3.c: Use __isinf_nsl instead of isinf.
42903         * math/multc3.c: Likewise.
42904         * math/s_casin.c: Likewise.
42905         * math/s_casinf.c: Likewise.
42906         * math/s_casinl.c: Likewise.
42907         * math/s_ccos.c: Likewise.
42908         * math/s_ccosf.c: Likewise.
42909         * math/s_ccosl.c: Likewise.
42910         * math/s_ctan.c: Likewise.
42911         * math/s_ctanf.c: Likewise.
42912         * math/s_ctanh.c: Likewise.
42913         * math/s_ctanhf.c: Likewise.
42914         * math/s_ctanhl.c: Likewise.
42915         * math/s_ctanl.c: Likewise.
42916         * math/w_fmod.c: Likewise.
42917         * math/w_fmodf.c: Likewise.
42918         * math/w_fmodl.c: Likewise.
42919         * math/w_remainder.c: Likewise.
42920         * math/w_remainderf.c: Likewise.
42921         * math/w_remainderl.c: Likewise.
42922         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
42923         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
42924         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
42925         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
42926         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
42927         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
42928         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
42929         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
42930
42931         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
42932         of the number.
42933         * stdio-common/printf_fphex.c: Likewise.
42934         * stdio-common/printf_size.c: Likewise.
42935
42936         * math/e_exp10.c: Include math_private.h using <...> not "...".
42937         * math/e_exp10f.c: Likewise.
42938         * math/e_exp10l.c: Likewise.
42939         * math/e_exp2l.c: Likewise.
42940         * math/e_j0l.c: Likewise.
42941         * math/e_j1l.c: Likewise.
42942         * math/e_jnl.c: Likewise.
42943         * math/e_lgammal_r.c: Likewise.
42944         * math/e_rem_pio2l.c: Likewise.
42945         * math/e_scalb.c: Likewise.
42946         * math/e_scalbf.c: Likewise.
42947         * math/e_scalbl.c: Likewise.
42948         * math/k_cosl.c: Likewise.
42949         * math/k_sinl.c: Likewise.
42950         * math/k_tanl.c: Likewise.
42951         * math/s_cacoshf.c: Likewise.
42952         * math/s_catan.c: Likewise.
42953         * math/s_catanf.c: Likewise.
42954         * math/s_catanh.c: Likewise.
42955         * math/s_catanhf.c: Likewise.
42956         * math/s_catanhl.c: Likewise.
42957         * math/s_catanl.c: Likewise.
42958         * math/s_ccosh.c: Likewise.
42959         * math/s_ccoshf.c: Likewise.
42960         * math/s_ccoshl.c: Likewise.
42961         * math/s_cexp.c: Likewise.
42962         * math/s_cexpf.c: Likewise.
42963         * math/s_cexpl.c: Likewise.
42964         * math/s_clog.c: Likewise.
42965         * math/s_clog10.c: Likewise.
42966         * math/s_clog10f.c: Likewise.
42967         * math/s_clog10l.c: Likewise.
42968         * math/s_clogf.c: Likewise.
42969         * math/s_clogl.c: Likewise.
42970         * math/s_csin.c: Likewise.
42971         * math/s_csinf.c: Likewise.
42972         * math/s_csinh.c: Likewise.
42973         * math/s_csinhf.c: Likewise.
42974         * math/s_csinhl.c: Likewise.
42975         * math/s_csinl.c: Likewise.
42976         * math/s_csqrt.c: Likewise.
42977         * math/s_csqrtf.c: Likewise.
42978         * math/s_csqrtl.c: Likewise.
42979         * math/s_ctan.c: Likewise.
42980         * math/s_ctanf.c: Likewise.
42981         * math/s_ctanh.c: Likewise.
42982         * math/s_ctanhf.c: Likewise.
42983         * math/s_ctanhl.c: Likewise.
42984         * math/s_ctanl.c: Likewise.
42985         * math/s_ldexp.c: Likewise.
42986         * math/s_ldexpf.c: Likewise.
42987         * math/s_ldexpl.c: Likewise.
42988         * math/s_significand.c: Likewise.
42989         * math/s_significandf.c: Likewise.
42990         * math/s_significandl.c: Likewise.
42991         * math/w_acos.c: Likewise.
42992         * math/w_acosf.c: Likewise.
42993         * math/w_acosh.c: Likewise.
42994         * math/w_acoshf.c: Likewise.
42995         * math/w_acoshl.c: Likewise.
42996         * math/w_acosl.c: Likewise.
42997         * math/w_asin.c: Likewise.
42998         * math/w_asinf.c: Likewise.
42999         * math/w_asinl.c: Likewise.
43000         * math/w_atan2.c: Likewise.
43001         * math/w_atan2f.c: Likewise.
43002         * math/w_atan2l.c: Likewise.
43003         * math/w_atanh.c: Likewise.
43004         * math/w_atanhf.c: Likewise.
43005         * math/w_atanhl.c: Likewise.
43006         * math/w_cosh.c: Likewise.
43007         * math/w_coshf.c: Likewise.
43008         * math/w_coshl.c: Likewise.
43009         * math/w_dremf.c: Likewise.
43010         * math/w_exp10.c: Likewise.
43011         * math/w_exp10f.c: Likewise.
43012         * math/w_exp10l.c: Likewise.
43013         * math/w_exp2.c: Likewise.
43014         * math/w_exp2f.c: Likewise.
43015         * math/w_fmod.c: Likewise.
43016         * math/w_fmodf.c: Likewise.
43017         * math/w_fmodl.c: Likewise.
43018         * math/w_hypot.c: Likewise.
43019         * math/w_hypotf.c: Likewise.
43020         * math/w_hypotl.c: Likewise.
43021         * math/w_j0.c: Likewise.
43022         * math/w_j0f.c: Likewise.
43023         * math/w_j0l.c: Likewise.
43024         * math/w_j1.c: Likewise.
43025         * math/w_j1f.c: Likewise.
43026         * math/w_j1l.c: Likewise.
43027         * math/w_jn.c: Likewise.
43028         * math/w_jnf.c: Likewise.
43029         * math/w_jnl.c: Likewise.
43030         * math/w_lgamma.c: Likewise.
43031         * math/w_lgamma_r.c: Likewise.
43032         * math/w_lgammaf.c: Likewise.
43033         * math/w_lgammaf_r.c: Likewise.
43034         * math/w_lgammal.c: Likewise.
43035         * math/w_lgammal_r.c: Likewise.
43036         * math/w_log.c: Likewise.
43037         * math/w_log10.c: Likewise.
43038         * math/w_log10f.c: Likewise.
43039         * math/w_log10l.c: Likewise.
43040         * math/w_log2.c: Likewise.
43041         * math/w_log2f.c: Likewise.
43042         * math/w_log2l.c: Likewise.
43043         * math/w_logf.c: Likewise.
43044         * math/w_logl.c: Likewise.
43045         * math/w_pow.c: Likewise.
43046         * math/w_powf.c: Likewise.
43047         * math/w_powl.c: Likewise.
43048         * math/w_remainder.c: Likewise.
43049         * math/w_remainderf.c: Likewise.
43050         * math/w_remainderl.c: Likewise.
43051         * math/w_scalb.c: Likewise.
43052         * math/w_scalbf.c: Likewise.
43053         * math/w_scalbl.c: Likewise.
43054         * math/w_sinh.c: Likewise.
43055         * math/w_sinhf.c: Likewise.
43056         * math/w_sinhl.c: Likewise.
43057         * math/w_sqrt.c: Likewise.
43058         * math/w_sqrtf.c: Likewise.
43059         * math/w_sqrtl.c: Likewise.
43060         * math/w_tgamma.c: Likewise.
43061         * math/w_tgammaf.c: Likewise.
43062         * math/w_tgammal.c: Likewise.
43063
43064         * po/ja.po: Update from translation team.
43065
43066 2011-09-29  Andreas Jaeger  <aj@suse.de>
43067
43068         [BZ #13179]
43069         * sunrpc/netname.c (netname2host): Fix logic.
43070
43071         [BZ #6779]
43072         [BZ #6783]
43073         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
43074         correctly.
43075         * math/w_remainder.c (__remainder): Likewise.
43076         * math/w_remainderf.c (__remainderf): Likewise.
43077         * math/libm-test.inc (remainder_test): Add test cases.
43078
43079 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43080
43081         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
43082         sdiv_qrnnd.
43083
43084 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
43085
43086         * string/test-memcmp.c: Avoid unncessary #defines.
43087         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
43088
43089 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43090
43091         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
43092         Use new sse2 version for core i3 - i7 as it's faster
43093         than sse42 version.
43094         (bit_Prefer_PMINUB_for_stringop): New.
43095         * sysdeps/x86_64/rawmemchr.S: Update.
43096         Replace with faster SSE2 version.
43097         * sysdeps/x86_64/memrchr.S: New file.
43098         * sysdeps/x86_64/memchr.S: Update.
43099         Replace with faster SSE2 version.
43100
43101 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
43102
43103         * elf/dl-load.c (lose): Add cast to avoid warning.
43104
43105 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
43106
43107         * po/ca.po: Update from translation team.
43108
43109         * inet/getnetgrent_r.c: Hook up nscd.
43110         * nscd/Makefile (routines): Add nscd_netgroup.
43111         (nscd-modules): Add netgroupcache.
43112         (CFLAGS-netgroupcache.c): Define.
43113         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
43114         (cache_search): Add const to second parameter.
43115         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
43116         INNETGR.
43117         (dbs): Add netgrdb entry.
43118         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
43119         (verify_persistent_db): Handle netgrdb.
43120         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
43121         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
43122         GETFDNETGR.
43123         (netgroup_response_header): Define.
43124         (innetgroup_response_header): Define.
43125         (datahead): Add netgroup_response_header and innetgroup_response_header
43126         elements.
43127         * nscd/nscd.conf: Add entries for netgroup cache.
43128         * nscd/nscd.h (dbtype): Add netgrdb.
43129         (_PATH_NSCD_NETGROUP_DB): Define.
43130         (netgroup_iov_disabled): Declare.
43131         (xmalloc, xcalloc, xrealloc): Move declarations here.
43132         (cache_search): Adjust prototype.
43133         Add netgroup-related prototypes.
43134         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
43135         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
43136         (__nscd_innetgr): Declare.
43137         * nscd/selinux.c (perms): Use access_vector_t as element type and
43138         add netgroup-related initializers.
43139         * nscd/netgroupcache.c: New file.
43140         * nscd/nscd_netgroup.c: New file.
43141         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
43142         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
43143         For four parameters use innetgr.
43144         * nss/nss_files/files-init.c: Add definition and callback for netgr.
43145         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
43146         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
43147         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
43148
43149         * nscd/connections.c (register_traced_file): Don't register file
43150         for disabled databases.
43151
43152 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
43153
43154         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
43155
43156         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
43157         from tree and freeing node.
43158
43159 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
43160
43161         * nss/nsswitch.c (__nss_database_lookup): Handle
43162         nss_parse_service_list out of memory case.
43163
43164 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
43165
43166         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
43167         out of memory case.
43168
43169 2011-10-04  Andreas Schwab  <schwab@redhat.com>
43170
43171         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
43172         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
43173         pass it down.
43174         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
43175         elf_machine_rela, elf_machine_lazy_rel.
43176         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
43177         (ELF_DYNAMIC_DO_REL): Likewise.
43178         (ELF_DYNAMIC_DO_RELA): Likewise.
43179         (ELF_DYNAMIC_RELOCATE): Likewise.
43180         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
43181         to ELF_DYNAMIC_DO_REL.
43182         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
43183         (dl_main): In trace mode always set __RTLD_NOIFUNC.
43184         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
43185         elf_machine_rela.
43186         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
43187         skip_ifunc, don't call ifunc function if non-zero.
43188         (elf_machine_rela): Likewise.
43189         (elf_machine_lazy_rel): Likewise.
43190         (elf_machine_lazy_rela): Likewise.
43191         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
43192         (elf_machine_lazy_rel): Likewise.
43193         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
43194         Likewise.
43195         (elf_machine_lazy_rel): Likewise.
43196         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
43197         Likewise.
43198         (elf_machine_lazy_rel): Likewise.
43199         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
43200         (elf_machine_lazy_rel): Likewise.
43201         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
43202         (elf_machine_lazy_rel): Likewise.
43203         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
43204         (elf_machine_lazy_rel): Likewise.
43205         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
43206         (elf_machine_lazy_rel): Likewise.
43207         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
43208         (elf_machine_lazy_rel): Likewise.
43209         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
43210         (elf_machine_lazy_rel): Likewise.
43211
43212 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
43213
43214         * nss/nss_files/files-init.c (_nss_files_init): Use static
43215         initialization for all the *_traced_file variables.
43216
43217 2011-09-28  Andreas Schwab  <schwab@redhat.com>
43218
43219         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
43220
43221 2011-09-27  Roland McGrath  <roland@hack.frob.com>
43222
43223         [BZ #13226]
43224         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
43225
43226 2011-09-27  Andreas Schwab  <schwab@redhat.com>
43227
43228         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
43229         Reread the line before reparsing it.
43230
43231 2011-09-26  Andreas Schwab  <schwab@redhat.com>
43232
43233         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
43234
43235 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
43236             Maxim Kuvyrkov  <maxim@codesourcery.com>
43237             Joseph Myers  <joseph@codesourcery.com>
43238
43239         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
43240         if needed for __stack_chk_guard.
43241
43242 2011-09-19  Roland McGrath  <roland@hack.frob.com>
43243
43244         * sysdeps/posix/spawni.c (script_execute): Always define it.
43245         It will be optimized away if unused.
43246         (maybe_script_execute): New function.
43247         (__spawni): Call it.
43248
43249         * Makerules: Don't include tls.make.
43250         (config-tls): Always set to thread.
43251         * tls.make.c: File removed.
43252
43253 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
43254
43255         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
43256         * config.make.in (CPPFLAGS-config): New substituted variable.
43257
43258 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
43259
43260         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
43261
43262         [BZ #13192]
43263         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
43264         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
43265
43266 2011-09-15  Roland McGrath  <roland@hack.frob.com>
43267
43268         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
43269         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
43270         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
43271         (CALL_FAIL): Likewise.
43272         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
43273         (CALL_FAIL): Macro removed.
43274         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
43275
43276 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
43277
43278         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
43279         for __FINITE_MATH_ONLY__ == 1.
43280
43281 2011-09-15  Andreas Schwab  <schwab@redhat.com>
43282
43283         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
43284         __ieee754_sqrt instead of sqrt.
43285         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
43286         __ieee754_sqrtf instead of sqrtf.
43287         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
43288         __floorf instead of floorf.
43289         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
43290         __floorf, __truncf instead of floorf, truncf.
43291
43292 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
43293
43294         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
43295
43296         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
43297         __extern_always_inline.
43298         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
43299         32-bit.
43300
43301 2011-09-14  Andreas Schwab  <schwab@redhat.com>
43302
43303         * elf/rtld.c (dl_main): Also relocate in dependency order when
43304         doing symbol dependency testing.
43305
43306 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
43307
43308         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
43309         Always define `refsym'.
43310
43311 2011-09-13  Andreas Schwab  <schwab@redhat.com>
43312
43313         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
43314         (__FD_ELT): Renamed from __FDELT.
43315         * misc/bits/select2.h (__FD_ELT): Likewise.
43316         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
43317         __FD_MASK instead of __FDELT, __FDMASK.
43318         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
43319         Likewise.
43320         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
43321         Likewise.
43322
43323         * elf/Makefile (gen-ldd): Fix pattern.
43324
43325         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
43326         (init_tls): Likewise.
43327
43328 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
43329
43330         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
43331
43332 2011-09-12  Andreas Schwab  <schwab@redhat.com>
43333
43334         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
43335         `struct cmsghdr *' instead of `void *'.
43336         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
43337         Likewise.
43338
43339 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
43340
43341         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
43342         if non-absolute.
43343         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
43344         ldd_rewrite_script.
43345
43346 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
43347
43348         * configure.in: Remove --with-tls option.
43349         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
43350         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
43351         out in case it is missing.
43352         * sysdeps/ia64/elf/configure.in: Likewise.
43353         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
43354         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
43355         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
43356         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
43357         * sysdeps/sh/elf/configure.in: Likewise.
43358         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
43359         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
43360         * sysdeps/x86_64/elf/configure.in: Likewise.
43361         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
43362         * sysdeps/mach/hurd/tls.h: Likewise.
43363
43364         [BZ #13067]
43365         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
43366
43367         [BZ #13090]
43368         * configure.in: Fix use of AC_INIT.
43369
43370         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
43371
43372 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
43373
43374         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
43375         __set_errno.
43376         * malloc/hooks.c: Likewise.
43377
43378         [BZ #11929]
43379         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
43380         variables statically.
43381         (narenas): Initialize.
43382         (list_lock): Initialize.
43383         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
43384         initializtion of main_arena and list_lock.  Small cleanups.
43385         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
43386         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
43387         Add initializers to main_arena and mp_.
43388         (malloc_state): Remove pagesize member.  Change all users to use
43389         GLRO(dl_pagesize).
43390
43391         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
43392         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
43393         is always initialized.
43394
43395         * malloc/malloc.c: Removed unused configurations and dead code.
43396         * malloc/arena.c: Likewise.
43397         * malloc/hooks.c: Likewise.
43398         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
43399
43400         * include/tls.h: Removed.  USE___THREAD must always be defined.
43401         * bits/libc-tsd.h: Don't handle !USE___THREAD.
43402         * elf/dl-libc.c: Likewise.
43403         * elf/dl-tsd.c: Likewise.
43404         * include/errno.h: Likewise.
43405         * include/netdb.h: Likewise.
43406         * include/resolv.h: Likewise.
43407         * inet/herrno-loc.c: Likewise.
43408         * inet/herrno.c: Likewise.
43409         * malloc/arena.c: Likewise.
43410         * malloc/hooks.c: Likewise.
43411         * malloc/malloc.c: Likewise.
43412         * resolv/res-state.c: Likewise.
43413         * resolv/res_libc.c: Likewise.
43414         * sysdeps/i386/dl-machine.h: Likewise.
43415         * sysdeps/ia64/dl-machine.h: Likewise.
43416         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
43417         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
43418         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
43419         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
43420         * sysdeps/sh/dl-machine.h: Likewise.
43421         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
43422         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
43423         * sysdeps/unix/i386/sysdep.S: Likewise.
43424         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
43425         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
43426         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
43427         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
43428         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
43429         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
43430         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
43431         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
43432         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
43433         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
43434         * sysdeps/unix/x86_64/sysdep.S: Likewise.
43435         * sysdeps/x86_64/dl-machine.h: Likewise.
43436         * tls.make.c: Likewise.
43437
43438         * configure.in: Remove --with-__thread option.  Make tests for
43439         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
43440         tls_model attribute fail if no support is available.  Remove
43441         USE_IN_LIBIO.
43442         * Makeconfig: Adjust for dropped configure option.  All features are
43443         now mandatory.
43444         * Makerules: Likewise.
43445         * Versions.def: Likewise.
43446         * argp/argp-fmtstream.c: Likewise.
43447         * argp/argp-fmtstream.h: Likewise.
43448         * argp/argp-help.c: Likewise.
43449         * assert/assert.c: Likewise.
43450         * config.h.in: Likewise.
43451         * config.make.in: Likewise.
43452         * configure: Likewise.
43453         * configure.in: Likewise.
43454         * csu/Versions: Likewise.
43455         * csu/init.c: Likewise.
43456         * elf/tst-audit2.c: Likewise.
43457         * elf/tst-tls10.c: Likewise.
43458         * elf/tst-tls10.h: Likewise.
43459         * elf/tst-tls11.c: Likewise.
43460         * elf/tst-tls12.c: Likewise.
43461         * elf/tst-tls14.c: Likewise.
43462         * elf/tst-tlsmod11.c: Likewise.
43463         * elf/tst-tlsmod12.c: Likewise.
43464         * elf/tst-tlsmod13.c: Likewise.
43465         * elf/tst-tlsmod13a.c: Likewise.
43466         * elf/tst-tlsmod14a.c: Likewise.
43467         * elf/tst-tlsmod15b.c: Likewise.
43468         * elf/tst-tlsmod16a.c: Likewise.
43469         * elf/tst-tlsmod16b.c: Likewise.
43470         * elf/tst-tlsmod7.c: Likewise.
43471         * elf/tst-tlsmod8.c: Likewise.
43472         * elf/tst-tlsmod9.c: Likewise.
43473         * gmon/gmon.c: Likewise.
43474         * grp/fgetgrent_r.c: Likewise.
43475         * grp/putgrent.c: Likewise.
43476         * hurd/fopenport.c: Likewise.
43477         * include/libc-symbols.h: Likewise.
43478         * include/tls.h: Likewise.
43479         * intl/gettextP.h: Likewise.
43480         * intl/loadinfo.h: Likewise.
43481         * locale/global-locale.c: Likewise.
43482         * locale/localeinfo.h: Likewise.
43483         * mach/devstream.c: Likewise.
43484         * malloc/arena.c: Likewise.
43485         * malloc/set-freeres.c: Likewise.
43486         * misc/err.c: Likewise.
43487         * misc/getttyent.c: Likewise.
43488         * misc/mntent_r.c: Likewise.
43489         * posix/getopt.c: Likewise.
43490         * posix/wordexp.c: Likewise.
43491         * pwd/fgetpwent_r.c: Likewise.
43492         * resolv/Versions: Likewise.
43493         * resolv/res_hconf.c: Likewise.
43494         * shadow/fgetspent_r.c: Likewise.
43495         * shadow/putspent.c: Likewise.
43496         * stdio-common/printf_fphex.c: Likewise.
43497         * stdio-common/tmpfile.c: Likewise.
43498         * stdlib/abort.c: Likewise.
43499         * stdlib/fmtmsg.c: Likewise.
43500         * sunrpc/auth_unix.c: Likewise.
43501         * sunrpc/clnt_perr.c: Likewise.
43502         * sunrpc/clnt_tcp.c: Likewise.
43503         * sunrpc/clnt_udp.c: Likewise.
43504         * sunrpc/clnt_unix.c: Likewise.
43505         * sunrpc/openchild.c: Likewise.
43506         * sunrpc/svc_simple.c: Likewise.
43507         * sunrpc/svc_tcp.c: Likewise.
43508         * sunrpc/svc_udp.c: Likewise.
43509         * sunrpc/svc_unix.c: Likewise.
43510         * sunrpc/xdr.c: Likewise.
43511         * sunrpc/xdr_array.c: Likewise.
43512         * sunrpc/xdr_rec.c: Likewise.
43513         * sunrpc/xdr_ref.c: Likewise.
43514         * sunrpc/xdr_stdio.c: Likewise.
43515
43516 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
43517
43518         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
43519
43520 2011-07-03  Andreas Jaeger  <aj@suse.de>
43521
43522         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
43523         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
43524         regenerate with gen-libm-tests.pl.
43525
43526 2010-05-12  Petr Baudis  <pasky@suse.cz>
43527
43528         [BZ #11589]
43529         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
43530         around j0() zero points by switching to j1().
43531         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
43532         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
43533         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
43534         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
43535
43536 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
43537
43538         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
43539         instead of 0.
43540         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
43541         instead of 0.
43542         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
43543         Patch in part by Pavel Roskin <proski@gnu.org>.
43544
43545         [BZ #13138]
43546         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
43547         realloc.
43548         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
43549         Free memory block if necessary.
43550
43551         [BZ #12847]
43552         * libio/genops.c (INTDEF): For string streams the _lock pointer can
43553         be NULL.  Don't lock in this case.
43554
43555 2011-09-09  Roland McGrath  <roland@hack.frob.com>
43556
43557         * elf/elf.h (ELFOSABI_GNU): New macro.
43558         (ELFOSABI_LINUX): Define to that.
43559
43560 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
43561
43562         * string/strncat.c (strncat): Undef the symbol in case it has been
43563         defined in bits/string.h.
43564
43565 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
43566
43567         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
43568
43569         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
43570         link map.
43571
43572 2011-08-17  Andreas Jaeger  <aj@suse.de>
43573
43574         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
43575
43576 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
43577             Ian Lance Taylor  <iant@google.com>
43578
43579         * math/libm-test.inc (lround_test): New testcase.
43580         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
43581
43582 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
43583
43584         * Makefile: Remove support for automatic cvs check-ins.
43585         * Makerules: Likewise.
43586         * config.make.in: Likewise.
43587         * configure.in: Likewise.
43588         * intl/Makefile: Likewise.
43589         * locale/Makefile: Likewise.
43590         * po/Makefile: Likewise.
43591         * posix/Makefile: Likewise.
43592         * sysdeps/gnu/Makefile: Likewise.
43593         * sysdeps/mach/hurd/Makefile: Likewise.
43594         * sysdeps/sparc/sparc32/Makefile: Likewise.
43595
43596         [BZ #13118]
43597         * posix/Makefile (bug-regex32-ENV): Define.
43598         Patch by John Stanley <jpsinthemix@verizon.net>.
43599
43600         * misc/Makefile (headers): Add bits/select2.h.
43601         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
43602         * misc/bits/select2.h: New file.
43603         * include/bits/select2.h: New file.
43604         * debug/Makefile (routines): Add fdelt_chk.
43605         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
43606         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
43607         FD_ISSET.
43608         * debug/fdelt_chk.c: New file.
43609
43610         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
43611         * wcsmbs/test-wmemcmp.c: Likewise.
43612         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
43613         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
43614
43615 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43616
43617         * string/Makefile (strop-tests): Add memcmp.
43618         * string/test-wmemcmp.c: New file.
43619         * string/test-memcmp.c: Add wmemcmp support.
43620
43621 2011-09-08  Roland McGrath  <roland@hack.frob.com>
43622
43623         [BZ #13153]
43624         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
43625         2011-07-19 change.
43626
43627         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
43628         garbage value in a __mach_port_mod_refs call in the cases of the
43629         task-self and thread-self ports.
43630
43631 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43632
43633         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
43634
43635 2011-09-08  Andreas Schwab  <schwab@redhat.com>
43636
43637         * elf/dl-load.c (lose): Check for non-null L.
43638
43639 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43640
43641         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
43642
43643         * elf/dl-libc.c (dlerror_run): Pass back error code from
43644         dl_catch_error.
43645
43646         [BZ #13123]
43647         * elf/dl-load.c (lose): Free l_origin if it is valid.
43648
43649         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
43650         names.
43651         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
43652         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43653         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43654         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43655         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
43656         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
43657
43658 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43659
43660         * sysdeps/powerpc/fpu/e_hypot.c: New file.
43661         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
43662         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
43663         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
43664         * sysdeps/powerpc/fpu/k_cosf.c: New file.
43665         * sysdeps/powerpc/fpu/k_sinf.c: New file.
43666         * sysdeps/powerpc/fpu/s_cosf.c: New file.
43667         * sysdeps/powerpc/fpu/s_sinf.c: New file.
43668         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
43669         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
43670
43671 2011-08-15  Alan Modra  <amodra@gmail.com>
43672
43673         [BZ #13092]
43674         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
43675         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
43676         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
43677         ppc_mcount to static-only-routines.
43678         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
43679         __mcount_internal.
43680         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
43681         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
43682
43683 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
43684
43685         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
43686         for finite and infinity parameters.
43687
43688 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
43689
43690         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
43691         and add nop instructions for throughput optimization.
43692         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43693
43694 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
43695
43696         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
43697         aligned copy for power7 with vector-scalar instructions.
43698         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43699
43700 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
43701
43702         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
43703         AVX check.
43704
43705 2011-09-07  Andreas Schwab  <schwab@redhat.com>
43706
43707         [BZ #13144]
43708         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
43709         last change.
43710
43711 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43712
43713         * sysdeps/unix/sysv/linux/x86_64/init-first.c
43714         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
43715         syscall wrapper around clock_gettime in __vdso_clock_gettime.
43716         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
43717         clock_gettime.
43718
43719 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43720
43721         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
43722         Forgot to demangle the pointer.
43723
43724         * sysdeps/i386/sysdep.h: Define atom_text_section.
43725         * sysdeps/x86_64/sysdep.h: Likewise.
43726         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
43727         section with atom_text_section.
43728         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43729         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43730         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
43731         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43732         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
43733
43734         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
43735         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
43736         already be defined.  Change to take two parameters and don't assign
43737         result to variable.  Adjust all users.
43738         Define INTERNAL_GETTIME if not already defined.
43739         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
43740         call.
43741         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
43742         HAVE_CLOCK_GETTIME_VSYSCALL.
43743         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
43744
43745         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
43746         gettimeofday vsyscall, just use time.
43747
43748 2011-09-06  Andreas Schwab  <schwab@redhat.com>
43749
43750         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
43751         <errno.h>.
43752
43753 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43754
43755         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
43756         syscall on x86-64.
43757         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
43758         syscall.
43759         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
43760         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
43761         syscall if possible.
43762
43763 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43764
43765         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
43766         e_ident.  Don't pass to find_mapsXX.
43767         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
43768
43769 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43770
43771         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43772         strchr-sse2-no-bsf strrchr-sse2-no-bsf
43773         * sysdeps/x86_64/multiarch/strchr.S: Update.
43774         Check bit_slow_BSF bit.
43775         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43776         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
43777         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
43778
43779 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43780
43781         [BZ #13134]
43782         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
43783         before glibc 2.15.
43784         (tryshell): Define.
43785         (__spawni): Change last parameter to be flag.  Test
43786         SPAWN_XFLAGS_USE_PATH flag to use path or not.
43787         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
43788         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
43789         * posix/spawni.c: Likewise.
43790         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
43791         * posix/spawnp.c: Likewise.  Change normal version to use
43792         SPAWN_XFLAGS_USE_PATH.
43793         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
43794         SPAWN_XFLAGS_TRY_SHELL.
43795
43796         [BZ #13150]
43797         * posix/glob.h: Remove gcc 1.x support.
43798
43799         [BZ #13068]
43800         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
43801
43802 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43803
43804         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43805         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
43806         strrchr-sse2-bsf
43807         * sysdeps/i386/i686/multiarch/strchr.S: New file.
43808         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
43809         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
43810         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
43811         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
43812         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
43813
43814 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43815
43816         * sysdeps/x86_64/wcscmp.S: New file.
43817
43818         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
43819         wcscmp-c wcscmp-sse2
43820         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
43821         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
43822         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
43823         * wcsmbs/wcscmp.c: Allow renaming.
43824
43825 2011-09-05  David S. Miller  <davem@davemloft.net>
43826
43827         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
43828         stack slot, rather than the struct return pointer slot.
43829         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
43830         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
43831         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
43832         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
43833
43834 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43835
43836         * po/ja.po: Update from translation team.
43837
43838         [BZ #13144]
43839         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
43840         kernel in 64-bit binaries.
43841
43842 2011-09-01  David S. Miller  <davem@davemloft.net>
43843
43844         * elf/elf.h (HWCAP_SPARC_*): Move to..
43845         * sysdeps/sparc/sysdep.h: this new file and add new values.
43846         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
43847         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
43848         _DL_HWCAP_COUNT to 24.
43849         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
43850         entries.
43851         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
43852         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
43853         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
43854         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
43855         instead of magic constants.
43856         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
43857
43858 2011-08-31  David S. Miller  <davem@davemloft.net>
43859
43860         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
43861         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
43862         Reimplement to do errno handling inline.
43863         (SYSCALL_ERROR_HANDLER): New macro.
43864         (__SYSCALL_STRING): Do not do errno handling in asm.
43865         (__CLONE_SYSCALL_STRING): Delete.
43866         (__INTERNAL_SYSCALL_STRING): Delete.
43867         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
43868         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
43869         (PSEUDO): Reimplement to do errno handling inline.
43870         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
43871         (SYSCALL_ERROR_HANDLER): New macro.
43872         (__SYSCALL_STRING): Do not do errno handling in asm.
43873         (__CLONE_SYSCALL_STRING): Delete.
43874         (__INTERNAL_SYSCALL_STRING): Delete.
43875         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
43876         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
43877         i386.
43878         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
43879         (inline_syscall*): Add 'err' argument.
43880         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
43881         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
43882         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
43883         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
43884
43885         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
43886         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
43887
43888 2011-08-30  Andreas Schwab  <schwab@redhat.com>
43889
43890         * elf/rtld.c (dl_main): Relocate objects in dependency order.
43891
43892 2011-08-29  Jiri Olsa <jolsa@redhat.com>
43893
43894         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
43895         directive.
43896
43897 2011-08-24  David S. Miller  <davem@davemloft.net>
43898
43899         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
43900
43901 2011-08-24  Andreas Schwab  <schwab@redhat.com>
43902
43903         * elf/Makefile: Add rules to build and run unload8 test.
43904         * elf/unload8.c: New file.
43905         * elf/unload8mod1.c: New file.
43906         * elf/unload8mod1x.c: New file.
43907         * elf/unload8mod2.c: New file.
43908         * elf/unload8mod3.c: New file.
43909
43910         * elf/dl-close.c (_dl_close_worker): Reset private search list if
43911         it wasn't used.
43912
43913 2011-08-23  David S. Miller  <davem@davemloft.net>
43914
43915         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
43916         subtract stack bias.
43917         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
43918         %sp not %fp in calculations.
43919         (_JMPBUF_UNWINDS_ADJ): Likewise.
43920
43921         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
43922         (aio_suspend): Call it to force an exception region around the
43923         AIO_MISC_WAIT() invocation.
43924
43925 2011-08-23  Andreas Schwab  <schwab@redhat.com>
43926
43927         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
43928         backslash.
43929
43930 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
43931
43932         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
43933         protection macro.
43934         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
43935         and <dl-machine.h>.
43936         (Elf64_FuncDesc): Remove.
43937
43938 2011-08-22  David S. Miller  <davem@davemloft.net>
43939
43940         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
43941         sigaltstack check, add missing cfi directives.
43942         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
43943         missing cfi directives, and sigaltstack handling.
43944
43945 2011-08-16  Andreas Schwab  <schwab@redhat.com>
43946
43947         [BZ #11724]
43948         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
43949         object is seen twice.
43950         * elf/dl-fini.c (_dl_sort_fini): Likewise.
43951
43952         * elf/Makefile (distribute): Add tst-initorder2.c.
43953         (tests): Add tst-initorder2.
43954         (modules-names): Add tst-initorder2a tst-initorder2b
43955         tst-initorder2c tst-initorder2d.  Add rules to build them.
43956         ($(objpfx)tst-initorder2.out): New rule.
43957         * elf/tst-initorder2.c: New file.
43958         * elf/tst-initorder2.exp: New file.
43959
43960 2011-08-22  Andreas Schwab  <schwab@redhat.com>
43961
43962         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
43963
43964         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
43965         dependencies back to end of function.
43966
43967         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
43968         $(elfobjdir)/ld.so.
43969
43970 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
43971
43972         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
43973         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
43974         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
43975         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
43976         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
43977         of __vdso_gettimeofday.
43978         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
43979         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
43980         attribute_hidden.
43981         (_libc_vdso_platform_setup): Remove initialization of
43982         __vdso_gettimeofday and __vdso_time.
43983
43984 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43985
43986         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
43987         and fgetc_unlocked.
43988         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
43989         getc_unlocked.
43990
43991         * elf/dl-open.c (add_to_global): Report additions to the global scope
43992         for LD_DEBUG=scopes.
43993         (dl_open_worker): Also print scope of newly loaded dependencies.
43994         (_dl_show_scope): Indicate if there is no scope.
43995
43996         [BZ #13114]
43997         * stdio-common/Makefile (tests): Add bug24.
43998         * stdio-common/bug24.c: New file.
43999
44000 2011-08-19  Andreas Jaeger  <aj@suse.de>
44001
44002         [BZ #13114]
44003         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
44004         non-existant file when using close-on-exec mode.
44005
44006 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
44007
44008         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
44009         the very first instruction.
44010
44011         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
44012         the CFI state in the end.
44013         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
44014         inclusion of dl-trampoline.h.
44015         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
44016
44017 2011-08-19  Andreas Schwab  <schwab@redhat.com>
44018
44019         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
44020         expectations for long double.
44021
44022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
44023         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
44024
44025 2011-08-14  David S. Miller  <davem@davemloft.net>
44026
44027         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
44028         artificual limit depends upon the system page size.
44029
44030 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
44031
44032         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
44033         * resolv/Makefile: Define CFLAGS-libresolv.
44034
44035 2011-08-17  Andreas Schwab  <schwab@redhat.com>
44036
44037         * nss/makedb.c (compute_tables): Make variables used in nested
44038         function static.
44039
44040 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
44041
44042         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
44043         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
44044         if buffer was too small.
44045
44046         * elf/pldd.c (main): Attach to all threads in the process.
44047         Rewrite /proc handling to use *at functions.
44048
44049 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
44050
44051         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
44052         specifies first scope to show.
44053         (dl_open_worker): Update callers.  Move printing scope of new
44054         object to before the relocation.
44055         * elf/rtld.c (dl_main): Update _dl_show_scope call.
44056         * sysdeps/generic/ldsodefs.h: Update declaration.
44057
44058         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
44059         string for the scope number.
44060
44061 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
44062
44063         * nscd/servicescache.c (cache_addserv): Make sure written is always
44064         initialized.
44065
44066 2011-08-14  Roland McGrath  <roland@hack.frob.com>
44067
44068         * sysdeps/i386/i486/bits/atomic.h
44069         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
44070         statement expression, so as to suppress "set but not used" warning.
44071         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
44072
44073         * string/strncat.c (STRNCAT): Use prototype definition.
44074
44075         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
44076         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
44077         -Iprograms here.
44078         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
44079         (localedef-modules): Add localedef.
44080         (locale-modules): Add locale.
44081
44082         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
44083         * elf/rtld.c (dl_main): Invert order of assignment in last change,
44084         to avoid a warning.
44085
44086 2011-08-14  David S. Miller  <davem@davemloft.net>
44087
44088         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
44089         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
44090
44091 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
44092
44093         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
44094         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
44095         * elf/rtld.c (dl_main): Set l_name of vDSO.
44096         Call _dl_show_scope when DL_DEBUG_SCOPES.
44097         (process_dl_debug): Recognize scopes flag and also set it for all.
44098         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
44099         Declare _dl_show_scope.
44100
44101         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
44102         (do_dlopen): Pass caller_dlopen to dl_open.
44103         (__libc_dlopen_mode): Initialize caller_dlopen.
44104
44105         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
44106         of libc.  Make tolower call locale-independent.  Optimize a bit by
44107         using isdigit instead of isalnum.
44108         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
44109
44110 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
44111
44112         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
44113         was a dependency or dynamically loaded.
44114
44115 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
44116
44117         * intl/l10nflist.c: Allow architecture-specific pop function.
44118         * sysdeps/x86_64/l10nflist.c: New file.
44119
44120         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
44121         classification.
44122
44123 2011-08-10  Andreas Schwab  <schwab@redhat.com>
44124
44125         * include/dirent.h: Add libc_hidden_proto for scandirat and
44126         scandirat64.  Don't declare __scandirat64.
44127         * dirent/scandirat.c: Add libc_hidden_def.
44128         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
44129         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
44130
44131 2011-08-10  David S. Miller  <davem@davemloft.net>
44132
44133         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
44134         enum.
44135         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44136         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44137         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44138
44139 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
44140
44141         * Versions.def [libc]: Add GLIBC_2.15.
44142         * dirent/Makefile (routines): Add scandirat and scandirat64.
44143         * dirent/Versions [libc]: Export scandirat and scandirat64 for
44144         GLIBC_2.15.
44145         * dirent/dirent.h: Declare scandirat and scandirat64.
44146         * dirent/scandirat.c: New file.
44147         * dirent/scandirat64.c: New file.
44148         * sysdeps/wordsize-64/scandirat.c: New file.
44149         * sysdeps/wordsize-64/scandirat64.c: New file.
44150         * dirent/opendir.c: Define opendirat.
44151         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
44152         using scandirat.
44153         * dirent/scandir64.c: Adjust for scandir.c change.
44154         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
44155         __scandirat64, and __scandir_cancel_handler.
44156         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
44157         additional parameter and use openat instead of open (outside of ld.so).
44158         Add new __opendir as wrapper around __opendirat.
44159         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
44160         here without requiring old scandirat implementation.
44161
44162 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
44163
44164         * dirent/scandir.c (cancel_handler): Renamed to
44165         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
44166         defined.  Adjust users.
44167         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
44168         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
44169
44170 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
44171
44172         * string/test-string.h (IMPL): Use __STRING to expand name and then
44173         stringify it.
44174
44175         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
44176         of cleanups.
44177
44178 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
44179
44180         * string/Makefile: Update.
44181         (strop-tests): Append strncat.
44182         * string/test-wcscmp.c: New file.
44183         New comprehensive test for wcscmp.
44184         * string/test-strcmp.c: Update.
44185         (WIDE): New define.
44186
44187 2011-07-22  Andreas Schwab  <schwab@redhat.com>
44188
44189         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
44190         line.
44191
44192 2011-07-26  Andreas Schwab  <schwab@redhat.com>
44193
44194         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
44195         encoding to ACE if AI_IDN.
44196
44197 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
44198
44199         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
44200         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
44201
44202 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44203
44204         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
44205         Fix overflow bug in strncat.
44206         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
44207
44208         * string/test-strncat.c: Update.
44209         Add new tests for checking overflow bugs.
44210
44211 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44212
44213         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44214         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
44215         * sysdeps/i386/i686/multiarch/strcat.S: New file.
44216         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
44217         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
44218         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
44219         * sysdeps/i386/i686/multiarch/strncat.S: New file.
44220         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
44221         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
44222
44223         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
44224         (USE_AS_STRCAT): Define.
44225         Add strcat and strncat support.
44226         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
44227
44228 2011-07-25  Andreas Schwab  <schwab@redhat.com>
44229
44230         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
44231         __n bigger than INT_MAX+1.
44232         (__strncmp_g): Likewise.
44233
44234 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
44235
44236         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
44237         * libio/stido.h: Likewise.
44238
44239         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
44240         (AF_NFC): Define.
44241         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
44242         (AF_NFC): Define.
44243
44244         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
44245         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44246         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44247         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
44248         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44249
44250         [BZ #13021]
44251         * scripts/test-installation.pl: Don't expect libnss_test1 to be
44252         installed.
44253
44254         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
44255         typo.
44256         (_dl_x86_64_save_sse): Likewise.
44257
44258 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
44259
44260         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
44261         OSXSAVE.
44262         (_dl_x86_64_save_sse): Likewise.
44263
44264         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
44265
44266         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
44267
44268 2011-07-21  Andreas Schwab  <schwab@redhat.com>
44269
44270         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
44271         change.
44272         (_dl_x86_64_save_sse): Use correct AVX check.
44273
44274 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
44275
44276         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
44277         bug in strncpy/strncat.
44278         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
44279
44280 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
44281
44282         * string/tester.c (test_strcat): Add tests for different alignments
44283         of source and destination.
44284         (test_strncat): Likewise.
44285
44286 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
44287
44288         [BZ #12852]
44289         * posix/glob.c (glob): Check passed in values before using them in
44290         expressions to avoid some overflows.
44291         (glob_in_dir): Likewise.
44292
44293         [BZ #13007]
44294         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
44295         check for AVX enablement so that we don't crash with old kernels and
44296         new hardware.
44297         * elf/tst-audit4.c: Add same checks here.
44298         * elf/tst-audit6.c: Likewise.
44299
44300         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
44301
44302 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
44303
44304         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
44305
44306 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
44307
44308         * po/cs.po: Update from translation team.
44309         * po/bg.po: Likewise.
44310
44311 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
44312
44313         * misc/sys/cdefs.h: Add support for const attribute.
44314         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
44315         to gnu_dev_{major,minor,makedev} functions.
44316
44317 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
44318
44319         * intl/dcigettext.c (get_output_charset): Add missing bracket.
44320
44321 2011-07-20  Andreas Schwab  <schwab@redhat.com>
44322
44323         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
44324         strlen results.
44325
44326 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44327
44328         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
44329         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
44330         register in order to avoid conflicts with the soft frame pointer
44331         being held in r11 when necessary.
44332         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
44333         (INTERNAL_VSYSCALL_NCS): Likewise.
44334
44335 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
44336
44337         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
44338         * elf/dl-fini.c (_dl_fini): Adjust caller.
44339         * elf/dl-close.c (_dl_close_worker): Likewise.
44340         * sysdeps/generic/ldsodefs.h: Adjust declaration.
44341
44342 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
44343
44344         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
44345         "aux_cache->nlibs < 0".
44346
44347         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
44348         in the reload-count case.
44349
44350 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44351
44352         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44353         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
44354         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
44355         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
44356         * sysdeps/x86_64/multiarch/strcat.S: New file.
44357         * sysdeps/x86_64/multiarch/strncat.S: New file.
44358         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
44359         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
44360         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
44361         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
44362         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
44363         (USE_AS_STRCAT): Define.
44364         Add strcat and strncat support.
44365         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
44366         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44367         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
44368         * string/strncat.c: Update.
44369         (USE_AS_STRNCAT): Define.
44370         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44371         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
44372         and i7.
44373         * sysdeps/x86_64/multiarch/init-arch.h
44374         (bit_Prefer_PMINUB_for_stringop): New.
44375         (index_Prefer_PMINUB_for_stringop): Likewise.
44376         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
44377         bit_Prefer_PMINUB_for_stringop.
44378
44379 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
44380
44381         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
44382         buffer64.
44383         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
44384         of casting of buffer.
44385         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
44386         buffer32 and buffer64.
44387         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
44388         writes instead of casting of buffer.
44389         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
44390         buffer32.
44391         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
44392         casting of buffer.
44393
44394 2011-07-19  Andreas Schwab  <schwab@redhat.com>
44395
44396         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
44397
44398 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
44399
44400         * nscd/nscd.c (termination_handler): Don't do anything for a database
44401         if it has not yet been initialized.
44402
44403 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
44404
44405         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
44406
44407 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
44408
44409         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
44410
44411 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
44412
44413         * po/nl.po: Update from translation team.
44414         * po/sv.po: Likewise.
44415
44416 2011-07-16  Roland McGrath  <roland@hack.frob.com>
44417
44418         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
44419         now disallowed by GCC.
44420
44421         * configure.in (use-default-link): Default to yes if a test -shared
44422         link meets our qualifications.
44423         * configure: Regenerated.
44424
44425         * config.make.in (output-format): New variable.
44426         * configure.in: Check for ld --print-output-format support.
44427         * configure: Regenerated.
44428         * Makerules ($(common-objpfx)format.lds)
44429         [$(output-format) != unknown]: Just use $(output-format),
44430         instead of the linker-script munging.
44431
44432 2011-07-14  Roland McGrath  <roland@hack.frob.com>
44433
44434         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
44435         of $(common-objpfx)shlib.lds.
44436         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
44437
44438         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
44439         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
44440
44441         * configure.in (-z relro check): Adjust test code to add a large
44442         writable data section after it.
44443         * configure: Regenerated.
44444
44445 2011-07-11  Roland McGrath  <roland@hack.frob.com>
44446
44447         * configure.in (-z relro check): Fix test code to make the variable
44448         truly const.
44449         * configure: Regenerated.
44450
44451 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
44452
44453         * nscd/nscd.h (struct traced_file): Define.
44454         (struct database_dyn): Remove inotify_descr, reset_res, and filename
44455         elements.  Add traced_files.
44456         (inotify_fd): Declare.
44457         (register_traced_file): Declare.
44458         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
44459         (inotify_fd): Export.
44460         (resolv_conf_descr): Remove.
44461         (nscd_init): Move inotify descriptor creation to main.
44462         Don't register files for notification here.
44463         (register_traced_file): New function.
44464         (invalidate_cache): Don't use reset_res to determine whether to call
44465         res_init, go through the list of registered files.
44466         (main_loop_poll): The inotify descriptors are now stored in the
44467         structures for the traced files.
44468         (main_loop_epoll): Likewise
44469         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
44470         to __nss_disable_nscd.
44471         * nscd/cache.c (prune_cache): There is no single inotify descriptor
44472         for a database anymore.  Check the records for all the registered
44473         files instead.
44474         * nss/Makefile (libnss_files-routines): Add files-init.
44475         (libnss_db-routines): Add db-init.
44476         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
44477         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
44478         * nss/nss_db/db-init.c: New file.
44479         * nss/nss_files/files-init.c: New file.
44480         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
44481         __nss_lookup_function.
44482         (__nss_lookup_function): Call nss_load_library.
44483         (nss_load_all_libraries): New function.
44484         (__nss_disable_nscd): Take parameter with callback function for files
44485         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
44486         used for the cached services.
44487         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
44488         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
44489         options for features to all the files in nscd.
44490
44491         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
44492
44493 2011-07-10  Roland McGrath  <roland@hack.frob.com>
44494
44495         * csu/elf-init.c (__libc_csu_init): Comment typo.
44496
44497 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
44498
44499         * po/pl.po: Update from translation team.
44500         * po/ja.po: Likewise.
44501         * po/ru.po: Likewise.
44502         * po/ko.po: Likewise.
44503         * po/fr.po: Likewise.
44504
44505 2011-07-09  Roland McGrath  <roland@hack.frob.com>
44506
44507         * configure.in (.ctors/.dtors header and trailer check):
44508         Use an empirical test on a built program.
44509         * configure: Regenerated.
44510
44511         * configure.in (-z relro check): Use an empirical test on a built DSO.
44512         Detect, but do not require, on ia64.
44513         * configure: Regenerated.
44514
44515         * configure.in (READELF): Find it with AC_CHECK_TOOL.
44516         Update tests that use readelf to use $READELF instead.
44517         * configure: Regenerated.
44518
44519 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
44520
44521         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
44522         if the result is not used.
44523
44524 2011-07-05  Andreas Jaeger  <aj@suse.de>
44525
44526         [BZ#9696]
44527         * stdlib/tst-strtod.c: Add testcase.
44528
44529 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
44530
44531         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
44532         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
44533         The latter has a higher limit.  Take additional parameter to pass to
44534         the new function.
44535         (__pathconf): Pass file to __statfs_link_max.
44536         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
44537         __statfs_link_max.
44538         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
44539         __statfs_link_max.
44540
44541         [BZ #12868]
44542         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
44543         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
44544         Handle Lustre.
44545         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
44546         (__statfs_filesize_max): Likewise.
44547         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
44548
44549 2011-07-05  Andreas Jaeger  <aj@suse.de>
44550
44551         * resolv/res_comp.c (dn_skipname): Remove unused variable.
44552
44553 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
44554
44555         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
44556         `status' variable.
44557         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
44558         Likewise.
44559
44560 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
44561
44562         * Makefile (strop-tests): Add strncat.
44563         * string/test-strncat.c: New file.
44564
44565 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
44566
44567         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
44568
44569 2011-06-21  Andreas Jaeger  <aj@suse.de>
44570
44571         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
44572         Copy rule from iconvdata/Makefile.
44573
44574 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
44575
44576         [BZ #12922]
44577         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
44578         but no long options are defined, just return 'W'.
44579
44580 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
44581
44582         [BZ #9696]
44583         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
44584
44585 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
44586
44587         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
44588         netgroups to read.
44589         (innetgr): Likewise.
44590
44591 2011-07-05  Roland McGrath  <roland@hack.frob.com>
44592
44593         * config.make.in (install_root): Default to $(DESTDIR).
44594
44595 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
44596
44597         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
44598
44599 2011-07-02  Roland McGrath  <roland@hack.frob.com>
44600
44601         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
44602
44603         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
44604         containing directory rather than embedding absolute directory names.
44605
44606         * scripts/check-local-headers.sh: Rewritten using awk.
44607         Match by word, not by line.  Print error messages for matches.
44608         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
44609
44610         * Makerules [shlib-lds-flags empty]:
44611         ($(common-objpfx)libc_pic.opts): New target.
44612         ($(common-objpfx)libc_pic.os.clean): New target.
44613         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
44614
44615         * config.make.in (OBJCOPY): New variable.
44616         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
44617         * configure: Regenerated.
44618
44619         * config.make.in (use-default-link): New variable.
44620         * configure.in (use_default_link): Grok --with-default-link to set it.
44621         * configure: Regenerated.
44622         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
44623         (shlib-lds, shlib-lds-flags): Define to empty.
44624
44625         * Makerules (shlib-lds): New variable.
44626         (shlib-lds-flags): New variable.
44627         (build-shlib, build-moduile, build-module-asneeded): Use it.
44628         ($(common-objpfx)libc.so): Use $(shlib-lds).
44629         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
44630         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
44631
44632         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
44633         DT_FLAGS/DT_FLAGS_1 with zero flags.
44634
44635         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
44636         linker script munging.
44637
44638 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
44639
44640         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
44641         as 128-bit value.
44642         * crypt/sha512.c (sha512_process_block): Perform total addition using
44643         128-bit if possible.
44644         (__sha512_finish_ctx): Likewise.
44645         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
44646         as 64-bit value.
44647         * crypt/sha256.c (SWAP64): Define.
44648         (sha256_process_block): Perform total addition using 64-bit if
44649         possible.
44650         (__sha256_finish_ctx): Likewise.
44651
44652 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
44653
44654         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
44655         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44656         * nscd/hstcache.c (cache_addhst): Likewise.
44657         * nscd/grpcache.c (cache_addgr): Likewise.
44658         * nscd/aicache.c (addhstaiX): Likewise
44659         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
44660
44661 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
44662
44663         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
44664         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44665         * nscd/hstcache.c (cache_addhst): Likewise.
44666         * nscd/grpcache.c (cache_addgr): Likewise.
44667         * nscd/aicache.c (addhstaiX): Likewise
44668
44669 2011-07-01  Andreas Schwab  <schwab@redhat.com>
44670
44671         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
44672         domain only when needed.
44673
44674 2011-06-30  Andreas Schwab  <schwab@redhat.com>
44675
44676         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
44677         is always restored.
44678
44679 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
44680
44681         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
44682         are re-adding the entry.
44683         * nscd/servicescache.c (cache_addserv): Likewise.
44684
44685 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
44686
44687         * sysdeps/generic/dl-irel.h: fix protection against multiple
44688         inclusions.
44689         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
44690
44691 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
44692
44693         [BZ #12935]
44694         * malloc/memusage.sh: Fix quoting in message.
44695         * debug/xtrace.sh: Likewise.
44696
44697         * configure.in: Remove support for --experimental-malloc option, make
44698         it the default.
44699         * config.make.in: Likewise.
44700         * malloc/Makefile: Likewise.
44701
44702 2011-06-27  Andreas Schwab  <schwab@redhat.com>
44703
44704         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
44705         two-byte characters.
44706
44707 2011-06-27  Roland McGrath  <roland@hack.frob.com>
44708
44709         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
44710         AC_CACHE_CHECK invocation.
44711         * configure: Regenerated.
44712
44713         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
44714
44715 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
44716
44717         [BZ #12350]
44718         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
44719         bit from old_res_options.
44720
44721         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
44722
44723         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
44724         value type for setfct.
44725
44726 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
44727
44728         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44729         __gettimeofday instead of gettimeofday.
44730
44731 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
44732
44733         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
44734
44735 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
44736
44737         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
44738
44739         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
44740         info.
44741
44742 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44743
44744         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44745         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44746         strcpy-sse2-unaligned strncpy-sse2-unaligned
44747         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
44748         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
44749         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
44750         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
44751         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
44752         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
44753         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
44754         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
44755         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
44756         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
44757         (STRCPY): Support SSE2 and SSSE3 versions.
44758
44759 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
44760
44761         [BZ #12874]
44762         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
44763         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
44764         kernels which artificially limit size of requests.
44765
44766 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44767
44768         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44769         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44770         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
44771         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
44772         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
44773         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
44774         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
44775         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
44776         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
44777         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
44778         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
44779         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
44780         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
44781         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
44782         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
44783         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44784         Enable unaligned load optimization for Intel Core i3, i5 and i7
44785         processors.
44786         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
44787         Define.
44788         (index_Fast_Unaligned_Load): Define.
44789         (HAS_FAST_UNALIGNED_LOAD): Define.
44790
44791 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
44792
44793         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
44794
44795 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44796
44797         [BZ #12907]
44798         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
44799         until it is clear that the information is realy needed.
44800         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
44801
44802 2011-06-22  Andreas Schwab  <schwab@redhat.com>
44803
44804         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
44805
44806 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44807
44808         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44809         /sys/devices/system/cpu/online if it is usable.
44810
44811         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
44812         reading the information from the /proc filesystem to once a second.
44813
44814 2011-06-21  Andreas Jaeger  <aj@suse.de>
44815
44816         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
44817         NULL after inclusion of kernel headers.
44818
44819 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
44820
44821         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
44822         calls to internal_setent.
44823
44824         [BZ #12885]
44825         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
44826         addresses using gethostbyname4_r ignore IPv4 addresses.
44827
44828         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
44829         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
44830
44831         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
44832
44833 2011-06-20  David S. Miller  <davem@davemloft.net>
44834
44835         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
44836         inclusions.
44837         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
44838
44839         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
44840         (elf_irel): Use it.
44841         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
44842         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
44843         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
44844         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
44845         * sysdeps/x86_64/dl-irel.h: Likewise.
44846
44847         * elf/dl-runtime.c: Use elf_ifunc_invoke.
44848         * elf/dl-sym.c: Likewise.
44849
44850 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44851
44852         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
44853         need to dereference resplen2.
44854
44855 2011-06-14  Andreas Schwab  <schwab@redhat.com>
44856
44857         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
44858
44859 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44860
44861         * Makeconfig: Define vardbdir and inst_vardbdir.
44862         * nss/Makefile: Add rules to install db-Makefile.
44863
44864         * nss/nss_db/db-XXX.c: Cleanup.
44865
44866         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
44867         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
44868         GLIBC_PRIVATE.
44869         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
44870         * nss/makedb.c: Implement -g option to specify that value strings
44871         are generated and should not be added to table iterated over for
44872         get*ent calls.
44873         * nss/nss_db/db-initgroups.c: New file.
44874
44875         * nss/getent.c: Add support for initgroups lookups through getgrouplist
44876         interface.
44877
44878         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
44879         (internal_getgrouplist): Adjust to name change.
44880         Update use_initgroups_entry if this is not the first call.
44881         * nss/databases.def: Add initgroups entry.
44882
44883         * nss/makedb.c (compute_tables): Check result of multiple hash table
44884         sizes to minimize maximum chain length.
44885
44886 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
44887
44888         * Versions.def: Add entry for libnss_db.
44889         * shlib-versions: Likewise.
44890         * nss/Makefile: Add rules to build libnss_db.
44891         * nss/Versions: Add libnss_db information.  Organize libnss_files
44892         entries better.
44893         * nss/db-Makefile: Add gshadow support.  Change rules for the new
44894         makedb progra.  Some minor improvements to generate smaller files.
44895         * nss/nss_db/nss_db.h: Move NSS database header data structures to
44896         here from...
44897         * nss/makedb.c: ...here.
44898         Improve database format to be smaller and require less memory at
44899         runtime.
44900         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
44901         db anymore.
44902         * nss/nss_db/db-netgrp.c: Likewise.
44903         * nss/nss_db/db-open.c: Likewise.
44904         * nss/nss_files/flies-XXX.x: Adjust comments.
44905         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
44906         * nss/nss_files/files-grp.c: Likewise.
44907         * nss/nss_files/files-hosts.c: Likewise.
44908         * nss/nss_files/files-network.c: Likewise.
44909         * nss/nss_files/files-proto.c: Likewise.
44910         * nss/nss_files/files-pwd.c: Likewise.
44911         * nss/nss_files/files-rpc.c: Likewise.
44912         * nss/nss_files/files-service.c: Likewise.
44913         * nss/nss_files/files-sgrp.c: Likewise.
44914         * nss/nss_files/files-spwd.c: Likewise.
44915         * nss/nss_db/db-alias.c: Removed.
44916         * nss/nss_db/dummy-db.h: Removed.
44917
44918 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
44919
44920         * nss/makedb.c: Rewritten to not use database library.
44921         * nss/Makefile: Update to build new makedb program.
44922
44923 2011-06-14  Andreas Jaeger  <aj@suse.de>
44924
44925         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
44926         memset declaration.
44927
44928 2011-06-10  Andreas Schwab  <schwab@redhat.com>
44929
44930         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
44931         tmpbuf.
44932
44933 2011-06-10  Roland McGrath  <roland@hack.frob.com>
44934
44935         * Makerules (shlib.lds): Fail if the linker script comes out empty.
44936         * elf/Makefile ($(objpfx)ld.so): Likewise.
44937
44938         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
44939         Don't list ld.so twice in dependencies.
44940
44941         * posix/bug-regex31.c: Include <stdlib.h>.
44942
44943         * nscd/hstcache.c (cache_addhst): Remove unused variable.
44944
44945         * nis/nss_compat/compat-spwd.c
44946         (getspent_next_nss_netgr): Remove unused variable.
44947         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
44948
44949         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
44950         nonmembers" output to use the right array.
44951
44952         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
44953
44954         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
44955
44956         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
44957         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
44958         * catgets/gencat.c (read_input_file): Likewise.
44959         * locale/programs/locarchive.c (enlarge_archive): Likewise.
44960
44961         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
44962         variable definition inside #if's controlling its use.
44963
44964         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
44965
44966         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
44967
44968         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
44969
44970         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
44971         unreachable code.
44972
44973         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
44974
44975         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
44976         * configure: Regenerated.
44977
44978         * Makerules: Revert last change.
44979         * elf/Makefile: Likewise.
44980
44981 2011-06-09  Roland McGrath  <roland@hack.frob.com>
44982
44983         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
44984         * elf/Makefile ($(objpfx)librtld.os): Likewise.
44985         (reloc-link): Likewise.
44986
44987 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
44988
44989         * elf/Makefile: Add rules to build pldd.
44990         * elf/pldd.c: New file.
44991         * elf/pldd-xx.c: New file.
44992
44993 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
44994
44995         * version.h: Update for 2.15 development version.
44996
44997 2011-06-07  David S. Miller  <davem@davemloft.net>
44998
44999         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
45000         ifuncs.
45001         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
45002         elf_machine_lazy_rel): Likewise.
45003         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
45004         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
45005         elf_machine_lazy_rel): Likewise.
45006         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
45007         dl_hwcap via passed in argument.
45008         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
45009         Likewise.
45010
45011 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45012
45013         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
45014
45015 2011-06-06  Roland McGrath  <roland@hack.frob.com>
45016
45017         [BZ #12849]
45018         * manual/fdl-1.1.texi: New file, verbatim from:
45019         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
45020         * manual/lgpl-2.1.texi: New file, verbatim from:
45021         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
45022         * manual/Makefile (licenses): New variable, list those new file names.
45023         (texis): Use it.
45024         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
45025
45026         * manual/fdl.texi: File removed.
45027         * manual/lesser.texi: File removed.
45028         * manual/libc.texinfo (Copying, Documentation License):
45029         Use new @include file names, put @appendix directive before @include.
45030
45031 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
45032
45033         [BZ #12841]
45034         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
45035         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
45036         (mq_open): Add __NTH.
45037
45038 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
45039
45040         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45041         Assume Intel Core i3/i5/i7 processor if AVX is available.
45042
45043 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
45044
45045         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
45046         typo.
45047
45048 2011-05-31  Andreas Schwab  <schwab@redhat.com>
45049
45050         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
45051         memory.  Use alloca_account.  Fix memory leak when retrying.
45052
45053 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
45054
45055         * version.h (RELEASE): Bump for 2.14 release.
45056         * include/features.h (__GLIBC_MINOR__): Bump to 14.
45057
45058         * config.make.in (RANLIB): Remove entry.
45059
45060 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
45061
45062         * po/Makefile (po-sed-cmd): Add ksh to extensions.
45063         (libc.pot): Work around missing support for .ksh extension in xgettext.
45064
45065         [BZ #12684]
45066         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
45067         if both request failed.
45068         (send_dg): In case of server errors clear resplen or *resplen2.
45069
45070         [BZ #12454]
45071         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
45072         when there are multiple maps.
45073         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
45074         (_dl_fini): Remove test here.
45075
45076         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
45077
45078 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
45079
45080         [BZ #12350]
45081         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
45082         bit from old_res_options.
45083         (gaih_inet): Likewise.
45084
45085         [BZ #11099]
45086         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
45087         as signed.
45088
45089         * resolv/res_init.c (res_setoptions): Make the code more compact.
45090
45091         [BZ #11558]
45092         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
45093         set RES_USEVC.
45094
45095         [BZ #11634]
45096         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
45097
45098         * malloc/malloc.h: Mark malloc hook variables as deprecated.
45099
45100         [BZ #11781]
45101         * malloc/malloc.h: Declare malloc hook variables as volatile.
45102
45103         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
45104         in last patch.
45105
45106         [BZ #11799]
45107         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
45108         raise in the comment.
45109         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
45110         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
45111         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
45112
45113 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
45114
45115         [BZ #12811]
45116         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
45117         grow the buffers more if it already has to be sufficient.
45118         (build_wcs_upper_buffer): Likewise.
45119         * posix/regexec.c (check_matching): Likewise.
45120         (clean_state_log_if_needed): Likewise.
45121         (extend_buffers): Don't enlarge buffers beyond size of the input
45122         buffer.
45123         Patches mostly by Emil Wojak <emil@wojak.eu>.
45124         * posix/bug-regex32.c: New file.
45125         * posix/Makefile (tests): Add bug-regex32.
45126
45127         * locale/findlocale.c (_nl_find_locale): Return right away if
45128         _nl_explode_name failed.
45129         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
45130
45131         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
45132
45133         * debug/xtrace.sh: Unify messages.
45134         * malloc/memusage.sh: Likewise.
45135
45136         [BZ #12813]
45137         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
45138         time symbol from vDSO.  Substitute with vsyscall if not available.
45139         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
45140         __vdso_time.
45141
45142         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
45143         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
45144         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
45145         Add sendmmsg and internal_sendmmsg.
45146         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
45147         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
45148         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
45149
45150         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
45151         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
45152         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
45153
45154 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
45155
45156         [BZ #12813]
45157         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
45158         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
45159         available.
45160         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
45161         __vdso_getcpu.
45162
45163         [BZ #12814]
45164         * iconvdata/Makefile (tests): Add bug-iconv9.
45165         * iconvdata/bug-iconv9.c: New file.
45166
45167 2011-05-27  Andreas Schwab  <schwab@redhat.com>
45168
45169         [BZ #12814]
45170         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
45171
45172 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
45173
45174         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
45175         (struct user_regs_struct): Change intcs field back to cs.
45176
45177 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
45178
45179         * po/ja.po: Update from translation team.
45180
45181 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
45182
45183         [BZ #12795]
45184         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
45185         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
45186
45187 2011-05-20  Andreas Schwab  <schwab@redhat.com>
45188
45189         * stdlib/longlong.h: Update from GCC.
45190
45191 2011-05-23  Andreas Schwab  <schwab@redhat.com>
45192
45193         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
45194         parameter name.
45195         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
45196         Add parameter name.
45197         (__sysconf): Pass it down.
45198
45199 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
45200
45201         [BZ #12671]
45202         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
45203         some situations.
45204         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
45205         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
45206         add in in __libc_use_alloca calls.  Adjust callers.
45207         (glob): Use malloc in some situations.
45208
45209         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
45210         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
45211         pltexit.
45212
45213 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
45214
45215         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
45216         and CLOCK_BOOTTIME_ALARM.
45217
45218         [BZ #12782]
45219         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
45220         is returned.
45221
45222         * string/_strerror.c (__strerror_r): Print negative errors as signed
45223         numbers.
45224
45225         [BZ #12777]
45226         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
45227         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
45228         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
45229
45230         * configure.in: Fix typo in redirection and correct removal of test
45231         files in two cases.
45232
45233         [BZ #12788]
45234         * locale/setlocale.c (new_composite_name): Fix test to check for
45235         identical name of all categories.
45236
45237         [BZ #12792]
45238         * libio/filedoalloc.c (local_isatty): New function.
45239         (_IO_file_doallocate): Use local_isatty.
45240         * stdio-common/perror.c (perror): In case a new stream is used
45241         forward the stream error.
45242         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
45243         error flag.
45244
45245 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
45246
45247         [BZ #11869]
45248         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
45249         alloca.
45250         * include/alloca.h (extend_alloca_account): Define.
45251
45252         [BZ #11857]
45253         * posix/regex.h: Fix comments with documentation of user-accessible
45254         fields after compilation and describe correct free'ing of pattern
45255         after re_compile_pattern.
45256         Patch by Reuben Thomas <rrt@sc3d.org>.
45257
45258 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
45259
45260         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
45261         and -mno-altivec to prevent the compiler from using Altivec and/or
45262         VSX instructions when the corresponding registers are not available.
45263
45264 2011-05-19  Andreas Schwab  <schwab@redhat.com>
45265
45266         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
45267
45268 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
45269
45270         * libio/freopen.c (freopen): Use __dup2, not dup2.
45271         * libio/freopen64.c (freopen64): Likewise.
45272
45273 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
45274
45275         [BZ #12775]
45276         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
45277         * math/Makefile (tests): Add test-powl.
45278         (CFLAGS-test-powl.c): Define.
45279         * math/test-powl.c: New file.
45280
45281 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
45282
45283         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
45284
45285 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
45286
45287         [BZ #11837]
45288         * iconvdata/gb18030.c: Update to GB18020-2005.
45289
45290 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
45291
45292         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
45293         RE_SYNTAX_POSIX_AWK): Update to match recent development.
45294         Patch by Aharon Robbins <arnold@skeeve.com>.
45295
45296         [BZ #11892]
45297         * stdlib/putenv.c (putenv): Don't always create copy of the variable
45298         on the stack.
45299
45300         [BZ #11895]
45301         * misc/pselect.c (__pselect): Handle timeout value errors hidden
45302         through underflows.
45303
45304         [BZ #12766]
45305         * misc/error.c (error_at_line): Ensure file_name and old_file_name
45306         point to strings before performing equality test for error_one_per_line
45307         mode.
45308
45309         [BZ #11697]
45310         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
45311
45312         [BZ #11820]
45313         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
45314         (struct user_fpregs_struct): Avoid __uint*_t types.
45315
45316         [BZ #6420]
45317         * malloc/mtrace.c (tr_where): Add additional parameter to point to
45318         symbol info.  Use it instead of calling _dl_addr locally.
45319         (lock_and_info): New function.
45320         (tr_freehook): Call lock_and_info and pass symbol info as additional
45321         parameter to tr_where.
45322         (tr_mallochook): Likewise.
45323         (tr_reallochook): Likewise.
45324         (tr_memalignhook): Likewise.
45325
45326         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
45327         used and couldn't be at all thread-safe.
45328
45329 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
45330
45331         * libio/freopen.c (freopen): Don't close old file descriptor
45332         before the new one is opened.  Instead dup the new file descriptor
45333         to the old one after the new stream is created.
45334         * libio/freopen64.c (freopen64): Likewise.
45335         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
45336         * libio/fileops.c (_IO_new_file_close_it): Handle new
45337         _IO_FLAGS2_NOCLOSE flag.
45338         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
45339         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
45340         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
45341         _IO_FLAGS2_NOCLOSE flag.
45342         * include/unistd.h: Add hidden_proto for dup3.
45343         Define __have_dup3.
45344         * io/dup3.c: Define hidden symbol.
45345         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
45346
45347         [BZ #7101]
45348         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
45349         when an incomplete long option is used.
45350         * posix/tst-getopt_long1.c: New file.
45351         * posix/Makefile (tests): Add tst-getopt_long1.
45352
45353         [BZ #10138]
45354         * scripts/config.guess: Update from autoconf-2.68.
45355         * scripts/config.sub: Likewise.
45356
45357         [BZ #10157]
45358         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
45359         tests into ...
45360         (has_cpuclock): ...this.  New function.
45361         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
45362         macro here based on has_cpuclock code.
45363
45364         [BZ #10149]
45365         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
45366         First byte (not low byte) is now always NUL.
45367         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
45368
45369         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
45370         Use non-cancelable interfaces.
45371
45372         [BZ #9809]
45373         * locale/iso-639.def: Add entry for Sorani.
45374
45375         [BZ #11901]
45376         * include/stdlib.h: Move include protection to the right place.
45377         Define abort_msg_s.  Declare __abort_msg with it.
45378         * stdlib/abort.c (__abort_msg): Adjust type.
45379         * assert/assert.c (__assert_fail_base): New function.  Majority
45380         of code from __assert_fail.  Allocate memory for __abort_msg with
45381         mmap.
45382         (__assert_fail): Now call __assert_fail_base.
45383         * assert/assert-perr.c: Remove bulk of implementation.  Use
45384         __assert_fail_base.
45385         * include/assert.hL Declare __assert_fail_base.
45386         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
45387         mmap.
45388         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
45389
45390 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
45391
45392         [BZ #11952]
45393         [BZ #12453]
45394         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
45395         until all modules are registered in the DTV.
45396         * elf/Makefile: Add rules to build and run tst-tls19.
45397         * elf/tst-tls19.c: New file.
45398         * elf/tst-tls19mod1.c: New file.
45399         * elf/tst-tls19mod2.c: New file.
45400         * elf/tst-tls19mod3.c: New file.
45401         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
45402
45403         [BZ #12083]
45404         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
45405         correctly.
45406
45407         [BZ #12601]
45408         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
45409         two-byte sequence errors.
45410         * iconvdata/Makefile (tests): Add bug-iconv8.
45411         * iconvdata/bug-iconv8.c: New file.
45412
45413         [BZ #12626]
45414         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
45415         buf2 definition.
45416
45417         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
45418
45419         [BZ #12432]
45420         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
45421         (dummy_getcfa): New function.
45422         (init): Get _Unwind_GetCFA address, use dummy if not found.
45423         (backtrace_helper): In recursion check, also check whether CFA changes.
45424         (__backtrace): Completely initialize arg.
45425
45426         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
45427         storing incomplete byte sequence in state object.  Avoid testing for
45428         guaranteed too small input if we know there is enough data available.
45429
45430 2011-05-11  Andreas Schwab  <schwab@redhat.com>
45431
45432         * Makeconfig (+link-pie): Indent.
45433         * Rules (binaries-pie): Define if $(have-fpie) and
45434         $(build-shared).
45435         (binaries-shared): Also filter out $(binaries-pie).
45436         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
45437         * nscd/Makefile (others-pie): Add nscd.
45438         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
45439         ($(objpfx)nscd): Remove command override.
45440         * login/Makefile (others-pie): Add pt_chown.
45441         ($(objpfx)pt_chown): Remove command override.
45442         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
45443         remove command overrides.
45444
45445 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
45446
45447         * libio/tst_putwc.c: Fix error messages.
45448
45449         [BZ #12724]
45450         * libio/fileops.c (_IO_new_file_close_it): Always flush when
45451         currently writing and seek to current position when not.
45452         * libio/Makefile (tests): Add bug-fclose1.
45453         * libio/bug-fclose1.c: New file.
45454
45455 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
45456
45457         [BZ #12511]
45458         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
45459         don't set DF_1_NODELETE here.
45460         (do_lookup_x): When entering new entry test for copy relocation
45461         and if necessary set DF_1_NODELETE flag.
45462         * elf/tst-unique4.cc: New file.
45463         * elf/tst-unique4.h: New file.
45464         * elf/tst-unique4lib.cc: New file.
45465         * elf/Makefile: Add rules to build and run tst-unique4.
45466         Patch by Piotr Bury <pbury@goahead.com>.
45467
45468 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
45469
45470         [BZ #12052]
45471         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
45472
45473         [BZ #12625]
45474         * misc/mntent_r.c (addmntent): Flush the stream after the output
45475
45476         [BZ #12393]
45477         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
45478         (is_trusted_path_normalize): Skip initial colon.  Append slash
45479         to empty buffer.  Duplicate is_trusted_path code but allow
45480         constructed patch to be prefix.
45481         (is_dst): Allow $ORIGIN followed by /.
45482         (_dl_dst_substitute): Correct clearing of check_for_trusted.
45483         Correct testing of result of is_trusted_path_normalize
45484         (decompose_rpath): Fix warning.
45485
45486 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
45487
45488         [BZ #11257]
45489         * grp/initgroups.c (internal_getgrouplist): When we found the service
45490         list through the initgroups entry in nsswitch.conf do not always
45491         continue on a successful lookup.  Don't always use the
45492         __nss_group_database value if it is set.
45493         * nss/nsswitch.conf (initgroups): Change action for successful db
45494         lookup to continue for compatibility.
45495
45496 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
45497
45498         [BZ #11532]
45499         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
45500         and CP774 modules.
45501         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
45502         and CP774 modules.
45503         * iconvdata/tst-tables.sh: Likewise.
45504         * iconvdata/cp770.c: New file.
45505         * iconvdata/cp771.c: New file.
45506         * iconvdata/cp772.c: New file.
45507         * iconvdata/cp773.c: New file.
45508         * iconvdata/cp774.c: New file.
45509         * iconvdata/testdata/CP770: New file.
45510         * iconvdata/testdata/CP770..UTF8: New file.
45511         * iconvdata/testdata/CP771: New file.
45512         * iconvdata/testdata/CP771..UTF8: New file.
45513         * iconvdata/testdata/CP772: New file.
45514         * iconvdata/testdata/CP772..UTF8: New file.
45515         * iconvdata/testdata/CP773: New file.
45516         * iconvdata/testdata/CP773..UTF8: New file.
45517         * iconvdata/testdata/CP774: New file.
45518         * iconvdata/testdata/CP774..UTF8: New file.
45519
45520         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
45521         END CHARMAP line.
45522         * iconvdata/gen-8bit-gap.sh: Likewise.
45523         * iconvdata/gen-8bit.sh: Likewise.
45524
45525         * locale/iso-639.def: Add ary entry.
45526
45527         [BZ #11258]
45528         * locale/C-translit.h.in: Add U20A1 transliteration.
45529
45530         [BZ #12178]
45531         * locale/iso-639.def: Add wae entry.
45532         Patch by Kevin Bortis <bortis@translate-wae.ch>.
45533
45534         [BZ #12545]
45535         * locale/programs/localedef.c (construct_output_path): Use ssize_t
45536         for n.
45537
45538         [BZ #12711]
45539         * locale/C-translit.h.in: Add entry for U20B9.
45540         Patch by pravin.d.s@gmail.com.
45541
45542 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
45543
45544         [BZ #12713]
45545         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
45546         ENAMETOOLONG use generic getcwd.
45547         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
45548         in rtld.  Use *stat64.
45549         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
45550         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
45551         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
45552         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
45553         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
45554         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
45555         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
45556         __fstatat64 macros.
45557         * include/dirent.h: Add libc_hidden_proto for rewinddir.
45558         * dirent/rewinddir.c: Add libc_hidden_def.
45559         * sysdeps/mach/hurd/rewinddir.c: Likewise.
45560         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
45561
45562         * include/dirent.h (__alloc_dir): Add flags parameter.
45563         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
45564         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
45565         __alloc_dir.
45566         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
45567         from fdopendir if O_CLOEXEC is already set.
45568
45569 2011-03-15  Alan Modra  <amodra@gmail.com>
45570
45571         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
45572         l_tls_firstbyte_offset non-zero.  Save padding offset in
45573         l_tls_firstbyte_offset for later use.
45574         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
45575         freeing static tls block.
45576
45577 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
45578
45579         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
45580         where #ifdef was intended.  The intent is to prevent ARG_MAX from
45581         being defined by the kernel headers.
45582
45583 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
45584
45585         [BZ #12734]
45586         * resolv/resolv.h: Define RES_NOTLDQUERY.
45587         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
45588         no-tld-query and set RES_NOTLDQUERY.
45589         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
45590         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
45591         modern BIND to search name as TLD unless forbidden.
45592
45593 2011-05-07  Petr Baudis  <pasky@suse.cz>
45594             Ulrich Drepper  <drepper@gmail.com>
45595
45596         [BZ #12393]
45597         * elf/dl-load.c (fillin_rpath): Move trusted path check...
45598         (is_trusted_path): ...to here.
45599         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
45600         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
45601         using is_trusted_path_normalize() in setuid scripts.
45602
45603 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
45604
45605         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
45606         __BEGIN/__END_DECLS.
45607
45608 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
45609
45610         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
45611         NSS_STATUS_NOTFOUND if no record was found.
45612
45613 2011-05-05  Andreas Schwab  <schwab@redhat.com>
45614
45615         * sunrpc/Makefile (headers): Add rpc/netdb.h.
45616         (headers-not-in-tirpc): Remove rpc/netdb.h
45617         * resolv/netdb.h: Revert last change.
45618
45619 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
45620
45621         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
45622         circular dependency between libgcc.a and libc.a.
45623
45624 2011-05-05  Andreas Schwab  <schwab@redhat.com>
45625
45626         * resolv/netdb.h: Don't include <rpc/netdb.h>.
45627         * nis/Makefile: Don't install rpcsvc/*.
45628         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
45629         instead of <rpc/types.h>.
45630         (MAXHOSTNAMELEN): Define.
45631
45632 2011-05-03  Andreas Schwab  <schwab@redhat.com>
45633
45634         * elf/ldconfig.c (add_dir): Don't crash on empty path.
45635
45636 2011-04-28  Maciej Babinski  <mbabinski@google.com>
45637
45638         [BZ #12714]
45639         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
45640         gethostbyname4_r when IPv6 results are possible.
45641
45642 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
45643
45644         [BZ #12723]
45645         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
45646         _PC_PIPE_BUF handling.
45647
45648 2011-04-30  Bruno Haible  <bruno@clisp.org>
45649
45650         [BZ #12717]
45651         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
45652         * resolv/netdb.h (getnameinfo): Change type of flags parameter
45653         to 'int'.
45654         * inet/getnameinfo.c (getnameinfo): Likewise.
45655
45656 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
45657
45658         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
45659         to groups setting in database lookup.
45660         * nss/nsswitch.conf: Add initgroups entry.
45661
45662 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
45663
45664         [BZ #12685]
45665         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
45666         mode string.
45667         Patch by Eric Blake <eblake@redhat.com>.
45668
45669 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
45670
45671         * sunrpc/Makefile (need-export-routines): Add svc_run.
45672         (routines): Remove svc_run.
45673         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
45674         * sunrpc/clnt_perr.c (clnt_perrno): Export.
45675         * sunrpc/svc_run.c (svc_run): Likewise.
45676         * sunrpc/svc_udp.c (svcudp_create): Likewise.
45677
45678 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
45679
45680         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
45681         problem in reallocation in last patch.
45682
45683 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
45684
45685         * sunrpc/Makefile: Move inclusion of Rules.
45686
45687 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45688
45689         * nss/nss_files/files-initgroups.c: New file.
45690         * nss/Makefile (libnss_files-routines): Add files-initgroups.
45691         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
45692         _nss_files_initgroups_dyn.
45693
45694 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
45695
45696         * elf/elf.h (R_ARM_IRELATIVE): Define.
45697
45698 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45699
45700         * po/ru.po: Update from translation team.
45701
45702 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45703
45704         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
45705         dependencies.
45706
45707 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
45708
45709         [BZ #12653]
45710         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
45711         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
45712         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
45713         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
45714         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
45715
45716 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
45717
45718         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
45719         differing bytes.
45720         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
45721         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
45722         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
45723
45724 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45725
45726         [BZ #12420]
45727         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
45728         storing it.
45729         * stdlib/bug-getcontext.c: New file.
45730         * stdlib/Makefile: Add rules to build and run bug-getcontext.
45731
45732 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45733
45734         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
45735         instructions into .machine "z9-109".
45736         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
45737         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
45738
45739 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45740
45741         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
45742         between environment variables and auxiliary vector.
45743
45744 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
45745
45746         * Makefile: Add rules to build linkobj/libc.so.
45747         * include/libc-symbols.h: Define libc_hidden_nolink.
45748         * include/rpc/auth.h: Mark functions which are to be hidden.
45749         * include/rpc/auth_des.h: Likewise.
45750         * include/rpc/auth_unix.h: Likewise.
45751         * include/rpc/clnt.h: Likewise.
45752         * include/rpc/des_crypt.h: Likewise.
45753         * include/rpc/key_prot.h: Likewise.
45754         * include/rpc/pmap_clnt.h: Likewise.
45755         * include/rpc/pmap_prot.h: Likewise.
45756         * include/rpc/pmap_rmt.h: Likewise.
45757         * include/rpc/rpc_msg.h: Likewise.
45758         * include/rpc/svc.h: Likewise.
45759         * include/rpc/svc_auth.h: Likewise.
45760         * include/rpc/xdr.h: Likewise.
45761         * nis/Makefile: Link all DSOs against linkobj/libc.so.
45762         * nss/Makefile: Likewise.
45763         * sunrpc/Makefile: Don't install headers.  Build library with normal
45764         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
45765         * sunrpc/auth_des.c: Hide exported symbols by default, export some
45766         for the compat linking library.  Remove use of INTDEF/INTUSE.
45767         * sunrpc/auth_none.c: Likewise.
45768         * sunrpc/auth_unix.c: Likewise.
45769         * sunrpc/authdes_prot.c: Likewise.
45770         * sunrpc/authuxprot.c: Likewise.
45771         * sunrpc/clnt_gen.c: Likewise.
45772         * sunrpc/clnt_perr.c: Likewise.
45773         * sunrpc/clnt_raw.c: Likewise.
45774         * sunrpc/clnt_simp.c: Likewise.
45775         * sunrpc/clnt_tcp.c: Likewise.
45776         * sunrpc/clnt_udp.c: Likewise.
45777         * sunrpc/clnt_unix.c: Likewise.
45778         * sunrpc/des_crypt.c: Likewise.
45779         * sunrpc/des_soft.c: Likewise.
45780         * sunrpc/get_myaddr.c: Likewise.
45781         * sunrpc/key_call.c: Likewise.
45782         * sunrpc/key_prot.c: Likewise.
45783         * sunrpc/netname.c: Likewise.
45784         * sunrpc/pm_getmaps.c: Likewise.
45785         * sunrpc/pm_getport.c: Likewise.
45786         * sunrpc/pmap_clnt.c: Likewise.
45787         * sunrpc/pmap_prot.c: Likewise.
45788         * sunrpc/pmap_prot2.c: Likewise.
45789         * sunrpc/pmap_rmt.c: Likewise.
45790         * sunrpc/publickey.c: Likewise.
45791         * sunrpc/rpc_cmsg.c: Likewise.
45792         * sunrpc/rpc_common.c: Likewise.
45793         * sunrpc/rpc_dtable.c: Likewise.
45794         * sunrpc/rpc_prot.c: Likewise.
45795         * sunrpc/rpc_thread.c: Likewise.
45796         * sunrpc/rtime.c: Likewise.
45797         * sunrpc/svc.c: Likewise.
45798         * sunrpc/svc_auth.c: Likewise.
45799         * sunrpc/svc_authux.c: Likewise.
45800         * sunrpc/svc_raw.c: Likewise.
45801         * sunrpc/svc_run.c: Likewise.
45802         * sunrpc/svc_simple.c: Likewise.
45803         * sunrpc/svc_tcp.c: Likewise.
45804         * sunrpc/svc_udp.c: Likewise.
45805         * sunrpc/svc_unix.c: Likewise.
45806         * sunrpc/svcauth_des.c: Likewise.
45807         * sunrpc/xcrypt.c: Likewise.
45808         * sunrpc/xdr.c: Likewise.
45809         * sunrpc/xdr_array.c: Likewise.
45810         * sunrpc/xdr_float.c: Likewise.
45811         * sunrpc/xdr_intXX_t.c: Likewise.
45812         * sunrpc/xdr_mem.c: Likewise.
45813         * sunrpc/xdr_rec.c: Likewise.
45814         * sunrpc/xdr_ref.c: Likewise.
45815         * sunrpc/xdr_sizeof.c: Likewise.
45816         * sunrpc/xdr_stdio.c: Likewise.
45817
45818 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
45819
45820         [BZ #12650]
45821         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
45822         * sysdeps/ia64/dl-tls.h: Likewise.
45823         * sysdeps/powerpc/dl-tls.h: Likewise.
45824         * sysdeps/s390/dl-tls.h: Likewise.
45825         * sysdeps/sh/dl-tls.h: Likewise.
45826         * sysdeps/sparc/dl-tls.h: Likewise.
45827         * sysdeps/x86_64/dl-tls.h: Likewise.
45828         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
45829
45830 2011-03-14  Andreas Schwab  <schwab@redhat.com>
45831
45832         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
45833         rpath element also skip the following colon.
45834         (expand_dynamic_string_token): Add is_path parameter and pass
45835         down to DL_DST_REQUIRED and _dl_dst_substitute.
45836         (decompose_rpath): Call expand_dynamic_string_token with
45837         non-zero is_path.  Ignore empty rpaths.
45838         (_dl_map_object_from_fd): Call expand_dynamic_string_token
45839         with zero is_path.
45840
45841 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
45842
45843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
45844         Make cancelable.
45845
45846 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
45847
45848         [BZ #12655]
45849         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
45850         Patch by Filipe David Manana <fdmanana@apache.org>.
45851
45852 2011-04-07  Andreas Schwab  <schwab@redhat.com>
45853
45854         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
45855         Maintain aligned stack.
45856         (CHECK_RSP): Remove unused macro.
45857
45858 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
45859
45860         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
45861         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
45862
45863 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
45864
45865         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
45866
45867         * include/features.h: Mention __USE_XOPEN2K8 in comment.
45868
45869 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
45870
45871         [BZ #12518]
45872         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
45873         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
45874         * sysdeps/x86_64/memmove.c: New file.
45875         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
45876         (memcpy): Renamed to ...
45877         (__new_memcpy): This.
45878         (memcpy): Provide GLIBC_2_14 memcpy.
45879         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
45880         (memcpy): Provide GLIBC_2_2_5 memcpy.
45881
45882 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45883
45884         [BZ #12631]
45885         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
45886
45887 2011-03-30  Andreas Schwab  <schwab@redhat.com>
45888
45889         * misc/syncfs.c: New file.
45890         * misc/Makefile (routines): Add syncfs.
45891         * posix/unistd.h: Declare syncfs.
45892         * sysdeps/unix/syscalls.list: Add syncfs.
45893
45894 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45895
45896         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
45897         open_by_handle_at.
45898         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
45899         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45900         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45901         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45902         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45903         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
45904         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45905
45906 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45907
45908         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
45909         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45910         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
45911         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45912         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45913         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45914         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45915
45916         * io/Makefile: Compile fallocate.c, fallocate64.c, and
45917         sync_file_range.c with -fexceptions.
45918         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
45919         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
45920         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
45921         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
45922         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
45923         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
45924         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
45925         sync_file_range as cancellation point
45926         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
45927         now a wrapper around __call_sync_file_range with cancellation handling.
45928         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
45929         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
45930         function name to __call_sync_file_range.
45931         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
45932         Add call_sync_file_range.
45933
45934 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45935
45936         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
45937         bits/timex.h.
45938
45939 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45940
45941         * iconv/iconv.h: Fix typo in comment.
45942         * io/fcntl.h: Likewise.
45943         * libio/stdio.h: Likewise.
45944         * posix/spawn.h: Likewise.
45945         * posix/unistd.h: Likewise.
45946         * stdlib/stdlib.h: Likewise.
45947         * time/time.h: Likewise.
45948         * wcsmbs/wchar.h: Likewise.
45949
45950         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
45951         open_by_handle): Add.
45952         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
45953         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
45954         Augment a few comments.
45955         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45956         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45957         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45958         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45959         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45960         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
45961         open_by_handle.
45962
45963         * io/fcntl.h (AT_EMPTY_PATH): Define.
45964
45965 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
45966
45967         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
45968         * sysdeps/unix/sysv/linux/bits/time.h: New file.
45969         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
45970         to...
45971         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
45972         * Versions.def: Add GLIBC_2.14.
45973         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
45974         Export.
45975
45976 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
45977
45978         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
45979         round counter.
45980         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45981
45982 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
45983
45984         [BZ #12597]
45985         * string/test-strncmp.c (do_page_test): New function.
45986         (check2): Likewise.
45987         (test_main): Call check2.
45988         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
45989
45990 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
45991
45992         [BZ #12587]
45993         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
45994         Handle cache information in CPU leaf 4.
45995         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45996
45997 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
45998
45999         [BZ #12583]
46000         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
46001         character representation.
46002         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
46003
46004 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
46005
46006         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
46007         END(__isnan) to END(__isnanf) to match function entry point/label
46008         EALIGN(__isnanf,...).
46009
46010 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
46011
46012         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
46013
46014 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
46015
46016         [BZ #12510]
46017         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
46018         copy from the symbol referenced in the relocation to initialize the
46019         used variable.
46020         Patch by Piotr Bury <pbury@goahead.com>.
46021         * elf/Makefile: Add rules to build and tst-unique3.
46022         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
46023         * elf/tst-unique3.cc: New file.
46024         * elf/tst-unique3.h: New file.
46025         * elf/tst-unique3lib.cc: New file.
46026         * elf/tst-unique3lib2.cc: New file.
46027
46028         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
46029
46030 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
46031
46032         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
46033         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
46034         to _start.
46035
46036 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
46037
46038         * elf/dl-load.c (_dl_map_object): If we are looking for the first
46039         to-be-loaded object along a path to loader is ld.so.
46040
46041 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
46042             Ulrich Drepper  <drepper@gmail.com>
46043
46044         * sysdeps/x86_64/memset.S: After aligning destination, code
46045         branches to different locations depending on the value of
46046         misalignment, when multiarch is enabled. Fix this.
46047
46048 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
46049
46050         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
46051         Set _x86_64_preferred_memory_instruction for AMD processsors.
46052         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46053         Set bit_Prefer_SSE_for_memop for AMD processors.
46054
46055 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
46056
46057         * libio/fmemopen.c (fmemopen): Optimize a bit.
46058
46059 2011-03-03  Andreas Schwab  <schwab@redhat.com>
46060
46061         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
46062
46063 2011-03-03  Roland McGrath  <roland@redhat.com>
46064
46065         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
46066
46067 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
46068
46069         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
46070         __bzero_ultra1 instead of __memset_ultra1.
46071
46072 2011-02-23  Andreas Schwab  <schwab@redhat.com>
46073             Ulrich Drepper  <drepper@gmail.com>
46074
46075         [BZ #12509]
46076         * include/link.h (struct link_map): Add l_orig_initfini.
46077         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
46078         returning unsuccessfully.
46079         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
46080         close of a file loaded at startup, restore the original l_initfini
46081         list.
46082         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
46083         list, store the pointer.
46084         * elf/Makefile ($(objpfx)noload-mem): New rule.
46085         (noload-ENV): Define.
46086         (tests): Add $(objpfx)noload-mem.
46087         * elf/noload.c: Include <memcheck.h>.
46088         (main): Call mtrace.  Close all opened handles.
46089
46090 2011-02-17  Andreas Schwab  <schwab@redhat.com>
46091
46092         [BZ #12454]
46093         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
46094         dependencies are missing.
46095
46096 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46097
46098         Fix __if_freereq crash: Unlike the generic version which uses free,
46099         Hurd needs munmap.
46100         * sysdeps/mach/hurd/ifreq.h: New file.
46101
46102 2011-01-27  Petr Baudis  <pasky@suse.cz>
46103             Ulrich Drepper  <drepper@gmail.com>
46104
46105         [BZ 12445]#
46106         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
46107         to extend_alloca().
46108         * stdio-common/bug23.c: New file.
46109         * stdio-common/Makefile (tests): Add bug23.
46110
46111 2010-09-28  Andreas Schwab  <schwab@redhat.com>
46112             Ulrich Drepper  <drepper@gmail.com>
46113
46114         [BZ #12489]
46115         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
46116         before performing relro protection.  At old place add assertion
46117         to make sure nothing changed.
46118
46119 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
46120             Glauber de Oliveira Costa  <glommer@gmail.com>
46121
46122         * elf/elf.h: Add new ARM TLS relocs.
46123
46124 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
46125
46126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
46127         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
46128         cast from r3.
46129         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
46130         'tests' variable.
46131         * sysdeps/wordsize-64/tst-writev.c: New file.
46132
46133 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
46134
46135         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
46136         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
46137         insns in _dl_start to prevent a TOC reference before relocs are
46138         resolved.
46139
46140 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
46141
46142         [BZ #12469]
46143         * Makeconfig: Remove RANLIB definition.
46144         * Makerules: Don't use RANLIB.
46145         * aclocal.m4: Remove ranlib test.
46146         * configure.in: No need to check for ranlib.
46147         * elf/rtld-Rules: Don't use RANLIB.
46148
46149 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46150
46151         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
46152         protection macro.
46153         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
46154         inclusion protection macro.
46155
46156         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
46157         SIGRTMIN and SIGRTMAX and print information in that case only when
46158         SIGRTMIN is defined.
46159
46160 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
46161
46162         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
46163         arginfo fn returning -1.
46164
46165         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
46166         and thousands string is zero terminated.
46167
46168 2011-02-03  Andreas Schwab  <schwab@redhat.com>
46169
46170         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
46171         sysdeps/unix/sysv/linux/bits/socket.h.
46172
46173 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46174
46175         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
46176         (__CPU_COUNT): Remove old macros.
46177         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
46178         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
46179         (__CPU_ALLOC, __CPU_FREE): Add macros.
46180         (__sched_cpualloc, __sched_cpufree): Add declarations.
46181
46182 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
46183
46184         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
46185         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
46186         * nscd/aicache.c (addhstaiX): Return timeout of added value.
46187         (readdhstai): Return value of addhstaiX call.
46188         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
46189         (addgrbyX): Return value returned by cache_addgr.
46190         (readdgrbyname): Return value returned by addgrbyX.
46191         (readdgrbygid): Likewise.
46192         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
46193         (addpwbyX): Return value returned by cache_addpw.
46194         (readdpwbyname): Return value returned by addhstbyX.
46195         (readdpwbyuid): Likewise.
46196         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
46197         (addservbyX): Return value returned by cache_addserv.
46198         (readdservbyname): Return value returned by addservbyX:
46199         (readdservbyport): Likewise.
46200         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
46201         (addhstbyX): Return value returned by cache_addhst.
46202         (readdhstbyname): Return value returned by addhstbyX.
46203         (readdhstbyaddr): Likewise.
46204         (readdhstbynamev6): Likewise.
46205         (readdhstbyaddrv6): Likewise.
46206         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
46207         (readdinitgroups): Return value returned by addinitgroupsX.
46208         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
46209         (prune_cache): Keep track of timeout value of re-added entries.
46210         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
46211         * nscd/nscd.h: Adjust prototypes of readd* functions.
46212
46213 2011-02-04  Roland McGrath  <roland@redhat.com>
46214
46215         * nis/nis_server.c (nis_servstate): Use the right name for 0.
46216         (nis_stats): Likewise.
46217         * nis/nis_modify.c (nis_modify): Likewise.
46218         * nis/nis_remove.c (nis_remove): Likewise.
46219         * nis/nis_add.c (nis_add): Likewise.
46220
46221         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
46222
46223         * posix/fnmatch_loop.c: Add some consts.
46224
46225         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
46226
46227 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
46228
46229         [BZ #12460]
46230         * config.make.in (config-cflags-novzeroupper): Define.
46231         * configure.in: Substitute libc_cv_cc_novzeroupper.
46232         * elf/Makefile (AVX-CFLAGS): Define.
46233         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
46234         (CFLAGS-tst-auditmod4a.c): Likewise.
46235         (CFLAGS-tst-auditmod4b.c): Likewise.
46236         (CFLAGS-tst-auditmod6b.c): Likewise.
46237         (CFLAGS-tst-auditmod6c.c): Likewise.
46238         (CFLAGS-tst-auditmod7b.c): Likewise.
46239         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
46240
46241 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
46242
46243         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
46244         function to the callback.
46245         Patch partly by Jiri Olsa <jolsa@redhat.com>.
46246
46247 2011-02-02  Andreas Schwab  <schwab@redhat.com>
46248
46249         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
46250         of errno.
46251
46252 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
46253
46254         [BZ #11724]
46255         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
46256         of constructors.
46257         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
46258         of destructors.
46259         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
46260
46261         [BZ #11724]
46262         * elf/Makefile: Add rules to build and run new test.
46263         * elf/tst-initorder.c: New file.
46264         * elf/tst-initorder.exp: New file.
46265         * elf/tst-initordera1.c: New file.
46266         * elf/tst-initordera2.c: New file.
46267         * elf/tst-initordera3.c: New file.
46268         * elf/tst-initordera4.c: New file.
46269         * elf/tst-initorderb1.c: New file.
46270         * elf/tst-initorderb2.c: New file.
46271         * elf/tst-order-a1.c: New file.
46272         * elf/tst-order-a2.c: New file.
46273         * elf/tst-order-a3.c: New file.
46274         * elf/tst-order-a4.c: New file.
46275         * elf/tst-order-b1.c: New file.
46276         * elf/tst-order-b2.c: New file.
46277         * elf/tst-order-main.c: New file.
46278         New test case by George Gensure <werkt0@gmail.com>.
46279
46280 2010-10-01  Andreas Schwab  <schwab@redhat.com>
46281
46282         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
46283         decoding ACE if AI_CANONIDN.
46284
46285 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
46286
46287         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
46288
46289 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
46290
46291         * version.h (RELEASE): Bump for 2.13 release.
46292         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
46293
46294         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
46295
46296         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
46297         MADV_NOHUGEPAGE.
46298         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
46299         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
46300         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
46301         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
46302         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
46303         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
46304
46305         * posix/getconf.c: Update copyright year.
46306         * catgets/gencat.c: Likewise.
46307         * csu/version.c: Likewise.
46308         * debug/catchsegv.sh: Likewise.
46309         * debug/xtrace.sh: Likewise.
46310         * elf/ldconfig.c: Likewise.
46311         * elf/ldd.bash.in: Likewise.
46312         * elf/sprof.c (print_version): Likewise.
46313         * iconv/iconv_prog.c: Likewise.
46314         * iconv/iconvconfig.c: Likewise.
46315         * locale/programs/locale.c: Likewise.
46316         * locale/programs/localedef.c: Likewise.
46317         * malloc/memusage.sh: Likewise.
46318         * malloc/mtrace.pl: Likewise.
46319         * nscd/nscd.c (print_version): Likewise.
46320         * nss/getent.c: Likewise.
46321
46322         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
46323         PF_CAIF, and PF_ALG.
46324         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
46325
46326 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
46327
46328         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
46329         (modules-names): Use them.
46330         (ifunc-test-modules, ifunc-pie-tests): Define.
46331         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
46332         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
46333         (test-extras): Likewise.
46334         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
46335         $(compile-command.c).
46336         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
46337         (all-built-dso): Define.
46338         (check-textrel.out, check-execstack.out): Depend on it.
46339
46340         * configure.in: Don't override --enable-multi-arch.
46341
46342 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
46343
46344         [BZ #6812]
46345         * nscd/hstcache.c (tryagain): Define.
46346         (cache_addhst): Return tryagain not notfound for temporary errors.
46347         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
46348         failed.
46349
46350 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
46351
46352         [BZ #10563]
46353         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
46354         to make the syscall.
46355         * sysdeps/unix/sysv/linux/setgroups.c: New file.
46356
46357         [BZ #12378]
46358         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
46359         and fall back to matching as normal character if the string ends before
46360         the matching ']' is found.  This is what POSIX requires.
46361         * posix/testfnm.c: Adjust test result.
46362         * posix/globtest.sh: Adjust test result.  Add new test.
46363         * posix/tst-fnmatch.input: Likewise.
46364         * posix/tst-fnmatch2.c: Add new test.
46365
46366 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
46367
46368         * elf/Makefile (check-execstack): Revert last change.  Depend on
46369         check-execstack.h.
46370         (check-execstack.h): New target.
46371         (generated): Add check-execstack.h.
46372         * elf/check-execstack.c: Include "check-execstack.h".
46373         (main): Revert last change.
46374         (handle_file): Return zero if GNU_STACK is absent and
46375         DEFAULT_STACK_PERMS doesn't include PF_X.
46376
46377 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
46378
46379         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
46380         in child fails because the descriptor is already closed.
46381         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
46382         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
46383         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
46384
46385         [BZ #12397]
46386         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
46387         syscall.
46388
46389         [BZ #10484]
46390         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
46391         temporary buffer used to handle multi lookups locally.
46392         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
46393
46394 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
46395
46396         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
46397         loader is ld.so.
46398
46399 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
46400
46401         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
46402         alignment for SSE2.
46403
46404 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
46405
46406         [BZ #12394]
46407         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
46408         characters.  When rounding increased number of integer digits recompute
46409         number of groups.
46410         * stdio-common/tst-grouping.c: New file.
46411         * stdio-common/Makefile: Add rules to build and run tst-grouping.
46412
46413 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
46414
46415         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
46416         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
46417
46418         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
46419         void.
46420         * bits/select.h: Likewise.
46421
46422 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
46423
46424         * po/ja.po: Update from translation team.
46425
46426 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
46427
46428         [BZ #11155]
46429         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
46430         implementation just like for lxstat, fxstatat, et al.
46431
46432 2010-12-27  Jim Meyering  <meyering@redhat.com>
46433
46434         [BZ #12348]
46435         * posix/regexec.c (build_trtable): Return failure indication upon
46436         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
46437
46438 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
46439
46440         [BZ #12201]
46441         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
46442         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
46443         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
46444         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
46445
46446         [BZ #12207]
46447         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
46448
46449         [BZ #12204]
46450         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
46451         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
46452
46453 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
46454
46455         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
46456         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
46457         script has SORT_BY_INIT_PRIORITY.
46458         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
46459         NO_CTORS_DTORS_SECTIONS is defined.
46460         * elf/soinit.c: Likewise.
46461         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
46462         NO_CTORS_DTORS_SECTIONS is defined.
46463         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
46464         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
46465         * sysdeps/sh/init-first.c: Likewise.
46466         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
46467
46468 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
46469
46470         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
46471         always use the slow path.
46472
46473 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
46474
46475         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
46476         similar rule which adds the sysdep directories to the header search in
46477         order to pick up the correct platform stackinfo.h.
46478         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
46479         perform test if it is, otherwise return successfully without testing.
46480         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
46481         DEFAULT_STACK_PERMS define in stackinfo.h.
46482         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
46483         defined in stackinfo.h.
46484         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
46485         DEFAULT_STACK_PERMS defined in stackinfo.h.
46486         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
46487         * sysdeps/ia64/stackinfo.h: Likewise.
46488         * sysdeps/s390/stackinfo.h: Likewise.
46489         * sysdeps/sh/stackinfo.h: Likewise.
46490         * sysdeps/sparc/stackinfo.h: Likewise.
46491         * sysdeps/x86_64/stackinfo.h: Likewise.
46492         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
46493         PF_X for powerpc64.  Retain PF_X for powerpc32.
46494
46495 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
46496
46497         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
46498         accurately.
46499         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
46500         GETDENTS_64BIT_ALIGNED.
46501
46502 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
46503
46504         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
46505
46506 2010-12-10  Andreas Schwab  <schwab@redhat.com>
46507
46508         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
46509         _GNU_SOURCE.
46510
46511         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
46512         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
46513         Remove __restrict.
46514         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
46515         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
46516
46517 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
46518
46519         [BZ #11655]
46520         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
46521         are initialized.
46522
46523 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
46524
46525         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
46526
46527 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
46528
46529         * po/it.po: Update from translation team.
46530
46531 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
46532
46533         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
46534         unused codes.
46535
46536 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
46537
46538         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
46539
46540 2010-11-24  Andreas Schwab  <schwab@redhat.com>
46541
46542         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
46543         specially.
46544         (gaih_getanswer_slice): Likewise.
46545
46546 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
46547
46548         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
46549
46550 2010-05-31  Petr Baudis  <pasky@suse.cz>
46551
46552         [BZ #11149]
46553         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
46554         silently even in the chroot mode.
46555
46556 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
46557
46558         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
46559         last patch a bit.  Pretty printing
46560
46561 2010-05-31  Petr Baudis <pasky@suse.cz>
46562
46563         [BZ #10085]
46564         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
46565         initialization of skip_initgroups_dyn.
46566
46567 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
46568
46569         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
46570         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
46571
46572 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
46573
46574         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
46575
46576 2010-11-11  Andreas Schwab  <schwab@redhat.com>
46577
46578         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
46579         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
46580         (tst-fnmatch-ENV): Set MALLOC_TRACE.
46581         ($(objpfx)tst-fnmatch-mem): New rule.
46582         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
46583         * posix/tst-fnmatch.c (main): Call mtrace.
46584
46585 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
46586
46587         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46588         Support Intel processor model 6 and model 0x2c.
46589
46590 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
46591
46592         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
46593           signed comparison.
46594
46595 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
46596
46597         [BZ #12205]
46598         * string/test-strncasecmp.c (check_result): New function.
46599         (do_one_test): Use it.
46600         (check1): New function.
46601         (test_main): Use it.
46602         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
46603         Support strcasecmp and strncasecmp.
46604
46605 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
46606
46607         [BZ #12194]
46608         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
46609         * sysdeps/x86_64/bits/byteswap.h: Likewise.
46610
46611 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
46612
46613         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
46614         IFUNC support.
46615         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46616         memset-x86-64.
46617         * sysdeps/x86_64/multiarch/bzero.S: New file.
46618         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
46619         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
46620         * sysdeps/x86_64/multiarch/memset.S: New file.
46621         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
46622         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46623         Set bit_Prefer_SSE_for_memop for Intel processors.
46624         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
46625         Define.
46626         (index_Prefer_SSE_for_memop): Define.
46627         (HAS_PREFER_SSE_FOR_MEMOP): Define.
46628
46629 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
46630
46631         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
46632         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
46633
46634 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
46635
46636         [BZ #12191]
46637         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46638         (__x86_64_raw_data_cache_size_half): Likewise.
46639         (__x86_64_raw_shared_cache_size): Likewise.
46640         (__x86_64_raw_shared_cache_size_half): Likewise.
46641
46642         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46643         (__x86_64_raw_data_cache_size_half): Likewise.
46644         (__x86_64_raw_shared_cache_size): Likewise.
46645         (__x86_64_raw_shared_cache_size_half): Likewise.
46646         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
46647         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
46648         and __x86_64_raw_shared_cache_size_half.  Round
46649         __x86_64_data_cache_size_half, __x86_64_data_cache_size
46650         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
46651         to multiple of 256 bytes.
46652
46653 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
46654
46655         [BZ #12167]
46656         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
46657         of inacessible symlinks.  Verify result of symlink before returning it.
46658         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
46659         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
46660
46661 2010-10-28  Erich Ritz  <erichritz@gmail.com>
46662
46663         * math/math.h (isinf): Fix typo in comment.
46664
46665 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
46666
46667         * po/da.po: Update from translation team.
46668
46669 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
46670
46671         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
46672         is added to the list.
46673
46674 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46675             Ulrich Drepper  <drepper@gmail.com>
46676
46677         * elf/dl-object.c (_dl_new_object): Don't append the new object to
46678         the global list here.  Move code to...
46679         (_dl_add_to_namespace_list): ...here.  New function.
46680         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
46681         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
46682         * elf/dl-load.c (lose): Don't remove the element from the list.
46683         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
46684         (_dl_map_object): Likewise.
46685
46686 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
46687
46688         [BZ #12159]
46689         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
46690         into all bytes of SSE register.
46691         Patch by Richard Li <richardpku@gmail.com>.
46692
46693 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
46694
46695         [BZ #12140]
46696         * malloc/malloc.c (_int_free): Fill correct number of bytes when
46697         perturbing.
46698
46699 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
46700
46701         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
46702         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
46703         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
46704         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
46705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
46706         submachine.
46707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
46708
46709 2010-10-22  Andreas Schwab  <schwab@redhat.com>
46710
46711         * include/dlfcn.h (__RTLD_SECURE): Define.
46712         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
46713         mode & __RTLD_SECURE instead.
46714         (open_path): Rename preloaded parameter to secure.
46715         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
46716         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
46717         * elf/dl-deps.c (openaux): Likewise.
46718         * elf/rtld.c (struct map_args): Remove is_preloaded.
46719         (map_doit): Don't use it.
46720         (dl_main): Likewise.
46721         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
46722         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
46723
46724 2010-09-09  Andreas Schwab  <schwab@redhat.com>
46725
46726         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
46727         (sysd-rules-targets): Remove duplicates.
46728         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
46729         rtld-%.$o dependency.
46730
46731 2010-10-18  Andreas Schwab  <schwab@redhat.com>
46732
46733         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
46734         _dl_map_object do it.
46735
46736 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
46737
46738         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
46739         fast fma builtins, define the macros in the C99 standard.
46740         (FP_FAST_FMAF): Likewise.
46741         (FP_FAST_FMAL): Likewise.
46742         * sysdeps/x86_64/bits/mathdef.h: Likewise.
46743
46744         * bits/mathdef.h: Update copyright year.
46745         * sysdeps/powerpc/bits/mathdef.h: Likewise.
46746
46747 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
46748
46749         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
46750         builtins, define the macros in the C99 standard.
46751         (FP_FAST_FMAF): Likewise.
46752         (FP_FAST_FMAL): Likewise.
46753         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
46754         multiply/add.
46755         (FP_FAST_FMAF): Likewise.
46756
46757 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
46758
46759         [BZ #3268]
46760         * math/libm-test.inc (fma_test): Some new testcases.
46761         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
46762         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
46763         y and infinite z.  Do multiplication by C already in long double.
46764         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
46765         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
46766         y and infinite z.  Do bitwise or of inexact bit into u.d.
46767         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
46768         * sysdeps/i386/fpu/s_fmaf.S: Removed.
46769         * sysdeps/i386/fpu/s_fma.S: Removed.
46770         * sysdeps/i386/fpu/s_fmal.S: Removed.
46771
46772 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
46773
46774         [BZ #3268]
46775         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
46776         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
46777         computation is not scheduled after fetestexcept.  Fix value
46778         of minimum denormal long double.
46779
46780 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
46781
46782         [BZ #3268]
46783         * math/libm-test.inc (fma_test): Add some more tests.
46784         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
46785         correctly.
46786
46787 2010-10-15  Andreas Schwab  <schwab@redhat.com>
46788
46789         * scripts/data/localplt-s390-linux-gnu.data: New file.
46790         * scripts/data/localplt-s390x-linux-gnu.data: New file.
46791
46792 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
46793
46794         [BZ #3268]
46795         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
46796         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
46797         instead of dbl-64.
46798         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
46799         inlines.
46800         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
46801         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
46802         if one of x and y is very large and the other is subnormal.
46803         * sysdeps/s390/fpu/s_fmaf.c: New file.
46804         * sysdeps/s390/fpu/s_fma.c: New file.
46805         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
46806         * sysdeps/powerpc/fpu/s_fma.S: New file.
46807         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
46808         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
46809         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
46810
46811 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
46812
46813         [BZ #3268]
46814         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
46815         fma tests.
46816         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
46817         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
46818         * sysdeps/i386/i686/multiarch/s_fma.c: Include
46819         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
46820         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
46821         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
46822         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
46823
46824 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
46825
46826         [BZ #12078]
46827         * posix/regcomp.c (parse_branch): One more memory leak plugged.
46828         * posix/bug-regex31.input: Add test case.
46829
46830 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46831
46832         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
46833         * posix/bug-regex31.input: New file.
46834
46835         [BZ #12078]
46836         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
46837         (parse_sub_exp): Fix last change, use postorder.
46838
46839         * posix/bug-regex31.c: New file.
46840         * posix/Makefile: Add rules to build and run bug-regex31.
46841
46842         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
46843
46844         [BZ #12078]
46845         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
46846
46847         [BZ #12108]
46848         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
46849         to have entries in sys_siglist.
46850
46851         [BZ #12093]
46852         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
46853         be NULL.
46854
46855 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
46856
46857         [BZ #3268]
46858         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
46859         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
46860         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
46861         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
46862         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
46863         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
46864         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
46865         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
46866         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
46867         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
46868         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
46869         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
46870         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
46871         * math/ftestexcept.c (fetestexcept): Likewise.
46872         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
46873         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
46874         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
46875         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
46876         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
46877         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
46878         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
46879
46880 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46881
46882         [BZ #12107]
46883         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
46884         newline.
46885
46886 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
46887
46888         * string/bug-strstr1.c: New file.
46889         * string/Makefile: Add rules to build and run bug-strstr1.
46890
46891 2010-10-05  Eric Blake  <eblake@redhat.com>
46892
46893         [BZ #12092]
46894         * string/str-two-way.h (two_way_long_needle): Always clear memory
46895         when skipping input due to the shift table.
46896
46897 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
46898
46899         [BZ #12005]
46900         * malloc/mcheck.c: Handle large requests.
46901
46902         [BZ #12077]
46903         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
46904         for strncmp and strncasecmp.
46905         * string/stratcliff.c: Add tests for strcmp and strncmp.
46906         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
46907
46908 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
46909
46910         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
46911         __set_fpscr.
46912
46913 2010-09-30  Andreas Jaeger  <aj@suse.de>
46914
46915         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
46916         (CGROUP_SUPER_MAGIC): Define.
46917         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46918         Handle btrfs and cgroup file systems.
46919         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
46920         Likewise.
46921
46922 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
46923
46924         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
46925         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
46926
46927 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46928
46929         [BZ #12067]
46930         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
46931         trying to locate the ELF header.
46932
46933 2010-09-27  Andreas Schwab  <schwab@redhat.com>
46934
46935         [BZ #11611]
46936         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
46937         Mask out sign-bit copies when constructing f_fsid.
46938
46939 2010-09-24  Petr Baudis <pasky@suse.cz>
46940
46941         * debug/stack_chk_fail_local.c: Add missing licence exception.
46942         * debug/warning-nop.c: Likewise.
46943
46944 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
46945
46946         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
46947         implementing getdents64 using getdents syscall, set d_type if
46948         __ASSUME_GETDENTS32_D_TYPE.
46949
46950 2010-09-16  Andreas Schwab  <schwab@redhat.com>
46951
46952         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
46953         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
46954
46955 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
46956
46957         [BZ #12037]
46958         * posix/unistd.h: Undo change of feature selection for ftruncate from
46959         2010-01-11.
46960
46961 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
46962
46963         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
46964         detection.
46965
46966 2010-09-20  Andreas Schwab  <schwab@redhat.com>
46967
46968         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
46969         fanotify_mark.
46970         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46971
46972 2010-09-14  Andreas Schwab  <schwab@redhat.com>
46973
46974         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
46975         variables after CHECK_SP call.
46976         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
46977
46978 2010-09-13  Andreas Schwab  <schwab@redhat.com>
46979             Ulrich Drepper  <drepper@redhat.com>
46980
46981         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
46982         re-relocationg ld.so.
46983         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
46984         _dl_init_paths call.
46985         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
46986         here anymore.
46987
46988 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
46989
46990         * resolv/res_init.c (__res_vinit): Count the default server we added.
46991
46992 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
46993             Ulrich Drepper  <drepper@redhat.com>
46994
46995         [BZ #11968]
46996         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
46997         (____longjmp_chk): Use %ebx for saving value across system call.
46998         Add unwind info.
46999
47000 2010-09-06  Andreas Schwab  <schwab@redhat.com>
47001
47002         * manual/Makefile: Don't mix pattern rules with normal rules.
47003
47004 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
47005
47006         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
47007         operation.
47008         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
47009         * libio/iofopncook.c (_IO_cookie_init): Likewise.
47010         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
47011         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
47012         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
47013         Likewise.
47014
47015 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
47016
47017         [BZ #11979]
47018         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
47019         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
47020
47021 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
47022
47023         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
47024         * sysdeps/x86_64/addmul_1.S: Likewise.
47025         * sysdeps/x86_64/lshift.S: Likewise.
47026         * sysdeps/x86_64/mul_1.S: Likewise.
47027         * sysdeps/x86_64/rshift.S: Likewise.
47028         * sysdeps/x86_64/sub_n.S: Likewise.
47029         * sysdeps/x86_64/submul_1.S: Likewise.
47030
47031 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47032
47033         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
47034         Define __sched_param instead of SCHED_* and sched_param when
47035         <bits/sched.h> is included with __need_schedparam defined.
47036         * bits/sched.h [__need_schedparam]
47037         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
47038         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
47039         (__defined_schedparam): Define to 1.
47040         (__sched_param): New structure, identical to sched_param.
47041         (__need_schedparam): Undefine.
47042
47043 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
47044
47045         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
47046         (epoll_create1): Declare.
47047
47048         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
47049
47050 2010-08-31  Andreas Schwab  <schwab@redhat.com>
47051
47052         [BZ #7066]
47053         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
47054         shifting retval into place.
47055
47056 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
47057
47058         * nis/rpcsvc/nis.h: Update copyright notice.
47059         * nis/rpcsvc/nis.x: Likewise.
47060         * nis/rpcsvc/nis_callback.h: Likewise.
47061         * nis/rpcsvc/nis_callback.x: Likewise.
47062         * nis/rpcsvc/nis_object.x: Likewise.
47063         * nis/rpcsvc/nis_tags.h: Likewise.
47064         * nis/rpcsvc/yp.h: Likewise.
47065         * nis/rpcsvc/yp.x: Likewise.
47066         * nis/rpcsvc/ypupd.h: Likewise.
47067         * nis/yp_xdr.c: Likewise.
47068         * nis/ypupdate_xdr.c: Likewise.
47069
47070         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
47071         mainly the body of pmap_getport.  Add parameters to specify timeouts.
47072         (pmap_getport): Use __libc_rpc_getport.
47073         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
47074         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
47075         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
47076
47077 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
47078
47079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
47080         fanotify_mark.
47081
47082 2010-08-27  Roland McGrath  <roland@redhat.com>
47083
47084         * sysdeps/i386/i686/multiarch/Makefile
47085         (CFLAGS-varshift.c): New variable.
47086
47087 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
47088
47089         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
47090         * sysdeps/i386/i686/multiarch/varshift.c: New file.
47091
47092         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
47093
47094         * sysdeps/x86_64/strlen.S: Minimal code improvement.
47095
47096 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
47097
47098         * sysdeps/x86_64/strlen.S: Unroll the loop.
47099         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47100         strlen-sse2 strlen-sse2-bsf.
47101         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
47102         __strlen_no_bsf if bit_Slow_BSF is set.
47103         (__strlen_sse42): Removed.
47104         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
47105         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
47106
47107 2010-08-25  Roland McGrath  <roland@redhat.com>
47108
47109         * sysdeps/x86_64/multiarch/varshift.S: File removed.
47110         * sysdeps/x86_64/multiarch/varshift.c: New file.
47111         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
47112         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
47113         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
47114         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
47115
47116 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
47117
47118         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
47119         strlen-sse2 strlen-sse2-bsf.
47120         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
47121         __strlen_sse2_bsf if bit_Slow_BSF is unset.
47122         (__strlen_sse2): Removed.
47123         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
47124         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
47125         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
47126         bit_Slow_BSF for Atom.
47127         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
47128         (index_Slow_BSF): Define.
47129         (HAS_SLOW_BSF): Define.
47130
47131 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
47132
47133         [BZ #10851]
47134         * resolv/res_init.c (__res_vinit): When no server address at all
47135         is given default to loopback.
47136
47137 2010-08-24  Roland McGrath  <roland@redhat.com>
47138
47139         * configure.in: Remove config-name.h generation.
47140         * configure: Regenerated.
47141         * config-name.in: File removed.
47142         * scripts/config-uname.sh: New file.
47143         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
47144         ($(objdir)config-name.h): New target.
47145
47146         * sunrpc/rpc_parse.h: Avoid nested comment.
47147
47148 2010-08-24  Richard Henderson  <rth@redhat.com>
47149             Ulrich Drepper  <drepper@redhat.com>
47150             H.J. Lu  <hongjiu.lu@intel.com>
47151
47152         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
47153         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
47154         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
47155         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
47156         _mm_alignr_epi8 with _mm_loadu_si128.
47157         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
47158         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
47159         (__m128i_shift_right): Removed.
47160         * sysdeps/i386/i686/multiarch/varshift.h: New file.
47161         * sysdeps/i386/i686/multiarch/varshift.S: New file.
47162         * sysdeps/x86_64/multiarch/varshift.h: New file.
47163         * sysdeps/x86_64/multiarch/varshift.S: New file.
47164
47165 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
47166
47167         * configure.in: Move assembler checks to before sysdep dir checking.
47168
47169 2010-08-20  Petr Baudis  <pasky@suse.cz>
47170
47171         * LICENSES: Sync the sunrpc license.
47172
47173 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
47174
47175         * sunrpc/auth_des.c: Update copyright notice once again.
47176         * sunrpc/auth_none.c: Likewise.
47177         * sunrpc/auth_unix.c: Likewise.
47178         * sunrpc/authdes_prot.c: Likewise.
47179         * sunrpc/authuxprot.c: Likewise.
47180         * sunrpc/bindrsvprt.c: Likewise.
47181         * sunrpc/clnt_gen.c: Likewise.
47182         * sunrpc/clnt_perr.c: Likewise.
47183         * sunrpc/clnt_raw.c: Likewise.
47184         * sunrpc/clnt_simp.c: Likewise.
47185         * sunrpc/clnt_tcp.c: Likewise.
47186         * sunrpc/clnt_udp.c: Likewise.
47187         * sunrpc/clnt_unix.c: Likewise.
47188         * sunrpc/des_crypt.c: Likewise.
47189         * sunrpc/des_soft.c: Likewise.
47190         * sunrpc/get_myaddr.c: Likewise.
47191         * sunrpc/getrpcport.c: Likewise.
47192         * sunrpc/key_call.c: Likewise.
47193         * sunrpc/key_prot.c: Likewise.
47194         * sunrpc/openchild.c: Likewise.
47195         * sunrpc/pm_getmaps.c: Likewise.
47196         * sunrpc/pm_getport.c: Likewise.
47197         * sunrpc/pmap_clnt.c: Likewise.
47198         * sunrpc/pmap_prot.c: Likewise.
47199         * sunrpc/pmap_prot2.c: Likewise.
47200         * sunrpc/pmap_rmt.c: Likewise.
47201         * sunrpc/rpc/auth.h: Likewise.
47202         * sunrpc/rpc/auth_unix.h: Likewise.
47203         * sunrpc/rpc/clnt.h: Likewise.
47204         * sunrpc/rpc/des_crypt.h: Likewise.
47205         * sunrpc/rpc/key_prot.h: Likewise.
47206         * sunrpc/rpc/netdb.h: Likewise.
47207         * sunrpc/rpc/pmap_clnt.h: Likewise.
47208         * sunrpc/rpc/pmap_prot.h: Likewise.
47209         * sunrpc/rpc/pmap_rmt.h: Likewise.
47210         * sunrpc/rpc/rpc.h: Likewise.
47211         * sunrpc/rpc/rpc_des.h: Likewise.
47212         * sunrpc/rpc/rpc_msg.h: Likewise.
47213         * sunrpc/rpc/svc.h: Likewise.
47214         * sunrpc/rpc/svc_auth.h: Likewise.
47215         * sunrpc/rpc/types.h: Likewise.
47216         * sunrpc/rpc/xdr.h: Likewise.
47217         * sunrpc/rpc_clntout.c: Likewise.
47218         * sunrpc/rpc_cmsg.c: Likewise.
47219         * sunrpc/rpc_common.c: Likewise.
47220         * sunrpc/rpc_cout.c: Likewise.
47221         * sunrpc/rpc_dtable.c: Likewise.
47222         * sunrpc/rpc_hout.c: Likewise.
47223         * sunrpc/rpc_main.c: Likewise.
47224         * sunrpc/rpc_parse.c: Likewise.
47225         * sunrpc/rpc_parse.h: Likewise.
47226         * sunrpc/rpc_prot.c: Likewise.
47227         * sunrpc/rpc_sample.c: Likewise.
47228         * sunrpc/rpc_scan.c: Likewise.
47229         * sunrpc/rpc_scan.h: Likewise.
47230         * sunrpc/rpc_svcout.c: Likewise.
47231         * sunrpc/rpc_tblout.c: Likewise.
47232         * sunrpc/rpc_util.c: Likewise.
47233         * sunrpc/rpc_util.h: Likewise.
47234         * sunrpc/rpcinfo.c: Likewise.
47235         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
47236         * sunrpc/rpcsvc/key_prot.x: Likewise.
47237         * sunrpc/rpcsvc/klm_prot.x: Likewise.
47238         * sunrpc/rpcsvc/mount.x: Likewise.
47239         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
47240         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
47241         * sunrpc/rpcsvc/rex.x: Likewise.
47242         * sunrpc/rpcsvc/rstat.x: Likewise.
47243         * sunrpc/rpcsvc/rusers.x: Likewise.
47244         * sunrpc/rpcsvc/sm_inter.x: Likewise.
47245         * sunrpc/rpcsvc/spray.x: Likewise.
47246         * sunrpc/rpcsvc/yppasswd.x: Likewise.
47247         * sunrpc/rtime.c: Likewise.
47248         * sunrpc/svc.c: Likewise.
47249         * sunrpc/svc_auth.c: Likewise.
47250         * sunrpc/svc_authux.c: Likewise.
47251         * sunrpc/svc_raw.c: Likewise.
47252         * sunrpc/svc_run.c: Likewise.
47253         * sunrpc/svc_simple.c: Likewise.
47254         * sunrpc/svc_tcp.c: Likewise.
47255         * sunrpc/svc_udp.c: Likewise.
47256         * sunrpc/svc_unix.c: Likewise.
47257         * sunrpc/svcauth_des.c: Likewise.
47258         * sunrpc/xcrypt.c: Likewise.
47259         * sunrpc/xdr.c: Likewise.
47260         * sunrpc/xdr_array.c: Likewise.
47261         * sunrpc/xdr_float.c: Likewise.
47262         * sunrpc/xdr_mem.c: Likewise.
47263         * sunrpc/xdr_rec.c: Likewise.
47264         * sunrpc/xdr_ref.c: Likewise.
47265         * sunrpc/xdr_sizeof.c: Likewise.
47266         * sunrpc/xdr_stdio.c: Likewise.
47267
47268         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
47269         handling.
47270
47271 2010-08-19  Andreas Schwab  <schwab@redhat.com>
47272
47273         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
47274
47275 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
47276
47277         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
47278         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
47279         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
47280         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
47281         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
47282         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
47283         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
47284         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
47285         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
47286         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
47287         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
47288         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
47289         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
47290         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
47291
47292 2010-07-26  Anton Blanchard  <anton@samba.org>
47293
47294         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
47295         * malloc/arena.c (heap_trim): Likewise.
47296
47297 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
47298
47299         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
47300         here.  Not...
47301         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
47302         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
47303
47304 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
47305
47306         * sysdeps/i386/elf/Makefile: New file.
47307
47308 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
47309
47310         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
47311         from fanotify_init.
47312         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
47313         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
47314
47315 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
47316
47317         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
47318         of strncasecmp_l.
47319         * sysdeps/multiarch/strcmp.S: Likewise.
47320
47321 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
47322
47323         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
47324         strncase_l-nonascii.
47325         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
47326         Add strncase_l-ssse3.
47327         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
47328         * sysdeps/x86_64/strcmp.S: Likewise.
47329         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
47330         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
47331         * sysdeps/x86_64/strncase.S: New file.
47332         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
47333         * sysdeps/x86_64/strncase_l.S: New file.
47334         * string/Makefile (strop-tests): Add strncasecmp.
47335         * string/test-strncasecmp.c: New file.
47336
47337         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
47338         warning.
47339
47340         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
47341         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
47342
47343 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
47344
47345         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
47346
47347 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
47348
47349         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
47350         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
47351         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
47352
47353 2010-05-01  Alan Modra  <amodra@gmail.com>
47354
47355         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
47356         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
47357         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
47358         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
47359         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
47360         tidying.  Don't tail-call __sigjmp_save for static lib.
47361         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
47362         save location.
47363         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
47364         (CALL_MCOUNT): Add eh info, and nop after bl.
47365         (TAIL_CALL_SYSCALL_ERROR): New macro.
47366         (PSEUDO_RET): Use it.
47367         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
47368         Correct save location of integer regs and cr.
47369         (_dl_profile_resolve): Correct cr save location.  Delete nops
47370         after bl when SHARED.  Reduce cfi size a little by better
47371         placement of cfi directives.
47372         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
47373         make a stack frame.  Instead use parm save area as a temp.
47374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
47375         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
47376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
47377         Don't make a stack frame for parent, use parm save area.
47378         Increase child stack frame to 112 bytes.  Don't save unused reg,
47379         and adjust reg usage.  Set up cfi on error recovery and
47380         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
47381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47382         (__makecontext): Add dummy nop after jump to exit.
47383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
47384         Use correct parm save area and cr save, reduce stack frame.
47385         Correct cfi for possible PSEUDO_RET frame setup.
47386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
47387         Branch to local label emitted by PSEUDO_RET rather than
47388         __syscall_error.
47389
47390 2010-08-12  Andreas Schwab  <schwab@redhat.com>
47391
47392         [BZ #11904]
47393         * locale/programs/locale.c (print_assignment): New function.
47394         (show_locale_vars): Use it.
47395
47396 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
47397
47398         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
47399         field.
47400         (struct statfs64): Likewise.
47401         (_STATFS_F_FLAGS): Define.
47402         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
47403         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
47404         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
47405         (ST_VALID): Define locally.
47406         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
47407         __statvfs_getflags, use the provided value.
47408         * sysdeps/unix/sysv/linux/kernel-features.h: Define
47409         __ASSUME_STATFS_F_FLAGS.
47410
47411         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
47412
47413         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
47414         Add sys/fanotify.h.
47415         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
47416         fanotify_mask for GLIBC_2.13.
47417         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
47418         fanotify_init and fanotify_mark.
47419         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
47420         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
47421
47422         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
47423         Add prlimit.
47424         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
47425         prlimit64 for GLIBC_2.13.
47426         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
47427         prlimit64.
47428         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
47429         syscall.
47430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
47431         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
47432         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
47433         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
47434         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
47435         add prlimit alias.
47436         * sysdeps/unix/sysv/linux/prlimit.c: New file.
47437
47438         [BZ #11903]
47439         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
47440         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
47441
47442         * nss/Makefile: Add rules to build and run tst-nss-test1.
47443         * shlib-versions: Add entry for libnss_test1.
47444         * nss/nss_test1.c: New file.
47445         * nss/tst-nss-test1.c: New file.
47446
47447         * nss/nsswitch.c (__nss_database_custom): Define new variable.
47448         (__nss_configure_lookup): Set appropriate entry in
47449         __nss_configure_lookup to true.
47450         * nss/nsswitch.h: Define enum with indeces of databases in
47451         databases and __nss_database_custom arrays.  Declare
47452         __nss_database_custom.
47453         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
47454         to avoid using nscd when custom rules are installed.
47455         * nss/getXXbyYY_r.c: Likewise.
47456         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
47457
47458         * nss/nss_files/files-parse.c: Whitespace fixes.
47459
47460 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
47461
47462         [BZ #11883]
47463         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
47464         * posix/fnmatch_loop.c: Likewise.
47465
47466 2010-07-17  Andi Kleen  <ak@linux.intel.com>
47467
47468         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
47469         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
47470         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
47471         * Versions.def [GLIBC_2.13]: Add.
47472
47473 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
47474
47475         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
47476         Also fail if tpwd after pwuid call is NULL.
47477
47478 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47479
47480         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
47481         when converting to ms.
47482
47483 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47484
47485         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
47486         EOPNOTSUPP errors with ENOTTY.
47487         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
47488         EOPNOTSUPP errors with ENOTTY.
47489
47490 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
47491
47492         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
47493         Add strcasecmp_l-ssse3.
47494         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
47495         strcasecmp.
47496         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
47497         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
47498         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
47499
47500 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
47501
47502         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
47503
47504         * string/Makefile (strop-tests): Add strcasecmp.
47505         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
47506         strcasecmp_l-nonascii.
47507         (gen-as-const-headers): Add locale-defines.sym.
47508         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
47509         * sysdeps/x86_64/strcasecmp.S: New file.
47510         * sysdeps/x86_64/strcasecmp_l.S: New file.
47511         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
47512         * sysdeps/x86_64/locale-defines.sym: New file.
47513         * string/test-strcasecmp.c: New file.
47514
47515         * string/test-strcasestr.c: Test both ends of the range of characters.
47516         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
47517
47518 2010-07-29  Roland McGrath  <roland@redhat.com>
47519
47520         [BZ #11856]
47521         * manual/locale.texi (Yes-or-No Questions): Fix example code.
47522
47523 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
47524
47525         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
47526         for ld.so.
47527
47528 2010-07-27  Andreas Schwab  <schwab@redhat.com>
47529
47530         * manual/memory.texi (Malloc Tunable Parameters): Document
47531         M_PERTURB.
47532
47533 2010-07-26  Roland McGrath  <roland@redhat.com>
47534
47535         [BZ #11840]
47536         * configure.in (-fgnu89-inline check): Set and substitute
47537         gnu89_inline, not libc_cv_gnu89_inline.
47538         * configure: Regenerated.
47539         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
47540
47541 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
47542
47543         * string/test-strnlen.c: New file.
47544         * string/Makefile (strop-tests): Add strnlen.
47545         * string/tester.c (test_strnlen): Add a few more test cases.
47546         * string/tst-strlen.c: Better error reporting.
47547
47548         * sysdeps/x86_64/strnlen.S: New file.
47549
47550 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
47551
47552         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
47553         lower-latency instructions.
47554
47555 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
47556
47557         * string/test-strcasestr.c: New file.
47558         * string/test-strstr.c: New file.
47559         * string/Makefile (strop-tests): Add strstr and strcasestr.
47560         * string/str-two-way.h: Don't undefine MAX.
47561         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
47562
47563 2010-07-21  Andreas Schwab  <schwab@redhat.com>
47564
47565         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
47566         strcasestr-nonascii.
47567         (CFLAGS-strcasestr-nonascii.c): Define.
47568         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
47569         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
47570         Remove unused attribute.
47571
47572 2010-07-20  Roland McGrath  <roland@redhat.com>
47573
47574         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
47575         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
47576         ld.so.cache was broken.  With it, there is no way to disable dsocaps
47577         like LD_HWCAP_MASK can disable hwcaps.
47578
47579 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47580
47581         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
47582
47583 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
47584
47585         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
47586         call in strcasestr.
47587         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
47588         __strcasestr_sse42_nonascii.
47589         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
47590         strcasestr-nonascii.c.
47591         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
47592
47593 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
47594
47595         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
47596         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
47597         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
47598         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
47599
47600 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
47601
47602         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
47603         fcntl.
47604
47605 2010-07-06  Andreas Schwab  <schwab@redhat.com>
47606
47607         [BZ #11577]
47608         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
47609         dl_signal_cerror.
47610
47611 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
47612
47613         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
47614         _PC_PIPE_BUF using F_GETPIPE_SZ.
47615
47616 2010-07-05  Roland McGrath  <roland@redhat.com>
47617
47618         * manual/arith.texi (Rounding Functions): Fix rint description
47619         implicit in round description.
47620
47621 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
47622
47623         * elf/Makefile: Fix linking for a few tests to make recent linker
47624         happy.
47625
47626 2010-06-30  Andreas Schwab  <schwab@redhat.com>
47627
47628         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
47629         $(common-objpfx)libc_nonshared.a.
47630
47631 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
47632
47633         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
47634         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
47635         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47636         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47637         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
47638         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
47639         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47640         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
47642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
47643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
47644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
47646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
47648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
47649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
47650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
47651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
47653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
47655         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
47656         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
47657         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
47658         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
47659         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
47660         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
47661         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
47662         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
47663         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
47664         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
47665         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
47666         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
47667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
47668         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
47669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
47670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
47671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
47672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
47673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
47674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
47675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
47676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
47677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
47678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
47679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
47680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
47681
47682 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
47683
47684         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
47685         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
47686         * string/memmove.c (memmove): Renamed to ...
47687         (MEMMOVE): ...this.  Default to memmove.
47688         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
47689         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
47690         (END_CHK): Define.
47691         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47692         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
47693         mempcpy-ssse3-back memmove-ssse3-back.
47694         * sysdeps/x86_64/multiarch/bcopy.S: New file .
47695         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
47696         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
47697         * sysdeps/x86_64/multiarch/memcpy.S: New file.
47698         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
47699         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
47700         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
47701         * sysdeps/x86_64/multiarch/memmove.c: New file.
47702         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
47703         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
47704         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
47705         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
47706         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
47707         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
47708         Define.
47709         (index_Fast_Copy_Backward): Define.
47710         (HAS_ARCH_FEATURE): Define.
47711         (HAS_FAST_REP_STRING): Define.
47712         (HAS_FAST_COPY_BACKWARD): Define.
47713
47714 2010-06-21  Andreas Schwab  <schwab@redhat.com>
47715
47716         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
47717         Restore proper fallback handling.
47718
47719 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
47720
47721         [BZ #11701]
47722         * posix/group_member.c (__group_member): Correct checking loop.
47723
47724         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
47725         OOM in getpwuid_r correctly.  Return error number when the caller
47726         should return, otherwise -1.
47727         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
47728         call returning > 0 value.
47729         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
47730
47731 2010-06-07  Andreas Schwab  <schwab@redhat.com>
47732
47733         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
47734         libc_nonshared.a from targets in modules-names.
47735
47736 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
47737
47738         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
47739         requires it.
47740
47741 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
47742
47743         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
47744         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
47745         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
47746         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
47747
47748 2010-06-02  Andreas Schwab  <schwab@redhat.com>
47749
47750         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
47751
47752 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
47753
47754         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
47755         and F_GETPIPE_SZ.
47756         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
47757         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
47758         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
47759         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
47760         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
47761         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
47762
47763 2010-06-14  Roland McGrath  <roland@redhat.com>
47764
47765         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
47766
47767 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
47768
47769         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
47770         __REDIRECT followed by __THROW.
47771         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
47772         * posix/getopt.h (getopt): Likewise.
47773
47774 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47775
47776         * hurd/lookup-at.c (__file_name_lookup_at): Accept
47777         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
47778         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
47779         in AT_FLAGS.
47780         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
47781         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
47782
47783 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
47784
47785         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
47786
47787 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
47788
47789         [BZ #11640]
47790         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47791         Properly check family and model.
47792
47793 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
47794
47795         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
47796
47797 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
47798
47799         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
47800
47801 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
47802
47803         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
47804         symbol reference.
47805
47806 2010-05-19  Andreas Schwab  <schwab@redhat.com>
47807
47808         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
47809         symbol reference.
47810
47811 2010-05-21  Andreas Schwab  <schwab@redhat.com>
47812
47813         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
47814         and internal_recvmmsg.
47815         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
47816         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
47817         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
47818         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
47819
47820         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
47821         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
47822         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
47823
47824 2010-05-20  Andreas Schwab  <schwab@redhat.com>
47825
47826         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
47827
47828 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
47829
47830         POWER7 optimizations.
47831         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
47832         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
47833
47834 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
47835
47836         * version.h: Update for 2.13 development version.
47837
47838 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
47839
47840         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
47841         exceptions.  Return 0.
47842
47843 2010-05-07  Roland McGrath  <roland@redhat.com>
47844
47845         * elf/ldconfig.c (main): Add a const.
47846
47847 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
47848
47849         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
47850         (args_options): Add no-idn option.
47851         (ahosts_keys_int): Add idn_flags to ai_flags.
47852         (parse_option): Handle 'i' option to clear idn_flags.
47853
47854         * malloc/malloc.c (_int_free): Possible race in the most recently
47855         added check.  Only act on the data if no current modification
47856         happened.
47857
47858 See ChangeLog.17 for earlier changes.