[BZ #157] Remove include/stub-tag.h for good.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2
3         [BZ #157]
4
5         * include/stub-tag.h: Remove file.
6         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
7         '#include' of it.
8         * manual/maint.texi (Porting): Don't reference it.
9         * Makerules ($(objpfx)stubs): Likewise.
10         * dirent/closedir.c: Don't include <stub-tag.h>.
11         * dirent/dirfd.c: Likewise.
12         * dirent/fdopendir.c: Likewise.
13         * dirent/getdents.c: Likewise.
14         * dirent/getdents64.c: Likewise.
15         * dirent/opendir.c: Likewise.
16         * dirent/readdir.c: Likewise.
17         * dirent/readdir64.c: Likewise.
18         * dirent/readdir64_r.c: Likewise.
19         * dirent/readdir_r.c: Likewise.
20         * dirent/rewinddir.c: Likewise.
21         * dirent/seekdir.c: Likewise.
22         * dirent/telldir.c: Likewise.
23         * gmon/profil.c: Likewise.
24         * grp/setgroups.c: Likewise.
25         * inet/if_index.c: Likewise.
26         * io/access.c: Likewise.
27         * io/chdir.c: Likewise.
28         * io/chmod.c: Likewise.
29         * io/chown.c: Likewise.
30         * io/close.c: Likewise.
31         * io/dup.c: Likewise.
32         * io/dup2.c: Likewise.
33         * io/dup3.c: Likewise.
34         * io/euidaccess.c: Likewise.
35         * io/faccessat.c: Likewise.
36         * io/fchdir.c: Likewise.
37         * io/fchmod.c: Likewise.
38         * io/fchmodat.c: Likewise.
39         * io/fchown.c: Likewise.
40         * io/fchownat.c: Likewise.
41         * io/fcntl.c: Likewise.
42         * io/flock.c: Likewise.
43         * io/fstatfs.c: Likewise.
44         * io/fstatfs64.c: Likewise.
45         * io/fstatvfs.c: Likewise.
46         * io/fstatvfs64.c: Likewise.
47         * io/futimens.c: Likewise.
48         * io/fxstat.c: Likewise.
49         * io/fxstat64.c: Likewise.
50         * io/fxstatat.c: Likewise.
51         * io/fxstatat64.c: Likewise.
52         * io/getcwd.c: Likewise.
53         * io/isatty.c: Likewise.
54         * io/lchmod.c: Likewise.
55         * io/lchown.c: Likewise.
56         * io/link.c: Likewise.
57         * io/linkat.c: Likewise.
58         * io/lseek.c: Likewise.
59         * io/lseek64.c: Likewise.
60         * io/lxstat64.c: Likewise.
61         * io/mkdir.c: Likewise.
62         * io/mkdirat.c: Likewise.
63         * io/mkfifo.c: Likewise.
64         * io/mkfifoat.c: Likewise.
65         * io/open.c: Likewise.
66         * io/open64.c: Likewise.
67         * io/openat.c: Likewise.
68         * io/openat64.c: Likewise.
69         * io/pipe.c: Likewise.
70         * io/pipe2.c: Likewise.
71         * io/poll.c: Likewise.
72         * io/posix_fadvise.c: Likewise.
73         * io/posix_fadvise64.c: Likewise.
74         * io/posix_fallocate.c: Likewise.
75         * io/posix_fallocate64.c: Likewise.
76         * io/read.c: Likewise.
77         * io/readlink.c: Likewise.
78         * io/readlinkat.c: Likewise.
79         * io/rmdir.c: Likewise.
80         * io/sendfile.c: Likewise.
81         * io/sendfile64.c: Likewise.
82         * io/statfs.c: Likewise.
83         * io/statfs64.c: Likewise.
84         * io/statvfs.c: Likewise.
85         * io/statvfs64.c: Likewise.
86         * io/symlink.c: Likewise.
87         * io/symlinkat.c: Likewise.
88         * io/ttyname.c: Likewise.
89         * io/ttyname_r.c: Likewise.
90         * io/umask.c: Likewise.
91         * io/unlink.c: Likewise.
92         * io/unlinkat.c: Likewise.
93         * io/utime.c: Likewise.
94         * io/utimensat.c: Likewise.
95         * io/write.c: Likewise.
96         * io/xmknod.c: Likewise.
97         * io/xmknodat.c: Likewise.
98         * io/xstat.c: Likewise.
99         * io/xstat64.c: Likewise.
100         * login/getpt.c: Likewise.
101         * login/grantpt.c: Likewise.
102         * login/unlockpt.c: Likewise.
103         * math/e_acoshl.c: Likewise.
104         * math/e_acosl.c: Likewise.
105         * math/e_asinl.c: Likewise.
106         * math/e_atan2l.c: Likewise.
107         * math/e_atanhl.c: Likewise.
108         * math/e_coshl.c: Likewise.
109         * math/e_expl.c: Likewise.
110         * math/e_fmodl.c: Likewise.
111         * math/e_gammal_r.c: Likewise.
112         * math/e_hypotl.c: Likewise.
113         * math/e_j0l.c: Likewise.
114         * math/e_j1l.c: Likewise.
115         * math/e_jnl.c: Likewise.
116         * math/e_lgammal_r.c: Likewise.
117         * math/e_log10l.c: Likewise.
118         * math/e_log2l.c: Likewise.
119         * math/e_logl.c: Likewise.
120         * math/e_powl.c: Likewise.
121         * math/e_rem_pio2l.c: Likewise.
122         * math/e_sinhl.c: Likewise.
123         * math/e_sqrtl.c: Likewise.
124         * math/fclrexcpt.c: Likewise.
125         * math/fedisblxcpt.c: Likewise.
126         * math/feenablxcpt.c: Likewise.
127         * math/fegetenv.c: Likewise.
128         * math/fegetexcept.c: Likewise.
129         * math/fegetround.c: Likewise.
130         * math/feholdexcpt.c: Likewise.
131         * math/fesetenv.c: Likewise.
132         * math/fesetround.c: Likewise.
133         * math/feupdateenv.c: Likewise.
134         * math/fgetexcptflg.c: Likewise.
135         * math/fraiseexcpt.c: Likewise.
136         * math/fsetexcptflg.c: Likewise.
137         * math/ftestexcept.c: Likewise.
138         * math/k_cosl.c: Likewise.
139         * math/k_rem_pio2l.c: Likewise.
140         * math/k_sinl.c: Likewise.
141         * math/k_tanl.c: Likewise.
142         * math/s_asinhl.c: Likewise.
143         * math/s_atanl.c: Likewise.
144         * math/s_cbrtl.c: Likewise.
145         * math/s_erfl.c: Likewise.
146         * math/s_expm1l.c: Likewise.
147         * math/s_log1pl.c: Likewise.
148         * math/s_tanhl.c: Likewise.
149         * misc/acct.c: Likewise.
150         * misc/brk.c: Likewise.
151         * misc/chflags.c: Likewise.
152         * misc/chroot.c: Likewise.
153         * misc/fchflags.c: Likewise.
154         * misc/fgetxattr.c: Likewise.
155         * misc/flistxattr.c: Likewise.
156         * misc/fremovexattr.c: Likewise.
157         * misc/fsetxattr.c: Likewise.
158         * misc/fsync.c: Likewise.
159         * misc/ftruncate.c: Likewise.
160         * misc/futimes.c: Likewise.
161         * misc/futimesat.c: Likewise.
162         * misc/getdomain.c: Likewise.
163         * misc/getdtsz.c: Likewise.
164         * misc/gethostid.c: Likewise.
165         * misc/gethostname.c: Likewise.
166         * misc/getloadavg.c: Likewise.
167         * misc/getpagesize.c: Likewise.
168         * misc/getsysstats.c: Likewise.
169         * misc/getxattr.c: Likewise.
170         * misc/gtty.c: Likewise.
171         * misc/ioctl.c: Likewise.
172         * misc/lgetxattr.c: Likewise.
173         * misc/listxattr.c: Likewise.
174         * misc/llistxattr.c: Likewise.
175         * misc/lremovexattr.c: Likewise.
176         * misc/lsetxattr.c: Likewise.
177         * misc/lutimes.c: Likewise.
178         * misc/madvise.c: Likewise.
179         * misc/mincore.c: Likewise.
180         * misc/mlock.c: Likewise.
181         * misc/mlockall.c: Likewise.
182         * misc/mmap.c: Likewise.
183         * misc/mprotect.c: Likewise.
184         * misc/msync.c: Likewise.
185         * misc/munlock.c: Likewise.
186         * misc/munlockall.c: Likewise.
187         * misc/munmap.c: Likewise.
188         * misc/preadv.c: Likewise.
189         * misc/preadv64.c: Likewise.
190         * misc/ptrace.c: Likewise.
191         * misc/pwritev.c: Likewise.
192         * misc/pwritev64.c: Likewise.
193         * misc/readv.c: Likewise.
194         * misc/reboot.c: Likewise.
195         * misc/remap_file_pages.c: Likewise.
196         * misc/removexattr.c: Likewise.
197         * misc/revoke.c: Likewise.
198         * misc/select.c: Likewise.
199         * misc/setdomain.c: Likewise.
200         * misc/setegid.c: Likewise.
201         * misc/seteuid.c: Likewise.
202         * misc/sethostid.c: Likewise.
203         * misc/sethostname.c: Likewise.
204         * misc/setregid.c: Likewise.
205         * misc/setreuid.c: Likewise.
206         * misc/setxattr.c: Likewise.
207         * misc/sstk.c: Likewise.
208         * misc/stty.c: Likewise.
209         * misc/swapoff.c: Likewise.
210         * misc/swapon.c: Likewise.
211         * misc/sync.c: Likewise.
212         * misc/syncfs.c: Likewise.
213         * misc/syscall.c: Likewise.
214         * misc/truncate.c: Likewise.
215         * misc/ualarm.c: Likewise.
216         * misc/usleep.c: Likewise.
217         * misc/ustat.c: Likewise.
218         * misc/utimes.c: Likewise.
219         * misc/vhangup.c: Likewise.
220         * misc/writev.c: Likewise.
221         * posix/_exit.c: Likewise.
222         * posix/alarm.c: Likewise.
223         * posix/execve.c: Likewise.
224         * posix/fexecve.c: Likewise.
225         * posix/fork.c: Likewise.
226         * posix/fpathconf.c: Likewise.
227         * posix/getaddrinfo.c: Likewise.
228         * posix/getegid.c: Likewise.
229         * posix/geteuid.c: Likewise.
230         * posix/getgid.c: Likewise.
231         * posix/getgroups.c: Likewise.
232         * posix/getlogin.c: Likewise.
233         * posix/getlogin_r.c: Likewise.
234         * posix/getpgid.c: Likewise.
235         * posix/getpid.c: Likewise.
236         * posix/getppid.c: Likewise.
237         * posix/getresgid.c: Likewise.
238         * posix/getresuid.c: Likewise.
239         * posix/getsid.c: Likewise.
240         * posix/getuid.c: Likewise.
241         * posix/glob64.c: Likewise.
242         * posix/nanosleep.c: Likewise.
243         * posix/pathconf.c: Likewise.
244         * posix/pause.c: Likewise.
245         * posix/posix_madvise.c: Likewise.
246         * posix/pread.c: Likewise.
247         * posix/pread64.c: Likewise.
248         * posix/pwrite.c: Likewise.
249         * posix/pwrite64.c: Likewise.
250         * posix/sched_getaffinity.c: Likewise.
251         * posix/sched_getp.c: Likewise.
252         * posix/sched_gets.c: Likewise.
253         * posix/sched_primax.c: Likewise.
254         * posix/sched_primin.c: Likewise.
255         * posix/sched_rr_gi.c: Likewise.
256         * posix/sched_setaffinity.c: Likewise.
257         * posix/sched_setp.c: Likewise.
258         * posix/sched_sets.c: Likewise.
259         * posix/sched_yield.c: Likewise.
260         * posix/setgid.c: Likewise.
261         * posix/setlogin.c: Likewise.
262         * posix/setpgid.c: Likewise.
263         * posix/setresgid.c: Likewise.
264         * posix/setresuid.c: Likewise.
265         * posix/setsid.c: Likewise.
266         * posix/setuid.c: Likewise.
267         * posix/sleep.c: Likewise.
268         * posix/spawni.c: Likewise.
269         * posix/sysconf.c: Likewise.
270         * posix/times.c: Likewise.
271         * posix/wait.c: Likewise.
272         * posix/wait3.c: Likewise.
273         * posix/wait4.c: Likewise.
274         * posix/waitpid.c: Likewise.
275         * resolv/gai_sigqueue.c: Likewise.
276         * resource/getpriority.c: Likewise.
277         * resource/getrlimit.c: Likewise.
278         * resource/getrusage.c: Likewise.
279         * resource/nice.c: Likewise.
280         * resource/setpriority.c: Likewise.
281         * resource/setrlimit.c: Likewise.
282         * resource/ulimit.c: Likewise.
283         * rt/aio_cancel.c: Likewise.
284         * rt/aio_fsync.c: Likewise.
285         * rt/aio_read.c: Likewise.
286         * rt/aio_sigqueue.c: Likewise.
287         * rt/aio_suspend.c: Likewise.
288         * rt/aio_write.c: Likewise.
289         * rt/clock_getres.c: Likewise.
290         * rt/clock_gettime.c: Likewise.
291         * rt/clock_nanosleep.c: Likewise.
292         * rt/clock_settime.c: Likewise.
293         * rt/lio_listio.c: Likewise.
294         * rt/mq_close.c: Likewise.
295         * rt/mq_getattr.c: Likewise.
296         * rt/mq_notify.c: Likewise.
297         * rt/mq_open.c: Likewise.
298         * rt/mq_receive.c: Likewise.
299         * rt/mq_send.c: Likewise.
300         * rt/mq_setattr.c: Likewise.
301         * rt/mq_timedreceive.c: Likewise.
302         * rt/mq_timedsend.c: Likewise.
303         * rt/mq_unlink.c: Likewise.
304         * rt/shm_open.c: Likewise.
305         * rt/shm_unlink.c: Likewise.
306         * rt/timer_create.c: Likewise.
307         * rt/timer_delete.c: Likewise.
308         * rt/timer_getoverr.c: Likewise.
309         * rt/timer_gettime.c: Likewise.
310         * rt/timer_settime.c: Likewise.
311         * setjmp/__longjmp.c: Likewise.
312         * setjmp/setjmp.c: Likewise.
313         * signal/kill.c: Likewise.
314         * signal/killpg.c: Likewise.
315         * signal/raise.c: Likewise.
316         * signal/sigaction.c: Likewise.
317         * signal/sigaltstack.c: Likewise.
318         * signal/sigblock.c: Likewise.
319         * signal/sigignore.c: Likewise.
320         * signal/sigintr.c: Likewise.
321         * signal/signal.c: Likewise.
322         * signal/sigpause.c: Likewise.
323         * signal/sigpending.c: Likewise.
324         * signal/sigqueue.c: Likewise.
325         * signal/sigreturn.c: Likewise.
326         * signal/sigset.c: Likewise.
327         * signal/sigsetmask.c: Likewise.
328         * signal/sigstack.c: Likewise.
329         * signal/sigsuspend.c: Likewise.
330         * signal/sigtimedwait.c: Likewise.
331         * signal/sigvec.c: Likewise.
332         * signal/sigwait.c: Likewise.
333         * signal/sigwaitinfo.c: Likewise.
334         * signal/sysv_signal.c: Likewise.
335         * socket/accept.c: Likewise.
336         * socket/accept4.c: Likewise.
337         * socket/bind.c: Likewise.
338         * socket/connect.c: Likewise.
339         * socket/getpeername.c: Likewise.
340         * socket/getsockname.c: Likewise.
341         * socket/getsockopt.c: Likewise.
342         * socket/isfdtype.c: Likewise.
343         * socket/listen.c: Likewise.
344         * socket/recv.c: Likewise.
345         * socket/recvfrom.c: Likewise.
346         * socket/recvmsg.c: Likewise.
347         * socket/send.c: Likewise.
348         * socket/sendmsg.c: Likewise.
349         * socket/sendto.c: Likewise.
350         * socket/setsockopt.c: Likewise.
351         * socket/shutdown.c: Likewise.
352         * socket/sockatmark.c: Likewise.
353         * socket/socket.c: Likewise.
354         * socket/socketpair.c: Likewise.
355         * stdio-common/ctermid.c: Likewise.
356         * stdio-common/cuserid.c: Likewise.
357         * stdio-common/remove.c: Likewise.
358         * stdio-common/rename.c: Likewise.
359         * stdio-common/renameat.c: Likewise.
360         * stdio-common/tempname.c: Likewise.
361         * stdlib/getcontext.c: Likewise.
362         * stdlib/makecontext.c: Likewise.
363         * stdlib/setcontext.c: Likewise.
364         * stdlib/swapcontext.c: Likewise.
365         * stdlib/system.c: Likewise.
366         * streams/fattach.c: Likewise.
367         * streams/fdetach.c: Likewise.
368         * streams/getmsg.c: Likewise.
369         * streams/getpmsg.c: Likewise.
370         * streams/putmsg.c: Likewise.
371         * streams/putpmsg.c: Likewise.
372         * sysdeps/unix/bsd/getpt.c: Likewise.
373         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
374         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
375         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
377         Likewise.
378         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
379         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
380         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
381         * sysvipc/msgctl.c: Likewise.
382         * sysvipc/msgget.c: Likewise.
383         * sysvipc/msgrcv.c: Likewise.
384         * sysvipc/msgsnd.c: Likewise.
385         * sysvipc/semctl.c: Likewise.
386         * sysvipc/semget.c: Likewise.
387         * sysvipc/semop.c: Likewise.
388         * sysvipc/semtimedop.c: Likewise.
389         * sysvipc/shmat.c: Likewise.
390         * sysvipc/shmctl.c: Likewise.
391         * sysvipc/shmdt.c: Likewise.
392         * sysvipc/shmget.c: Likewise.
393         * termios/tcdrain.c: Likewise.
394         * termios/tcflow.c: Likewise.
395         * termios/tcflush.c: Likewise.
396         * termios/tcgetattr.c: Likewise.
397         * termios/tcgetpgrp.c: Likewise.
398         * termios/tcsendbrk.c: Likewise.
399         * termios/tcsetattr.c: Likewise.
400         * termios/tcsetpgrp.c: Likewise.
401         * time/adjtime.c: Likewise.
402         * time/clock.c: Likewise.
403         * time/getitimer.c: Likewise.
404         * time/gettimeofday.c: Likewise.
405         * time/setitimer.c: Likewise.
406         * time/settimeofday.c: Likewise.
407         * time/stime.c: Likewise.
408         * time/time.c: Likewise.
409
410 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
411
412         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
413         /usr/old/bin.
414
415         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
416         instead of spaces.
417         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
418
419 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
420
421         [BZ #14796]
422         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
423         FE_TONEAREST before applying Dekker multiplication and Knuth
424         addition.  Clear inexact exceptions and check for exact zero
425         results afterwards.
426         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
427         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
428         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
429         * math/libm-test.inc (fma_test): Add more tests.
430         (fma_test_towardzero): Likewise.
431         (fma_test_downward): Likewise.
432         (fma_test_upward): Likewise.
433         * sysdeps/generic/math_private.h (default_libc_fesetround): New
434         function.
435         (libc_fesetround): New macro.
436         (libc_fesetroundf): Likewise.
437         (libc_fesetroundl): Likewise.
438         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
439         function.
440         (libc_fesetround_387): Likewise.
441         (libc_fesetroundf): New macro.
442         (libc_fesetround): Likewise.
443         (libc_fesetroundl): Likewise.
444         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
445         function.
446         (libc_fesetroundf): New macro.
447         (libc_fesetround): Likewise.
448         (libc_fesetroundl): Likewise.
449         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
450         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
451         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
452         libm_hidden_ver.
453         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
454         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
455         libm_hidden_def.
456         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
457         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
458         libm_hidden_ver.
459         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
460         libm_hidden_def.
461
462         [BZ #3439]
463         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
464         integer constant usable in #if and use that to give value to enum
465         constant.
466         (FE_DIVBYZERO): Likewise.
467         (FE_UNDERFLOW): Likewise.
468         (FE_OVERFLOW): Likewise.
469         (FE_INVALID): Likewise.
470         (FE_INVALID_SNAN): Likewise.
471         (FE_INVALID_ISI): Likewise.
472         (FE_INVALID_IDI): Likewise.
473         (FE_INVALID_ZDZ): Likewise.
474         (FE_INVALID_IMZ): Likewise.
475         (FE_INVALID_COMPARE): Likewise.
476         (FE_INVALID_SOFTWARE): Likewise.
477         (FE_INVALID_SQRT): Likewise.
478         (FE_INVALID_INTEGER_CONVERSION): Likewise.
479         (FE_TONEAREST): Likewise.
480         (FE_TOWARDZERO): Likewise.
481         (FE_UPWARD): Likewise.
482         (FE_DOWNWARD): Likewise.
483         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
484         (FE_DIVBYZERO): Likewise.
485         (FE_OVERFLOW): Likewise.
486         (FE_UNDERFLOW): Likewise.
487         (FE_INEXACT): Likewise.
488         (FE_TONEAREST): Likewise.
489         (FE_DOWNWARD): Likewise.
490         (FE_UPWARD): Likewise.
491         (FE_TOWARDZERO): Likewise.
492         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
493         (FE_UNDERFLOW): Likewise.
494         (FE_OVERFLOW): Likewise.
495         (FE_DIVBYZERO): Likewise.
496         (FE_INVALID): Likewise.
497         (FE_TONEAREST): Likewise.
498         (FE_TOWARDZERO): Likewise.
499         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
500         (FE_OVERFLOW): Likewise.
501         (FE_UNDERFLOW): Likewise.
502         (FE_DIVBYZERO): Likewise.
503         (FE_INEXACT): Likewise.
504         (FE_TONEAREST): Likewise.
505         (FE_TOWARDZERO): Likewise.
506         (FE_UPWARD): Likewise.
507         (FE_DOWNWARD): Likewise.
508         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
509         (FE_DIVBYZERO): Likewise.
510         (FE_OVERFLOW): Likewise.
511         (FE_UNDERFLOW): Likewise.
512         (FE_INEXACT): Likewise.
513         (FE_TONEAREST): Likewise.
514         (FE_DOWNWARD): Likewise.
515         (FE_UPWARD): Likewise.
516         (FE_TOWARDZERO): Likewise.
517
518 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
519
520         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
521
522 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
523
524         * scripts/cross-test-ssh.sh (command): Use newlines to separate
525         commands.  Quote $PWD.
526         (blacklist_exports): Don't use remove_newlines.  Replace "declare
527         -x" by "export".
528         (remove_newlines): Remove.
529
530 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
531
532         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
533         * stdlib/stdlib.h (atof): Moved to ...
534         * include/bits/stdlib-float.h: Here.  New file.
535         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
536         * stdlib/bits/stdlib-float.h: New file.
537         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
538         -mno-sse -mno-mmx.
539         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
540         <xmmintrin.h>.
541
542 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
543
544         * conform/conformtest.pl (@headers): Add fenv.h.
545         * conform/data/fenv.h-data: New file.
546         * include/fenv.h [_ISOMAC]: Disable all contents of file except
547         include of <math/fenv.h>.
548
549         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
550         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
551         && !UNIX98].  Enables tests for XOPEN2K8.
552         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
553         POSIX2008]: Likewise.
554
555         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
556         (struct rusage): Do not expect type or its members.
557
558         [BZ #3439]
559         * math/math.h (FP_NAN): Define macro to integer constant usable in
560         #if and use that to give value to enum constant.
561         (FP_INFINITE): Likewise.
562         (FP_ZERO): Likewise.
563         (FP_SUBNORMAL): Likewise.
564         (FP_NORMAL): Likewise.
565
566 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
567
568         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
569         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
570         arguments.
571
572 2012-11-02  Roland McGrath  <roland@hack.frob.com>
573
574         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
575         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
576         autoconf-time if not.
577         * configure.in: Remove AC_PREREQ.
578
579 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
580
581         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
582         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
583         of the internal implementation.
584
585 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
586
587         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
588         except include of <misc/sys/syslog.h>.
589
590 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
591
592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
593         function returns with a NULL context exit with zero.
594
595 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
596
597         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
598
599 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
600
601         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
602         (run_program_cmd): This.
603         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
604         (tst_langinfo): New variable.  Use it.
605
606 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
607
608         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
609         floating point opcodes.
610
611 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
612
613         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
614         variable.
615
616         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
617
618         * sysdeps/mach/hurd/powerpc: Remove directory.
619         * sysdeps/mach/powerpc: Likewise.
620
621 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
622
623         * scripts/check-local-headers.sh: Ignore c++ headers.
624
625 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
626
627         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
628         __libc_cleanup_region_start argument.
629
630 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
631
632         [BZ #14784]
633         [BZ #14785]
634         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
635         x * y using scaling, not as x * y + z.
636         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
637         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
638         * math/libm-test.inc (fma_test): Add more tests.
639         (fma_test_towardzero): Likewise.
640         (fma_test_downward): Likewise.
641         (fma_test_upward): Likewise.
642
643 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
644
645         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
646
647 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
648
649         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
650         New variable.
651
652 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
653
654         * rt/tst-shm.c (worker): Correct checking for mmap failure.
655
656 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
657
658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
659         Fix sort order.
660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
661         Likewise.
662
663 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
664
665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
666         Fix the order of the list for glibc 2.17.
667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
668         Likewise.
669
670 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
671
672         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
673
674 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
675
676         [BZ #14610]
677         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
678         for low part of x being zero before using __atanl (y).
679         * math/libm-test.inc (atan2_test): Add another test.
680
681         * manual/install.texi (Configuring and compiling): Document
682         general use of test-wrapper and test-wrapper-env.
683         * INSTALL: Regenerated.
684
685         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
686         (__fma): Do not extract and scale down low bits on after-rounding
687         systems when result rounded to normal precision would have normal
688         exponent.
689         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
690         (__fmal): Do not extract and scale down low bits on after-rounding
691         systems when result rounded to normal precision would have normal
692         exponent.
693         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
694         (__fmal): Do not extract and scale down low bits on after-rounding
695         systems when result rounded to normal precision would have normal
696         exponent.
697         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
698         macro.
699         (fma_test): Add more tests.
700         (fma_test_towardzero): Likewise.
701         (fma_test_downward): Likewise.
702         (fma_test_upward): Likewise.
703
704 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
705
706         * sysdeps/i386/tininess.h: Renamed to ...
707         * sysdeps/x86/tininess.h: This.
708         * sysdeps/x86_64/tininess.h: Removed.
709
710 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
711
712         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
713         input.  Use $(build-program-cmd).
714         ($(objpfx)tst-array1-static.out): Likewise.
715         ($(objpfx)tst-array2.out): Likewise.
716         ($(objpfx)tst-array3.out): Likewise.
717         ($(objpfx)tst-array4.out): Likewise.
718         ($(objpfx)tst-array5.out): Likewise.
719         ($(objpfx)tst-array5-static.out): Likewise.
720
721 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
722
723         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
724         if defined.
725
726         * nss/nsswitch.h (nss_interface_function): Provide new
727         macro for use with NSS functions.
728         * grp/initgroups.c: Use new macro.
729         * nss/getXXbyYY.c: Likewise.
730         * nss/getXXbyYY_r.c: Likewise.
731         * nss/getXXent.c: Likewise.
732         * nss/getXXent_r.c: Likewise.
733         * sysdeps/posix/getaddrinfo.c: Likewise.
734
735 2012-10-30  Andreas Jaeger  <aj@suse.de>
736
737         * po/ru.po: Update Russion translation from translation project.
738
739 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
740
741         [BZ #14152]
742         [BZ #14783]
743         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
744         result and shift together with sticky bit instead of replicating
745         round-to-nearest rounding.
746         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
747         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
748         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
749         missing underflow exceptions.
750         (fma_test_towardzero): Add more tests.
751         (fma_test_downward): Likewise.
752         (fma_test_upward): Likewise.
753
754         [BZ #14047]
755         * sysdeps/generic/tininess.h: New file.
756         * sysdeps/i386/tininess.h: Likewise.
757         * sysdeps/sh/tininess.h: Likewise.
758         * sysdeps/x86_64/tininess.h: Likewise.
759         * stdlib/tst-strtod-underflow.c: Likewise.
760         * stdlib/tst-tininess.c: Likewise.
761         * stdlib/strtod_l.c: Include <tininess.h>.
762         (round_and_return): Do not set errno for exact underflow cases.
763         Force an underflow exception when setting errno for underflow.
764         Determine underflow based on rounding to normal precision if
765         TININESS_AFTER_ROUNDING.
766         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
767         ERANGE for exact underflow cases.
768         * stdlib/Makefile (tests): Add tst-tininess and
769         tst-strtod-underflow.
770         ($(objpfx)tst-tininess): Use $(link-libm).
771         ($(objpfx)tst-strtod-underflow): Likewise.
772
773 2012-10-30  Andreas Jaeger  <aj@suse.de>
774
775         [BZ#14767]
776         * elf/Makefile (tests): Remove conditional for have-initfini-array
777         since this is now always required and the variable does not exist
778         anymore.
779         (tests-static): Likewise.
780         (modules-names): Likewise.
781
782         * po/eo.po: Add Esperanto translation from translation project.
783
784         * elf/tst-array1.c (fini_array): Make writeable so that it can be
785         merged with constructor/destructor.
786         (init_array): Likewise.
787         * elf/tst-array2dep.c (fini_array): Likewise.
788         (init_array): Likewise.
789
790 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
791
792         * manual/message.texi: Delete @cartouche tags.
793
794 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
795
796         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
797         EOPNOTSUPP.
798         * sysdeps/mach/hurd/fsync.c: Likewise.
799
800         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
801         [_POSIX_REALTIME_SIGNALS]: Change condition to
802         [_POSIX_REALTIME_SIGNALS > 0].
803
804 2012-10-27  Andreas Jaeger  <aj@suse.de>
805
806         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
807         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
808         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
809         [__WORDSIZE != 64]: Likewise.
810
811 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
812
813         *  iconvdata/tst-table.sh: Remove ${SHELL}.
814         *  iconvdata/tst-tables.sh: Likewise.
815
816 2012-10-25  David S. Miller  <davem@davemloft.net>
817
818         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
819         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
820         of strtoull.
821
822         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
823         ifunc-impl-list.c
824         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
825         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
826         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
827         file.
828
829 2012-10-25  Roland McGrath  <roland@hack.frob.com>
830
831         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
832         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
833         __getdirentries.
834
835 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
836             Jim Blandy  <jimb@codesourcery.com>
837
838         * scripts/cross-test-ssh.sh: New file.
839         * manual/install.texi (Configuring and compiling): Document use of
840         cross-test-ssh.sh.
841         * INSTALL: Regenerated.
842
843 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
844
845         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
846         EOPNOTSUPP.
847
848 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
849
850         * Makeconfig (run-program-prefix): Fix comment.
851
852 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
853             Jim Blandy  <jimb@codesourcery.com>
854
855         * Makeconfig (test-wrapper): New variable,
856         (test-wrapper-env): Likewise.
857         [$(cross-compiling) = yes && $(test-wrapper) != ""]
858         (run-built-tests): Define to yes.
859         (run-program-prefix): Use $(test-wrapper).
860         (built-program-cmd): Likewise.
861         * Rules (make-test-out): Use $(test-wrapper-env) and
862         $(host-built-program-cmd).
863         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
864         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
865         tst-pathopt.sh.
866         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
867         $(test-wrapper-env) to tst-rtld-load-self.sh.
868         ($(objpfx)order2.out): Use $(test-wrapper).
869         ($(objpfx)tst-initorder.out): Likewise.
870         ($(objpfx)tst-initorder2.out): Likewise.
871         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
872         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
873         (test_wrapper_env): New variable.  Use it to run ld.so.
874         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
875         Use it to run ld.so.
876         (test_wrapper_env): Likewise.
877         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
878         $(test-wrapper) to run-iconv-test.sh.
879         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
880         (ICONV): Use $test_wrapper.
881         * posix/Makefile ($(objpfx)globtest.out): Pass
882         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
883         globtest.sh, not $(run-program-prefix).
884         * posix/globtest.sh (run_via_rtld_prefix): New variable.
885         (test_wrapper): Likewise.
886         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
887         set together with run_via_rtld_prefix.
888         (run_program_prefix): Define in terms of test_wrapper and
889         run_via_rtld_prefix.
890
891 2012-10-24  Roland McGrath  <roland@hack.frob.com>
892
893         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
894         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
895         Targets removed.
896
897         [BZ #14743]
898         * include/time.h: Remove librt_hidden_proto (clock_gettime).
899         Declare __clock_getres, __clock_gettime, __clock_settime,
900         __clock_nanosleep, and __clock_getcpuclockid.
901         * rt/clock_gettime.c: Define __clock_gettime as an alias.
902         Remove librt_hidden_def (clock_gettime).
903         * sysdeps/unix/clock_gettime.c: Likewise.
904         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
905         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
906         * rt/clock_getres.c: Define __clock_getres as an alias.
907         * sysdeps/posix/clock_getres.c: Likewise.
908         * rt/clock_settime.c: Define __clock_settime as an alias.
909         * sysdeps/unix/clock_settime.c: Likewise.
910         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
911         * sysdeps/unix/clock_nanosleep.c: Likewise.
912         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
913         * rt/clock-compat.c: New file.
914         * rt/Makefile (librt-routines): Add clock-compat and move
915         $(clock-routines) to ...
916         (routines): ... here, new variable.
917         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
918         Don't add get_clockfreq here.
919         * rt/Versions (libc: GLIBC_2.17): New version set.
920         Add clock_* symbols here.
921         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
922         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
923         (GLIBC_2.17): Add clock_* symbols.
924         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
925         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
926         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
928         Likewise.
929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
930         Likewise.
931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
932         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
933         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
934         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
935         * NEWS: Mention the move.
936
937         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
938         Use __open, __read, __close rather than their public counterparts.
939         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
940         (__get_clockfreq_via_cpuinfo): Likewise.
941         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
942         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
943
944         * config.h.in (HAVE_IFUNC): New #undef.
945         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
946         was successful.
947         * configure: Regenerated.
948
949 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
950
951         * configure.in: Move READELF check to start of file.
952         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
953         libc_cv_asm_gnu_indirect_function in the process.
954         * configure: Regenerated.
955
956 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
957
958         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
959         send the output to /dev/null.
960         (libc_cv_cc_with_libunwind): Likewise.
961         (libc_cv_as_noexecstack): Likewise.
962         * configure: Regenerate.
963
964 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
965
966         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
967
968         * posix/globtest.sh (TMPDIR): Do not set.
969         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
970         (testout): Likewise.
971
972 2012-10-24  Andreas Jaeger  <aj@suse.de>
973
974         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
975         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
976         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
977         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
978         posix_fadvise64, posix_fallocate64.
979
980         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
981         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
982         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
983         Likewise.
984         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
985         Likewise.
986         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
987
988         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
989         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
990         <bits/fcntl-linux.h>.
991         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
992
993         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
994         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
995         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
996         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
997         [__WORDSIZE != 64]: Likewise.
998
999 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1000
1001         * Makeconfig (run-built-tests): New variable.
1002         * Rules [$(cross-compiling) = yes]: Change condition to
1003         [$(run-built-tests) = no].
1004         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1005         to [$(run-built-tests) = yes].
1006         * elf/Makefile [$(cross-compiling) = no]: Likewise
1007         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1008         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1009         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1010         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1011         * io/Makefile [$(cross-compiling) = no]: Likewise.
1012         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1013         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1014         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1015         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1016         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1017         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1018         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1019         * string/Makefile [$(cross-compiling) = no]: Likewise.
1020
1021         * posix/Makefile ($(objpfx)globtest.out): Pass
1022         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1023         $(rtld-installed-name).
1024         * posix/globtest.sh (elf_objpfx): Remove variable.
1025         (rtld_installed_name): Likewise.
1026         (library_path): Likewise.
1027         (run_program_prefix): New variable.  Use for running globtest
1028         binary.
1029
1030 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1031             Joseph Myers  <joseph@codesourcery.com>
1032
1033         * Makeconfig (host-built-program-cmd): New variable.
1034         * elf/Makefile (tst-stackguard1-ARGS): Use
1035         $(host-built-program-cmd).
1036         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1037         (tst-spawn-ARGS): Likewise.
1038         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1039
1040 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1041             Jim Blandy  <jimb@codesourcery.com>
1042
1043         * Makeconfig (run-via-rtld-prefix): New variable.
1044         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1045         (built-program-cmd): Likewise.
1046
1047 2012-10-22  Andreas Jaeger  <aj@suse.de>
1048
1049         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1050         __O_RSYNC if it exists, otherwise to O_SYNC.
1051
1052 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1053             Joseph Myers  <joseph@codesourcery.com>
1054
1055         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1056         /dev/null.
1057         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1058         from /dev/null
1059         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1060         /dev/null.
1061
1062 2012-10-22  Andreas Jaeger  <aj@suse.de>
1063
1064         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1065         Define always.
1066         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1067
1068         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1069         bits/fcntl-linux.h.
1070
1071         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1072         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1073
1074         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1075         to __O_LARGEFILE.
1076         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1077         to __O_LARGEFILE.
1078
1079 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1080             Joseph Myers  <joseph@codesourcery.com>
1081
1082         * config.make.in (NM): New variable.
1083
1084 2012-10-21  Andreas Jaeger  <aj@suse.de>
1085
1086         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1087         definitions and declarations that are provided by
1088         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1089
1090 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1091
1092         [BZ #14683]
1093         * elf/Makefile (tests-static): Add tst-leaks1-static.
1094         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1095         ($(objpfx)tst-leaks1-static): New rule.
1096         ($(objpfx)tst-leaks1-static-mem): Likewise.
1097         (tst-leaks1-static-ENV): New macro.
1098         * elf/dl-open.c (dl_open_worker): Check the main application
1099         only if SHARED is defined.
1100         * elf/tst-leaks1-static.c: New file.
1101
1102 2012-10-20  Andreas Jaeger  <aj@suse.de>
1103
1104         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1105         generic values for Linux.
1106         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1107         and declarations that are provided by <bits/fcntl-linux.h> and
1108         include <bits/fcntl-linux.h>.
1109         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1110         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1111
1112 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1113
1114         * io/fcntl.h: Move include of <bits/types.h> to the top and
1115         include it unconditionally.
1116
1117 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1118
1119         * wcsmbs/Makefile (tests-ifunc): New variable.
1120         (tests): Add $(tests-ifunc).
1121         * wcsmbs/test-wcschr-ifunc.c: New file.
1122         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1123         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1124         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1125         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1126         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1127
1128         * string/Makefile (tests-ifunc): New variable.
1129         (tests): Add $(tests-ifunc).
1130         * string/test-memccpy.c (TEST_NAME): New macro.
1131         * string/test-memchr.c (TEST_NAME): Likewise.
1132         * string/test-memcmp.c (TEST_NAME): Likewise.
1133         * string/test-memcpy.c (TEST_NAME): Likewise.
1134         * string/test-memmem.c (TEST_NAME): Likewise.
1135         * string/test-memmove.c (TEST_NAME): Likewise.
1136         * string/test-memset.c (TEST_NAME): Likewise.
1137         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1138         * string/test-stpcpy.c (TEST_NAME): Likewise.
1139         * string/test-stpncpy.c (TEST_NAME): Likewise.
1140         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1141         * string/test-strcasestr.c (TEST_NAME): Likewise.
1142         * string/test-strcat.c (TEST_NAME): Likewise.
1143         * string/test-strchr.c (TEST_NAME): Likewise.
1144         * string/test-strcmp.c(TEST_NAME): Likewise.
1145         * string/test-strcpy.c (TEST_NAME): Likewise.
1146         * string/test-strcspn.c (TEST_NAME): Likewise.
1147         * string/test-strlen.c (TEST_NAME): Likewise.
1148         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1149         * string/test-strncmp.c (TEST_NAME): Likewise.
1150         * string/test-strncpy.c (TEST_NAME): Likewise.
1151         * string/test-strnlen.c (TEST_NAME): Likewise.
1152         * string/test-strpbrk.c (TEST_NAME): Likewise.
1153         * string/test-strrchr.c (TEST_NAME): Likewise.
1154         * string/test-strspn.c (TEST_NAME): Likewise.
1155         * string/test-strstr.c (TEST_NAME): Likewise.
1156         * string/test-bcopy-ifunc.c: New file.
1157         * string/test-bzero-ifunc.c: Likewise.
1158         * string/test-memccpy-ifunc.c: Likewise.
1159         * string/test-memchr-ifunc.c: Likewise.
1160         * string/test-memcmp-ifunc.c: Likewise.
1161         * string/test-memcpy-ifunc.c: Likewise.
1162         * string/test-memmem-ifunc.c: Likewise.
1163         * string/test-memmove-ifunc.c: Likewise.
1164         * string/test-mempcpy-ifunc.c: Likewise.
1165         * string/test-memset-ifunc.c: Likewise.
1166         * string/test-rawmemchr-ifunc.c: Likewise.
1167         * string/test-stpcpy-ifunc.c: Likewise.
1168         * string/test-stpncpy-ifunc.c: Likewise.
1169         * string/test-strcasecmp-ifunc.c: Likewise.
1170         * string/test-strcasestr-ifunc.c: Likewise.
1171         * string/test-strcat-ifunc.c: Likewise.
1172         * string/test-strchr-ifunc.c: Likewise.
1173         * string/test-strchrnul-ifunc.c: Likewise.
1174         * string/test-strcmp-ifunc.c: Likewise.
1175         * string/test-strcpy-ifunc.c: Likewise.
1176         * string/test-strcspn-ifunc.c: Likewise.
1177         * string/test-strlen-ifunc.c: Likewise.
1178         * string/test-strncasecmp-ifunc.c: Likewise.
1179         * string/test-strncat-ifunc.c: Likewise.
1180         * string/test-strncmp-ifunc.c: Likewise.
1181         * string/test-strncpy-ifunc.c: Likewise.
1182         * string/test-strnlen-ifunc.c: Likewise.
1183         * string/test-strpbrk-ifunc.c: Likewise.
1184         * string/test-strrchr-ifunc.c: Likewise.
1185         * string/test-strspn-ifunc.c: Likewise.
1186         * string/test-strstr-ifunc.c: Likewise.
1187
1188         * debug/Makefile (tests-ifunc): New variable.
1189         (tests): Add $(tests-ifunc).
1190         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1191         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1192         * debug/test-stpcpy_chk-ifunc.c: New file.
1193         * debug/test-strcpy_chk-ifunc.c: Likewise.
1194
1195 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1196
1197         [BZ #13601]
1198         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1199         header is not read in.
1200
1201 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1202
1203         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1204         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1205         directly.  Pass built executable to script as
1206         $(built-program-cmd).
1207         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1208         $testprogram without using LD_LIBRARY_PATH and $ldso.
1209
1210         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1211         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1212         $(rtld-installed-name).
1213         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1214         (rtld_installed_name): Likewise.
1215         (library_path): Likewise.
1216         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1217         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1218         $(run-program-prefix) to tst-tables.sh.
1219         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1220         it to run tst-table-from and tst-table-to.
1221         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1222         Pass it to tst-table.sh.
1223         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1224         $(run-program-prefix) to tst-gettext.sh.
1225         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1226         tst-translit.sh.
1227         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1228         tst-gettext2.sh.
1229         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1230         to run tst-gettext.
1231         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1232         to run tst-gettext2.
1233         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1234         to run tst-translit.
1235         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1236         $(run-program-prefix) to tst-mtrace.sh.
1237         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1238         to run tst-mtrace.
1239         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1240         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1241         $(rtld-installed-name).
1242         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1243         (rtld_installed_name): Likewise.
1244         (run_program_prefix): New variable.  Use it to run wordexp-test.
1245
1246         * Makeconfig (ARCH): Remove all definitions.
1247         (machine): Likewise.
1248         [ARCH]: Remove conditional code.
1249         [!objdir]: Give error.
1250         [!objdir] (objpfx): Remove.
1251         [!objdir] (common-objpfx): Likewise.
1252         [!objdir] (common-objdir): Likewise.
1253         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1254         AC_CONFIG_FILES call.
1255         * configure: Regenerated.
1256
1257         [BZ #13888]
1258         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1259         or TMPDIR.
1260         (testout): Likewise.
1261
1262         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1263         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1264         $(rtld-installed-name).
1265         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1266         (rtld_installed_name): Likwise.
1267         (runit): Remove function.
1268         (run_getconf): New variable,  Use it for running getconf binary.
1269
1270 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1271
1272         [BZ #14716]
1273         * string/test-memmem.c (check_result): New function.
1274         (do_one_test): Use it.
1275         (check1): New function.
1276         (test_main): Use it.
1277
1278 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1279
1280         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1281
1282 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1283
1284         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1285         (_G_LSEEK64): Likewise.
1286         (_G_MMAP64): Likewise.
1287         (_G_FSTAT64): Likewise.
1288         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1289         (_G_LSEEK64): Likewise.
1290         (_G_MMAP64): Likewise.
1291         (_G_FSTAT64): Likewise.
1292         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1293         unconditional.  Call __mmap64 directly.
1294         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1295         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1296         __lseek64 directly.
1297         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1298         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1299         __mmap64 directly.
1300         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1301         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1302         __lseek64 directly.
1303         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1304         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1305         __lseek64 directly.
1306         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1307         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1308         __lseek64 directly.
1309         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1310         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1311         __fxstat64 directly.
1312         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1313         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1314         unconditional.
1315         (freopen64) [!_G_OPEN64]: Remove conditional code.
1316         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1317         unconditional.
1318         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1319         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1320         unconditional.
1321         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1322         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1323         unconditional.
1324         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1325         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1326         unconditional.
1327         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1328         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1329         unconditional.
1330         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1331         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1332         unconditional.
1333         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1334         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1335         unconditional.
1336         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1337
1338 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1339
1340         [BZ #12140]
1341         * manual/memory.texi (Malloc Tunable Parameters): Add note
1342         about free list pointers overwriting some perturb bytes.
1343         Wording suggested by Roland McGrath.
1344
1345 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1346
1347         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1348         (lgamma_test): Likewise.
1349         (tgamma_test): Likewise.
1350
1351 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1352
1353         [BZ #14700]
1354         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1355         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1356
1357 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1358
1359         * NEWS: Mention BZ #14716.
1360         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1361         when removing AVAILABLE1_USES_J macro.
1362
1363 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1364
1365         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1366         (__bswap_64): __uint64_t for unsigned 64-bit int.
1367
1368 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1369
1370         * include/string.h (memmem): Declare libc hidden alias.
1371         * string/memmem.c (memmem): Define libc hidden alias.
1372         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1373         __read, __close instead of open, read, close.
1374
1375 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1376
1377         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1378         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1379         global and hidden.
1380         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1381         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1382         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1383         Likewise.
1384         (__rawmemchr_sse2): Likewise.
1385         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1386         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1387         (__strchr_sse2): Likewise.
1388         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1389         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1390         (__strcasecmp_sse2): Likewise.
1391         (__strncasecmp_sse2): Likewise.
1392         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1393         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1394         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1395         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1396         (__strrchr_sse2): Likewise.
1397         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1398         ifunc-impl-list.c.
1399         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1400         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1401         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1402         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1403         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1404         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1405         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1406         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1407         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1408         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1409         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1410         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1411         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1412         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1413         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1414         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1415         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1416         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1417         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1418         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1419         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1420         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1421         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1422         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1423         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1424         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1425         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1426         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1427         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1428         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1429
1430         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1431         global and hidden.
1432         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1433         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1434         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1435         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1436         Likewise.
1437         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1438         Likewise.
1439         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1440         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1441         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1442         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1443         ifunc-impl-list.c.
1444         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1445         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1446         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1447         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1448         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1449         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1450         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1451         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1452         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1453         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1454         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1455         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1456         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1457         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1458         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1459         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1460         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1461         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1462         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1463         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1464         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1465         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1466         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1467         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1468         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1469         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1470         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1471         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1472         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1473         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1474         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1475         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1476         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1477         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1478         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1479         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1480         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1481         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1482         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1483         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1484         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1485
1486         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1487         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1488         * include/ifunc-impl-list.h: New file.
1489         * misc/ifunc-impl-list.c: Likewise.
1490         * misc/Makefile (routines): Add ifunc-impl-list.
1491         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1492         * string/test-string.h: Include <ifunc-impl-list.h>.
1493         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1494         impl_array): New variables.
1495         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1496         are defined.
1497         (test_init): Call __libc_ifunc_impl_list to initialize
1498         func_list if TEST_IFUNC and TEST_NAME are defined.
1499
1500         * string/Makefile (strop-tests): Add bcopy and bzero.
1501         * string/test-bcopy.c: New file.
1502         * string/test-bzero.c: Likewise.
1503         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1504         defined.
1505         * string/test-memset.c: Support bzero test if TEST_BZERO is
1506         defined.
1507         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1508         __libc_memmove.
1509         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1510         __libc_memset.
1511         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1512         of memset.
1513
1514 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1515
1516         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1517         * configure: Regenerated.
1518
1519         * Makeconfig (+link-static-before-libc): Don't include
1520         $(link-static-libc).
1521
1522         * libio/libio.h (_IO_pos_t): Remove.
1523
1524 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1525
1526         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1527         McGrath.
1528
1529 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1530
1531         * crypt/crypt-entry.c: Include fips-private.h.
1532         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1533         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1534         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1535         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1536
1537 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1538
1539         * crypt/crypt-private.h: Include stdbool.h.
1540         (_ufc_setup_salt_r): Return bool.
1541         * crypt/crypt-entry.c: Include errno.h.
1542         (__crypt_r): Return NULL with EINVAL for bad salt.
1543         * crypt/crypt_util.c (bad_for_salt): New.
1544         (_ufc_setup_salt_r): Check that salt is long enough and within
1545         the specified alphabet.
1546         * crypt/badsalttest.c: New file.
1547         * crypt/Makefile (tests): Add it.
1548         ($(objpfx)badsalttest): New.
1549
1550 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1551
1552         * NEWS: Add entry for BZ #14602.
1553
1554 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1555
1556         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1557         type-generic.
1558         * math/libm-test.inc: Update comment listing what functions and
1559         macros are tested.
1560         (isgreater_test): New function.
1561         (isgreaterequal_test): Likewise.
1562         (isless_test): Likewise.
1563         (islessequal_test): Likewise.
1564         (islessgreater_test): Likewise.
1565         (isunordered_test): Likewise.
1566         (main): Call the new functions.
1567
1568 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1569
1570         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1571         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1572         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1573         * sysdeps/i386/configure: Regenerated.
1574         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1575         * sysdeps/mach/configure: Regenerated.
1576         * sysdeps/mach/hurd/configure: Regenerated.
1577         * sysdeps/powerpc/configure: Regenerated.
1578         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1579         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1580         * sysdeps/s390/s390-32/configure: Regenerated.
1581         * sysdeps/s390/s390-64/configure: Regenerated.
1582         * sysdeps/sh/configure: Regenerated.
1583         * sysdeps/sparc/configure: Regenerated.
1584         * sysdeps/unix/sysv/linux/configure: Regenerated.
1585         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1586         * sysdeps/x86_64/configure: Regenerated.
1587
1588         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1589         defined.  Don't check if MAP is NULL.
1590
1591 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1592
1593         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1594         (_G_stat64): Likewise.
1595         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1596         (_G_stat64): Likewise.
1597         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1598         instead of struct _G_stat64.
1599         * libio/fileops.c (mmap_remap_check): Likewise.
1600         (decide_maybe_mmap): Likewise.
1601         (_IO_new_file_seekoff): Likewise.
1602         (_IO_file_stat): Likewise.
1603         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1604         _G_off64_t.
1605         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1606         instead of struct _G_stat64.
1607         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1608
1609 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1610
1611         [BZ #14602]
1612         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1613         Replace with ...
1614         (CHECK_EOL): New macro.
1615         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1616         CHECK_EOL.
1617         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1618         Replace with CHECK_EOL.
1619         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1620         Replace with CHECK_EOL.
1621
1622 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1623
1624         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1625         type-generic.
1626         * math/libm-test.inc: Update comment listing what functions and
1627         macros are tested.
1628         (finite_test): New function.
1629         (isinf_test): Likewise.
1630         (isnan_test): Likewise.
1631         (fpclassify_test): Test subnormal input.
1632         (isfinite_test): Likewise.
1633         (isnormal_test): Likewise.
1634         (main): Call the new functions.
1635
1636 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1637
1638         [BZ #14660]
1639         * Makerules (%.dynsym): Force C locale when running
1640         $(OBJDUMP) --dynamic-syms.
1641
1642 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1643
1644         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1645         <stdint.h>.
1646
1647 2012-10-06  David S. Miller  <davem@davemloft.net>
1648
1649         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1650         upper 32-bits of the length value in %o2 since we use branch-on-register
1651         tests which consider the entire 64-bit register.
1652
1653 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1654
1655         * string/test-strstr.c (check2): Add a test for page boundary.
1656
1657 2012-10-05  David S. Miller  <davem@davemloft.net>
1658
1659         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1660         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1661         file.
1662         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1663         sysdep_routines.
1664         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1665         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1666         and bzero when HWCAP_SPARC_CRYPTO is present.
1667
1668 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1669
1670         [BZ #14602]
1671         * string/test-strstr.c (check2): New function.
1672         (test_main): Call check2.
1673
1674         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1675         and bug-strchr1.
1676         * string/bug-strcasestr1.c (do_test): Moved to ...
1677         * string/test-strcasestr.c (check1): Here.  New function.
1678         (do_one_test): Break out result checking code into ...
1679         (check_result): This.  New function.
1680         (do_one_test): Call check_result.
1681         (test_main): Call check1.
1682         * string/bug-strchr1.c (do_test): Moved to ...
1683         * string/test-strchr.c (check1): Here.  New function.
1684         (do_one_test): Break out result checking code into ...
1685         (check_result): This.  New function.
1686         (do_one_test): Call check_result.
1687         (test_main): Call check1.
1688         * string/bug-strstr1.c (main): Moved to ...
1689         * string/test-strchr.c (check1): Here.  New function.
1690         (do_one_test): Break out result checking code into ...
1691         (check_result): This.  New function.
1692         (do_one_test): Call check_result.
1693         (test_main): Call check1.
1694         * string/bug-strcasestr1.c: Removed.
1695         * string/bug-strchr1.c: Likewise.
1696         * string/bug-strstr1.c: Likewise.
1697
1698         * elf/Makefile (dl-routines): Add hwcaps.
1699         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1700         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1701         (_dl_important_hwcaps): Moved to ...
1702         * elf/dl-hwcaps.c: Here.  New file.
1703         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1704
1705         [BZ #14557]
1706         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1707         if IS_IN_rtld isn't defined.
1708
1709         * elf/dl-support.c (_dl_sysinfo_map): New.
1710         Include "get-dynamic-info.h" and "setup-vdso.h".
1711         (_dl_non_dynamic_init): Call setup_vdso.
1712         * elf/dynamic-link.h: Don't include <assert.h>.
1713         (elf_get_dynamic_info): Moved to ...
1714         * elf/get-dynamic-info.h: Here.  New file.
1715         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1716         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1717         * elf/setup-vdso.h: Here.  New file.
1718         * elf/rtld.c: Include "setup-vdso.h".
1719         (dl_main): Call setup_vdso.
1720
1721 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1722
1723         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1724         creal in comment listing functions tested.  List finite, isinf,
1725         isnan, isless, islessequal, isgreater, isgreaterequal,
1726         islessgreater, isunordered, lgamma_r and pow10 as functions and
1727         macros not tested.  Mention which functions not tested are aliases
1728         for other functions.  Fix typo.  Note that signs of NaNs are not
1729         tested.
1730
1731         * scripts/config.guess: Update from config.git.
1732         * scripts/config.sub: Likewise.
1733
1734 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1735
1736         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1737         * misc/madvise.c (madvise): Renamed to __madvise.
1738         Make madvise a weak alias.
1739         * include/sys/mman.h: Declare __madvise.
1740         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1741         * sysdeps/unix/syscalls.list
1742         (madvise): Make __madvise the strong name, and madvise a weak alias.
1743         * sysdeps/unix/sysv/linux/syscalls.list
1744         (madvise, mmap): Remove redundant entries.
1745         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1746         * malloc/malloc.c (mtrim): Likewise.
1747         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1748
1749 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1750
1751         * sysdeps/mach/hurd/dl-cache.c: File removed.
1752         * config.h.in (USE_LDCONFIG): New #undef.
1753         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1754         * configure: Regenerated.
1755         * elf/Makefile (dl-routines): Add dl-cache only under
1756         [$(use-ldconfig) = yes].
1757         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1758         cache on [USE_LDCONFIG].
1759         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1760         [USE_LDCONFIG].
1761         * elf/rtld.c (dl_main): Likewise.
1762
1763 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1764
1765         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1766         _SC_LEVEL4_CACHE_LINESIZE.
1767
1768 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1769
1770         * sysdeps/unix/bsd/confstr.h: File removed.
1771
1772 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1773
1774         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1775         sys/sdt-config.h.
1776
1777 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1778
1779         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1780         Make 'mapoff' field ElfW(Off) rather than off_t.
1781
1782 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1783
1784         * nscd/Makefile: Remove nscd-cflags and all its users.
1785         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1786         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1787
1788         [BZ #10631]
1789         * malloc.c (malloc_printerr): Clarify error message.
1790
1791 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1792
1793         [BZ #14648]
1794         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1795         Set bit_FMA_Usable if FMA is supported.
1796         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1797         macro.
1798         (bit_FMA4_Usable): Updated.
1799         (index_FMA_Usable): New macro.
1800         (CPUID_FMA): Likewise
1801         (HAS_FMA): Defined with bit_FMA_Usable.
1802
1803 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1804
1805         * bits/types.h (__swblk_t): Type removed.
1806         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1807         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1808         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1809         (__SWBLK_T_TYPE): Likewise.
1810         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1811         (__SWBLK_T_TYPE): Likewise.
1812         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1813         (__SWBLK_T_TYPE): Likewise.
1814         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1815         (__SWBLK_T_TYPE): Likewise.
1816
1817 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1818             Honza Horak <hhorak@redhat.com>
1819
1820         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1821         (xdr_mapname): Use YPMAXMAP as maxsize.
1822         (xdr_peername): Use YPMAXPEER as maxsize.
1823         (xdr_keydat): Use YPAXRECORD as maxsize.
1824         (xdr_valdat): Use YPMAXRECORD as maxsize.
1825
1826 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1827
1828         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1829
1830         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1831         * csu/init-first.c: ... here.
1832         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1833         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1834         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1835         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1836         * sysdeps/i386/init-first.c: File removed.
1837         * sysdeps/sh/init-first.c: File removed.
1838
1839 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1840
1841         [BZ #14645]
1842         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1843         if x * y might underflow to zero and z is zero.
1844         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1845         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1846         * math/libm-test.inc (min_subnorm_value): New variable.
1847         (fma_test): Add more tests.
1848         (fma_test_towardzero): Likewise.
1849         (fma_test_downward): Likewise
1850         (fma_test_upward): Likewise.
1851         (initialize): Set min_subnorm_value.
1852
1853 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1854
1855         [BZ #14638]
1856         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1857         0 + 0.
1858         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1859         mode for addition resulting in exact zero.
1860         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1861         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1862         exact 0 + 0.
1863         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1864         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1865         * math/libm-test.inc (fma_test): Add more tests.
1866         (fma_test_towardzero): New function.
1867         (fma_test_downward): Likewise.
1868         (fma_test_upward): Likewise.
1869         (main): Call the new functions.
1870
1871 2012-09-28  David S. Miller  <davem@davemloft.net>
1872
1873         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1874
1875 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1876
1877         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1878         instead of SIGALRM.
1879
1880         * sysdeps/gnu/_G_config.h: Moved to ...
1881         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1882         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1883         * sysdeps/generic/_G_config.h: ... here.
1884
1885         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1886
1887         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1888
1889         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1890         Conditionalize target on [libnss_test1.so-version].
1891
1892         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1893
1894         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1895         (elfobjdir): Move out of conditionals.
1896
1897         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1898         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1899         (__nss_lookup_function): Conditionalize label remove_from_tree on
1900         [!DO_STATIC_NSS || SHARED], matching its only use.
1901
1902 2012-09-28  David S. Miller  <davem@davemloft.net>
1903
1904         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1905         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1906         file.
1907         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1908         sysdep_routines.
1909         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1910         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1911         when HWCAP_SPARC_CRYPTO is present.
1912
1913 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1914
1915         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1916
1917 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1918
1919         [BZ #6530]
1920         * stdio-common/vfprintf.c (process_string_arg): Revert
1921         2000-07-22 change.
1922
1923 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1924
1925         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1926         for testcase.
1927         * stdio-common/tst-sprintf.c: Include <locale.h>
1928         (main): Test sprintf's handling of incomplete multibyte
1929         characters.
1930
1931 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1932
1933         * elf/dl-runtime.c (VERSYMIDX): Removed.
1934         * elf/dl-version.c (VERSYMIDX): Likewise.
1935         * elf/do-rel.h (VERSYMIDX): Likewise.
1936         (VALIDX): Likewise.
1937         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1938         * elf/rtld.c (VALIDX): Likewise.
1939         (ADDRIDX): Likewise.
1940         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1941         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1942         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1943         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1944         (VALIDX): Likewise.
1945         (ADDRIDX): Likewise.
1946
1947 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1948
1949         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1950
1951 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1952
1953         [BZ #11438]
1954         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1955         to global scope.
1956         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1957         addresses are in the same scope as 192.0.2/24.
1958         * posix/gai.conf: Document new scope table defaults.
1959
1960 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1961
1962         [BZ #5298]
1963         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1964         for ftell.  Compute offsets from write pointers instead.
1965         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1966
1967 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1968
1969         [BZ #14543]
1970         * libio/Makefile (tests): New test case tst-fseek.
1971         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1972         combination works in wide mode.
1973         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1974         state when the external buffer state changes.
1975
1976 2012-09-27  David S. Miller  <davem@davemloft.net>
1977
1978         [BZ #14376]
1979         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1980         pass reloc->r_addend in as the 'high' argument to
1981         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1982
1983         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1984
1985 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1986
1987         * rt/tst-aio2.c: Include <pthread.h>.
1988         * rt/tst-aio3.c: Likewise.
1989
1990 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1991
1992         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1993
1994 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1995
1996         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1997         contents on [SHARED].
1998
1999 2012-09-26  Marek Polacek  <polacek@redhat.com>
2000
2001         [BZ #14530]
2002         [BZ #13741]
2003         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2004         for C++ and GCC <4.3 as well as for non GCC compilers.
2005
2006 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2007
2008         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2009
2010 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2011
2012         * Makefile.in (all, install): Declare with .PHONY.
2013         Reported by Michael Hope <michael.hope@linaro.org>.
2014
2015 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2016
2017         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2018         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2019         system header.
2020         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2021         Likewise.
2022         (sydep_routines): Add the new and the internal functions.
2023         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2024         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2026         (GLIBC_2.17): Add the new function.
2027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2028         (GLIBC_2.17): Likewise.
2029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2030         (GLIBC_2.17): Likewise.
2031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2032         (GLIBC_2.17): Likewise.
2033         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2034
2035 2012-09-25  Alan Modra  <amodra@gmail.com>
2036
2037         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2038         Add release barrier before setting once_control to say
2039         initialisation is done.  Add hints on lwarx.  Use macro in
2040         place of isync.
2041         (clear_once_control): Add release barrier.
2042
2043 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2044
2045         [BZ #13629]
2046         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2047         specially.
2048         * math/s_clog10.c (__clog10): Likewise.
2049         * math/s_clog10f.c (__clog10f): Likewise.
2050         * math/s_clog10l.c (__clog10l): Likewise.
2051         * math/s_clogf.c (__clogf): Likewise.
2052         * math/s_clogl.c (__clogl): Likewise.
2053         * math/Makefile (libm-calls): Add x2y2m1.
2054         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2055         (__x2y2m1): Likewise.
2056         (__x2y2m1l): Likewise.
2057         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2058         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2059         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2060         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2061         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2062         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2063         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2064         * sysdeps/i386/fpu/libm-test-ulps: Update.
2065         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2066
2067         [BZ #14621]
2068         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2069         int as type of variable DEPTH.
2070         (glob): Use size_t instead of int as type of variables NEWCOUNT
2071         and OLD_PATHC.
2072
2073 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2074
2075         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2076         Add s_sincosf-sse2.
2077         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2078         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2079         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2080         macros for using routine as __sincosf_ia32.
2081         Use macro for function declaration and weak_alias.
2082         * sysdeps/i386/fpu/libm-test-ulps: Update.
2083
2084         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2085         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2086
2087         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2088         subnormal argument.
2089         * math/s_cexpf.c (__cexpf): Likewise.
2090         * math/s_csinf.c (__csinf): Likewise.
2091         * math/s_csinhf.c (__csinhf): Likewise.
2092         * math/s_ctanf.c (__ctanf): Likewise.
2093         * math/s_ctanhf.c (__ctanhf): Likewise.
2094         * math/s_ccosh.c (__ccoshf): Likewise.
2095         * math/s_cexp.c (__cexpl): Likewise.
2096         * math/s_csin.c (__csin): Likewise.
2097         * math/s_csinh.c (__csinh): Likewise.
2098         * math/s_ctan.c (__ctan): Likewise.
2099         * math/s_ctanh.c (ctanh): Likewise.
2100         * math/s_ccoshl.c (__ccoshl): Likewise.
2101         * math/s_cexpl.c (__cexpl): Likewise.
2102         * math/s_csinl.c (__csinl): Likewise.
2103         * math/s_csinhl.c (__csinhl): Likewise.
2104         * math/s_ctanl.c (__ctanl): Likewise.
2105         * math/s_ctanhl.c (__ctanhl): Likewise.
2106
2107 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2108
2109         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2110         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2111         (_IO_off_t): Define to __off_t, not _G_off_t.
2112         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2113         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2114         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2115         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2116         type of __dummy and __dummy2 fields.
2117         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2118         (_G_ssize_t): Likewise.
2119         (_G_off_t): Likewise.
2120         (_G_pid_t): Likewise.
2121         (_G_uid_t): Likewise.
2122         (_G_wchar_t): Likewise.
2123         (_G_wint_t): Likewise.
2124         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2125         (_G_ssize_t): Likewise.
2126         (_G_off_t): Likewise.
2127         (_G_pid_t): Likewise.
2128         (_G_uid_t): Likewise.
2129         (_G_wchar_t): Likewise.
2130         (_G_wint_t): Likewise.
2131         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2132         (_G_ssize_t): Likewise.
2133         (_G_off_t): Likewise.
2134         (_G_pid_t): Likewise.
2135         (_G_uid_t): Likewise.
2136         (_G_wchar_t): Likewise.
2137         (_G_wint_t): Likewise.
2138
2139 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2140
2141         * malloc/arena.c: Include malloc-sysdep.h.
2142         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2143         is sufficient to shrink the heap or an unmap is needed.
2144         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2145         new function check_may_shrink_heap.
2146         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2147         new function check_may_shrink_heap.
2148
2149 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2150
2151         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2152         comments.
2153
2154 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2155
2156         * catgets/test-gencat.sh: Add "set -e".
2157         * elf/tst-pathopt.sh: Likewise.
2158         * grp/tst_fgetgrent.sh: Likewise.
2159         * iconvdata/run-iconv-test.sh: Likewise.
2160         * intl/tst-gettext.sh: Likewise.
2161         * intl/tst-gettext2.sh: Likewise.
2162         * intl/tst-gettext4.sh: Likewise.
2163         * intl/tst-gettext6.sh: Likewise.
2164         * intl/tst-translit.sh: Likewise.
2165         * io/ftwtest-sh: Likewise.
2166         * libio/test-freopen.sh: Likewise.
2167         * malloc/tst-mtrace.sh: Likewise.
2168         * posix/globtest.sh: Likewise.
2169         * posix/tst-getconf.sh: Likewise.
2170         * posix/wordexp-tst.sh: Likewise.
2171         * stdio-common/tst-printf.sh: Likewise.
2172         * stdio-common/tst-unbputc.sh: Likewise.
2173         * stdlib/tst-fmtmsg.sh: Likewise.
2174         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2175         * catgets/Makefile: Do not specify -e option when running
2176         testsuite shell scripts.
2177         * elf/Makefile: Likewise.
2178         * grp/Makefile: Likewise.
2179         * iconvdata/Makefile: Likewise.
2180         * intl/Makefile: Likewise.
2181         * io/Makefile: Likewise.
2182         * libio/Makefile: Likewise.
2183         * malloc/Makefile: Likewise.
2184         * posix/Makefile: Likewise.
2185         * stdio-common/Makefile: Likewise.
2186         * stdlib/Makefile: Likewise.
2187         * sysdeps/x86_64/Makefile: Likewise.
2188
2189         * io/ftwtest-sh: Add copyright header.
2190         * posix/globtest.sh: Likewise.
2191         * posix/tst-getconf.sh: Likewise.
2192         * posix/wordexp-tst.sh: Likewise.
2193         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2194
2195 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2196
2197         [BZ #13679]
2198         * Makeconfig (+link): Defined as $(+link-static) if
2199         $(build-shared) isn't yes.
2200         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2201         isn't yes.
2202         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2203
2204         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2205
2206         [BZ #14562]
2207         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2208         new chunk size with MALLOC_ALIGN_MASK.
2209
2210 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2211
2212         [BZ #5044]
2213         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2214         <rounding-mode.h>.
2215         (__printf_fphex): Determine rounding using get_rounding_mode and
2216         round_away.
2217         * stdio-common/tst-printf-round.c (struct hex_test): New
2218         structure.
2219         (hex_tests): New variable.
2220         (test_hex_in_one_mode): New function.
2221         (do_test): Also run tests for hex float output.
2222
2223 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2224
2225         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2226         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2227         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2228         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2229         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2230         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2231         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2232         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2233
2234 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2235
2236         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2237         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2238         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2239         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2240
2241 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2242
2243         [BZ #14579]
2244         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2245         mode only.
2246         * elf/tst-rtld-load-self.sh: New test.
2247         * elf/Makefile: Run it.
2248
2249 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2250
2251         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2252         (tst-writev-ENV): Remove.
2253         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2254
2255 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2256
2257         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2258
2259 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2260
2261         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2262         unconditional.
2263         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2264         Likewise.
2265         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2266         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2267         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2268         Likewise.
2269
2270 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2271
2272         [BZ #14587]
2273         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2274         * config.make.in (have-cpp-asm-debuginfo): Removed.
2275         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2276         * configure: Regenerated.
2277
2278 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2279
2280         [BZ #5044]
2281         * stdio-common/printf_fp.c: Include <stdbool.h> and
2282         <rounding-mode.h>.
2283         (___printf_fp): Determine rounding using get_rounding_mode and
2284         round_away.
2285         * stdio-common/tst-printf-round.c: New file.
2286         * stdio-common/Makefile (tests): Add tst-printf-round.
2287         (link-libm): New variable.
2288         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2289
2290 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2291
2292         [BZ #14576]
2293         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2294         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2295         Likewise.
2296         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2297         Likewise.
2298
2299 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2300
2301         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2302         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2303         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2304         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2305
2306 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2307
2308         [BZ #14518]
2309         * include/rounding-mode.h: New file.
2310         * sysdeps/generic/get-rounding-mode.h: Likewise.
2311         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2312         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2313         (MAX_VALUE): New macro.
2314         (MIN_VALUE): Likewise.
2315         (overflow_value): New function.
2316         (underflow_value): Likewise.
2317         (round_and_return): Use overflow_value and underflow_value to
2318         determine return values in overflow and underflow cases.  Use
2319         round_away to determine rounding depending on rounding mode.
2320         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2321         determine return values in overflow and underflow cases.
2322         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2323         (struct test_results): New structure.
2324         (struct test): Use struct test_results to store expected results
2325         for all rounding modes.
2326         (TEST): Include expected results for all rounding modes.
2327         (test_in_one_mode): New function.
2328         (do_test): Use test_in_one_mode to compute and check results.
2329         Check results for all rounding modes.
2330         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2331         $(link-libm).
2332
2333 2012-12-09  Allan McRae  <allan@archlinux.org>
2334
2335         * sysdeps/i386/fpu/libm-test-ulps: Update
2336
2337 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2338
2339         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2340         (_G_int32_t): Likewise.
2341         (_G_uint16_t): Likewise.
2342         (_G_uint32_t): Likewise.
2343         (_G_HAVE_BOOL): Likewise.
2344         (_G_HAVE_ATEXIT): Likewise.
2345         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2346         (_G_HAVE_IO_FILE_OPEN): Likewise.
2347         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2348         (_G_int32_t): Likewise.
2349         (_G_uint16_t): Likewise.
2350         (_G_uint32_t): Likewise.
2351         (_G_HAVE_BOOL): Likewise.
2352         (_G_HAVE_ATEXIT): Likewise.
2353         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2354         (_G_HAVE_IO_FILE_OPEN): Likewise.
2355         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2356         (_G_int32_t): Likewise.
2357         (_G_uint16_t): Likewise.
2358         (_G_uint32_t): Likewise.
2359         (_G_HAVE_BOOL): Likewise.
2360         (_G_HAVE_ATEXIT): Likewise.
2361         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2362         (_G_HAVE_IO_FILE_OPEN): Likewise.
2363
2364 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2365
2366         * csu/libc-tls.c: Update copyright years.
2367
2368 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2369
2370         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2371         [!_G_USING_THUNKS]: Remove conditional code.
2372         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2373         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2374
2375         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2376         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2377         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2378         (_G_VTABLE_LABEL_PREFIX): Likewise.
2379         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2380         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2381         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2382         (_G_VTABLE_LABEL_PREFIX): Likewise.
2383         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2384         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2385         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2386         (_G_VTABLE_LABEL_PREFIX): Likewise.
2387         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2388
2389 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2390
2391         * libio/Makefile: Include ../Makeconfig before tests.
2392         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2393         only if $(build-shared) is yes.
2394
2395         * iconv/gconv_db.c: Update copyright years.
2396
2397 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2398
2399         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2400         unwind info if defined PIC. Fix special cases description.
2401         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2402
2403         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2404         DP_HI_MASK entry.
2405         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2406
2407 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2408
2409         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2410
2411         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2412         is NULL.
2413
2414         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2415         (LDLIBS-tst-chk4): This.
2416         (LDFLAGS-tst-chk5): Renamed to ...
2417         (LDLIBS-tst-chk5): This.
2418         (LDFLAGS-tst-chk6): Renamed to ...
2419         (LDLIBS-tst-chk6): This.
2420         (LDFLAGS-tst-lfschk4): Renamed to ...
2421         (LDLIBS-tst-lfschk4): This.
2422         (LDFLAGS-tst-lfschk5): Renamed to ...
2423         (LDLIBS-tst-lfschk5): This.
2424         (LDFLAGS-tst-lfschk6): Renamed to ...
2425         (LDLIBS-tst-lfschk6): This.
2426
2427         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2428         on $(common-objpfx)soversions.mk.
2429
2430 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2431
2432         [BZ #10014]
2433         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2434         example host name.
2435
2436 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2437
2438         * malloc/arena.c (arena_get_retry): New function that gets
2439         another arena for the caller to try its request on.
2440         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2441         current arena cannot fulfill the request.
2442         (__libc_memalign): Likewise.
2443         (__libc_memalign): Likewise.
2444         (__libc_pvalloc): Likewise.
2445         (__libc_calloc): Likewise.
2446
2447 2012-09-05  John Tobey  <john.tobey@gmail.com>
2448
2449         [BZ #13542]
2450         * manual/arith.texi (Operations on Complex): Fix description
2451         of carg branch cut.
2452
2453 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2454
2455         [BZ #10014]
2456         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2457         host name.
2458
2459         [BZ #10038]
2460         * manual/memory.texi (Memory): Make order of menu items match
2461         order of sections.
2462
2463 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2464
2465         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2466         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2467         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2468
2469 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2470
2471         * csu/libc-tls.c (static_dtv): Renamed to ...
2472         (_dl_static_dtv): This.  Make it global.
2473         (_dl_initial_dtv): Removed.
2474         (__libc_setup_tls): Updated.
2475         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2476         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2477         DL_INITIAL_DTV.
2478
2479 2012-09-06  Petr Machata  <pmachata@redhat.com>
2480
2481         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2482         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2483         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2484         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2485
2486 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2487
2488         [BZ #14545]
2489         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2490         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2491         freeing dtv[-1].
2492
2493 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2494
2495         [BZ #14544]
2496         * Makeconfig (link-static-before-libc): Replace $(+prector)
2497         with $(+prectorT).
2498         (link-static-after-libc): Replace $(+postctor) with
2499         $(+postctorT).
2500         (link-bounded): Replace $(+prector)/$(+postctor) with
2501         $(+prectorT)/$(+postctorT).
2502         (+prectorT): New macro.
2503         (+postctorT): Likewise.
2504
2505 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2506
2507         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2508         (round_str): Handle values above the maximum for IBM long double
2509         as inexact.
2510         * stdlib/tst-strtod-round.c (tests): Regenerated.
2511
2512 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2513
2514         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2515         assembler flag.
2516         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2517         zarch_nohighgprs around the zarch optimized routines.
2518         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2519         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2520         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2521         for zarch.
2522
2523 2012-09-05  David S. Miller  <davem@davemloft.net>
2524
2525         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2526
2527         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2528         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2529         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2530         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2531         entries.
2532
2533 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2534
2535         * malloc/arena.c: Fold copyright years.
2536         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2537
2538 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2539
2540         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2541
2542 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2543
2544         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2545
2546 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2547
2548         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2549         change internal state upon failure.
2550
2551 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2552
2553         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2554         * malloc/memusage.c (mmap): Likewise.
2555         (mmap64, mremap): Likewise.  Adjust name in comment.
2556
2557 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2558
2559         * libio/fileops.c: Fix typos in comments.
2560         * libio/oldfileops.c: Likewise.
2561         * libio/wfileops.c: Likewise.
2562
2563 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2564
2565         [BZ #1349]
2566         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2567         (tst-malloc-usable-ENV): Set environment for test case.
2568         * malloc/hooks.c (malloc_check_get_size): New function to get
2569         requested size.
2570         * malloc/malloc.c (musable): Use malloc_check_get_size.
2571         * malloc/tst-malloc-usable.c: New test case.
2572
2573 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2574
2575         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2576
2577 2012-09-05  Allan McRae  <allan@archlinux.org>
2578
2579         [BZ #13966]
2580         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2581         determine header location.
2582         * configure: Regenerated.
2583
2584 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2585
2586         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2587         float format.
2588         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2589         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2590         format.
2591         (test): Regenerate.
2592
2593 2012-09-04  David S. Miller  <davem@davemloft.net>
2594
2595         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2596         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2597         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2598
2599 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2600
2601         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2602         failures.
2603
2604         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2605
2606 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2607
2608         [BZ #9914]
2609         * libio/iogetdelim.c: Include <limits.h>.
2610         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2611         + len + 1 would overflow.
2612
2613 2012-09-03  Andreas Jaeger  <aj@suse.de>
2614
2615         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2616         * sysdeps/i386/fpu/libm-test-ulps: Update.
2617
2618 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2619
2620         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2621         Add s_sinf-sse2, s_conf-sse2.
2622
2623         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2624         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2625         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2626         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2627
2628         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2629         for using routine as __sinf_ia32.
2630         Use macro for function declaration and weak_alias.
2631         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2632         for using routine as __cosf_ia32.
2633         Use macro for function declaration and weak_alias.
2634
2635         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2636         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2637
2638         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2639         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2640         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2641
2642         * math/libm-test.inc (cos_test): Add more test cases.
2643         (sin_test): Likewise.
2644         (sincos_test): Likewise.
2645
2646 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2647
2648         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2649         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2650         hidden.
2651         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2652
2653 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2654
2655         [BZ #14538]
2656         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2657         first element of the GOT.
2658         (elf_machine_load_address): Return the difference between
2659         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2660
2661 2012-09-01  Allan McRae  <allan@archlinux.org>
2662
2663         [BZ #13412]
2664         * configure.in (AWK): Require gawk version 3.0 or later.
2665         * configure: Regenerated.
2666
2667 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2668
2669         * sysdeps/unix/sysv/linux/kernel-features.h
2670         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2671         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2672         [__NR_clock_getres]: Make code unconditional.
2673         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2674         (clock_getcpuclockid): Remove code left unreachable by removal of
2675         conditionals.
2676         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2677         code unconditional.
2678         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2679         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2680         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2681         Make code unconditional.
2682         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2683         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2684         * sysdeps/unix/sysv/linux/clock_settime.c
2685         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2686         conditional code.
2687         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2688         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2689
2690 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2691
2692         [BZ #14476]
2693         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2694         scripts/test-installation.pl.
2695
2696         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2697         and $ld_so_version if it is set.
2698
2699 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2700
2701         [BZ #14516]
2702         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2703         failure if reading from procfs failed.
2704         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2705
2706 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2707
2708         * sysdeps/unix/sysv/linux/kernel-features.h
2709         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2710         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2711         Remove conditional code.
2712         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2713         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2714         Remove conditional code.
2715         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2716         * sysdeps/unix/sysv/linux/i386/fxstat.c
2717         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2718         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2719         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2720         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2721         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2722         * sysdeps/unix/sysv/linux/i386/lxstat.c
2723         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2724         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2725         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2726         Remove conditional code.
2727         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2728         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2729         Remove conditional code.
2730         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2731         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2732         <kernel-features.h>.
2733         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2734         Remove.
2735         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2736         Remove conditional code.
2737         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2738         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2739         Remove conditional.
2740
2741 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2742
2743         [BZ #5400]
2744         * NEWS: Add fixed bug number.
2745
2746 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2747
2748         [BZ #14519]
2749         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2750         underflowing exponent in case of negative sign.
2751         * stdlib/tst-strtod-round-data: Add more tests.
2752         * stdlib/tst-strtod-round.c (tests): Regenerated.
2753
2754         [BZ #3479]
2755         * stdlib/strtod_l.c (NDIG): Remove.
2756         (HEXNDIG): Likewise.
2757         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2758         smallest representable value.
2759         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2760         lie within an exact representation of 1/2 ulp of the result.
2761         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2762         unconditionally.
2763         (TENS_P9_IDX): Define unconditionally.
2764         (TENS_P9_SIZE): Likewise.
2765         (TENS_P10_IDX): Likewise.
2766         (TENS_P10_SIZE): Likewise.
2767         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2768         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2769         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2770         entries for 10^2^13 and 10^2^14.
2771         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2772         (TENS_P13_IDX): Define.
2773         (TENS_P13_SIZE): Likewise.
2774         (TENS_P14_IDX): Likewise.
2775         (TENS_P14_SIZE): Likewise.
2776         (_fpioconst_pow10): Change array size to
2777         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2778         unconditional.
2779         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2780         1024]: Add entries for 10^2^13 and 10^2^14.
2781         [LAST_POW10 > _LAST_POW10]: Remove #error.
2782         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2783         (_fpioconst_pow10): Change array size to
2784         FPIOCONST_POW10_ARRAY_SIZE.
2785         * stdlib/gen-fpioconst.c: New file.
2786         * stdlib/gen-tst-strtod-round.c: Likewise.
2787         * stdlib/tst-strtod-round-data: Likewise.
2788         * stdlib/tst-strtod-round.c: Likewise.
2789         * stdlib/Makefile (tests): Add tst-strtod-round.
2790
2791         [BZ #14459]
2792         * stdlib/strtod_l.c: Include <stdint.h>.
2793         (NDEBUG): Do not define.
2794         (round_and_return): Change EXPONENT parameter to type intmax_t.
2795         Rearrange calculations to avoid internal overflow possibilities.
2796         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2797         Rearrange calculations to avoid internal overflow possibilities.
2798         Assert that number fits inside MPNSIZE limbs.
2799         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2800         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2801         calculations and add assertions to avoid internal overflow
2802         possibilities.  Add casts to avoid signed/unsigned operations.
2803         * stdlib/tst-strtod-overflow.c: New file.
2804         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2805
2806 2012-08-25  Marek Polacek  <polacek@redhat.com>
2807
2808         * time/time.h: Fix some typos in comments.
2809
2810 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2811
2812         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2813         * posix/tst-rfc3484-2.c: Likewise.
2814         * posix/tst-rfc3484-3.c: Likewise.
2815
2816 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2817
2818         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2819         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2820
2821 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2822
2823         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2824         #include of fxstatat64.c.
2825
2826 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2827
2828         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2829         * shadow/getspent_r.c: Likewise.
2830         * shadow/getspnam.c: Likewise.
2831         * shadow/getspnam_r.c: Likewise.
2832         * gshadow/getsgent.c: Likewise.
2833         * gshadow/getsgent_r.c: Likewise.
2834         * gshadow/getsgnam.c: Likewise.
2835         * gshadow/getsgnam_r.c: Likewise.
2836         * inet/getnetbyad.c: Likewise.
2837         * inet/getnetbyad_r.c: Likewise.
2838         * inet/getnetbynm.c: Likewise.
2839         * inet/getnetbynm_r.c: Likewise.
2840         * inet/getnetent.c: Likewise.
2841         * inet/getnetent_r.c: Likewise.
2842         * inet/getproto.c: Likewise.
2843         * inet/getproto_r.c: Likewise.
2844         * inet/getprtent.c: Likewise.
2845         * inet/getprtent_r.c: Likewise.
2846         * inet/getprtname.c: Likewise.
2847         * inet/getprtname_r.c: Likewise.
2848         * inet/getrpcbyname.c: Likewise.
2849         * inet/getrpcbyname_r.c: Likewise.
2850         * inet/getrpcbynumber.c: Likewise.
2851         * inet/getrpcbynumber_r.c: Likewise.
2852         * inet/getrpcent.c: Likewise.
2853         * inet/getrpcent_r.c: Likewise.
2854         * inet/getaliasent.c: Likewise.
2855         * inet/getaliasent_r.c: Likewise.
2856         * inet/getaliasname.c: Likewise.
2857         * inet/getaliasname_r.c: Likewise.
2858         * nscd/getgrgid_r.c: Likewise.
2859         * nscd/getgrnam_r.c: Likewise.
2860         * nscd/gethstbyad_r.c: Likewise.
2861         * nscd/gethstbynm3_r.c: Likewise.
2862         * nscd/getpwnam_r.c: Likewise.
2863         * nscd/getpwuid_r.c: Likewise.
2864         * nscd/getsrvbynm_r.c: Likewise.
2865         * nscd/getsrvbypt_r.c: Likewise.
2866         * nscd/gai.c: Likewise.
2867
2868         * configure.in (build_nscd): New substituted variable, set
2869         by --disable-build-nscd and defaults to $use_nscd.
2870         * configure: Regenerated.
2871         * config.make.in (build-nscd): New substituted variable.
2872         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2873         Change conditional to require [$(build-nscd) = yes] as well.
2874         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2875
2876         [BZ# 13696]
2877         * configure.in (use_nscd): New substituted variable, set by
2878         --disable-nscd.  If enabled, define USE_NSCD.
2879         * configure: Regenerated.
2880         * config.h.in: Add USE_NSCD.
2881         * config.make.in (use-nscd): New substituted variable.
2882         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2883         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2884         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2885         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2886         (CFLAGS-getgrnam_r.c): Likewise.
2887         (CFLAGS-initgroups.c): Likewise.
2888         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2889         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2890         Variables removed.
2891         * inet/getnetgrent_r.c
2892         (nscd_setnetgrent): New function, broken out of ...
2893         (setnetgrent): ... here.  Call it.
2894         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2895         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2896         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2897         * nscd/Makefile (routines, aux): Move definitions after include of
2898         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2899         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2900         Conditionalize on [USE_NSCD].
2901         (is_nscd, nscd_init_cb): Likewise.
2902         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2903         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2904         * nss/nss_db/db-init.c: Likewise.
2905         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2906         [USE_NSCD].
2907         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2908         (make_request): Use it.
2909         (cache_valid_p): New function.
2910         (__check_pf): Use it.
2911         * NEWS: Add item for --disable-nscd.
2912
2913 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2914
2915         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2916         to support sed >= 4.2.1-20-ga9bf076.
2917         * configure: Regenerated.
2918
2919 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2920
2921         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2922         Conditionalize whole body on [IREL].
2923
2924 2012-08-22  Jeff Law <law@redhat.com>
2925
2926         [BZ #14505]
2927         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2928         if the family is PF_UNSPEC.
2929
2930 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2931
2932         * Makerules (lib-version): Rename from V.
2933         (install-lib-nosubdir): Change V to lib-version.
2934
2935 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2936
2937         [BZ #14252]
2938         * powerpc32/power6/wcschr.c: New file.
2939         * powerpc32/power6/wcscpy.c: New file.
2940         * powerpc32/power6/wcsrchr.c: New file.
2941         * powerpc64/power6/wcschr.c: New file.
2942         * powerpc64/power6/wcscpy.c: New file.
2943         * powerpc64/power6/wcsrchr.c: New file.
2944
2945 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2946
2947         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2948         (two_way_short_needle): Use it.
2949         * string/strstr.c (AVAILABLE1_USES_J): Define.
2950         * string/strcasestr.c: Likewise.
2951
2952         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2953         array references.
2954         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2955
2956         [BZ #11607]
2957         * NEWS: Add an entry.
2958         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2959         define their defaults.
2960         (two_way_short_needle): Detect end-of-string on-the-fly.
2961         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2962         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2963         * string/bug-strcasestr1.c: New test.
2964         * string/Makefile: Run it.
2965
2966 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2967
2968         [BZ #11607]
2969         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2970         the first character.
2971
2972 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2973
2974         * csu/elf-init.c (__libc_csu_irel): Function removed.
2975         * csu/libc-start.c (apply_irel): New function.
2976         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2977
2978 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2979
2980         * sysdeps/unix/sysv/linux/kernel-features.h
2981         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2982         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2983         <kernel-features.h>.
2984         [__NR_fadvise64_64]: Make code unconditional.
2985         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2986         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2987         !__NR_fadvise64_64)]: Likewise.
2988         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2989         !__NR_fadvise64_64))]: Likewise.
2990         [__NR_fadvise64]: Make code unconditional.
2991         [!__NR_fadvise64]: Remove conditional code.
2992         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2993         <kernel-features.h>.
2994         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2995         unconditional.
2996         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2997         conditional code.
2998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2999         not include <kernel-features.h>.
3000         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3001         unconditional.
3002         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3003         conditional code.
3004         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3005         include <kernel-features.h>.
3006         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3007         unconditional.
3008         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3009         conditional code.
3010
3011 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3012
3013         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3014         slight instruction rearrangements per scrollpipe analysis.
3015         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3016
3017 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3018
3019         * manual/syslog.texi (syslog; vsyslog, closelog):
3020         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3021         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3022
3023         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3024         DSOCAPS to match condition on defining it.
3025
3026 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3027
3028         * sysdeps/unix/sysv/linux/kernel-features.h
3029         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3031         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3032         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3034         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3035         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3037         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3038         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3039
3040         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3041         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3042
3043         * sysdeps/unix/sysv/linux/kernel-features.h
3044         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3045         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3046         unconditional.
3047         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3048         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3049         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3050         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3051         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3052         Make code unconditional.
3053         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3054         (__mmap64) [!__NR_mmap2]: Likewise.
3055         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3056         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3057         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3058         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3059         [__NR_mmap2]: Make code unconditional.
3060         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3061         (__mmap64) [!__NR_mmap2]: Likewise.
3062
3063 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3064
3065         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3066
3067 2012-08-18  Andreas Jaeger  <aj@suse.de>
3068
3069         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3070
3071 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3072
3073         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3074         * include/unistd.h (__have_sock_cloexec): Likewise.
3075         (__have_pipe2): Likewise.
3076         (__have_dup3): Likewise.
3077
3078 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3079
3080         [BZ #9685]
3081         * include/unistd.h (__have_pipe2): Change define into an extern int.
3082         (__have_dup3): Likewise.
3083         * socket/have_sock_cloexec.c: Include fcntl.h.
3084         (__have_pipe2): New variable.
3085         (__have_dup3): Likewise.
3086
3087 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3088
3089         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3090
3091 2012-08-17  Marek Polacek  <polacek@redhat.com>
3092
3093         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3094         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3095
3096 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3097
3098         * configure.in: Add AC_SUBST for sysheaders.
3099         * configure: Regenerated.
3100         * config.make.in (sysheaders): New substituted variable.
3101
3102         * sysdeps/unix/mkfifo.c: Moved ...
3103         * sysdeps/posix/mkfifo.c: ... here.
3104         * sysdeps/unix/mkfifoat.c: Moved ...
3105         * sysdeps/posix/mkfifoat.c: ... here.
3106
3107         * sysdeps/unix/utime.c: Moved ...
3108         * sysdeps/posix/utime.c: ... here.
3109
3110         * sysdeps/unix/time.c: Moved ...
3111         * sysdeps/posix/time.c: ... here.
3112         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3113         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3114
3115         * sysdeps/unix/nice.c: Moved ...
3116         * sysdeps/posix/nice.c: ... here.
3117
3118         * sysdeps/unix/alarm.c: Moved ...
3119         * sysdeps/posix/alarm.c: ... here.
3120
3121         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3122
3123 2012-08-17  Jeff Law <law@redhat.com>
3124
3125         * intl/Makefile (codeset_mo): New variable.
3126         ($(codeset_mo)): New target.
3127         (tst-codeset.out): Depend on that.  Remove explicit rule.
3128         (tst-gettext3.out, tst-gettext5.out): Likewise.
3129         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3130         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3131         * intl/tst-codeset.sh: Remove.
3132         * intl/tst-gettext3.sh: Likewise.
3133         * intl/tst-gettext5.sh: Likewise.
3134
3135 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3136
3137         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3138         * sysdeps/unix/syscalls.list: ... here.
3139
3140         * sysdeps/posix/getaddrinfo.c
3141         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3142         (gaiconf_init, gaiconf_reload): Use them.
3143         [!_STATBUF_ST_NSEC]
3144         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3145         Define using time_t rather than struct timespec.
3146
3147         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3148         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3149         Macros removed.
3150         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3151         [!NO_THREADS].
3152         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3153         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3154         Likewise.
3155
3156         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3157         __libc_cleanup_push argument.
3158
3159         * bits/param.h: New file.
3160         * misc/sys/param.h: New file.
3161         * include/sys/param.h: New file.
3162         * misc/Makefile (headers): Add bits/param.h.
3163         * sysdeps/generic/sys/param.h: File removed.
3164         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3165         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3166         * sysdeps/mach/hurd/bits/param.h: New file.
3167         * sysdeps/mach/hurd/sys/param.h: File removed.
3168
3169         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3170         last change.
3171
3172         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3173         [_IO_MTSAFE_IO].
3174         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3175         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3176         New macros.
3177
3178         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3179         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3180         rather than -D_IO_MTSAFE_IO conditionally.
3181         * stdio-common/Makefile (CPPFLAGS): Likewise.
3182         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3183         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3184         Use $(libio-mtsafe).
3185         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3186         of -D_IO_MTSAFE_IO.
3187         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3188         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3189         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3190         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3191         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3192         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3193         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3194         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3195         (CFLAGS-fread_u_chk.c): Likewise.
3196         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3197         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3198         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3199         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3200         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3201         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3202         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3203         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3204         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3205
3206         * libio/Makefile: Test [$(libc-reentrant) = yes]
3207         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3208
3209         * Makeconfig
3210         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3211         * sysdeps/pthread/configure: File removed.
3212         * sysdeps/pthread/Makeconfig: New file.
3213         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3214         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3215
3216 2012-08-16  Gary Benson  <gbenson@redhat.com>
3217
3218         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3219         unmapping the first object in a namespace.
3220
3221 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3222
3223         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3224         (__internal_setnetgrent): ... this.  Add internal_function to
3225         definition.  Add libc_hidden_def.
3226         (setnetgrent): Update caller.
3227         (internal_endnetgrent): Renamed to ...
3228         (__internal_endnetgrent): ... this.  Add internal_function to
3229         definition.  Add libc_hidden_def.
3230         (endnetgrent): Update caller.
3231         (internal_getnetgrent_r): Renamed to ...
3232         (__internal_getnetgrent_r): ... this.  Add internal_function to
3233         definition.  Add libc_hidden_def.
3234         (__getnetgrent_r): Update caller.
3235         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3236
3237 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3238
3239         * stdlib/longlong.h: Update from GCC.
3240
3241 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3242
3243         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3244         on _QL, which is set by umul_ppmm but never used.
3245         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3246         variables, which are set by GMP macros but never used.
3247         * stdio-common/_itowa.c (_itowa): Likewise.
3248         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3249         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3250
3251 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3252
3253         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3254         struct La_sh_regs is not constant.
3255         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3256         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3257         and struct La_sparc64_regs are not constant.
3258
3259 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3260
3261         * sysdeps/unix/sysv/linux/kernel-features.h
3262         (__ASSUME_POSIX_TIMERS): Remove.
3263         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3264         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3265         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3266         Make code unconditional.
3267         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3268         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3269         Make code unconditional.
3270         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3271         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3272         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3273         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3274         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3275         Make code unconditional.
3276         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3277         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3278         (__libc_missing_posix_timers): Remove.
3279
3280 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3281
3282         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3283         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3284
3285         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3286
3287         * elf/dl-sym.c: Include <stdlib.h>.
3288
3289         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3290         constants, which avoids warnings in 32-bit builds.
3291
3292         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3293         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3294
3295         * misc/lseek.c: File moved to ...
3296         * io/lseek.c: ... here.
3297
3298         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3299
3300         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3301         shifting LEN more than 31 bits at once.
3302
3303 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3304
3305         [BZ #14195]
3306         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3307         segmentation fault for a case of two empty input strings.
3308         * string/test-strncasecmp.c (check1): Renamed to...
3309         (bz12205): ...this.
3310         (bz14195): Add new testcase for two empty input strings and N > 0.
3311         (test_main): Call new testcase, adapt for renamed function.
3312
3313 2012-08-15  Andreas Jaeger  <aj@suse.de>
3314
3315         [BZ #14090]
3316         * crypt/md5test2.c: New test, based on test supplied by Serge
3317         Belyshev <belyshev@depni.sinp.msu.ru>.
3318         * crypt/Makefile (xtests): Add md5test-giant..
3319         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3320
3321 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3322
3323         [BZ #14090]
3324         * crypt/md5.c (md5_process_block): Don't assume the buffer
3325         length is less than 2**32.
3326         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3327         length is less than 2**64.
3328
3329 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3330
3331         * string/str-two-way.h: Include <sys/param.h>.
3332         (MAX): Macro removed.
3333
3334         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3335         Move #define and #undef of memmove to just before and after
3336         including <string.h>.
3337
3338         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3339         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3340         and after including <string.h>.  Move declarations of
3341         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3342         to before #include "string/memmove.c".
3343
3344         * include/dirent.h: Declare __getdirentries.
3345
3346         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3347         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3348
3349 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3350
3351         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3352         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3353         * sysdeps/i386/configure: Regenerated.
3354         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3355         STABS_CURRENT_FILE, and STABS_FUN.
3356         (END): Remove call to STABS_FUN_END.
3357         (STABS_CURRENT_FILE1): Delete.
3358         (STABS_CURRENT_FILE): Likewise.
3359         (STABS_FUN): Likewise.
3360         (STABS_FUN_END): Likewise.
3361         (STABS_FUN2): Likewise.
3362         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3363         * sysdeps/x86_64/configure: Regenerated.
3364
3365 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3366
3367         * elf/dl-open.c: Include <atomic.h>.
3368         * elf/dl-lookup.c: Likewise.
3369
3370 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3371
3372         * sysdeps/unix/sysv/linux/kernel-features.h
3373         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3374         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3375         unconditionally.
3376         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3377         unconditionally.
3378         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3379         condition on __ASSUME_CLONE_THREAD_FLAGS.
3380
3381 2012-08-14  Andreas Jaeger  <aj@suse.de>
3382
3383         * sysdeps/i386/fpu/libm-test-ulps: Update.
3384
3385 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3386
3387         * include/atomic.h (atomic_exchange_and_add): Split into ...
3388         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3389         New atomic macros.
3390
3391 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3392
3393         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3394
3395 2012-08-13  Jeff Law <law@redhat.com>
3396
3397         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3398         null byte in the output string.
3399
3400 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3401
3402         * sysdeps/unix/sysv/linux/kernel-features.h
3403         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3404         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3405         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3406         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3407         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3408         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3409         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3410
3411 2012-08-09  Jeff Law <law@redhat.com>
3412
3413         [BZ #13939]
3414         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3415         When avoid_arena is set, don't retry in the that arena.  Pick the
3416         next one, whatever it might be.
3417         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3418         (arena_lock): Pass in new parameter to arena_get2.
3419         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3420         arena_get2.
3421         (__libc_malloc): Unify retrying after main arena failure with
3422         __libc_memalign version.
3423         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3424
3425 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3426
3427         [BZ #14166]
3428         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3429         to __redirect_strstr.
3430         (__strstr_sse42): Use typeof __redirect_strstr.
3431         (__strstr_ia32): Likewise.
3432         (__libc_strstr): New prototype.
3433         (strstr): Renamed to ...
3434         (__libc_strstr): This.
3435         (strstr): New strong alias of __libc_strstr.
3436         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3437         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3438         __redirect_time.
3439         Include <time.h>.
3440         (__libc_time): New prototype.
3441         (time_ifunc): Replace time with __libc_time.
3442         (time): New strong alias and hidden definition of __libc_time.
3443         (__GI_time): Remove strong alias.
3444         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3445         Include <stddef.h>.
3446         (memmove): Redefined to __redirect_memmove.
3447         (__memmove_sse2): Use typeof __redirect_memmove.
3448         (__memmove_ssse3): Likewise.
3449         (__memmove_ssse3_back): Likewise.
3450         (__libc_memmove): New prototype.
3451         (memmove): Renamed to ...
3452         (__libc_memmove): This.
3453         (memmove): New strong alias of __libc_memmove.
3454
3455 2012-08-08  Mark Salter  <msalter@redhat.com>
3456
3457         * elf/elf.h
3458         (R_MN10300_TLS_GD): Define.
3459         (R_MN10300_TLS_LD): Likewise.
3460         (R_MN10300_TLS_LDO): Likewise.
3461         (R_MN10300_TLS_GOTIE): Likewise.
3462         (R_MN10300_TLS_IE): Likewise.
3463         (R_MN10300_TLS_LE): Likewise.
3464         (R_MN10300_TLS_DTPMOD): Likewise.
3465         (R_MN10300_TLS_DTPOFF): Likewise.
3466         (R_MN10300_TLS_TPOFF): Likewise.
3467         (R_MN10300_SYM_DIFF): Likewise.
3468         (R_MN10300_ALIGN): Likewise.
3469         (R_MN10300_NUM): Update.
3470
3471 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3472
3473         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3474         Remove.
3475
3476 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3477
3478         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3479
3480         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3481         sysdeps/unix -> sysdeps/posix move.
3482         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3483
3484 2012-08-07      Allan McRae     <allan@archlinux.org>
3485
3486         [BZ #14303]
3487         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3488         (SUNOS_CPP): Likewise.
3489         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3490         not found.
3491         (open_input): Call CPP using execvp.
3492
3493 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3494
3495         * sysdeps/unix/sysv/linux/kernel-features.h
3496         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3497         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3498         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3499         (__ASSUME_WAITID_SYSCALL): Likewise.
3500         * sysdeps/unix/sysv/linux/dl-execstack.c
3501         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3502         code unconditional.
3503         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3504         conditional code.
3505         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3506         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3507         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3508         code.
3509         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3510         unconditional.
3511         [__ASSUME_WAITID_SYSCALL]: Likewise.
3512         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3513
3514 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3515
3516         * sysdeps/unix/closedir.c: Renamed to ...
3517         * sysdeps/posix/closedir.c: ... here.
3518         * sysdeps/unix/dirfd.c: Renamed to ...
3519         * sysdeps/posix/dirfd.c: ... here.
3520         * sysdeps/unix/dirstream.h: Renamed to ...
3521         * sysdeps/posix/dirstream.h: ... here.
3522         * sysdeps/unix/fdopendir.c: Renamed to ...
3523         * sysdeps/posix/fdopendir.c: ... here.
3524         * sysdeps/unix/opendir.c: Renamed to ...
3525         * sysdeps/posix/opendir.c: ... here.
3526         * sysdeps/unix/readdir.c: Renamed to ...
3527         * sysdeps/posix/readdir.c: ... here.
3528         * sysdeps/unix/readdir_r.c: Renamed to ...
3529         * sysdeps/posix/readdir_r.c: ... here.
3530         * sysdeps/unix/rewinddir.c: Renamed to ...
3531         * sysdeps/posix/rewinddir.c: ... here.
3532         * sysdeps/unix/seekdir.c: Renamed to ...
3533         * sysdeps/posix/seekdir.c: ... here.
3534         * sysdeps/unix/telldir.c: Renamed to ...
3535         * sysdeps/posix/telldir.c: ... here.
3536         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3537         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3538         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3539         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3540
3541         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3542         * bits/fcntl.h: ... here.
3543
3544         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3545         not 0.
3546         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3547         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3548         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3549         (struct flock): Move l_start, l_len to the beginning.
3550         Use __pid_t for l_pid.
3551         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3552         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3553         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3554         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3555         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3556         [__USE_LARGEFILE64] (struct flock64): New type.
3557         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3558
3559         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3560         * bits/dirent.h: ... here.
3561
3562         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3563         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3564
3565 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3566
3567         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3568         Change from 2.6.0 to 2.6.16.
3569         * sysdeps/unix/sysv/linux/configure: Regenerated.
3570         * sysdeps/unix/sysv/linux/kernel-features.h
3571         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3572         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3573         version.
3574         (__ASSUME_UTIMES): Likewise.
3575         (__ASSUME_CLONE_STOPPED): Remove.
3576         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3577         architectures, not kernel version.
3578         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3579         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3580         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3581         (__ASSUME_WAITID_SYSCALL): Likewise.
3582         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3583         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3584         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3585         refer to older versions.
3586
3587 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3588
3589         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3590         Define alphasort64 as an alias.
3591         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3592         Define versionsort64 as an alias.
3593         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3594         Define scandir64 as an alias.
3595         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3596         Define scandirat64 as an alias.
3597         * dirent/alphasort64.c (alphasort64):
3598         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3599         * dirent/versionsort64.c: Likewise.
3600         * dirent/scandir64.c: Likewise.
3601         * dirent/scandirat64.c: Likewise.
3602         * sysdeps/wordsize-64/alphasort.c: File removed.
3603         * sysdeps/wordsize-64/alphasort64.c: File removed.
3604         * sysdeps/wordsize-64/scandir.c: File removed.
3605         * sysdeps/wordsize-64/scandir64.c: File removed.
3606         * sysdeps/wordsize-64/scandirat.c: File removed.
3607         * sysdeps/wordsize-64/scandirat64.c: File removed.
3608         * sysdeps/wordsize-64/versionsort.c: File removed.
3609         * sysdeps/wordsize-64/versionsort64.c: File removed.
3610         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3611         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3612         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3613         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3614         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3615         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3616         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3617         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3618
3619         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3620         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3621         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3622         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3623         [defined __arch64__ || defined __sparcv9]
3624         (__INO_T_MATCHES_INO64_T): New macro.
3625         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3626         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3627         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3628         * sysdeps/unix/sysv/linux/bits/dirent.h
3629         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3630         (_DIRENT_MATCHES_DIRENT64): New macro.
3631
3632         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3633         Define lockf64 as an alias.
3634         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3635         Define fseeko64 as an alias.
3636         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3637         Define ftello64 as an alias.
3638         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3639         Define _IO_fgetpos64 and fgetpos64 as aliases.
3640         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3641         Define _IO_fsetpos64 and fsetpos64 as aliases.
3642         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3643         Conditionalize body on this.
3644         * libio/fseeko64.c: Likewise.
3645         * libio/ftello64.c: Likewise.
3646         * libio/iofgetpos64.c: Likewise.
3647         * libio/iofsetpos64.c: Likewise.
3648         * sysdeps/wordsize-64/lockf.c: File removed.
3649         * sysdeps/wordsize-64/lockf64.c: File removed.
3650         * sysdeps/wordsize-64/fseeko.c: File removed.
3651         * sysdeps/wordsize-64/fseeko64.c: File removed.
3652         * sysdeps/wordsize-64/ftello.c: File removed.
3653         * sysdeps/wordsize-64/ftello64.c: File removed.
3654         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3655         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3656         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3657         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3658         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3659         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3660         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3661         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3662         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3663         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3664         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3665         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3666         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3667         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3668
3669         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3670         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3671         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3672         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3673         [defined __arch64__ || defined __sparcv9]
3674         (__OFF_T_MATCHES_OFF64_T): New macro.
3675         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3676         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3677         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3678         (__OFF_T_MATCHES_OFF64_T): New macro.
3679
3680 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3681
3682         * stdlib/secure-getenv.c (__secure_getenv): Replace
3683         GLIBC_2_16 with GLIBC_2_17.
3684
3685 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3686
3687         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3688         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3689
3690 2012-08-03  David S. Miller  <davem@davemloft.net>
3691
3692         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3693
3694 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3695
3696         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3697         Remove.
3698         (__ASSUME_CORRECT_SI_PID): Likewise.
3699         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3700         (__ASSUME_TMPFS_NAME): Likewise.
3701         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3702         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3703         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3704         (HAVE_AUX_SECURE): Make definition unconditional.
3705         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3706         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3707
3708 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3709
3710         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3711         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3712         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3713         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3714         __eloop_threshold instead of SYMLOOP_MAX.
3715
3716         * sysdeps/generic/eloop-threshold.h: New file.
3717         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3718         of MAXSYMLINKS.
3719         * elf/chroot_canon.c (chroot_canon): Likewise.
3720
3721 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3722
3723         [BZ #13717]
3724         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3725         Change to 2.6.0 everywhere.
3726         * sysdeps/unix/sysv/linux/configure: Regenerated.
3727         * sysdeps/unix/sysv/linux/kernel-features.h
3728         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3729         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3730         kernel versions.
3731         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3732         (__ASSUME_FUTEX_REQUEUE): Remove.
3733         (__ASSUME_STATFS64): Define unconditionally.
3734         (__ASSUME_AT_SECURE): Likewise.
3735         (__ASSUME_CORRECT_SI_PID): Likewise.
3736         (__ASSUME_TGKILL): Define without depending on kernel version for
3737         i386.
3738         (__ASSUME_UTIMES): Likewise.
3739         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3740         kernel version.
3741         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3742         (__ASSUME_TMPFS_NAME): Likewise.
3743         * README: Update reference to Linux kernel versions.
3744
3745 2012-08-02  Marek Polacek  <polacek@redhat.com>
3746
3747         [BZ# 14150]
3748         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3749         libc_cv_asm_type_prefix with %.
3750         * configure: Regenerated.
3751         * include/libc-symbols.h: Remove comment about
3752         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3753         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3754         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3755         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3756         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3757         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3758         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3759         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3760         * elf/tst-unique2mod1.c: Likewise.
3761         * elf/tst-unique1mod2.c: Likewise.
3762         * elf/tst-unique1mod1.c: Likewise.
3763         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3764         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3765         Replace ASM_TYPE_DIRECTIVE with .type.
3766         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3767         * sysdeps/i386/sysdep.h: Likewise.
3768         * sysdeps/x86_64/sysdep.h: Likewise.
3769         * sysdeps/sh/sysdep.h: Likewise.
3770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3771         Do not define ASM_TYPE_DIRECTIVE.
3772         * sysdeps/powerpc/sysdep.h: Likewise.
3773         * sysdeps/powerpc/powerpc32/sysdep.h:
3774         Replace ASM_TYPE_DIRECTIVE with .type.
3775         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3776         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3777         * sysdeps/i386/fpu/e_powf.S: Likewise.
3778         * sysdeps/i386/fpu/e_expl.S: Likewise.
3779         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3780         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3781         * sysdeps/i386/fpu/e_pow.S: Likewise.
3782         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3783         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3784         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3785         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3786         * sysdeps/i386/fpu/e_log2.S: Likewise.
3787         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3788         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3789         * sysdeps/i386/fpu/e_powl.S: Likewise.
3790         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3791         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3792         * sysdeps/i386/fpu/e_logl.S: Likewise.
3793         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3794         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3795         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3796         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3797         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3798         * sysdeps/i386/fpu/e_log.S: Likewise.
3799         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3800         * sysdeps/i386/fpu/e_logf.S: Likewise.
3801         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3802         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3803         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3804         * sysdeps/i386/fpu/e_log10.S: Likewise.
3805         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3806         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3807         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3808         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3809         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3810         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3811         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3812         * sysdeps/i386/i686/strtok.S: Likewise.
3813         * sysdeps/i386/i386-mcount.S: Likewise.
3814         * sysdeps/i386/strtok.S: Likewise.
3815         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3816         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3817         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3818         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3819         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3820         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3821         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3822         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3823         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3824         * sysdeps/x86_64/_mcount.S: Likewise.
3825         * sysdeps/x86_64/strtok.S: Likewise.
3826         * sysdeps/sh/_mcount.S: Likewise.
3827
3828 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3829
3830         * libio/iofopen.c: Include <fcntl.h>.
3831         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3832         (_IO_fopen64, fopen64): Define as aliases.
3833         * libio/iofopen64.c: Include <fcntl.h>.
3834         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3835         Conditionalize body on this.
3836         * sysdeps/wordsize-64/iofopen.c: File removed.
3837         * sysdeps/wordsize-64/iofopen64.c: File removed.
3838
3839 2012-08-01  Marek Polacek  <polacek@redhat.com>
3840
3841         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3842         Use dlfcn directly instead of a variable.
3843         (binfmt-subdir): Do not define.
3844         (dlfcn): Likewise.
3845
3846 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3847
3848         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3849         Remove all definitions.
3850         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3851         <kernel-features.h>.
3852         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3853         (miss_F_GETOWN_EX): Remove all definitions.
3854         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3855         macro definition.
3856         [!__ASSUME_FCNTL64]: Remove conditional code.
3857         [__ASSUME_FCNTL64]: Make code unconditional.
3858         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3859         <kernel-features.h>.
3860         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3861         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3862         (lockf64) [__NR_fcntl64]: Make code unconditional.
3863         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3864
3865         * sysdeps/unix/sysv/linux/kernel-features.h
3866         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3867         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3868         Make code unconditional.
3869         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3870         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3872         [__NR_vfork]: Make code unconditional.
3873         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3874         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3876         [__NR_vfork]: Make code unconditional.
3877         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3878         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3879
3880 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3881
3882         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3883         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3884
3885         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3886         Define mkstemp64 as an alias.
3887         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3888         Define mkstemps64 as an alias.
3889         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3890         Define mkostemp64 as an alias.
3891         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3892         Define mkostemps64 as an alias.
3893         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3894         Conditionalize body on this.
3895         * misc/mkostemp64.c: Likewise.
3896         * misc/mkostemps64.c: Likewise.
3897         * misc/mkstemps64.c: Likewise.
3898         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3899         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3900         * sysdeps/wordsize-64/mkostemp.c: File removed.
3901         * sysdeps/wordsize-64/mkstemp.c: File removed.
3902         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3903         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3904         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3905         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3906
3907         [BZ #14138]
3908         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3909         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3910         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3911         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3912
3913         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3914         compat_symbol macros from <shlib-compat.h> rather than the underlying
3915         default_symbol_version and symbol_version macros, so that DEFAULT
3916         lines in shlib-versions are respected.
3917         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3918
3919 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3920
3921         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3922         Declare with warn_unused_result.
3923         (setgid, setregid, setegid, setresgid): Likewise.
3924         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3925         Likewise.
3926         * WUR-REPORT: Remove set*id functions.
3927
3928 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3929
3930         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3931
3932 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3933
3934         * include/sys/socket.h (__libc_accept, __libc_accept4):
3935         Add attribute_hidden.
3936         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3937
3938         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3939         use of PTR_MANGLE.
3940         * inet/getnetgrent_r.c (setup): Likewise.
3941
3942         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3943
3944 2012-07-31  David S. Miller  <davem@davemloft.net>
3945
3946         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3947
3948 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3949
3950         [BZ #13629]
3951         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3952         value between 1.0 and 2.0 and smaller part has absolute value less
3953         than 1.0.
3954         * math/s_clog10.c (__clog10): Likewise.
3955         * math/s_clog10f.c (__clog10f): Likewise.
3956         * math/s_clog10l.c (__clog10l): Likewise.
3957         * math/s_clogf.c (__clogf): Likewise.
3958         * math/s_clogl.c (__clogl): Likewise.
3959         * math/libm-test.inc (clog_test): Add more tests.
3960         (clog10_test): Likewise.
3961         * sysdeps/i386/fpu/libm-test-ulps: Update.
3962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3963
3964 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3965
3966         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3967         Exit with zero in case no suitable GID is found, and write a
3968         message to standard error.
3969
3970 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3971
3972         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3973         rather than to 1.
3974         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3975         (MAXPATHLEN): Removed.
3976         (NOGROUP, NODEV): New macros.
3977         (setbit, clrbit, isset, isclr): New macros.
3978         (howmany, roundup, powerof2): New macros.
3979         (DEV_BSIZE): New macro.
3980
3981         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3982         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3983
3984         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3985         definition on [!__NO_LONG_DOUBLE_MATH].
3986
3987         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3988         PTR_MANGLE and PTR_DEMANGLE.
3989
3990         * socket/accept4.c (accept4): Rename to __libc_accept4.
3991         Define accept4 as a weak alias.
3992
3993         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3994         on [_DIRENT_HAVE_D_TYPE].
3995         * io/ftw.c (ftw_dir): Likewise.
3996
3997         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3998
3999         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4000
4001         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4002         Use the BSD numbers rather than the arbitrary ones we had.
4003         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4004         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4005         (SIGXCPU, SIGXFSZ): New macros.
4006         (_NSIG): Now 32.
4007
4008         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4009         initializer on [_LIBC_REENTRANT].
4010
4011         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4012         definitions inside [_POSIX_MAPPED_FILES].
4013
4014         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4015
4016         * dirent/opendir.c: Include <fcntl.h>.
4017
4018         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4019         (__libc_getspecific): Likewise.
4020         (__libc_key_create): Likewise.
4021
4022         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4023         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4024         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4025         (tmpfile64): Define as alias.
4026         * sysdeps/wordsize-64/tmpfile.c: File removed.
4027         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4028         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4029         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4030
4031         * stdio-common/vfscanf.c: Include <stdbool.h>.
4032         * nss/makedb.c: Likewise.
4033         * stdio-common/_i18n_number.h: Likewise.
4034         * argp/argp-help.c: Likewise.
4035         * posix/wordexp.c: Likewise.
4036         * sysdeps/posix/spawni.c: Likewise.
4037         * nss/nss_files/files-initgroups.c: Likewise.
4038         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4039         * nss/nss_files/files-initgroups.c: Likewise.
4040         * nss/nss_db/db-netgrp.c: Likewise.
4041         * nss/nss_db/db-initgroups.c: Likewise.
4042         * io/fchmodat.c: Include <sys/stat.h>.
4043
4044         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4045         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4046
4047         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4048         [HAVE_MMAP].
4049
4050         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4051         Add multiple inclusion protection.
4052
4053 2012-07-27  David S. Miller  <davem@davemloft.net>
4054
4055         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4056
4057 2012-07-27  Gary Benson  <gbenson@redhat.com>
4058
4059         [BZ #14298]
4060         * elf/rtld.c: Include <stap-probe.h>.
4061         (dl_main): Added static probes "init_start" and "init_complete".
4062         * elf/dl-load.c: Include <stap-probe.h>.
4063         (lose): Take new parameter "nsid".
4064         Added static probe "map_failed".
4065         (_dl_map_object_from_fd): Pass namespace id to lose.
4066         Added static probe "map_start".
4067         (open_verify): Pass namespace id to lose.
4068         * elf/dl-open.c: Include <stap-probe.h>.
4069         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4070         and "reloc_complete".
4071         * elf/dl-close.c: Include <stap-probe.h>.
4072         (_dl_close_worker): Added static probes "unmap_start" and
4073         "unmap_complete".
4074         * elf/rtld-debugger-interface.txt: New file documenting the above.
4075
4076 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4077
4078         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4079         rather than a string variable.
4080         * sunrpc/rpc_main.c (h_output): Likewise.
4081         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4082
4083 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4084
4085         * inet/check_native.c: New file.
4086
4087 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4088
4089         [BZ #13629]
4090         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4091         if larger part has absolute value 1.0.
4092         * math/s_clog10.c (__clog10): Likewise.
4093         * math/s_clog10f.c (__clog10f): Likewise.
4094         * math/s_clog10l.c (__clog10l): Likewise.
4095         * math/s_clogf.c (__clogf): Likewise.
4096         * math/s_clogl.c (__clogl): Likewise.
4097         * math/libm-test.inc (clog_test): Add more tests.
4098         (clog10_test): Likewise.
4099         * sysdeps/i386/fpu/libm-test-ulps: Update.
4100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4101
4102         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4103         (pltexit): Likewise.
4104         (La_regs): Likewise.
4105         (La_retval): Likewise.
4106         (int_retval): Likewise.
4107         Update #error for removed macros to refer only to definitions in
4108         tst-audit.h.
4109         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4110         macro.
4111         (pltexit): Likewise.
4112         (La_regs): Likewise.
4113         (La_retval): Likewise.
4114         (int_retval): Likewise.
4115         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4116         macro.
4117         (pltexit): Likewise.
4118         (La_regs): Likewise.
4119         (La_retval): Likewise.
4120         (int_retval): Likewise.
4121         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4122         macro.
4123         (pltexit): Likewise.
4124         (La_regs): Likewise.
4125         (La_retval): Likewise.
4126         (int_retval): Likewise.
4127         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4128         macro.
4129         (pltexit): Likewise.
4130         (La_regs): Likewise.
4131         (La_retval): Likewise.
4132         (int_retval): Likewise.
4133         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4134         macro.
4135         (pltexit): Likewise.
4136         (La_regs): Likewise.
4137         (La_retval): Likewise.
4138         (int_retval): Likewise.
4139         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4140         macro.
4141         (pltexit): Likewise.
4142         (La_regs): Likewise.
4143         (La_retval): Likewise.
4144         (int_retval): Likewise.
4145         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4146         macro definitions in tst-audit.h.
4147         * sysdeps/i386/tst-audit.h: New file.
4148         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4149         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4150         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4151         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4152         * sysdeps/sh/tst-audit.h: Likewise.
4153         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4154         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4155         * sysdeps/x86_64/tst-audit.h: Likewise.
4156
4157 2012-07-26  Andreas Jaeger  <aj@suse.de>
4158
4159         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4160         ptrace.
4161
4162         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4163         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4164         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4165         PTRACE_O_MASK.
4166         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4167         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4168         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4169
4170         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4171         value.
4172
4173         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4174         _sigsys.
4175         (si_call_addr, si_syscall, si_arch): Define new macro.
4176         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4177         _sigsys.
4178         (si_call_addr, si_syscall, si_arch): Define new marcro.
4179         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4180         _sigsys.
4181         (si_call_addr, si_syscall, si_arch): Define new macro.
4182         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4183         _sigsys.
4184         (si_call_addr, si_syscall, si_arch): Define new macro.
4185
4186 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4187
4188         [BZ #13717]
4189         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4190         Change to 2.4.21 where previously 2.4.1.
4191         * sysdeps/unix/sysv/linux/configure: Regenerated.
4192         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4193         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4194         Linux kernel version.
4195         (__ASSUME_STD_AUXV): Remove.
4196         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4197         kernel version.
4198         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4199         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4200         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4201         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4202         (__ASSUME_NETLINK_SUPPORT): Likewise.
4203         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4204         (__no_netlink_support): Remove conditional definition.
4205         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4206         Remove.
4207         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4208         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4209         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4210         (if_nameindex_ioctl): Remove.
4211         (if_nameindex_netlink): Do not handle __no_netlink_support.
4212         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4213         code.
4214         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4215         Remove conditional code.
4216         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4217         code.
4218         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4219         unconditional.
4220         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4221         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4222         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4223         Remove.
4224         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4225         [!__ASSUME_STD_AUXV]: Remove conditional code.
4226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4227         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4228         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4230         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4231         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4232         code.
4233         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4235         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4236         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4237         conditional code.
4238         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4240         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4241         code.
4242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4243         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4244         conditional code.
4245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4246         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4247         code unconditional.
4248         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4249         conditional code.
4250         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4251         unconditional.
4252         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4253         conditional code.
4254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4255         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4256         unconditional.
4257         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4258         conditional code.
4259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4260         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4261         code unconditional.
4262         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4263         conditional code.
4264         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4265         unconditional.
4266         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4267         conditional code.
4268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4269         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4270         code unconditional.
4271         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4272         conditional code.
4273         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4274         unconditional.
4275         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4276         conditional code.
4277
4278 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4279
4280         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4281         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4282         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4283         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4284         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4285         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4286         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4287         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4288         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4289         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4290         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4291         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4292         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4293         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4294         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4295         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4296         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4297         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4298         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4299         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4300         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4301         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4302         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4303
4304 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4305
4306         * Versions.def: Add GLIBC_2.17.
4307         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4308         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4309         Introduce __libc_secure_getenv.
4310         * stdlib/Versions (2.17): Add secure_getenv
4311         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4312         * stdlib/secure-getenv.c: Rename __secure_getenv to
4313         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4314         symbol __secure_getenv for GLIBC_2.0.
4315         * stdlib/tst-secure-getenv.c: New.
4316         * stdlib/Makefile (tests): Add testcase.
4317         * manual/startup.texi (Environment Access): Document
4318         secure_getenv.
4319         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4320         __libc_secure_getenv.
4321         * inet/ruserpass.c (ruserpass): Likewise.
4322         * malloc/mtrace.c (mtrace): Likewise.
4323         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4324         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4325         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4326         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4327         HAVE_SECURE_GETENV.
4328         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4329         __secure_getenv to __libc_secure_getenv.
4330         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4332         Likewise.
4333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4334         Likewise.
4335         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4336         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4337         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4338         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4339         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4340         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4341         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4342
4343 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4344
4345         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4346         (struct La_i86_retval): Likewise.
4347         (struct La_x86_64_regs): Likewise.
4348         (struct La_x86_64_retval): Likewise.
4349         (struct La_x32_regs): Likewise.
4350         (struct La_x32_retval): Likewise.
4351         (struct La_ppc32_regs): Likewise.
4352         (struct La_ppc32_retval): Likewise.
4353         (struct La_ppc64_regs): Likewise.
4354         (struct La_ppc64_retval): Likewise.
4355         (struct La_sh_regs): Likewise.
4356         (struct La_sh_retval): Likewise.
4357         (struct La_s390_32_regs): Likewise.
4358         (struct La_s390_32_retval): Likewise.
4359         (struct La_s390_64_regs): Likewise.
4360         (struct La_s390_64_retval): Likewise.
4361         (struct La_sparc32_regs): Likewise.
4362         (struct La_sparc32_retval): Likewise.
4363         (struct La_sparc64_regs): Likewise.
4364         (struct La_sparc64_retval): Likewise.
4365         (struct audit_ifaces): Remove architecture-specific pltenter and
4366         pltexit members.
4367         * sysdeps/i386/ldsodefs.h: New file.
4368         * sysdeps/powerpc/ldsodefs.h: Likewise.
4369         * sysdeps/s390/ldsodefs.h: Likewise.
4370         * sysdeps/sh/ldsodefs.h: Likewise.
4371         * sysdeps/sparc/ldsodefs.h: Likewise.
4372         * sysdeps/x86_64/ldsodefs.h: Likewise.
4373
4374 2012-07-25  Marek Polacek  <polacek@redhat.com>
4375
4376         [BZ #6808]
4377         * math/libm-test.inc (yn_test): Add another test.
4378         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4379         to ERANGE when the result is +-Inf.
4380         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4381         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4382         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4383         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4384
4385 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4386
4387         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4388         equal to 0.
4389         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4390         clock_t.
4391         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4392
4393 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4394
4395         * configure.in <sysdeps resolving>: Correct printing
4396         Implies_before.
4397         * configure: Regenerate.
4398
4399 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4400
4401         * math/w_ilogb.c: Include <limits.h>.
4402         * math/w_ilogbl.c: Likewise.
4403
4404 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4405
4406         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4407         va_copy.  Document allowing for unavailable va_copy only as
4408         pre-C99 compatibility.
4409         * manual/string.texi (Copying and Concatenation): Use va_copy
4410         instead of __va_copy in concat example.
4411
4412 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4413
4414         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4415         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4416         it if not null.
4417
4418         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4419         with O_NOLINK passed to __file_name_lookup.
4420
4421         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4422         with O_NOLINK passed to __file_name_lookup.
4423
4424         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4425         negative N or less than NGIDS.
4426
4427         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4428         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4429         enough.  Use memcpy instead of strncpy.
4430
4431 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4432
4433         * elf/Makefile (check-data): Remove.
4434         (localplt.data): New vpath directive.
4435         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4436         instead of $(check-data).
4437         * scripts/data/localplt-generic.data: Move to ...
4438         * sysdeps/generic/localplt.data: ... here.
4439         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4440         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4441         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4443         ... here.
4444         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4446         ... here.
4447         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4448         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4449         ... here.
4450         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4451         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4452         ... here.
4453         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4454         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4455         ... here.
4456         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4457         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4458         ... here.
4459
4460 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4461
4462         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4463         PPC32 and PPC64 files.
4464         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4465         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4466
4467 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4468
4469         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4470         __makecontext_ret to ...
4471         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4472         ... here and call exit if uc_link is NULL.  New file.
4473         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4474         __makecontext_ret.S.
4475         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4476         __makecontext_ret to ...
4477         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4478         ... here and call exit if uc_link is NULL.  New file.
4479         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4480         __makecontext_ret.S.
4481
4482 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4483
4484         * elf/elf.h (R_390_IRELATIVE): New definition.
4485         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4486         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4487         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4488         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4489         (elf_machine_lazy_rel): Likewise.
4490         * sysdeps/s390/dl-irel.h: New file.
4491         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4492         * sysdeps/s390/s390-64/memset.S: New asm code.
4493         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4494         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4495         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4496         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4497         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4498         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4499         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4500         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4501         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4502         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4503         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4504         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4505         * sysdeps/s390/s390-32/memset.S: New asm code.
4506         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4507
4508 2012-07-17  Marek Polacek  <polacek@redhat.com>
4509
4510         [BZ #14349]
4511         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4512         * sysdeps/s390/s390-64/configure.in: Likewise.
4513         * sysdeps/sparc/configure.in: Likewise.
4514         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4515         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4516         * sysdeps/i386/configure.in: Likewise.
4517         * sysdeps/x86_64/configure.in: Likewise.
4518         * sysdeps/sh/configure.in: Likewise.
4519         * sysdeps/s390/s390-32/configure: Regenerated.
4520         * sysdeps/s390/s390-64/configure: Likewise.
4521         * sysdeps/x86_64/configure: Likewise.
4522         * sysdeps/sh/configure: Likewise.
4523         * sysdeps/powerpc/powerpc64/configure: Likewise.
4524         * sysdeps/powerpc/powerpc32/configure: Likewise.
4525         * sysdeps/sparc/configure: Likwise.
4526         * sysdeps/i386/configure: Likewise.
4527
4528         * elf/dl-open.c: Comment fixes.
4529
4530 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4531
4532         * Makefile [CXX] (check-data): Remove.
4533         [CXX] (c++-types.data): New vpath directive.
4534         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4535         vpath.  Do not allow for C++ type data being missing.
4536         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4537         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4538         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4539         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4540         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4541         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4542         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4544         ... here.
4545         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4547         ... here.
4548         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4549         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4550         ... here.
4551         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4552         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4553         ... here.
4554         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4555         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4556         ... here.
4557         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4558         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4559         ... here.
4560         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4561         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4562         ... here.
4563         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4564         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4565
4566         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4567         definitions to architecture-specific files.
4568         (TLS_IE): Likewise.
4569         (TLS_LD): Likewise.
4570         (TLS_GD): Likewise.
4571         * sysdeps/i386/tls-macros.h: New file.
4572         * sysdeps/powerpc/tls-macros.h: Likewise.
4573         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4574         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4575         * sysdeps/sh/tls-macros.h: Likewise.
4576         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4577         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4578         * sysdeps/x86_64/tls-macros.h: Likewise.
4579
4580 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4581
4582         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4583         zero value for regular exit case.
4584
4585         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4586         (__start_context): Preserve zero value for regular exit case.
4587
4588 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4589             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4590
4591         * manual/setjmp.texi (setcontext): Clarify normal process
4592         termination when uc_link is the null pointer.
4593         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4594         exit call.
4595
4596 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4597
4598         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4599         preprocessor.  Test for each exception mask separately.
4600
4601 2012-07-16  Andreas Jaeger  <aj@suse.de>
4602
4603         * po/ru.po: Update from translation team.
4604
4605 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4606
4607         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4608         equal to 0.
4609         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4610         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4611         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4612         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4613         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4614
4615 2012-07-13  Andreas Jaeger  <aj@suse.de>
4616
4617         * po/fr.po: Update from translation team.
4618
4619 2012-07-12  Marek Polacek  <polacek@redhat.com>
4620
4621         [BZ #14173]
4622         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4623         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4624         loop condition.
4625
4626 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4627
4628         [BZ #13717]
4629         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4630         Change to 2.4.1 where previously 2.4.0.
4631         * sysdeps/unix/sysv/linux/configure: Regenerated.
4632         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4633         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4634         version.
4635         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4636         (__ASSUME_AT_CLKTCK): Remove.
4637         (__ASSUME_AT_PAGESIZE): Likewise.
4638         (__ASSUME_AT_XID): Likewise.
4639         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4640         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4641         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4642         unconditionally.
4643         (HAVE_AUX_PAGESIZE): Likewise.
4644         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4645         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4646         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4647
4648 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4649
4650         [BZ #14307]
4651         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4652         the temporary buffer used to invoke __gethostbyname2_r,
4653         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4654         host_data / struct gaih_addrtuple.
4655         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4656         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4657         header file nss/nsswitch.h.
4658         * nss/nsswitch.h (global scope): Add definition of implementation
4659         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4660         resolv/nss_dns/dns-host.c).
4661
4662 2012-07-11  Andreas Jaeger  <aj@suse.de>
4663
4664         * po/fr.po: Update from translation team.
4665
4666         * po/sv.po: Update from translation team
4667         * po/fr.po: Another update from translation team.
4668
4669 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4670
4671         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4672         for subnormals or multiply small sinh result by itself.
4673         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4674         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4675
4676 2012-07-11  David S. Miller  <davem@davemloft.net>
4677
4678         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4679
4680 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4681
4682         [BZ #14347]
4683         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4684         (INTERNAL_MARK): Shift it here.
4685
4686 2012-07-10  Marek Polacek  <polacek@redhat.com>
4687
4688         [BZ #14151]
4689         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4690         libc_cv_asm_global_directive with .globl.
4691         * configure: Regenerated.
4692         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4693         with .globl.
4694         * sysdeps/i386/configure: Regenerated.
4695         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4696         with .globl.
4697         * sysdeps/x86_64/configure: Regenerated.
4698         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4699         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4700         * elf/tst-unique2mod2.c: Likewise.
4701         * elf/tst-unique2mod1.c: Likewise.
4702         * elf/tst-unique1mod2.c: Likewise.
4703         * elf/tst-unique1mod1.c: Likewise.
4704         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4705         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4706         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4707         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4708         * sysdeps/mach/sysdep.h: Likewise.
4709         * sysdeps/i386/sysdep.h: Likewise.
4710         * sysdeps/i386/i386-mcount.S: Likewise.
4711         * sysdeps/x86_64/_mcount.S: Likewise.
4712         * sysdeps/x86_64/sysdep.h: Likewise.
4713         * sysdeps/sh/_mcount.S: Likewise.
4714         * sysdeps/sh/sysdep.h: Likewise.
4715         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4716         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4717         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4718         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4719         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4720         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4721         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4722         * locale/localeinfo.h: Likewise.
4723         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4724         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4725
4726 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4727
4728         [BZ #14336]
4729         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4730         system".
4731         * manual/message.texi (The Uniforum approach): Likewise.
4732         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4733         (glibc iconv Implementation): Likewise.
4734
4735 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4736
4737         [BZ #14337]
4738         * math/s_clog.c (__clog): Avoid scaling a value down where that
4739         could result in underflow.
4740         * math/s_clog10.c (__clog10): Likewise.
4741         * math/s_clog10f.c (__clog10f): Likewise.
4742         * math/s_clog10l.c (__clog10l): Likewise.
4743         * math/s_clogf.c (__clogf): Likewise.
4744         * math/s_clogl.c (__clogl): Likewise.
4745         * math/libm-test.inc (clog_test): Add more tests.
4746         (clog10_test): Likewise.
4747         * sysdeps/i386/fpu/libm-test-ulps: Update.
4748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4749
4750 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4751
4752         [BZ #14283]
4753         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4754         by 7 not 8 to examine high bit of fractional part.
4755
4756         [BZ #14042]
4757         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4758         for call to __mcount_internal.
4759         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4760         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4761         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4762
4763 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4764
4765         [BZ #14154]
4766         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4767         approximation for values within 0x1p-13f of an odd multiple of
4768         pi/4.
4769         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4770         exception.  Add more tests.
4771         * sysdeps/i386/fpu/libm-test-ulps: Update.
4772
4773         [BZ #6778]
4774         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4775         inputs and return -1 for them.  Do not check for +Inf in case not
4776         reachable for +Inf.
4777         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4778         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4779         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4780         and return -1 for them.  Do not check for +Inf in case not
4781         reachable for +Inf.
4782         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4783         define.
4784         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4785         and return -1 for them.  Do not check for +Inf in case not
4786         reachable for +Inf.
4787         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4788         spurious underflow.
4789         * sysdeps/i386/fpu/libm-test-ulps: Update.
4790         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4791
4792 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4793
4794         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4795
4796 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4797
4798         [BZ #14157]
4799         [BZ #14331]
4800         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4801         could result in spurious underflow.  Scale down values above
4802         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4803         * math/s_csqrtf.c (__csqrtf): Likewise.
4804         * math/s_csqrtl.c (__csqrtl): Likewise.
4805         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4806         spurious underflow.
4807         * sysdeps/i386/fpu/libm-test-ulps: Update.
4808         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4809
4810 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4811
4812         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4813         xopen-msg.sed.
4814         * catgets/xopen-msg.awk: New file.
4815         * catgets/xopen-msg.sed: Removed.
4816
4817         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4818         po2text.sed.
4819         * intl/po2test.awk: New file.
4820         * intl/po2test.sed: Removed.
4821
4822 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4823
4824         [BZ #14328]
4825         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4826         or multiply small sinh result by itself.
4827         * math/s_ctanf.c (__ctanf): Likewise.
4828         * math/s_ctanh.c (__ctanh): Likewise.
4829         * math/s_ctanhf.c (__ctanhf): Likewise.
4830         * math/s_ctanhl.c (__ctanhl): Likewise.
4831         * math/s_ctanl.c (__ctanl): Likewise.
4832         * math/libm-test.inc (ctan_test_tonearest): New function.
4833         (ctan_test_towardzero): Likewise.
4834         (ctan_test_downward): Likewise.
4835         (ctan_test_upward): Likewise.
4836         (ctanh_test_tonearest): Likewise.
4837         (ctanh_test_towardzero): Likewise.
4838         (ctanh_test_downward): Likewise.
4839         (ctanh_test_upward): Likewise.
4840         (main): Call these new functions.
4841         * sysdeps/i386/fpu/libm-test-ulps: Update.
4842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4843
4844 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4845
4846         * .gitignore: Delete /ports entry.
4847
4848 2012-07-03  Andreas Jaeger  <aj@suse.de>
4849
4850         * po/bg.po: Update from translation team.
4851         * po/cs.po: Likewise.
4852         * po/de.po: Likewise.
4853         * po/hr.po: Likewise.
4854         * po/nl.pl: Likewise.
4855         * po/pl.po: Likewise.
4856         * po/vi.po: Likewise.
4857
4858 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4859
4860         * Makeconfig [!+link] (+link-before-libc): New variable.
4861         [!+link] (+link-after-libc): Likewise.
4862         [!+link] (+link-tests): Likewise.
4863         [!+link] (+link): Define in terms of $(+link-before-libc) and
4864         $(+link-after-libc).
4865         [!+link-static] (+link-static-before-libc): New variable.
4866         [!+link-static] (+link-static-after-libc): Likewise.
4867         [!+link-static] (+link-static-tests): Likewise.
4868         [!+link-static] (+link-static): Define in terms of
4869         $(+link-static-before-libc) and $(+link-static-after-libc).
4870         [build-shared] (link-libc-before-gnulib): New variable.
4871         [build-shared] (link-libc-tests): Likewise.
4872         [build-shared] (link-libc): Define in terms of
4873         $(link-libc-before-gnulib).
4874         [!build-shared] (link-libc-tests): New variable.
4875         (link-libc-static-tests): New variable.
4876         [!gnulib] (gnulib-arch): New variable.
4877         [!gnulib] (gnulib-tests): Likewise.
4878         [!gnulib] (static-gnulib-arch): Likewise.
4879         [!gnulib] (static-gnulib-tests): Likewise.
4880         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4881         Define with "=" instead of ":=".
4882         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4883         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4884         * Rules (binaries-all-notests): New variable.
4885         (binaries-all-tests): Likewise.
4886         (binaries-static-notests): Likewise.
4887         (binaries-static-tests): Likewise.
4888         (binaries-all): Define using $(binaries-all-notests) and
4889         $(binaries-all-tests).
4890         (binaries-static): Define using $(binaries-static-notests) and
4891         $(binaries-static-tests).
4892         (binaries-shared-tests): New variable.
4893         (binaries-shared-notests): Likewise.
4894         (binaries-shared): Remove variable.
4895         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4896         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4897         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4898         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4899         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4900         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4901         * elf/Makefile (sln-modules): New variable.
4902         (extra-objs): Add $(sln-modules:=.o).
4903         (ldconfig-modules): Add static-stubs.
4904         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4905         * elf/static-stubs.c: New file.
4906
4907         [BZ #14283]
4908         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4909         by 7 not 8 to examine high bit of fractional part.  Use volatile
4910         variables when splitting into final array of floats if
4911         __FLT_EVAL_METHOD__ != 0.
4912         * math/libm-test.inc (cos_test): Add another test.
4913         (sin_test): Likewise.
4914         * sysdeps/i386/fpu/libm-test-ulps: Update.
4915
4916         [BZ #14273]
4917         * math/libm-test.inc (cosh_test): Add more tests.
4918
4919         * version.h (RELEASE): Set to "development".
4920         (VERSION): Set to "2.16.90".
4921
4922 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4923
4924         * NEWS: Update copyright. Remove last-updated date.
4925         Mention math library bug fixes and timezone data changes.
4926         * README: Mention GNU/Hurd, x32, and HPPA support status.
4927
4928 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4929
4930         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4931
4932 2012-06-27  Andreas Jaeger  <aj@suse.de>
4933
4934         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4935
4936 2012-06-25  Andreas Jaeger  <aj@suse.de>
4937
4938         * sysdeps/s390/fpu/libm-test-ulps: Update.
4939
4940 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4941             Thomas Schwinge  <thomas@codesourcery.com>
4942
4943         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4944         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4945         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4946         fanotify_mark.
4947
4948 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4949
4950         * sysdeps/mach/start.c: Remove file.
4951         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4952         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4953         * sysdeps/sh/init-first.c: Likewise.
4954
4955         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4956         registers for frame unwinding purposes, add CFI directives.
4957         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4958         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4959         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4960         Likewise.
4961
4962         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4963         __fortify_fail returning.
4964         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4965
4966         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4967         sysdeps/sh/____longjmp_chk.S.
4968         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4969         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4970         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4971         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4972
4973         * sysdeps/sh/abort-instr.h: New file.
4974         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4975         process in case exit returns.
4976
4977         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4978         initialize the GOT register before use.
4979
4980         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4981         calculation of ARGC > 4.
4982
4983         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4984         meaningful names to some local labels.
4985
4986 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4987             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4988
4989         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4990         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4991         (__arch_compare_and_exchange_val_16_acq): Likewise.
4992         (__arch_compare_and_exchange_val_32_acq): Likewise.
4993         (atomic_exchange_and_add): Fix gUSA sequence.
4994         (atomic_add): Likewise.
4995         (atomic_add_negative): Likewise.
4996         (atomic_add_zero): Likewise.
4997         (atomic_bit_test_set): Likewise.
4998
4999 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5000
5001         [BZ #13579]
5002         * include/link.h (struct link_map): Add l_free_initfini.
5003         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5004         l_initfini.
5005         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5006         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5007         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5008         set.
5009
5010 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5011
5012         * configure.in: Use AC_LANG_SOURCE.
5013         * configure: Regenerate.
5014
5015 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5016
5017         * configure.in (libc_cv_localstatedir): New substituted variable.
5018         * configure: Regenerated.
5019         * config.make.in (localstatedir): New variable, substituted from
5020         libc_cv_localstatedir.
5021         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5022         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5023         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5024         * sysdeps/gnu/configure: Regenerated.
5025
5026 2012-06-21  Jeff Law  <law@redhat.com>
5027
5028         [BZ #14277]
5029         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5030         free.  Simplify list management for _LIBC case.
5031
5032 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5033
5034         [BZ #14273]
5035         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5036         Clear sign bit of 64-bit integer value before comparing against
5037         overflow value.
5038
5039         * sysdeps/mach/configure: Regenerated.
5040
5041 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5042
5043         [BZ #14278]
5044         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5045
5046 2012-06-21  Jeff Law  <law@redhat.com>
5047
5048         [BZ #13882]
5049         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5050         uint16_t for elements in the "seen" array to avoid char overflows.
5051         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5052         * elf/dl-open.c (dl_open_worker): Likewise.
5053
5054 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5055
5056         * scripts/list-sources.sh: Scan PORTS for translations.
5057         * po/libc.pot: Regenerated.
5058
5059 2012-06-21  Andreas Jaeger  <aj@suse.de>
5060
5061         [BZ #12194]
5062         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5063         warning.
5064         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5065         * bits/byteswap-16.h (__bswap_16): Likewise.
5066         * bits/byteswap.h (__bswap_constant_16): Likewise.
5067
5068 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5069
5070         [BZ #14117]
5071         * sysdeps/i386/fpu_control.h: Removed.
5072         * sysdeps/x86_64/fpu_control.h: Moved to ...
5073         * sysdeps/x86/fpu_control.h: Here.
5074
5075         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5076         (_FPU_SETCW): Likewise.
5077
5078 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5079
5080         [BZ #14117]
5081         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5082         * sysdeps/x86/fpu/bits/mathinline.h: This.
5083         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5084
5085         [BZ #14050]
5086         [BZ #14117]
5087         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5088         functions if __x86_64__ is defined.
5089
5090 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5091
5092         * string/endian.h: Add !__ASSEMBLER__ condition for including
5093         conversion interfaces.
5094
5095 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5096
5097         [BZ #14241]
5098         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5099         of ABS(x) in calculating zero to negative powers other than odd
5100         integers.
5101         * math/libm-test.inc (pow_test): Add more tests.
5102
5103 2012-06-15  Andreas Jaeger  <aj@suse.de>
5104
5105         * manual/contrib.texi (Contributors): Update entry of Liubov
5106         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5107         Machado Filho.
5108
5109 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5110
5111         * string/string.h: Add __wur to GNU version of strerror_r.
5112
5113 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5114
5115         [BZ #14229]
5116         * string/Makefile (tests): Add tst-strtok_r.
5117         * string/tst-strtok_r.c: New file.
5118         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5119         RAX_LP/RDX_LP on SAVE_PTR.
5120
5121 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5122
5123         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5124
5125 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5126
5127         * libm_test.inc (csqrt_test): Allow more spurious underflow
5128         exceptions.
5129         (j0_test): Likewise.
5130         (j1_test): Likewise.
5131         (y0_test): Likewise.
5132         (y1_test): Likewise.
5133
5134 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5135
5136         * po/Makefile (libc.pot): Use UTF-8 charset.
5137
5138 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5139
5140         [BZ #14210]
5141         Suppress sign-conversion warning from FD_SET.
5142         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5143         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5144         not unsigned long int.
5145         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5146
5147 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5148
5149         [BZ #14050]
5150         [BZ #14117]
5151         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5152         __extern_always_inline instead of __extern_inline.
5153         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5154         (__signbit): Likewise.
5155         (__signbitl): Support C++ namespace.
5156         (lrintf): New inline function.
5157         (lrint): Likewise.
5158         (llrintf): Likewise.
5159         (llrint): Likewise.
5160         (fmaxf): Likewise.
5161         (fmax): Likewise.
5162         (fminf): Likewise.
5163         (fmin): Likewise.
5164         (rint): Likewise.
5165         (rintf): Likewise.
5166         (ceil): Likewise.
5167         (ceilf): Likewise.
5168         (floor): Likewise.
5169         (floorf): Likewise.
5170         (nearbyint): Likewise.
5171         (nearbyintf): Likewise.
5172
5173 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5174
5175         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5176         non-default versions.
5177
5178 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5179
5180         [BZ #14218]
5181         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5182
5183 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5184
5185         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5186         (FE_UPWARD, FE_DOWNWARD): Don't define.
5187         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5188         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5189
5190         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5191         reading it.
5192         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5193         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5194
5195 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5196
5197         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5198         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5199         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5200         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5201
5202 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5203
5204         [BZ #14117]
5205         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5206         * sysdeps/i386/fpu/Implies: New file.
5207         * sysdeps/x86_64/fpu/Implies: Likewise.
5208         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5209         * sysdeps/x86/fpu/bits/fenv.h: This.
5210
5211         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5212         __SSE_MATH__.
5213
5214 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5215
5216         [BZ #14134]
5217         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5218         character 0xffff that matches the last element of the
5219         conversion table.
5220
5221 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5222
5223         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5224         fmodl commit.
5225
5226 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5227
5228         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5229         values higher than 25.6283.
5230
5231 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5232
5233         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5234         subnormal exponent extraction and add some __builtin_expect.
5235         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5236         Fix for subnormal mantissa calculation.
5237
5238 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5239
5240         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5241         cpu2 is -1 and errno is not ENOSYS.
5242
5243 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5244
5245         [BZ #14117]
5246         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5247         * sysdeps/x86/bits/string.h: This.
5248         * sysdeps/x86_64/bits/string.h: Removed.
5249
5250         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5251         if not compiling for x86-64, but compiling for >= i486.
5252
5253         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5254         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5255
5256         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5257         New macro from Linux kernel 3.4.0.
5258         (FP_XSTATE_MAGIC2): Likewise.
5259         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5260         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5261         (struct _fpx_sw_bytes): New struct.
5262         (struct _xsave_hdr): Likewise.
5263         (struct _ymmh_state): Likewise.
5264         (struct _xstate): Likewise.
5265
5266         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5267         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5268         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5269         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5270         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5271         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5272
5273         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5274         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5275         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5276         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5277         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5278         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5279
5280 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5281
5282         [BZ #13743]
5283         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5284         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5285         (sysdep_headers): Include sys/platform/ppc.h.
5286         * sysdeps/powerpc/test-gettimebase.c: Test for
5287         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5288         * manual/Makefile (appendices): Include platform.texi.
5289         * manual/contrib.texi (Contributors): Update @node pointers.
5290         * manual/maint.texi (Maintenance): Likewise.
5291         (Platform): New node.
5292         * manual/platform.texi: New file.  Document the new features.
5293
5294 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5295             Jakub Jelinek  <jakub@redhat.com>
5296
5297         [BZ #14188]
5298         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5299         where __builtin_expect is unavailable.
5300
5301 2012-06-03  David S. Miller  <davem@davemloft.net>
5302
5303         * stdlib/longlong.h: Updated from GCC.
5304
5305 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5306
5307         [BZ #14042]
5308         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5309         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5310         __mcount_internal.
5311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5312         (GLIBC_2.16): Likewise.
5313
5314 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5315
5316         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5317
5318 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5319
5320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5321         (default-abi): New variable.
5322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5323         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5324         variable.
5325         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5326         Likewise.
5327         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5328         Likewise.
5329         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5330         Likewise.
5331
5332         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5333         definition.  Document in comment.
5334
5335 2012-06-01  David S. Miller  <davem@davemloft.net>
5336
5337         * stdlib/longlong.h: Updated from GCC.
5338
5339 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5340
5341         [BZ #14117]
5342         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5343         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5344         sys/debugreg.h sys/io.h here.
5345         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5346         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5347         sys/io.h.
5348         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5349         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5350         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5351         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5352         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5353         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5354
5355         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5356         Define only if __x86_64__ is defined.
5357
5358 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5359
5360         [BZ #14048]
5361         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5362         Use int64_t for variable i.
5363         * math/libm-test.inc (fmod_test): Add more tests.
5364
5365         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5366         z computation is not scheduled after fetestexcept.
5367         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5368         Use math_force_eval instead of asm to ensure calculation scheduled
5369         before exception test.
5370         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5371         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5372
5373 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5374
5375         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5376         computation is not scheduled after fetestexcept.
5377
5378 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5379
5380         [BZ #14117]
5381         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5382         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5383
5384 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5385
5386         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5387         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5388
5389 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5390
5391         [BZ #14117]
5392         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5393         <bits/wordsize.h>.
5394         (__WCHAR_MIN): Support __WORDSIZE == 64.
5395         (__WCHAR_MAX): Likewise.
5396
5397         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5398         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5399
5400         [BZ #14183]
5401         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5402         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5403
5404         [BZ #14117]
5405         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5406         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5407
5408         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5409         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5410
5411         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5412         Defined to 1 if __x86_64__ isn't defined.
5413         (_STAT_VER_LINUX_OLD): New.
5414         (st_atime): Remove duplicate.
5415         (st_mtime): Likewise.
5416         (st_ctime): Likewise.
5417
5418 2012-05-31  David S. Miller  <davem@davemloft.net>
5419
5420         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5421         entries.
5422
5423 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5424
5425         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5426         gen-libm-test.pl.
5427
5428         [BZ #14132]
5429         * elf/dl-reloc.c: Include <_itoa.h>.
5430         (_dl_reloc_bad_type): Remove use of INTUSE.
5431         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5432         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5433         * stdio-common/psiginfo.c (psiginfo): Likewise.
5434         * stdio-common/psignal.c (psignal): Likewise.
5435         * string/strsignal.c (strsignal): Likewise.
5436         * include/signal.h (_sys_siglist): Declare hidden proto.
5437         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5438         INTVARDEF with libc_hidden_data_def.
5439         * stdio-common/itoa-udigits.c: Likewise.
5440         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5441         (_itoa_lower_digits_internal): Remove declaration.
5442         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5443         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5444         (_sys_sigabbrev_internal): Remove aliases.
5445         (_sys_siglist): Define hidden alias.
5446
5447 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5448
5449         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5450         bits/sysctl.h.
5451
5452 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5453
5454         [BZ #14117]
5455         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5456         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5457
5458         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5459         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5460         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5461         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5462         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5463         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5464
5465         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5466         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5467         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5468
5469         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5470         with __addr.
5471         (insw): Likewise.
5472         (insl): Likewise.
5473         (outsb): Likewise.
5474         (outsw): Likewise.
5475         (outsl): Likewise.
5476
5477         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5478         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5479         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5480
5481         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5482         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5483         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5484         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5485         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5486         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5487
5488         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5489         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5490
5491         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5492         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5493
5494         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5495         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5496         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5497
5498         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5499         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5500         to ...
5501         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5502
5503         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5504         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5505         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5506
5507         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5508         for x86-64.
5509         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5510
5511 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5512
5513         * math/math.h (M_El): Use two more decimal places.
5514         (M_LOG2El): Likewise.
5515         (M_LOG10El): Likewise.
5516         (M_LN2l): Likewise.
5517         (M_LN10l): Likewise.
5518         (M_PIl): Likewise.
5519         (M_PI_2l): Likewise.
5520         (M_PI_4l): Likewise.
5521         (M_1_PIl): Likewise.
5522         (M_2_PIl): Likewise.
5523         (M_2_SQRTPIl): Likewise.
5524         (M_SQRT2l): Likewise.
5525         (M_SQRT1_2l): Likewise.
5526
5527 2012-05-31  David S. Miller  <davem@davemloft.net>
5528
5529         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5530         values between float registers.
5531         * sysdeps/sparc/sparc64/memset.S: Likewise.
5532         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5533
5534 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5535
5536         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5537         -D_FORTIFY_SOURCE=1.
5538         (CPPFLAGS-tst-longjmp_chk.c): Define.
5539         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5540         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5541         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5542         CFLAGS-tst-wchar-h.c.
5543
5544 2012-05-31  Marek Polacek  <polacek@redhat.com>
5545
5546         [BZ #14132]
5547         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5548         __endmntent_internal): Remove declaration.
5549         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5550         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5551         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5552
5553 2012-05-30  David S. Miller  <davem@davemloft.net>
5554
5555         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5556         (___Q_simulate_exceptions): Use real FP ops rather than writing
5557         into the %fsr.
5558         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5559         Likewise.
5560
5561 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5562
5563         [BZ #14117]
5564         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5565         * sysdeps/x86/bits/xtitypes.h: This.
5566
5567         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5568         * sysdeps/x86/bits/wordsize.h: This.
5569
5570         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5571         * sysdeps/x86/bits/huge_vall.h: This.
5572
5573         * sysdeps/i386/bits/select.h: Removed.
5574         * sysdeps/x86_64/bits/select.h: Renamed to ...
5575         * sysdeps/x86/bits/select.h: This.
5576
5577         * sysdeps/i386/bits/setjmp.h: Removed.
5578         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5579         * sysdeps/x86/bits/setjmp.h: This.
5580
5581         * sysdeps/i386/bits/mathdef.h: Removed.
5582         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5583         * sysdeps/x86/bits/mathdef.h: This.
5584
5585 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5586
5587         [BZ #14132]
5588         * include/sys/socket.h (__connect_internal)
5589         (__libc_sa_len_internal): Remove declaration.
5590         (__connect, __libc_sa_len): Declare hidden_proto.
5591         (SA_LEN): Remove use of INTUSE.
5592         * socket/connect.c: Add libc_hidden_def.
5593         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5594         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5595         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5596         alias.
5597         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5598         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5599         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5600         of adding _internal alias.
5601
5602 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5603
5604         [BZ #14117]
5605         * sysdeps/i386/bits/link.h: Removed.
5606         * sysdeps/i386/bits/linkmap.h: Likewise.
5607         * sysdeps/x86_64/bits/link.h: Renamed to ...
5608         * sysdeps/x86/bits/link.h: This.
5609         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5610         * sysdeps/x86/bits/linkmap.h: This.
5611
5612         * sysdeps/i386/bits/endian.h: Removed.
5613         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5614         * sysdeps/x86/bits/endian.h: This.
5615
5616         * sysdeps/i386/bits/byteswap.h: Removed.
5617         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5618         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5619         * sysdeps/x86/bits/byteswap.h: This.
5620         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5621         * sysdeps/x86/bits/byteswap-16.h: This.
5622         * sysdeps/i386/Implies: Add x86.
5623         * sysdeps/x86_64/Implies: Likewise.
5624
5625 2012-05-30  David S. Miller  <davem@davemloft.net>
5626
5627         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5628         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5629         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5630         (FP_TRAPPING_EXCEPTIONS): Define.
5631         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5632         (FP_TRAPPING_EXCEPTIONS): Define.
5633         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5634         subnormals only when inexact has been signalled or underflow
5635         exceptions are enabled.
5636         (_FP_PACK_CANONICAL): Likewise.
5637
5638 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5639
5640         [BZ #14183]
5641         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5642         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5643
5644 2012-05-30  Richard Henderson  <rth@twiddle.net>
5645
5646         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5647         with #ifndef NOT_IN_libc.
5648
5649         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5650         marked to avoid plt entry.
5651
5652 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5653
5654         [BZ #14112]
5655         * Makeconfig (default-abi): New macro.
5656         (abi-includes): Likewise.
5657         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5658         $(abi-$(default-abi)-lib-soname) for soname if defined.
5659         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5660         abi-variants.
5661         * Makefile (installed-stubs): Likewise.
5662         * include/stubs-biarch.h: Removed.
5663         * scripts/lib-names.awk: Only handle one library at a time.
5664         * scripts/soversions.awk: Remove WORDSIZE support.
5665         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5666         entries.
5667         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5668         Removed.
5669         (syscall-list-default-condition): Likewise.
5670         (syscall-list-default-condition): Likewise.
5671         (syscall-list-includes): Likewise.
5672         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5673         syscall-list-* with abi-*.  Handle undefined abi-variants.
5674         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5675         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5676         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5677         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5678         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5679         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5680         Removed.
5681         (syscall-list-32-options): Likewise.
5682         (syscall-list-32-condition): Likewise.
5683         (syscall-list-64-options): Likewise.
5684         (syscall-list-64-condition): Likewise.
5685         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5686         macro.
5687         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5688         Renamed to ...
5689         (abi-*): This.
5690         (abi-64-ld-soname): New macro.
5691         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5692         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5693         Renamed to ...
5694         (abi-*): This.
5695         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5696         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5697
5698 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5699
5700         * sysdeps/unix/sysv/linux/kernel-features.h
5701         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5702         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5703         include <kernel-features.h>.
5704         [!__NR_ftruncate64]: Remove conditional code.
5705         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5706         [__NR_ftruncate64]: Make code unconditional.
5707         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5708         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5709         include <kernel-features.h>.
5710         [!__NR_ftruncate64]: Remove conditional code.
5711         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5712         [__NR_ftruncate64]: Make code unconditional.
5713         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5715         include <kernel-features.h>.
5716         [!__NR_ftruncate64]: Remove conditional code.
5717         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5718         [__NR_ftruncate64]: Make code unconditional.
5719         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5721         include <kernel-features.h>.
5722         [!__NR_ftruncate64]: Remove conditional code.
5723         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5724         [__NR_ftruncate64]: Make code unconditional.
5725         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5726
5727         * configure.in (libc_cv_fpie): Weaken to a compile test using
5728         LIBC_TRY_CC_OPTION.
5729         * configure: Regenerated.
5730
5731 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5732
5733         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5734         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5735         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5736         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5737         Refreshed.
5738         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5739         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5740         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5741         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5742         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5743         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5744         Refreshed.
5745
5746 2012-05-27  David S. Miller  <davem@davemloft.net>
5747
5748         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5749         (___Q_zero): New.
5750         (__Q_simulate_exceptions): Return void.  Change to simulate
5751         exceptions by writing into the %fsr.
5752         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5753         (__Qp_handle_exceptions): Likewise.
5754         (numbers): Delete.
5755         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5756         __Qp_handle_exceptions.
5757         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5758         __Qp_handle_exceptions.
5759         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5760         as unused and give dummy FP_RND_NEAREST initializer.
5761         (FP_INHIBIT_RESULTS): Define.
5762         (___Q_simulate_exceptions): Update declaration.
5763         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5764         formatting.
5765         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5766         as unused and give dummy FP_RND_NEAREST initializer.
5767         (__Qp_handle_exceptions): Update declaration.
5768         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5769         formatting.
5770
5771 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5772
5773         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5774         the temporary FPU control word.
5775         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5776         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5777         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5778         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5779         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5780         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5781         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5782         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5783         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5784         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5785         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5786
5787 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5788
5789         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5790         fields.
5791
5792 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5793
5794         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5795         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5796         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5797         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5798         Likewise.
5799         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5800         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5801         Likewise.
5802
5803 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5804
5805         * po/h.po: Update from translation team.
5806
5807 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5808
5809         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5810
5811         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5812         handling of denormals.
5813         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5814         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5815         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5816         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5817         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5818         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5819         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5820         Likewise.
5821
5822 2012-05-26  Marek Polacek  <polacek@redhat.com>
5823
5824         [BZ #14152]
5825         * math/libm-test.inc (fma_test): Don't always expect underflow
5826         exception.
5827
5828 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5829
5830         [BZ #12416]
5831         * elf/tst-execstack.c: Include stackinfo.h.
5832         (do_test): Adjust test case to ensure that pthread_getattr_np
5833         behaviour remains the same after marking stack executable.
5834
5835 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5836
5837         * sysdeps/unix/sysv/linux/kernel-features.h
5838         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5839         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5840         kernel-features.h.
5841         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5842         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5843         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5844         kernel-features.h.
5845         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5846         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5847
5848 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5849
5850         * configure.in: Define the default includes to being none.
5851         * configure: Regenerated.
5852
5853 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5854
5855         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5856         * sysdeps/x86_64/setjmp.S: Likewise.
5857         * sysdeps/i386/bsd-setjmp.S: Likewise.
5858         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5859         * sysdeps/i386/setjmp.S: Likewise.
5860         * sysdeps/i386/__longjmp.S: Likewise.
5861         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5862         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5863
5864         * include/stap-probe.h: New file.
5865         * configure.in: Handle --enable-systemtap.
5866         * configure: Regenerated.
5867         * config.h.in (USE_STAP_PROBE): New #undef.
5868         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5869         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5870         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5871
5872 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5873
5874         [BZ #13717]
5875         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5876         to 2.4.0 where earlier.
5877         * sysdeps/unix/sysv/linux/configure: Regenerated.
5878         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5879         <kernel-features.h>.
5880         [__ASSUME_32BITUIDS]: Make code unconditional.
5881         [!__ASSUME_32BITUIDS]: Remove conditional code.
5882         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5883         <kernel-features.h>.
5884         [__ASSUME_32BITUIDS]: Make code unconditional.
5885         [!__ASSUME_32BITUIDS]: Remove conditional code.
5886         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5887         [__ASSUME_32BITUIDS]: Make code unconditional.
5888         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5889         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5890         <kernel-features.h>.
5891         [__ASSUME_32BITUIDS]: Make code unconditional.
5892         [!__ASSUME_32BITUIDS]: Remove conditional code.
5893         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5894         <kernel-features.h>.
5895         [__ASSUME_32BITUIDS]: Make code unconditional.
5896         [!__ASSUME_32BITUIDS]: Remove conditional code.
5897         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5898         <kernel-features.h>.
5899         [__ASSUME_32BITUIDS]: Make code unconditional.
5900         [!__ASSUME_32BITUIDS]: Remove conditional code.
5901         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5902         <kernel-features.h>.
5903         [__ASSUME_32BITUIDS]: Make code unconditional.
5904         [!__ASSUME_32BITUIDS]: Remove conditional code.
5905         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5906         <kernel-features.h>.
5907         [__ASSUME_32BITUIDS]: Make code unconditional.
5908         [!__ASSUME_32BITUIDS]: Remove conditional code.
5909         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5910         <kernel-features.h>.
5911         [__ASSUME_32BITUIDS]: Make code unconditional.
5912         [!__ASSUME_32BITUIDS]: Remove conditional code.
5913         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5914         <kernel-features.h>.
5915         [__ASSUME_32BITUIDS]: Make code unconditional.
5916         [!__ASSUME_32BITUIDS]: Remove conditional code.
5917         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5918         <kernel-features.h>.
5919         [__ASSUME_32BITUIDS]: Make code unconditional.
5920         [!__ASSUME_32BITUIDS]: Remove conditional code.
5921         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5922         <kernel-features.h>.
5923         [__ASSUME_32BITUIDS]: Make code unconditional.
5924         [!__ASSUME_32BITUIDS]: Remove conditional code.
5925         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5926         <kernel-features.h>.
5927         [__ASSUME_32BITUIDS]: Make code unconditional.
5928         [!__ASSUME_32BITUIDS]: Remove conditional code.
5929         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5930         <kernel-features.h>.
5931         [__NR_setresgid] (__setresgid): Do not declare.
5932         [__ASSUME_32BITUIDS]: Make code unconditional.
5933         [!__ASSUME_32BITUIDS]: Remove conditional code.
5934         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5935         <kernel-features.h>.
5936         [__NR_setresuid] (__setresuid): Do not declare.
5937         [__ASSUME_32BITUIDS]: Make code unconditional.
5938         [!__ASSUME_32BITUIDS]: Remove conditional code.
5939         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5940         <kernel-features.h>.
5941         [__ASSUME_32BITUIDS]: Make code unconditional.
5942         [!__ASSUME_32BITUIDS]: Remove conditional code.
5943         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5944         <kernel-features.h>.
5945         [__ASSUME_32BITUIDS]: Make code unconditional.
5946         [!__ASSUME_32BITUIDS]: Remove conditional code.
5947         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5948         <kernel-features.h>.
5949         [__ASSUME_32BITUIDS]: Make code unconditional.
5950         [!__ASSUME_32BITUIDS]: Remove conditional code.
5951         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5952         <kernel-features.h>.
5953         [__ASSUME_32BITUIDS]: Make code unconditional.
5954         [!__ASSUME_32BITUIDS]: Remove conditional code.
5955         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5956         <kernel-features.h>.
5957         [__ASSUME_32BITUIDS]: Make code unconditional.
5958         [!__ASSUME_32BITUIDS]: Remove conditional code.
5959         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5960         <kernel-features.h>.
5961         [__ASSUME_32BITUIDS]: Make code unconditional.
5962         [!__ASSUME_32BITUIDS]: Remove conditional code.
5963         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5964         <kernel-features.h>.
5965         [__ASSUME_32BITUIDS]: Make code unconditional.
5966         [!__ASSUME_32BITUIDS]: Remove conditional code.
5967         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5968         <kernel-features.h>.
5969         [__ASSUME_32BITUIDS]: Make code unconditional.
5970         [!__ASSUME_32BITUIDS]: Remove conditional code.
5971         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5972         <kernel-features.h>.
5973         [__ASSUME_32BITUIDS]: Make code unconditional.
5974         [!__ASSUME_32BITUIDS]: Remove conditional code.
5975         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5976         <kernel-features.h>.
5977         [__ASSUME_32BITUIDS]: Make code unconditional.
5978         [!__ASSUME_32BITUIDS]: Remove conditional code.
5979         * sysdeps/unix/sysv/linux/kernel-features.h
5980         (__ASSUME_SETRESUID_SYSCALL): Remove.
5981         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5982         (__ASSUME_32BITUIDS): Likewise.
5983         (__ASSUME_LDT_WORKS): Likewise.
5984         (__ASSUME_O_DIRECTORY): Likewise.
5985         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5986         architecture but not kernel version.
5987         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5988         (__ASSUME_MMAP2_SYSCALL): Likewise.
5989         (__ASSUME_STAT64_SYSCALL): Likewise.
5990         (__ASSUME_IPC64): Likewise.
5991         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5992         <kernel-features.h>.
5993         [__ASSUME_32BITUIDS]: Make code unconditional.
5994         [!__ASSUME_32BITUIDS]: Remove conditional code.
5995         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5996         <kernel-features.h>.
5997         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5998         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5999         132096]: Remove conditional code.
6000         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6001         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6002         <kernel-features.h>.
6003         [__ASSUME_32BITUIDS]: Make code unconditional.
6004         [!__ASSUME_32BITUIDS]: Remove conditional code.
6005         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6006         <kernel-features.h>.
6007         [__ASSUME_32BITUIDS]: Make code unconditional.
6008         [!__ASSUME_32BITUIDS]: Remove conditional code.
6009         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6010         <kernel-features.h>.
6011         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6012         unconditional.
6013         (__setresgid): Do not declare.
6014         [__ASSUME_32BITUIDS]: Make code unconditional.
6015         [!__ASSUME_32BITUIDS]: Remove conditional code.
6016         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6017         <kernel-features.h>.
6018         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6019         unconditional.
6020         (__setresuid): Do not declare.
6021         [__ASSUME_32BITUIDS]: Make code unconditional.
6022         [!__ASSUME_32BITUIDS]: Remove conditional code.
6023         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6024         <kernel-features.h>.
6025         [__ASSUME_32BITUIDS]: Make code unconditional.
6026         [!__ASSUME_32BITUIDS]: Remove conditional code.
6027         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6028         <kernel-features.h>.
6029         [__ASSUME_32BITUIDS]: Make code unconditional.
6030         [!__ASSUME_32BITUIDS]: Remove conditional code.
6031
6032 2012-05-25  Richard Henderson  <rth@twiddle.net>
6033
6034         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6035         dl_hwcap to ifunc resolver.
6036         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6037         elf_ifunc_invoke.
6038         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6039         dl_hwcap to ifunc resolver.
6040         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6041
6042 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6043
6044         [BZ #14153]
6045         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6046         for |x| <= 2**-26, not 2**-57.
6047         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6048         exception.
6049
6050 2012-05-24  Jeff Law  <law@redhat.com>
6051
6052         * stdio-common/Makefile (tests): Add bug25.
6053         * stdio-common/bug25.c: New test.
6054
6055 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6056
6057         [BZ #13576]
6058         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6059         multiple of MALLOC_ALIGNMENT in size.
6060         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6061
6062 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6063
6064         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6065         Require >= 256.
6066         (FILENAME_MAX): Use macro-int-constant.
6067         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6068         (_IOFBF): Use macro-int-constant.
6069         (_IOLBF): Likewise.
6070         (_IONBF): Likewise.
6071         (SEEK_CUR): Likewise.
6072         (SEEK_END): Likewise.
6073         (SEEK_SET): Likewise.
6074         (TMP_MAX): Likewise.
6075         (EOF): Use macro-int-constant.  Require < 0.
6076         (NULL): Use macro-constant.  Require == 0.
6077         (stdin): Require type to be FILE *.
6078         (stdout): Likewise.
6079         (stderr): Likewise.
6080         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6081         macro-int-constant.
6082         (EXIT_SUCCESS): Likewise.
6083         (NULL): Use macro-constant.  Require == 0.
6084         (RAND_MAX): Use macro-int-constant.
6085         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6086         [C99-based standards] (strtof): Require function.
6087         [C99-based standards] (strtold): Likewise.
6088         [C99-based standards] (strtoll): Likewise.
6089         [C99-based standards] (strtoull): Likewise.
6090         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6091         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6092         [ISO || ISO99 || ISO11] (math.h): Likewise.
6093         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6094         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6095         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6096
6097 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6098
6099         [BZ #14132]
6100         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6101         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6102         * intl/dgettext.c (DCGETTEXT): Likewise.
6103         * intl/gettext.c (DCGETTEXT): Likewise.
6104         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6105         * posix/regex_internal.h (gettext): Likewise.
6106         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6107         Remove declaration.
6108         * include/argz.h (__argz_count_internal)
6109         (__argz_stringify_internal): Remove declaration.
6110         (__argz_count, __argz_stringify): Declare hidden proto.
6111         * intl/dcgettext.c: Remove use of INTDEF.
6112         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6113         * string/argz-stringify.c: Likewise.
6114         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6115         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6116         Declare hidden proto.
6117         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6118         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6119         Declare hidden proto.
6120         * include/stdio.h (__asprintf_internal): Don't declare.
6121         (__asprintf): Don't define as macro.  Declare hidden proto.
6122         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6123         (__fsetlocking): Declare hidden proto.
6124         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6125         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6126         hidden proto.
6127         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6128         (_IO_setlinebuf): Remove use of INTUSE.
6129         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6130         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6131         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6132         Remove declaration.
6133         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6134         (_IO_do_flush): Remove use of INTUSE.
6135         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6136         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6137         (_IO_adjust_column, _IO_least_wmarker)
6138         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6139         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6140         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6141         (_IO_default_doallocate, _IO_wdefault_doallocate)
6142         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6143         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6144         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6145         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6146         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6147         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6148         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6149         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6150         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6151         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6152         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6153         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6154         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6155         proto.
6156         (_IO_flush_all_internal, _IO_adjust_column_internal)
6157         (_IO_default_uflow_internal, _IO_default_finish_internal)
6158         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6159         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6160         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6161         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6162         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6163         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6164         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6165         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6166         (_IO_file_close_internal, _IO_file_close_it_internal)
6167         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6168         (_IO_file_init_internal, _IO_file_attach_internal)
6169         (_IO_file_fopen_internal, _IO_file_read_internal)
6170         (_IO_file_sync_internal, _IO_file_seek_internal)
6171         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6172         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6173         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6174         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6175         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6176         (_IO_list_all_internal, _IO_link_in_internal)
6177         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6178         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6179         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6180         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6181         (_IO_do_write_internal, _IO_padn_internal)
6182         (_IO_getline_info_internal, _IO_getline_internal)
6183         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6184         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6185         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6186         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6187         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6188         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6189         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6190         with libc_hidden_ver, remove use of INTUSE.
6191         * libio/genops.c: Likewise.
6192         * libio/freopen.c: Likewise.
6193         * libio/freopen64.c: Likewise.
6194         * libio/iofclose.c: Likewise.
6195         * libio/iofdopen.c: Likewise.
6196         * libio/iofflush.c: Likewise.
6197         * libio/iofflush_u.c: Likewise.
6198         * libio/iofgets.c: Likewise.
6199         * libio/iofgets_u.c: Likewise.
6200         * libio/iofopen.c: Likewise.
6201         * libio/iofopncook.c: Likewise.
6202         * libio/iofread.c: Likewise.
6203         * libio/iofread_u.c: Likewise.
6204         * libio/ioftell.c: Likewise.
6205         * libio/iofwrite.c: Likewise.
6206         * libio/iogetline.c: Likewise.
6207         * libio/iogets.c: Likewise.
6208         * libio/iogetwline.c: Likewise.
6209         * libio/iopadn.c: Likewise.
6210         * libio/iopopen.c: Likewise.
6211         * libio/ioseekoff.c: Likewise.
6212         * libio/ioseekpos.c: Likewise.
6213         * libio/iosetbuffer.c: Likewise.
6214         * libio/iosetvbuf.c: Likewise.
6215         * libio/ioungetc.c: Likewise.
6216         * libio/ioungetwc.c: Likewise.
6217         * libio/iovdprintf.c: Likewise.
6218         * libio/iovsprintf.c: Likewise.
6219         * libio/iovsscanf.c: Likewise.
6220         * libio/memstream.c: Likewise.
6221         * libio/obprintf.c: Likewise.
6222         * libio/oldfileops.c: Likewise.
6223         * libio/oldiofclose.c: Likewise.
6224         * libio/oldiofdopen.c: Likewise.
6225         * libio/oldiofopen.c: Likewise.
6226         * libio/oldiopopen.c: Likewise.
6227         * libio/oldstdfiles.c: Likewise.
6228         * libio/putc.c: Likewise.
6229         * libio/setbuf.c: Likewise.
6230         * libio/setlinebuf.c: Likewise.
6231         * libio/stdfiles.c: Likewise.
6232         * libio/strops.c: Likewise.
6233         * libio/vasprintf.c: Likewise.
6234         * libio/vscanf.c: Likewise.
6235         * libio/vsnprintf.c: Likewise.
6236         * libio/vswprintf.c: Likewise.
6237         * libio/wfiledoalloc.c: Likewise.
6238         * libio/wfileops.c: Likewise.
6239         * libio/wgenops.c: Likewise.
6240         * libio/wmemstream.c: Likewise.
6241         * libio/wstrops.c: Likewise.
6242         * libio/__fpurge.c: Likewise.
6243         * libio/__fsetlocking.c: Likewise.
6244         * assert/assert.c: Likewise.
6245         * debug/fgets_chk.c: Likewise.
6246         * debug/fgets_u_chk.c: Likewise.
6247         * debug/fread_chk.c: Likewise.
6248         * debug/fread_u_chk.c: Likewise.
6249         * debug/gets_chk.c: Likewise.
6250         * debug/obprintf_chk.c: Likewise.
6251         * debug/vasprintf_chk.c: Likewise.
6252         * debug/vdprintf_chk.c: Likewise.
6253         * debug/vsnprintf_chk.c: Likewise.
6254         * debug/vsprintf_chk.c: Likewise.
6255         * malloc/mtrace.c: Likewise.
6256         * misc/error.c: Likewise.
6257         * misc/syslog.c: Likewise.
6258         * stdio-common/asprintf.c: Likewise.
6259         * stdio-common/fxprintf.c: Likewise.
6260         * stdio-common/getw.c: Likewise.
6261         * stdio-common/isoc99_fscanf.c: Likewise.
6262         * stdio-common/isoc99_scanf.c: Likewise.
6263         * stdio-common/isoc99_vfscanf.c: Likewise.
6264         * stdio-common/isoc99_vscanf.c: Likewise.
6265         * stdio-common/isoc99_vsscanf.c: Likewise.
6266         * stdio-common/printf-prs.c: Likewise.
6267         * stdio-common/printf_fp.c: Likewise.
6268         * stdio-common/printf_fphex.c: Likewise.
6269         * stdio-common/printf_size.c: Likewise.
6270         * stdio-common/putw.c: Likewise.
6271         * stdio-common/scanf.c: Likewise.
6272         * stdio-common/sprintf.c: Likewise.
6273         * stdio-common/tmpfile.c: Likewise.
6274         * stdio-common/vfprintf.c: Likewise.
6275         * stdio-common/vfscanf.c: Likewise.
6276         * stdlib/strfmon_l.c: Likewise.
6277         * sunrpc/openchild.c: Likewise.
6278         * sunrpc/xdr_stdio.c: Likewise.
6279         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6280         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6281
6282 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6283
6284         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6285
6286         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6287         in the third column, to generate for the shared library an IFUNC
6288         that uses _dl_vdso_vsym.
6289         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6290         * Makeconfig (object-suffixes-noshared): New variable.
6291
6292         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6293         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6294         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6295         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6296
6297         [BZ #14132]
6298         * include/sys/time.h (__gettimeofday): Remove macro.
6299         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6300         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6301         Remove INTDEF.
6302         (__gettimeofday): Add libc_hidden_def.
6303         (gettimeofday): Add libc_hidden_weak.
6304         * sysdeps/mach/gettimeofday.c: Likewise.
6305         * sysdeps/posix/gettimeofday.c: Likewise.
6306         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6307         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6308         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6309         (__gettimeofday_internal): Remove strong_alias.
6310         (__gettimeofday): Add libc_hidden_def.
6311         (gettimeofday): Add libc_hidden_weak.
6312         * sysdeps/unix/syscalls.list (gettimeofday):
6313         Remove __gettimeofday_internal alias.
6314
6315 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6316             H.J. Lu  <hongjiu.lu@intel.com>
6317
6318         [BZ #12495]
6319         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6320         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6321         (largebin_index_32_big): New.
6322         (largebin_index): Use it for 16-byte alignment.
6323         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6324         correction with front_misalign.
6325
6326 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6327
6328         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6329         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6330         Likewise.
6331         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6332         Likewise.
6333         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6334         Likewise.
6335         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6336         Likewise.
6337         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6338         Likewise.
6339         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6340         Likewise.
6341         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6342         Likewise.
6343         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6344         Likewise.
6345         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6346         Likewise.
6347         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6348         Likewise.
6349         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6350         Likewise.
6351         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6352         Likewise.
6353
6354         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6355         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6356
6357 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6358
6359         [BZ #10846]
6360         [BZ #14036]
6361         * math/libm-test.inc (exp_test): Add test from bug 14036.
6362         (pow_test): Add test from bug 10846.
6363
6364         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6365         and other flags.
6366         (special_function): Do not include flags in test name.
6367         (parse_args): Likewise.
6368         * sysdeps/i386/fpu/libm-test-ulps: Update.
6369         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6370         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6371         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6373
6374         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6375         exceptions.
6376         * math/libm-test.inc ("Philosophy"): Update comment about
6377         exception testing.
6378         (UNDERFLOW_EXCEPTION): New macro.
6379         (UNDERFLOW_EXCEPTION_OK): Likewise.
6380         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6381         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6382         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6383         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6384         (INVALID_EXCEPTION_OK): Update value.
6385         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6386         (OVERFLOW_EXCEPTION_OK): Likewise.
6387         (IGNORE_ZERO_INF_SIGN): Likewise.
6388         (test_exceptions): Handle underflow exceptions.
6389         (acos_test): Update for underflow exception expectations.
6390         (cexp_test): Likewise.
6391         (clog_test): Likewise.
6392         (clog10_test): Likewise.
6393         (csqrt_test): Likewise.
6394         (ctan_test): Likewise.
6395         (ctanh_test): Likewise.
6396         (exp_test): Likewise.
6397         (exp10_test): Likewise.
6398         (exp2_test): Likewise.
6399         (expm1_test): Likewise.
6400         (fma_test): Likewise.
6401         (j0_test): Likewise.
6402         (jn_test): Likewise.
6403         (nexttoward_test): Likewise.
6404         (pow_test): Likewise.
6405         (scalbn_test): Likewise.
6406         (scalbln_test): Likewise.
6407         (tan_test): Likewise.
6408         (y1_test): Likewise.
6409         * sysdeps/i386/fpu/libm-test-ulps: Update.
6410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6411
6412 2012-05-23  David S. Miller  <davem@davemloft.net>
6413
6414         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6415         (__libc_sigaction): Remove unused local variables.
6416
6417 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6418
6419         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6420
6421 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6422
6423         mktime: avoid signed integer overflow
6424         * time/mktime.c (__mktime_internal): Do not mishandle the case
6425         where diff == INT_MIN.
6426
6427         mktime: simplify computation of average
6428         * time/mktime.c (ranged_convert): Use new time_t_avg function
6429         instead of rolling our own (probably-slower) code.
6430
6431         mktime: do not assume signed right shift propagates sign bit
6432         * time/mktime.c (isdst_differ): New static function.
6433         (__mktime_internal): No need to normalize tm_isdst now.
6434         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6435         tm_isdst values.
6436
6437         mktime: merge another wrapv change from gnulib
6438         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6439         from some compilers.
6440
6441         mktime: remove incorrect attempt at unusual arithmetics
6442         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6443         The code didn't really work on such machines anyway.
6444         (TYPE_MINIMUM): Assume two's complement.
6445         (twos_complement_arithmetic): Verify that long_int and time_t
6446         are two's complement (or unsigned, in the latter case).
6447
6448         mktime: check signed shifts on long_int and time_t, too
6449         * time/mktime.c (SHR): Check that shifts work as desired
6450         on the types long_int and time_t too, as SHR is used on
6451         such types.
6452
6453         mktime: do not assume 'long' is wide enough
6454         * time/mktime.c (verify): Move decl up.
6455         (long_int): New type.
6456         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6457         to remove assumption in the code that 'long' is wide enough to
6458         store year values.  This assumption is not true on x32 and on
6459         some non-glibc platforms.
6460
6461         mktime: merge wrapv change from gnulib
6462         * time/mktime.c (WRAPV): New macro.
6463         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6464         (guess_time_tm, __mktime_internal): Do not assume that signed
6465         integer overflow wraps around; modern compilers generate code
6466         where this assumption is no longer valid.
6467
6468 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6469
6470         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6471         Replace "jmp L(pseudo_end)" with "ret".
6472         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6473         Likewise.
6474
6475 2012-05-23  Andreas Jaeger  <aj@suse.de>
6476
6477         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6478         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6479
6480 2012-05-23  Andreas Jaeger  <aj@suse.de>
6481             Maximilian Attems  <max@stro.at>
6482
6483         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6484         New macros.
6485
6486 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6487
6488         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6489         code so that pseudo_end is just ret and the stack pointer is
6490         correct also for static library in error case.
6491
6492 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6493
6494         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6495         move to syscalls.list.
6496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6500
6501         * manual/install.texi (Running make install): Do not mention Linux
6502         kernel version for which pt_chown is not needed.
6503         (Linux): Do not mention problems with nscd with 2.0 kernels.
6504         * INSTALL: Regenerated.
6505
6506 2012-05-23  Andreas Jaeger  <aj@suse.de>
6507
6508         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6509         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6510         macro.
6511         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6512         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6513         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6514         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6515         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6516         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6517         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6518         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6519         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6520         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6521         * sysdeps/unix/sysv/linux/bits/in.h
6522         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6523
6524 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6525
6526         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6527         (PREPARE_VERSION): Just use assert instead, it will be elided
6528         under [NDEBUG] anyway.
6529
6530 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6531
6532         * sysdeps/unix/sysv/linux/Makefile: Include
6533         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6534         (sysdep_routines): Remove sysctl.
6535         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6536         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6537         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6538         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6539         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6540
6541 2012-05-22  Andreas Jaeger  <aj@suse.de>
6542
6543         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6544         that pseudo_end is just ret and the stack pointer is correct also
6545         for static library in error case.
6546
6547 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6548
6549         [BZ #14122]
6550         * nss/nsswitch.c (defconfig_entries): New variable.
6551         (__nss_database_lookup): Don't leak defconfig entries.
6552         (nss_parse_service_list): Don't leak on error paths.
6553         (free_database_entries): New function.
6554         (free_defconfig): New function.
6555         (free_mem): Move common code to free_database_entries.
6556
6557 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6558
6559         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6560         Add arch_prctl.
6561         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6562
6563         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6564         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6565         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6566         New macro.
6567         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6568         (INTERNAL_SYSCALL_TYPES): Likewise.
6569         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6570         (LOAD_REGS_TYPES_[1-6]): Likewise.
6571         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6572         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6573
6574 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6575
6576         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6577         copysignl for GLIBC_2_0.
6578         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6579         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6580         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6581         logbl for GLIBC_2_0.
6582         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6583         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6584
6585 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6586
6587         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6588         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6589
6590         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6591         Use "neg %eax".
6592
6593         * time/mktime.c: Update copyright years.
6594
6595 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6596
6597         mktime: merge comment-quoting-style change from gnulib
6598         * time/mktime.c: Quote 'like this' in comments.
6599         The GNU coding standards suggest that we no longer quote `like this',
6600         as "`" and "'" are typically rendered asymmetrically nowadays.
6601         The typical gnulib style is to quote 'like this' when quoting
6602         code, and "like this" when quoting English.
6603
6604         * time/mktime.c (compile-command): Add "-I.".
6605
6606         mktime: merge mktime-internal.h change from gnulib
6607         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6608
6609         mktime: merge time_r change from gnulib
6610         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6611
6612         mktime: merge DEBUG change from gnulib
6613         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6614         case system <time.h> has a #define.
6615
6616         mktime: merge <sys/types.h> change from gnulib
6617         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6618         since <time.t> is now guaranteed to define time_t.
6619
6620         mktime: merge HAVE_CONFIG_H change from gnulib
6621         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6622
6623 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6624
6625         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6626         Use "neg %eax".
6627
6628         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6629         __rlim_t cast.
6630         (struct rusage): Use anonymous union to pad each field to
6631         __syscall_slong_t.
6632
6633 2012-05-21  David S. Miller  <davem@davemloft.net>
6634
6635         * Makefules (o-iterator): Remove .s cases.
6636         (compile-command.s): Delete.
6637         (COMPILE.s): Delete.
6638         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6639
6640 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6641
6642         * configure.in (libc_cv_predef_stack_protector): Only consider
6643         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6644         * configure: Regenerated.
6645
6646 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6647
6648         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6649         New macro.  Use R*LP on int and pointer.
6650         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6651         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6652         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6653         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6654
6655         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6656         [__WORDSIZE_TIME64_COMPAT32] instead of
6657         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6658         (struct utmp): Likewise.
6659         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6660         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6661         Renamed to ...
6662         (__WORDSIZE_TIME64_COMPAT32): This.
6663         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6664         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6665         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6666         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6667         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6668         (__WORDSIZE_TIME64_COMPAT32): New macro.
6669
6670 2012-05-21  Andreas Jaeger  <aj@suse.de>
6671
6672         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6673         only if [SHARED]. Add prototype for __wcschr_ia32.
6674
6675 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6676
6677         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6678         of %rbp unmolested in the jmp_buf while mangling the low bits.
6679         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6680         unmolested high bits of %rbp while demangling the low bits.
6681         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6682
6683 2012-05-21  Andreas Jaeger  <aj@suse.de>
6684
6685         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6686         * sunrpc/svc_simple.c: Use it for registerrpc.
6687         * sunrpc/xcrypt.c: Use it for passwd2des.
6688
6689         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6690
6691 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6692
6693         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6694         Don't define if [__SYSCALL_WORDSIZE != 32].
6695         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6696         New macro.
6697
6698 2012-05-21  Bruno Haible  <bruno@clisp.org>
6699             Andreas Jaeger  <aj@suse.de>
6700
6701         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6702         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6703         inptr and inend for must_buffer_ch.
6704         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6705         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6706         * stdio-common/Makefile (tests): Remove bug15.
6707         (bug15-ENV): Remove macro.
6708         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6709         anymore.
6710
6711 2012-05-19  Andreas Jaeger  <aj@suse.de>
6712             Roland McGrath  <roland@hack.frob.com>
6713
6714         * manual/contrib.texi: Completely rewritten. It contains now an
6715         alphabetical list of contributors and their contributions.
6716
6717 2012-05-21  Richard Henderson  <rth@twiddle.net>
6718
6719         * misc/getauxval.c (__getauxval): Use unsigned long int.
6720         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6721         (getauxval): Use unsigned long int.
6722
6723 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6724
6725         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6726
6727 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6728
6729         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6730         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6731         __alignof__ (long double).
6732
6733 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6734
6735         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6736
6737 2012-05-20  Richard Henderson  <rth@twiddle.net>
6738
6739         * misc/getauxval.c: New file.
6740         * misc/sys/auxv.h: New file.
6741         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6742         (routines): Add getauxval.
6743         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6744         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6745         * elf/dl-sysdep.c (_dl_auxv): Remove.
6746         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6747         * elf/dl-support.c (_dl_auxv): New variable.
6748         (_dl_aux_init): Initialize it.
6749         * manual/startup.texi (Auxiliary Vector): New node.
6750         * sysdeps/generic/bits/hwcap.h: New file.
6751         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6752         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6753         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6754         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6755         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6756         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6758         Update.
6759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6760         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6761         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6762         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6764         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6765         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6766         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6767
6768 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6769
6770         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6771
6772 2012-05-19  David S. Miller  <davem@davemloft.net>
6773
6774         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6775
6776 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6777
6778         [BZ #14123]
6779         * math/s_ccosh.c: Include <float.h>
6780         (__ccosh): Avoid internal overflow calculating sinh and cosh
6781         values before multiplying by sin and cos values.
6782         * math/s_ccoshf.c: Likewise.
6783         * math/s_ccoshl.c: Likewise.
6784         * math/s_csin.c: Likewise.
6785         * math/s_csinf.c: Likewise.
6786         * math/s_csinl.c: Likewise.
6787         * math/s_csinh.c: Likewise.
6788         * math/s_csinhf.c: Likewise.
6789         * math/s_csinhl.c: Likewise.
6790         * math/libm-test.inc (ccos_test): Add more tests.
6791         (ccosh_test): Likewise.
6792         (csin_test): Likewise.
6793         (csinh_test): Likewise.
6794         * sysdeps/i386/fpu/libm-test-ulps: Update.
6795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6796
6797 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6798
6799         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6800         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6801
6802         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6803
6804 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6805
6806         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6807         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6808         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6809         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6810         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6811         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6812         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6813         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6814         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6815         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6816         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6817         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6818         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6819         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6820         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6821         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6822         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6823         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6824         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6825         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6826         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6827         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6828         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6829         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6830         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6831         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6832         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6833         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6834         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6835         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6836         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6837
6838 2012-05-18  Andreas Jaeger  <aj@suse.de>
6839
6840         * csu/.gitignore: Delete.
6841
6842 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6843
6844         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6845         (timex): Use __syscall_slong_t.
6846
6847 2012-05-18  Andreas Jaeger  <aj@suse.de>
6848             Carlos O'Donell  <carlos_odonell@mentor.com>
6849
6850         * manual/install.texi (Configuring and compiling): Update
6851         description about files modified in the source directory.
6852         * INSTALL: Regenerated.
6853
6854 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6855
6856         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6857         value.  Use "or" to set return value to -1.
6858         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6859         negate return value.
6860
6861 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6862
6863         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6864         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6865         failure if the compiler has Graphite support disabled.
6866         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6867         Likewise.
6868         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6869         CFLAGS-memmove.c): Likewise.
6870         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6871         Likewise.
6872
6873 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6874
6875         * sysdeps/x86_64/x32/_itoa.h: New file.
6876
6877         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6878         getdents system call only if kernel and user dirents have the
6879         same d_ino and d_off.
6880
6881         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6882         LLONG_MAX != LONG_MAX.
6883         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6884         (_fitoa_word): Likewise.
6885
6886         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6887         years.
6888         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6889         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6890         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6891
6892         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6893         include <bits/wordsize.h>.  Check __x86_64__ instead of
6894         __WORDSIZE.
6895         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6896         if __x86_64__ is defined.  Use anonymous union on fpstate.
6897
6898         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6899         anonymous union.
6900
6901 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6902
6903         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6904         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6905         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6906         Refer to _rtld_local_ro instead of _rtld_global_ro.
6907         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6908         Likewise.
6909         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6910         Likewise.
6911         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6912         Likewise.
6913         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6914         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6915         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6916
6917         * sysdeps/powerpc/powerpc32/dl-machine.c
6918         (__elf_machine_runtime_setup) [PROF]: Don't reference
6919         _dl_prof_resolve.
6920
6921 2012-05-18  Andreas Jaeger  <aj@suse.de>
6922
6923         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6924         function only available for GCCs before 3.4 since GCC 3.4
6925         introduced a builtin.
6926         (lrint): Likewise.
6927         (llrintf): Likewise.
6928         (llrint): Likewise.
6929         (fmaxf): Likewise.
6930         (fmax): Likewise.
6931         (fminf): Likewise.
6932         (fmin): Likewise.
6933         (rint): Likewise.
6934         (rintf): Likewise.
6935         (nearbyint): Likewise.
6936         (nearbyintf): Likewise.
6937         (ceil): Likewise.
6938         (ceilf): Likewise.
6939         (floor): Likewise.
6940         (floorf): Likewise.
6941
6942 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6943
6944         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6945         on both fields and cast pointer to __syscall_ulong_t.
6946
6947         * bits/types.h (__fsword_t): New type.
6948         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6949         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6950         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6951         (__FSWORD_T_TYPE): Likewise.
6952         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6953         (__FSWORD_T_TYPE): Likewise.
6954         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6955         (__FSWORD_T_TYPE): Likewise.
6956         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6957         (__FSWORD_T_TYPE): Likewise.
6958         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6959         __SWORD_TYPE with __fsword_t.
6960         (statfs64): Likewise.
6961
6962 2012-05-17  David S. Miller  <davem@davemloft.net>
6963
6964         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6965
6966 2012-05-17  Andreas Jaeger  <aj@suse.de>
6967
6968         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6969         warning.
6970
6971 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6972
6973         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6974
6975 2012-05-17  Andreas Jaeger  <aj@suse.de>
6976
6977         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6978         when it is used.
6979
6980 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6981
6982         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6983
6984 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6985
6986         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6987         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6988
6989 2012-05-17  Andreas Jaeger  <aj@suse.de>
6990             Carlos O'Donell  <carlos_odonell@mentor.com>
6991
6992         [BZ #14059]
6993         * sysdeps/x86_64/multiarch/init-arch.h
6994         (bit_YMM_Usable): Rename to...
6995         (bit_AVX_Usable): ... this.
6996         (bit_FMA4_Usable): New macro.
6997         (bit_XMM_state): New macro.
6998         (bit_YMM_state): New macro.
6999         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7000         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7001         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7002         (CPUID_OSXSAVE): New macro.
7003         (CPUID_AVX): New macro.
7004         (CPUID_FMA4): New macro.
7005         (index_YMM_Usable): Rename to...
7006         (index_AVX_Usable): ... this.
7007         (HAS_AVX): Use HAS_ARCH_FEATURE.
7008         (HAS_FMA4): Likewise.
7009         (HAS_YMM_USABLE): Remove.
7010         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7011         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7012         are present.
7013         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7014         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7015         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7016         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7017         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7018
7019 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7020
7021         * math/libm-test.c: Support platforms without multiple rounding modes.
7022         * math/bug-nextafter.c: Support platforms without FP exceptions.
7023         * math/bug-nexttoward.c: Likewise.
7024         * math/test-fenv.c: Likewise.
7025         * math/test-misc.c: Likewise.
7026         * stdlib/bug-getcontext.c: Likewise.
7027
7028 2012-05-17  Andreas Jaeger  <aj@suse.de>
7029
7030         * manual/examples/search.c (critter_cmp): Change signature to
7031         avoid warnings.
7032         * manual/string.texi (Collation Functions): Likewise.
7033
7034 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7035
7036         * bits/types.h: Fold copyright years.
7037         * bits/typesizes.h: Likewise.
7038         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7039         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7040         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7041         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7042         * time/time.h: Likewise.
7043
7044 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7045
7046         [BZ #208]
7047         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7048         in instead of returning them.  Return void.
7049         (__libc_mallinfo): Accumulate over all arenas.
7050         (__malloc_stats): Adjust for change in int_mallinfo interface.
7051
7052 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7053
7054         [BZ #10375]
7055         * configure.in (NM): Add AC_CHECK_TOOL for it.
7056         (libc_extra_cflags): New substituted variable.
7057         Check for -fstack-protector being used implicitly.
7058         * configure: Regenerated.
7059         * config.make.in (config-extra-cflags): New variable,
7060         gets @libc_extra_cflags@.
7061         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7062
7063         [BZ #10375]
7064         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7065         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7066         * configure: Regenerated.
7067         * config.make.in (CPPUNDEFS): New substituted variable.
7068         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7069         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7070         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7071
7072 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7073
7074         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7075         (mq_attr): Use __syscall_slong_t.
7076
7077 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7078
7079         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7080         Check __x86_64__ instead of __WORDSIZE.
7081         (_STAT_VER_LINUX): Likewise.
7082         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7083         __syscall_ulong_t and __syscall_slong_t.
7084         (stat64): Likewise.
7085
7086 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7087
7088         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7089
7090 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7091
7092         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7093
7094 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7095
7096         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7097         __syscall_ulong_t.
7098
7099         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7100         include <bits/wordsize.h>.  Check __x86_64__ instead of
7101         __WORDSIZE.
7102         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7103         defined.
7104         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7105
7106         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7107         include <bits/wordsize.h>.  Check __x86_64__ instead of
7108         __WORDSIZE.
7109         (user_regs_struct): Use "__extension__ unsigned long long"
7110         instead of "unsigned long" if __x86_64__ is defined.
7111         (user): Likewise.  Pad after pointer field if __ILP32__ is
7112         defined.
7113
7114 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7115
7116         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7117         versions 5 to 9.
7118         * configure: Regenerated.
7119         * manual/install.texi (texinfo): Increase version requirement to
7120         4.5 or later.
7121         * INSTALL: Regenerated.
7122
7123         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7124
7125 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7126
7127         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7128
7129         * sysdeps/x86_64/x32/ffs.c: New file.
7130
7131         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7132         __syscall_ulong_t.
7133         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7134         defined.  Use __syscall_ulong_t.
7135         (shminfo): Use __syscall_ulong_t.
7136         (shm_info): Likewise.
7137
7138         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7139         __syscall_ulong_t.
7140
7141         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7142         <bits/wordsize.h>.
7143         (msgqnum_t): Use __syscall_ulong_t.
7144         (msglen_t): Likewise.
7145         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7146         __syscall_ulong_t.
7147
7148         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7149         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7150
7151         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7152
7153         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7154         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7155
7156         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7157         __syscall_slong_t.
7158
7159         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7160         include <bits/wordsize.h>.  Check __x86_64__ instead of
7161         __WORDSIZE.
7162
7163         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7164         "unsigned long long int" if __x86_64__ is defined.
7165         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7166
7167         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7168         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7169         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7170
7171         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7172         <stdint.h>.
7173         (GET_PC): Cast to uintptr_t first.
7174         (GET_FRAME): Likewise.
7175         (GET_STACK): Likewise.
7176
7177         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7178         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7179         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7180         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7181         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7182         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7183         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7184         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7185         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7186         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7187         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7188         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7189         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7190         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7191         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7192         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7193         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7194         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7195         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7196         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7197         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7198         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7199         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7200         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7201         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7202         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7203         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7204         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7205         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7206
7207 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7208
7209         * Makerules (+depfiles): Also collect depfiles from .oS in
7210         $(extra-objs).
7211         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7212         .oS, $(libnldbl-routines)).
7213
7214         * Makerules (native-compile-mkdep-flags): Define.
7215         * sunrpc/Makefile (extra-objs): Add $(addprefix
7216         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7217         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7218         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7219         calling $(make-target-directory).
7220
7221 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7222
7223         * bits/types.h (__snseconds_t): Removed.
7224         * time/time.h (struct timespec): Replace __snseconds_t with
7225         __syscall_slong_t.
7226         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7227         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7228         Likewise.
7229         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7230         (__SNSECONDS_T_TYPE): Likewise.
7231         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7232         (__SNSECONDS_T_TYPE): Likewise.
7233         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7234         (__SNSECONDS_T_TYPE): Likewise.
7235
7236 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7237
7238         * sysdeps/mach/hurd/bits/typesizes.h
7239         (__SYSCALL_SLONG_TYPE): New macro.
7240         (__SYSCALL_ULONG_TYPE): Likewise.
7241
7242 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7243
7244         * bits/types.h (__syscall_slong_t): New type.
7245         (__syscall_ulong_t): Likewise.
7246
7247         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7248         (__SYSCALL_ULONG_TYPE): Likewise.
7249         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7250         (__SYSCALL_SLONG_TYPE): Likewise.
7251         (__SYSCALL_ULONG_TYPE): Likewise.
7252         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7253         (__SYSCALL_SLONG_TYPE): Likewise.
7254         (__SYSCALL_ULONG_TYPE): Likewise.
7255         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7256         (__SYSCALL_SLONG_TYPE): Likewise.
7257         (__SYSCALL_ULONG_TYPE): Likewise.
7258
7259 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7260
7261         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7262         Add sigaltstack-offsets.sym.
7263         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7264         <sigaltstack-offsets.h>.
7265         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7266         longjmp_msg pointer.
7267         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7268         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7269         signal stack.
7270         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7271
7272 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7273
7274         * elf/stackguard-macros.h: Remove file.
7275         * sysdeps/generic/stackguard-macros.h: New file.
7276         * sysdeps/i386/stackguard-macros.h: Likewise.
7277         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7278         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7279         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7280         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7281         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7282         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7283         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7284         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7285         <elf/stackguard-macros.h>.
7286
7287         [BZ #14109]
7288         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7289         __aligned__ in attribute.
7290         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7291         (gregset_t): Likewise.
7292
7293 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7294
7295         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7296         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7297         * sysdeps/x86_64/x32/Implies-after: New file.
7298
7299 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7300
7301         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7302         and access return value for _dl_profile_fixup.  Use R10_LP to
7303         load frame size.
7304
7305 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7306
7307         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7308
7309 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7310
7311         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7312         * sysdeps/x86_64/x32/sysdep.h: New file.
7313
7314 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7315
7316         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7317         * sysdeps/x86_64/setjmp.S: Likewise.
7318
7319 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7320
7321         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7322         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7323         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7324         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7325         remove unused global constant.
7326
7327 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7328
7329         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7330         include of <not-cancel.h>.
7331
7332 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7333
7334         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7335
7336 2012-05-15  Jeff Law  <law@redhat.com>
7337             Andreas Jaeger  <aj@suse.de>
7338
7339         [BZ #13594]
7340         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7341         out from...
7342         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7343         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7344         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7345         code changing __hst_map_handle.map.
7346
7347 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7348
7349         * configure.in (sysnames): Look for Implies-before and Implies-after
7350         files.
7351         * configure: Regenerated.
7352
7353 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7354
7355         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7356         8-byte data alignment with LP_SIZE alignment.
7357
7358 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7359
7360         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7361         into R10_LP.
7362
7363 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7364
7365         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7366
7367 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7368
7369         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7370         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7371         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7372         Likewise.
7373         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7374
7375 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7376
7377         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7378         (stackinfo_sub_sp): Likewise.
7379
7380 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7381
7382         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7383         RAX_LP.
7384
7385 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7386
7387         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7388         into R*_LP.
7389
7390 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7391
7392         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7393         sizes into R*_LP.
7394
7395 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7396
7397         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7398
7399 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7400
7401         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7402         into R11_LP and load __x86_64_shared_cache_size_half into
7403         R8_LP.
7404
7405 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7406
7407         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7408         R8_LP.
7409
7410 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7411
7412         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7413         logb for POWER7.
7414         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7415         logbf for POWER7.
7416         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7417         logbl for POWER7.
7418         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7419         powerpc32/power7/fpu/s_logb.c via #include.
7420         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7421         powerpc32/power7/fpu/s_logbf.c via #include.
7422         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7423         powerpc32/power7/fpu/s_logbl.c via #include.
7424
7425 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7426
7427         * README.libm: Remove file.
7428
7429 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7430
7431         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7432         count for x32.  Use R*_LP and omit operand-size suffix.
7433
7434 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7435
7436         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7437         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7438         * sysdeps/x86_64/x32/shlib-versions: New file.
7439
7440 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7441
7442         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7443         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7444         Use _dl_fatal_printf instead.
7445
7446 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7447
7448         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7449         set if not set by the user.  Do not allow for being unset.
7450         * sysdeps/unix/sysv/linux/configure: Regenerated.
7451
7452 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7453
7454         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7455         the `q' suffix from lea and replace .quad with ASM_ADDR.
7456
7457 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7458
7459         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7460         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7461         instead of $17.
7462         (PTR_DEMANGLE): Likewise.
7463
7464 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7465
7466         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7467         (LP_OP): Likewise.
7468         (ASM_ADDR): Likewise.
7469         (RAX_LP): Likewise.
7470         (RBP_LP): Likewise.
7471         (RBX_LP): Likewise.
7472         (RCX_LP): Likewise.
7473         (RDI_LP): Likewise.
7474         (RSI_LP): Likewise.
7475         (RSP_LP): Likewise.
7476         (R8_LP): Likewise.
7477         (R9_LP): Likewise.
7478         (R10_LP): Likewise.
7479         (R10_LP): Likewise.
7480         (R11_LP): Likewise.
7481         (R12_LP): Likewise.
7482         (R13_LP): Likewise.
7483         (R14_LP): Likewise.
7484         (R15_LP): Likewise.
7485
7486 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7487
7488         * sysdeps/x86_64/x32/dl-machine.h: New file.
7489
7490 2012-05-14  Andreas Jaeger  <aj@suse.de>
7491
7492         * manual/Makefile (subdir): Remove export of subdir.
7493         (all): Remove target.
7494         (.PHONY): Remove all from list.
7495         (mkinstalldirs): Remove.
7496         (.PHONY): Remove installdirs from list.
7497         ($(inst_infodir)/libc.info): Use make-target-directory.
7498         (installdirs): Remove.
7499         (subdir_%): Remove.
7500         (glibc-targets): Remove.
7501         (lib): Remove.
7502         (stubs): Remove.
7503         ($(objpfx)stubs ../po/manual.pot): Remove.
7504         ($(objpfx)stamp%): Remove.
7505         (make-target-directory): Remove.
7506         (subdir_install): Remove.
7507         (routines): Remove.
7508         (aux): Remove.
7509         (sources): Remove.
7510         (objects): Remove.
7511         (headers): Remove.
7512
7513         [BZ #13750]
7514         * manual/.gitignore: Remove, it's not needed anymore.
7515         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7516         all files in it.
7517         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7518         directory.
7519         (texis): Renamed to $(objpfx)texis.
7520         (texis-path): New, contains path to generated files.
7521         (chapters.%): Use texis-path for complete path, add extra argument
7522         libc-texinfo.sh.
7523         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7524         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7525         (summary,texi, stamp-summary): Use complete path of
7526         files. Generate files in build dir.
7527         (dir-add.texi): Build in build dir.
7528         (libm-err.texi,stamp-libm-err): Likewise.
7529         (version.texi, stamp-version): Likewise.
7530         (.%c.texi): Likewise.
7531         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7532         (mostlyclean): Remove target.
7533         (realclean): Remove target.
7534         (generated): Add new variable with contents from mostlyclean and
7535         realclean, remove entries duplicated in common-mostlyclean, add
7536         stamp-libm-err and stamp-version.
7537         (generated-dirs): Add libc directory.
7538         ($(inst_infodir)/libc.info): Install files from build dir.
7539
7540         * manual/install.texi (Configuring and compiling): Adjust since
7541         the info files are not part of the tar ball anymore.
7542
7543 2012-05-14  Andreas Jaeger  <aj@suse.de>
7544
7545         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7546         variable.
7547
7548 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7549
7550         [BZ #13717]
7551         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7552         to 2.2.0 where earlier.
7553         * sysdeps/unix/sysv/linux/configure: Regenerated.
7554         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7555         Remove conditional code.
7556         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7557         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7558         Remove conditional code.
7559         [!__NR_lchown]: Likewise.
7560         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7561         [__NR_lchown]: Likewise.
7562         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7563         comment referencing __ASSUME_LCHOWN_SYSCALL.
7564         * sysdeps/unix/sysv/linux/i386/sigaction.c
7565         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7566         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7567         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7568         Remove conditional code.
7569         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7570         (__protocol_available): Remove #if 0 code.
7571         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7572         conditional code.
7573         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7574         * sysdeps/unix/sysv/linux/kernel-features.h
7575         (__ASSUME_GETCWD_SYSCALL): Don't define.
7576         (__ASSUME_REALTIME_SIGNALS): Likewise.
7577         (__ASSUME_PREAD_SYSCALL): Likewise.
7578         (__ASSUME_PWRITE_SYSCALL): Likewise.
7579         (__ASSUME_POLL_SYSCALL): Likewise.
7580         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7581         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7582         non-SPARC.
7583         (__ASSUME_SIOCGIFNAME): Don't define.
7584         (__ASSUME_MSG_NOSIGNAL): Likewise.
7585         (__ASSUME_SENDFILE): Define unconditionally.
7586         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7587         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7588         conditional code.
7589         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7590         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7591         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7592         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7593         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7594         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7595         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7597         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7598         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7600         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7601         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7603         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7604         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7606         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7607         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7609         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7610         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7612         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7613         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7615         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7616         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7618         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7619         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7620         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7621         Remove conditional code.
7622         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7623         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7624         Remove conditional code.
7625         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7626         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7627         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7628         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7629         Remove conditional code.
7630         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7631         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7632         Remove conditional code.
7633         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7634         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7635         Remove conditional code.
7636         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7637         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7638         Remove conditional code.
7639         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7640         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7641         Remove conditional code.
7642         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7643         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7644         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7645         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7646         * sysdeps/unix/sysv/linux/sigaction.c
7647         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7648         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7649         * sysdeps/unix/sysv/linux/sigpending.c
7650         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7651         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7652         * sysdeps/unix/sysv/linux/sigprocmask.c
7653         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7654         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7655         * sysdeps/unix/sysv/linux/sigsuspend.c
7656         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7657         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7658         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7659         (__libc_missing_rt_sigs): Remove.
7660         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7661         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7662         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7663         Remove conditional code.
7664         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7665         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7666         return 1.
7667         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7668         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7669         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7670         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7671
7672 2012-05-14  Andreas Jaeger  <aj@suse.de>
7673
7674         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7675         it's not used in glibc.
7676         (__coshm1): Likewise.
7677         (__acosh1p): Likewise.
7678         (__sgn): Likewise.
7679
7680         * manual/string.texi (Copying and Concatenation): Add missing
7681         variable in concat example.
7682         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7683
7684 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7685
7686         [BZ #14103]
7687         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7688         __builtin_clzl with __builtin_clzll.
7689
7690 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7691
7692         [BZ #14104]
7693         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7694         libc_freeres_ptr.
7695
7696 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7697
7698         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7699         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7700         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7701         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7702
7703 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7704
7705         * NEWS: Update ia64 info.
7706
7707 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7708
7709         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7710         used as bcopy.
7711
7712 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7713
7714         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7715         * sysdeps/unix/syscalls.list (dup3): Likewise.
7716         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7717         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7718
7719 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7720
7721         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7722         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7723
7724 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7725
7726         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7727         thread pointer.
7728         (TLS_IE): Use mov/add instead of movq/addq to load thread
7729         pointer.
7730         (TLS_GD_PREFIX): New.
7731         (TLS_GD): Use it.
7732
7733 2012-05-11  David S. Miller  <davem@davemloft.net>
7734
7735         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7736         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7737         (_FPU_SETCW): Likewise.
7738
7739 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7740
7741         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7742         is 32-byte aligned.
7743
7744 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7745
7746         [BZ #11837]
7747         * iconvdata/gb18030.c: Update tables.
7748         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7749         characters specially.
7750         (BODY for TO_LOOP): Add encoding of missing ranges.
7751
7752 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7753
7754         [BZ #13673]
7755         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7756         * sysdeps/mach/hurd/dup3.c: Likewise.
7757         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7758         * sysdeps/powerpc/memmove.c:: Likewise.
7759
7760 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7761
7762         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7763         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7764
7765 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7766
7767         * elf/elf.h (R_X86_64_RELATIVE64): New.
7768         (R_X86_64_NUM): Updated.
7769         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7770         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7771         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7772         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7773         tst-quad1pie tst-quad2pie
7774         (modules-names): Add tst-quadmod1 tst-quadmod2.
7775         ($(objpfx)tst-quad1): New dependency.
7776         ($(objpfx)tst-quad2): Likewise.
7777         ($(objpfx)tst-quad1pie): Likewise.
7778         ($(objpfx)tst-quad2pie): Likewise.
7779         * sysdeps/x86_64/tst-quad1.c: New file.
7780         * sysdeps/x86_64/tst-quad1pie.c: New file.
7781         * sysdeps/x86_64/tst-quad2.c: Likewise.
7782         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7783         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7784         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7785         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7786         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7787
7788 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7789
7790         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7791         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7792         * streams/stropts.h (t_scalar_t): Define type.
7793
7794         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7795         (_PATH_PRESERVE): Set to "/var/lib".
7796         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7797
7798         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7799         instead of int.
7800
7801         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7802         if __dir_mkfile succeeded.
7803
7804         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7805         checking for _hurd_dtablesize.  Unlock it right after having
7806         finished _hurd_dtable allocation.
7807
7808 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7809
7810         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7811         * sysdeps/mach/hurd/configure: Regenerated.
7812         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7813         special-casing to...
7814         * sysdeps/gnu/configure.in: ... this new file.
7815         * sysdeps/unix/sysv/linux/configure: Regenerated.
7816         * sysdeps/gnu/configure: New generated file.
7817
7818         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7819         for Linux: use nsec instead of usec, as well as:
7820         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7821         members of type struct timespec.
7822         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7823         New macros.
7824         (struct stat64): Likewise.
7825         (_STATBUF_ST_NSEC): New macro.
7826         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7827
7828         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7829         __strtoul_internal rather than strtoul.
7830
7831 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7832
7833         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7834         and reject them.
7835
7836 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7837
7838         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7839         which preserves existing values.
7840         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7841
7842 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7843
7844         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7845         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7846         greater than FD_SETSIZE.
7847
7848 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7849
7850         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7851         allocated, call __vm_protect to finish enabling the existing space, and
7852         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7853         allocate the remainder.
7854
7855 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7856
7857         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7858         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7859
7860 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7861
7862         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7863         sysdeps/mach/hurd/readlink.c.
7864
7865         * posix/tst-sysconf.c (posix_options): Only use
7866         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7867         _POSIX_SYNCHRONIZED_IO when they are defined
7868         * sysdeps/mach/hurd/bits/posix_opt.h:
7869         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7870         (_XOPEN_REALTIME): Undefine macro.
7871         (_XOPEN_REALTIME_THREADS): Undefine macro.
7872         (_XOPEN_SHM): Undefine macro.
7873         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7874         macro to -1.
7875         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7876         macro to -1.
7877         (_POSIX_ASYNC_IO): Undefine macro.
7878         (_POSIX_PRIORITIZED_IO): Undefine macro.
7879         (_POSIX_SPIN_LOCKS): Define macro to -1.
7880
7881         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7882         SA_NODEFER, SA_RESETHAND.
7883         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7884         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7885         F_DUPFD_CLOEXEC.
7886
7887 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7888
7889         * elf/Makefile (pldd-modules): Define unconditionally.
7890
7891 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7892
7893         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7894
7895 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7896
7897         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7898         Return ENOENT when name is empty.
7899         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7900
7901 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7902
7903         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7904
7905         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7906
7907 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7908
7909         Fix mlock in all cases except non-readable pages.
7910         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7911         instead of VM_PROT_ALL as parameter to __vm_wire function.
7912
7913         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7914         (__mkdir): When path is `/', just fail with EEXIST.
7915         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7916
7917 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7918
7919         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7920         <sys/uio.h> (for writev).
7921         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7922         and <sys/param.h> (for MIN).
7923
7924 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7925
7926         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7927         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7928         if interrupted.
7929
7930 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7931
7932         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7933         Depend on against $(link-rpcuserlibs).
7934
7935 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7936
7937         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7938         (__libc_stack_end): Do not use attribute_relro.
7939         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7940         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7941         to libthread-provided value.
7942         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7943         attribute_relro.
7944
7945 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7946
7947         [BZ #3748]
7948         * bits/libc-lock.h (__libc_once_get): New macro.
7949         * sysdeps/mach/bits/libc-lock.h: Likewise.
7950         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7951         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7952         instead of using implementation details.
7953
7954         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7955         * libio/freopen.c: Likewise.
7956         * libio/freopen64.c: Likewise.
7957         * misc/syslog.c: Likewise.
7958         * nscd/connections.c: Likewise.
7959         * nscd/netgroupcache.c: Likewise.
7960         * sysdeps/posix/getcwd.c: Likewise.
7961
7962 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7963
7964         * math/w_ilogbf.c: Add #include <limits.h>.
7965
7966 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7967
7968         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7969         path instead of returning without unlocking.
7970
7971         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7972         immediate-write ioctls.
7973         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7974
7975 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7976
7977         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7978         __builtin_frame_address instead of making assumptions about the
7979         location of the return address relative to DATA.  Force early load of
7980         the return address.
7981         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7982         __builtin_frame_address.
7983
7984         dup3 for GNU Hurd.
7985         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7986         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7987         implement dup3 and do some further code clean-ups.
7988         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7989         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7990
7991 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7992
7993         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7994
7995         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7996         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7997         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7998         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7999         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8000         d->port.lock.
8001
8002         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8003         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8004         when handler == SIG_ERR, not when handler != SIG_ERR.
8005
8006 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8007
8008         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8009         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8010         definitions.
8011
8012         accept4 for GNU Hurd.
8013         * include/sys/socket.h (__libc_accept4): New prototype.
8014         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8015         to implement __libc_accept4.
8016         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8017         __libc_accept4.
8018         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8019
8020         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8021         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8022         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8023         signal-defines.sym.
8024
8025 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8026
8027         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8028
8029 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8030
8031         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8032         assertion on O_CLOEXEC flag.
8033         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8034         * hurd/intern-fd.c: Likewise.
8035         * hurd/port2fd.c: Likewise.
8036
8037 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8038
8039         [BZ #3906]
8040         * bits/in.h (IPV6_PKTINFO): Define new macro.
8041         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8042
8043 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8044
8045         [BZ #13954]
8046         [BZ #13955]
8047         [BZ #13956]
8048         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8049         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8050         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8051         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8052         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8053         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8054         * math/libm-test.inc (logb_test) : Additional logb tests.
8055
8056 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8057             Andreas Jaeger  <aj@suse.de>
8058
8059         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8060         * configure: Regenerated.
8061         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8062         * config.make.in (link-obsolete-rpc): New substituted variable.
8063         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8064         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8065         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8066         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8067         so that libc.a contains the symbols.
8068         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8069         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8070         * sunrpc/auth_none.c: Likewise.
8071         * sunrpc/auth_unix.c: Likewise.
8072         * sunrpc/authdes_prot.c: Likewise.
8073         * sunrpc/authuxprot.c: Likewise.
8074         * sunrpc/clnt_gen.c: Likewise.
8075         * sunrpc/clnt_perr.c: Likewise.
8076         * sunrpc/clnt_raw.c: Likewise.
8077         * sunrpc/clnt_simp.c: Likewise.
8078         * sunrpc/clnt_tcp.c: Likewise.
8079         * sunrpc/clnt_udp.c: Likewise.
8080         * sunrpc/clnt_unix.c: Likewise.
8081         * sunrpc/des_crypt.c: Likewise.
8082         * sunrpc/des_soft.c: Likewise.
8083         * sunrpc/get_myaddr.c: Likewise.
8084         * sunrpc/key_call.c: Likewise.
8085         * sunrpc/key_prot.c: Likewise.
8086         * sunrpc/netname.c: Likewise.
8087         * sunrpc/pm_getmaps.c: Likewise.
8088         * sunrpc/pm_getport.c: Likewise.
8089         * sunrpc/pmap_clnt.c: Likewise.
8090         * sunrpc/pmap_prot.c: Likewise.
8091         * sunrpc/pmap_prot2.c: Likewise.
8092         * sunrpc/pmap_rmt.c: Likewise.
8093         * sunrpc/publickey.c: Likewise.
8094         * sunrpc/rpc_cmsg.c: Likewise.
8095         * sunrpc/rpc_common.c: Likewise.
8096         * sunrpc/rpc_dtable.c: Likewise.
8097         * sunrpc/rpc_prot.c: Likewise.
8098         * sunrpc/rpc_thread.c: Likewise.
8099         * sunrpc/rtime.c: Likewise.
8100         * sunrpc/svc.c: Likewise.
8101         * sunrpc/svc_auth.c: Likewise.
8102         * sunrpc/svc_raw.c: Likewise.
8103         * sunrpc/svc_run.c: Likewise.
8104         * sunrpc/svc_tcp.c: Likewise.
8105         * sunrpc/svc_udp.c: Likewise.
8106         * sunrpc/svc_unix.c: Likewise.
8107         * sunrpc/svcauth_des.c: Likewise.
8108         * sunrpc/xcrypt.c: Likewise.
8109         * sunrpc/xdr.c: Likewise.
8110         * sunrpc/xdr_array.c: Likewise.
8111         * sunrpc/xdr_float.c: Likewise.
8112         * sunrpc/xdr_intXX_t.c: Likewise.
8113         * sunrpc/xdr_mem.c: Likewise.
8114         * sunrpc/xdr_rec.c: Likewise.
8115         * sunrpc/xdr_ref.c: Likewise.
8116         * sunrpc/xdr_sizeof.c: Likewise.
8117         * sunrpc/xdr_stdio.c: Likewise.
8118
8119 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8120
8121         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8122         change.  Update copyright years.
8123
8124 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8125
8126         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8127
8128 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8129             Joseph Myers  <joseph@codesourcery.com>
8130             Paul Pluzhnikov  <ppluzhnikov@google.com>
8131
8132         [BZ #14012]
8133         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8134         requiring rpcgen.
8135         [cross-compiling] (extra-libs): Likewise.
8136         [cross-compiling] (extra-libs-others): Likewise.
8137         [cross-compiling] (librpcsvc-routines): Likewise.
8138         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8139         [cross-compiling] (omit-deps): Likewise.
8140         (sunrpc-CPPFLAGS): New variable.
8141         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8142         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8143         (cross-rpcgen-objs): New variable.
8144         (extra-objs): Append $(cross-rpcgen-objs).
8145         ($(cross-rpcgen-objs)): New rule.
8146         ($(objpfx)cross-rpcgen): Likewise.
8147         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8148         comment.
8149         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8150         ($(objpfx)x%.stmp): Likewise.
8151         * sunrpc/proto.h [IS_IN_build] (_): Define.
8152         [IS_IN_build] (_libc_intl_domainname): Likewise.
8153
8154 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8155
8156         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8157         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8158         and R_X86_64_TPOFF64.
8159
8160 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8161
8162         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8163         sysdeps/unix/sysv/syscalls.list.
8164         (stime): Likewise.
8165         (utime): Likewise.
8166         * sysdeps/unix/sysv/syscalls.list: Remove file.
8167
8168 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8169
8170         [BZ #3440]
8171         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8172         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8173         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8174         (__LC_IDENTIFICATION): Make these macros useful in #if
8175         expressions, as required by C99.
8176
8177 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8178
8179         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8180         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8181         after this.
8182
8183 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8184
8185         * stdlib/longlong.h: Updated from GCC.
8186
8187 2012-05-09  Andreas Jaeger  <aj@suse.de>
8188
8189         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8190         default is first entry.
8191         (run_mode): Set type.
8192         (main): Remove informal message about syslog.
8193         (options): Fix typo.
8194
8195         [BZ #14053]
8196         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8197         to asm.
8198         (lrint): Likewise.
8199         (llrintf): Likewise.
8200         (llrint): Likewise.
8201         (rint): Likewise.
8202         (rintf): Likewise.
8203         (nearbyint): Likewise.
8204         (nearbyintf): Likewise.
8205
8206 2012-05-09  Andreas Jaeger  <aj@suse.de>
8207             Pedro Alves  <palves@redhat.com>
8208
8209         * nscd/nscd.c (run_mode): Use enum.
8210         (main): Cleanup coding style issue.
8211
8212 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8213             Andreas Jaeger  <aj@suse.de>
8214
8215         * nscd/nscd.c (go_background): Replaced with...
8216         (run_mode): ... this.
8217         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8218         (options): Add -F --foreground.
8219         (main): Implement it.
8220         (parse_opt): Parse it.
8221
8222 2012-05-09  Andreas Jaeger  <aj@suse.de>
8223
8224         [BZ #14083]
8225         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8226         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8227         -Wconversion warning.
8228         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8229         Likewise.
8230
8231 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8232
8233         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8234         == 0.
8235         (LC_ALL): Use macro-int-constant.
8236         (LC_COLLATE): Likewise.
8237         (LC_CTYPE): Likewise.
8238         (LC_MESSAGES): Likewise.
8239         (LC_MONETARY): Likewise.
8240         (LC_NUMERIC): Likewise.
8241         (LC_TIME): Likewise.
8242         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8243         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8244         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8245         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8246         Specify type.
8247         [C99-based standards] (float_t): Expect type.
8248         [C99-based standards] (double_t): Expect type.
8249         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8250         type.
8251         [C99-based standards] (HUGE_VALL): Likewise.
8252         [C99-based standards] (INFINITY): Likewise.
8253         [C99-based standards] (NAN): Likewise.
8254         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8255         [C99-based standards] (FP_NAN): Likewise.
8256         [C99-based standards] (FP_NORMAL): Likewise.
8257         [C99-based standards] (FP_SUBNORMAL): Likewise.
8258         [C99-based standards] (FP_ZERO): Likewise.
8259         [C99-based standards] (FP_FAST_FMA): Use
8260         optional-macro-int-constant.  Specify type.  Require == 1.
8261         [C99-based standards] (FP_FAST_FMAF): Likewise.
8262         [C99-based standards] (FP_FAST_FMAL): Likewise.
8263         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8264         [C99-based standards] (FP_ILOGBNAN): Likewise.
8265         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8266         Specify type.
8267         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8268         [C99-based standards] (math_errhandling): Specify type.
8269         [ISO99 || ISO11] (signgam): Do not allow.
8270         [non-C99-based standards] (copysignf): Do not allow.
8271         [non-C99-based standards] (exp2f): Likewise.
8272         [non-C99-based standards] (log2f): Likewise.
8273         [non-C99-based standards] (modff): Allow.
8274         [non-C99-based standards] (erff): Do not allow.
8275         [non-C99-based standards] (erfcf): Likewise.
8276         [non-C99-based standards] (gammaf): Likewise.
8277         [non-C99-based standards] (hypotf): Likewise.
8278         [non-C99-based standards] (j0f): Likewise.
8279         [non-C99-based standards] (j1f): Likewise.
8280         [non-C99-based standards] (jnf): Likewise.
8281         [non-C99-based standards] (lgammaf): Likewise.
8282         [non-C99-based standards] (tgammaf): Likewise.
8283         [non-C99-based standards] (y0f): Likewise.
8284         [non-C99-based standards] (y1f): Likewise.
8285         [non-C99-based standards] (ynf): Likewise.
8286         [non-C99-based standards] (isnanf): Likewise.
8287         [non-C99-based standards] (acoshf): Likewise.
8288         [non-C99-based standards] (asinhf): Likewise.
8289         [non-C99-based standards] (atanhf): Likewise.
8290         [non-C99-based standards] (cbrtf): Likewise.
8291         [non-C99-based standards] (expm1f): Likewise.
8292         [non-C99-based standards] (ilogbf): Likewise.
8293         [non-C99-based standards] (log1pf): Likewise.
8294         [non-C99-based standards] (logbf): Likewise.
8295         [non-C99-based standards] (nextafterf): Likewise.
8296         [non-C99-based standards] (remainderf): Likewise.
8297         [non-C99-based standards] (rintf): Likewise.
8298         [non-C99-based standards] (scalbf): Likewise.
8299         [non-C99-based standards] (copysignl): Likewise.
8300         [non-C99-based standards] (exp2l): Likewise.
8301         [non-C99-based standards] (log2l): Likewise.
8302         [non-C99-based standards] (modfl): Allow.
8303         [non-C99-based standards] (erfl): Do not allow.
8304         [non-C99-based standards] (erfcl): Likewise.
8305         [non-C99-based standards] (gammal): Likewise.
8306         [non-C99-based standards] (hypotl): Likewise.
8307         [non-C99-based standards] (j0l): Likewise.
8308         [non-C99-based standards] (j1l): Likewise.
8309         [non-C99-based standards] (jnl): Likewise.
8310         [non-C99-based standards] (lgammal): Likewise.
8311         [non-C99-based standards] (tgammal): Likewise.
8312         [non-C99-based standards] (y0l): Likewise.
8313         [non-C99-based standards] (y1l): Likewise.
8314         [non-C99-based standards] (ynl): Likewise.
8315         [non-C99-based standards] (isnanl): Likewise.
8316         [non-C99-based standards] (acoshl): Likewise.
8317         [non-C99-based standards] (asinhl): Likewise.
8318         [non-C99-based standards] (atanhl): Likewise.
8319         [non-C99-based standards] (cbrtl): Likewise.
8320         [non-C99-based standards] (expm1l): Likewise.
8321         [non-C99-based standards] (ilogbl): Likewise.
8322         [non-C99-based standards] (log1pl): Likewise.
8323         [non-C99-based standards] (logbl): Likewise.
8324         [non-C99-based standards] (nextafterl): Likewise.
8325         [non-C99-based standards] (remainderl): Likewise.
8326         [non-C99-based standards] (rintl): Likewise.
8327         [non-C99-based standards] (scalbl): Likewise.
8328         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8329         [non-C99-based standards] (FP_*): Do not allow.
8330         [C99-based standards] (FP_*): Change to
8331         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8332         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8333         allow.
8334         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8335         (SIG_ERR): Likewise.
8336         [X/Open-based standards] (SIG_HOLD): Likewise.
8337         (SIG_IGN): Likewise.
8338         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8339         positive value.
8340         (SIGFPE): Likewise.
8341         (SIGILL): Likewise.
8342         (SIGINT): Likewise.
8343         (SIGSEGV): Likewise.
8344         (SIGTER): Likewise.
8345         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8346         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8347         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8348         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8349         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8350         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8351         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8352         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8353         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8354         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8355         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8356         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8357         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8358         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8359         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8360         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8361         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8362         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8363         [X/Open-based standards] (SIGTRAP): Likewise.
8364         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8365         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8366         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8367         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8368         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8369         allow.
8370
8371 2012-05-08  Ian Wienand  <ianw@vmware.com>
8372
8373         [BZ #14080]
8374         * time/tzset.c (__tzset_parse_tz): Update default rules for
8375         daylight time changes in the Energy Policy Act of 2005.
8376
8377 2012-05-09  Andreas Jaeger  <aj@suse.de>
8378
8379         [BZ #13983]
8380         * elf/ldconfig.c (parse_conf): Change string to make clear that
8381         ldconfig only issued a warning if ld.so.conf does not exist.
8382
8383 2012-05-08  David S. Miller  <davem@davemloft.net>
8384
8385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8386         movxtod instead of popping the value on the stack.
8387
8388         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8389
8390 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8391
8392         * config.h.in: Add HAVE_ARM_PCS_VFP.
8393
8394 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8395
8396         [BZ #13979]
8397         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8398         checking but the checks are disabled for any reason.
8399
8400 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8401
8402         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8403         and ELF64_R_TYPE with ELFW(R_TYPE).
8404
8405 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8406
8407         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8408         (ulimit): Likewise.
8409
8410         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8411         (settimeofday): Likewise.
8412
8413 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8414
8415         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8416         a struct th_u2 inside the union, and move tu_block/tu_code into
8417         a new th_u3 union of tu_block/tu_code inside of that.  Move
8418         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8419         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8420         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8421         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8422         (th_stuff): Change to th_u1.tu_stuff.
8423         (th_data): Define.
8424         (th_msg): Change to th_u1.th_u2.tu_data.
8425
8426 2012-05-07  David S. Miller  <davem@davemloft.net>
8427
8428         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8429
8430         [BZ #14074]
8431         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8432         (SETUP_PIC_REG): Use it.
8433         (SETUP_PIC_REG_LEAF): Use it.
8434
8435 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8436
8437         [BZ #13885]
8438         [BZ #13923]
8439         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8440         USE_AS_EXPM1L.
8441         (EXPL_FINITE): Likewise.
8442         (FLDLOG): Likewise.
8443         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8444         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8445         e_expl.S.
8446         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8447         USE_AS_EXPM1L.
8448         (EXPL_FINITE): Likewise.
8449         (FLDLOG): Likewise.
8450         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8451         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8452         e_expl.S.
8453         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8454         test of -max_value argument for long double.
8455         * sysdeps/i386/fpu/libm-test-ulps: Update.
8456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8457
8458 2012-05-06  David S. Miller  <davem@davemloft.net>
8459
8460         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8461         quad soft-float symbols whose references which are compiler
8462         generated.
8463         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8464
8465 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8466
8467         [BZ #13884]
8468         [BZ #13914]
8469         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8470         USE_AS_EXP10L.
8471         (EXPL_FINITE): Likewise.
8472         (FLDLOG): Likewise.
8473         (c0): Likewise.
8474         (c1): Likewise.
8475         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8476         Adjust comments for base varying.
8477         (__expl_finite): Change alias to EXPL_FINITE.
8478         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8479         e_expl.S.
8480         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8481         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8482         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8483         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8484         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8485         USE_AS_EXP10L.
8486         (EXPL_FINITE): Likewise.
8487         (FLDLOG): Likewise.
8488         (c0): Likewise.
8489         (c1): Likewise.
8490         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8491         Adjust comments for base varying.
8492         (__expl_finite): Change alias to EXPL_FINITE.
8493         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8494         tests for bugs.
8495         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8496
8497         [BZ #14064]
8498         * math/libm-test.inc (check_float_internal): Correct ulp
8499         calculation for subnormal expected results.
8500
8501 2012-05-06  Andreas Jaeger  <aj@suse.de>
8502
8503         * Makeconfig (+math-flags): New, set to -frounding-math.
8504         (+cflags): Add +math-flags so that all of glibc gets compiled with
8505         it.
8506
8507         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8508
8509 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8510
8511         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8512         Disable one test.
8513
8514         [BZ #13787]
8515         [BZ #13922]
8516         [BZ #14036]
8517         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8518         (__ieee754_expl): Allow for and saturate large arguments.
8519         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8520         (u_threshold): Likewise.
8521         (__exp): Call __ieee754_exp before checking for overflow and
8522         underflow.
8523         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8524         (u_threshold): Likewise.
8525         (__expf): Call __ieee754_expf before checking for overflow and
8526         underflow.
8527         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8528         (u_threshold): Likewise.
8529         (__expl): Call __ieee754_expl before checking for overflow and
8530         underflow.
8531         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8532         (__ieee754_expl): Allow for and saturate large arguments.
8533         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8534         missing overflow exception on overflow.
8535         (expm1_test): Do not allow missing overflow exception on overflow.
8536
8537         * sysdeps/i386/fpu/e_expl.c: Move to ...
8538         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8539         rather than using inline asm.
8540         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8541         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8542         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8543
8544         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8545         (nice): Likewise.
8546         (poll): Likewise.
8547         (signal): Likewise.
8548         (time): Likewise.
8549         (times): Likewise.
8550
8551 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8552
8553         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8554         sysdeps/unix/common/syscalls.list.
8555         (fchmod): Likewise.
8556         (fchown): Likewise.
8557         (ftruncate): Likewise.
8558         (getrusage): Likewise.
8559         (gettimeofday): Likewise.
8560         (setpgid): Likewise.
8561         (setregid): Likewise.
8562         (setreuid): Likewise.
8563         (sigaction): Likewise.
8564         (truncate): Likewise.
8565         (vhangup): Likewise.
8566         * sysdeps/unix/common/syscalls.list: Remove file.
8567         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8568         * sysdeps/unix/sysv/linux/Implies: Likewise.
8569
8570 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8571
8572         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8573         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8574         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8575         Moved to ...
8576         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8577         Here.
8578         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8579         to ...
8580         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8581         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8582         to ...
8583         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8584         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8585         to ...
8586         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8587         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8588         to ...
8589         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8590         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8591         to ...
8592         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8593         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8594         to ...
8595         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8596         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8597         to ...
8598         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8599         Here.
8600         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8601         to ...
8602         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8603         Here.
8604         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8605         to ...
8606         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8607         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8608         Moved to ...
8609         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8610         Here.
8611         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8612         to ...
8613         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8614
8615 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8616
8617         * sysdeps/unix/common/bits/dirent.h: Remove file.
8618         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8619
8620         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8621         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8622         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8623         * sysdeps/unix/bsd/isatty.c: Likewise.
8624         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8625         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8626         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8627
8628 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8629
8630         [BZ #13563]
8631         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8632         long double comparison inaccuracies.
8633         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8634         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8635
8636 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8637
8638         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8639         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8640
8641 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8642
8643         [BZ #14049]
8644         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8645         nonzero digits before rounding a hex value.
8646         * stdlib/tst-strtod.c (tests): Add another test.
8647
8648 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8649
8650         * sysdeps/s390/fpu/libm-test-ulps: Update.
8651
8652 2012-05-03  Andreas Jaeger  <aj@suse.de>
8653
8654         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8655         does not get optimized out.
8656         (malloc_opt_barrier): New.
8657
8658 2012-05-03  Andreas Jaeger  <aj@suse.de>
8659             Roland McGrath  <roland@hack.frob.com>
8660
8661         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8662         intermediate file deletion.
8663         (generated): Add .symlist files.
8664
8665 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8666
8667         [BZ #13775]
8668         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8669         Redirect under this condition.
8670         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8671         [__USE_GNU] (__dprintf_chk): Not under this condition.
8672         [__USE_GNU] (__vdprintf_chk): Likewise.
8673         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8674         under this condition.
8675         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8676         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8677         [__USE_XOPEN2K8] (vdprintf): Likewise.
8678         [__USE_GNU] (__dprintf_chk): Not under this condition.
8679         [__USE_GNU] (__vdprintf_chk): Likewise.
8680         [__USE_GNU] (dprintf): Likewise.
8681         [__USE_GNU] (vdprintf): Likewise.
8682
8683 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8684
8685         * elf/Makefile (common-generated): Set this instead of generated for
8686         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8687         $(all-built-dso)-derived lists.
8688
8689 2012-05-03  Andreas Jaeger  <aj@suse.de>
8690
8691         * sysdeps/i386/fpu/libm-test-ulps: Update.
8692
8693         * FAQ: Removed.
8694         * FAQ.in: Likewise.
8695         * scripts/gen-FAQ.pl: Likewise.
8696         * manual/install.texi (Installation): Point to online location of
8697         FAQ.
8698         * Makefile (files-for-dist): Remove FAQ.
8699         (FAQ): Remove.
8700
8701 2012-05-02  Allan McRae  <allan@archlinux.org>
8702
8703         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8704         (LDFLAGS-reldepmod5.so): Likewise.
8705         (LDFLAGS-reldep6mod1.so): Likewise.
8706         (LDFLAGS-reldep6mod4.so): Likewise.
8707         (LDFLAGS-reldep8mod3.so): Likewise.
8708         (LDFLAGS-unload4mod1.so): Likewise.
8709         (LDFLAGS-unload4mod2.so): Likewise.
8710         (LDFLAGS-tst-initorder): Likewise.
8711         (LDFLAGS-tst-initordera2.so): Likewise.
8712         (LDFLAGS-tst-initordera3.so): Likewise.
8713         (LDFLAGS-tst-initordera4.so): Likewise.
8714         (LDFLAGS-tst-initorderb2.so): Likewise.
8715         (LDFLAGS-noload): Likewise.
8716         (LDFLAGS-next): Likewise.
8717         (LDFLAGS-order2mod1.so): Likewise.
8718         (LDFLAGS-order2mod2.so): Likewise.
8719         (LDFLAGS-tst-initorder2): Likewise.
8720         (LDFLAGS-tst-initorder2a.so): Likewise.
8721         (LDFLAGS-tst-initorder2b.so): Likewise.
8722         (LDFLAGS-tst-initorder2c.so): Likewise.
8723         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8724
8725 2012-05-02  David S. Miller  <davem@davemloft.net>
8726
8727         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8728
8729 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8730
8731         [BZ #14055]
8732         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8733
8734 2012-05-02  Andreas Jaeger  <aj@suse.de>
8735
8736         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8737         since we manipulate rounding mode.
8738         (CPPFLAGS-test-idouble.c): Likewise.
8739         (CPPFLAGS-test-ifloat.c): Likewise.
8740         (CFLAGS-test-ldouble.c): Likewise.
8741         (CFLAGS-test-double.c): Likewise.
8742         (CFLAGS-test-float.c): Likewise.
8743         (CFLAGS-test-misc.c): Likewise.
8744         (CFLAGS-test-test-fenv.c): Likewise.
8745
8746 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8747
8748         [BZ #2550]
8749         [BZ #2570]
8750         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8751         comparisons to determine direction to adjust input.
8752
8753 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8754
8755         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8756         output to the target.
8757
8758         * scripts/localplt.awk: New file.
8759         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8760         (check-localplt-CFLAGS): Variable removed.
8761         ($(all-built-dso:=.jmprel)): New static pattern rule.
8762         (generated): Add those targets.
8763         (localplt-built-dso): New variable.
8764         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8765
8766         * elf/check-localplt.c: File removed.
8767
8768         * scripts/check-execstack.awk: New file.
8769         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8770         (check-execstack-CFLAGS): Variable removed.
8771         ($(objpfx)check-execstack.h): Target removed.
8772         ($(objpfx)execstack-default): New target.
8773         (generated): Add that instead of check-execstack.h.
8774         ($(all-built-dso:=.phdr)): New static pattern rule.
8775         (generated): Add those targets.
8776         * elf/check-execstack.c: File removed.
8777
8778         * scripts/check-textrel.awk: New file.
8779         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8780         (check-textrel-CFLAGS): Variable removed.
8781         (all-built-dso): Use := to define.o
8782         ($(all-built-dso:=.dyn)): New static pattern rule.
8783         (generated): Add those targets.
8784         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8785         * config.make.in (READELF): New substituted variable.
8786         * elf/check-textrel.c: File removed.
8787
8788 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8789
8790         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8791         allow.
8792         * conform/data/ctype.h-data [C99-based standards] (isblank):
8793         Expect function.
8794         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8795         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8796         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8797         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8798         Specify type.  Require positive value.
8799         (EILSEQ): Likewise.
8800         (ERANGE): Likewise.
8801         [ISO || POSIX] (EILSEQ): Do not expect.
8802         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8803         Specify type.  Require positive value.
8804         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8805         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8806         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8807         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8808         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8809         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8810         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8811         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8812         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8813         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8814         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8815         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8816         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8817         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8818         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8819         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8820         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8821         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8822         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8823         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8824         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8825         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8826         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8827         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8828         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8829         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8830         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8831         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8832         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8833         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8834         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8835         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8836         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8837         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8838         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8839         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8840         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8841         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8842         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8843         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8844         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8845         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8846         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8847         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8848         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8849         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8850         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8851         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8852         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8853         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8854         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8855         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8856         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8857         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8858         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8859         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8860         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8861         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8862         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8863         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8864         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8865         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8866         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8867         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8868         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8869         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8870         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8871         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8872         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8873         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8874         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8875         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8876         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8877         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8878         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8879         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8880         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8881         Require >= 2.
8882         (FLT_ROUNDS): Expect as macro, not constant.
8883         (FLT_MANT_DIG): Use macro-int-constant.
8884         (DBL_MANT_DIG): Likewise.
8885         (LDBL_MANT_DIG): Likewise.
8886         (FLT_DIG): Likewise.
8887         (DBL_DIG): Likewise.
8888         (LDBL_DIG): Likewise.
8889         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8890         (DBL_MIN_EXP): Likewise.
8891         (LDBL_MIN_EXP): Likewise.
8892         (FLT_MAX_EXP): Use macro-int-constant.
8893         (DBL_MAX_EXP): Likewise.
8894         (LDBL_MAX_EXP): Likewise.
8895         (FLT_MAX_10_EXP): Likewise.
8896         (DBL_MAX_10_EXP): Likewise.
8897         (LDBL_MAX_10_EXP): Likewise.
8898         (FLT_MAX): Use macro-constant.
8899         (DBL_MAX): Likewise.
8900         (LDBL_MAX): Likewise.
8901         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8902         (DBL_EPSILON): Likewise.
8903         (LDBL_EPSILON): Likewise.
8904         (FLT_MIN): Likewise.
8905         (DBL_MIN): Likewise.
8906         (LDBL_MIN): Likewise.
8907         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8908         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8909         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8910         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8911         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8912         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8913         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8914         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8915         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8916         [ISO11] (FLT_TRUE_MIN): Likewise.
8917         [ISO11] (LDBL_TRUE_MIN): Likewise.
8918         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8919         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8920         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8921         (SCHAR_MAX): Likewise.
8922         (UCHAR_MAX): Likewise.
8923         (CHAR_MIN): Likewise.
8924         (CHAR_MAX): Likewise.
8925         (MB_LEN_MAX): Use macro-int-constant.
8926         (SHRT_MIN): Use macro-int-constant.  Specify type.
8927         (SHRT_MAX): Likewise.
8928         (USHRT_MAX): Likewise.
8929         (INT_MAX): Likewise.
8930         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8931         bound negative.
8932         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8933         bound with "U".
8934         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8935         bound with "L".
8936         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8937         bound negative.  Suffix upper bound with "L".
8938         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8939         bound with "UL".
8940         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8941         Specify type.
8942         [C99-based standards] (LLONG_MAX): Likewise.
8943         [C99-based standards] (ULLONG_MAX): Likewise.
8944         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8945         == 0.
8946         [ISO11] (max_align_t): Require type.
8947         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8948
8949         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8950         from $CFLAGS, without defining away __attribute__ calls.
8951         (checknamespace): Use $CFLAGS_namespace.
8952
8953         * conform/conformtest.pl (@keywords): Only include C99 keywords
8954         for standards based on C99 or C11.
8955
8956         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8957         Disable tests.
8958         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8959         UNIX98]: Likewise.
8960
8961         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8962         usability of symbols in #if.
8963
8964         * conform/conformtest.pl: If macro or constant types start
8965         "promoted:", expect the symbol to be of the following type
8966         promoted by the integer promotions.
8967
8968         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8969         in one place.  Also handle "macro-constant".
8970
8971         * conform/conformtest.pl: Only accept expected macro values with
8972         "==".  Parse all "macro" lines in one place.
8973         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8974
8975         * conform/conformtest.pl: Handle braced types on "constant" lines
8976         instead of handling "typed-constant".
8977         * conform/data/signal.h-data: Use "constant" instead of
8978         "typed-constant".
8979
8980         * conform/conformtest.pl: Handle "optional-" at start of lines in
8981         one place rather than duplicating several cases.  Handle each
8982         format of "macro" line with initial "optional-".
8983
8984         * conform/conformtest.pl: Only accept expected constant or
8985         optional-constant values with "==".  Parse all "constant" lines in
8986         one place.  Parse all "optional-constant" lines in one place.
8987         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8988         * conform/data/fmtmsg.h-data: Likewise.
8989         * conform/data/netinet/in.h-data: Likewise.
8990         * conform/data/tar.h-data: Likewise.
8991         * conform/data/limits.h-data: Use "==" form on "constant" and
8992         "optional-constant" lines.
8993
8994         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8995         Use -std=c99 for XOPEN2K.
8996         (@knownproblems): Remove.
8997         (newtoken): Don't check %isknown.
8998
8999         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9000         Do not expect macro.
9001         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9002         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9003         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9004         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9005         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9006         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9007         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9008         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9009         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9010         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9011         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9012         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9013         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9014         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9015         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9016         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9017         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9018         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9019         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9020         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9021         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9022         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9023         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9024         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9025         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9026         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9027         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9028         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9029         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9030         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9031         [XPG3] (acosh): Likewise.
9032         [XPG3] (asinh): Likewise.
9033         [XPG3] (atanh): Likewise.
9034         [XPG3] (cbrt): Likewise.
9035         [XPG3] (expm1): Likewise.
9036         [XPG3] (ilogb): Likewise.
9037         [XPG3] (log1p): Likewise.
9038         [XPG3] (logb): Likewise.
9039         [XPG3] (nextafter): Likewise.
9040         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9041         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9042         [XPG3] (remainder): Likewise.
9043         [XPG3] (rint): Likewise.
9044         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9045         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9046         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9047         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9048         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9049         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9050         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9051         [UNIX98 || XOPEN2K] (scalb): Expect.
9052         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9053         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9054         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9055         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9056         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9057         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9058         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9059         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9060         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9061         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9062         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9063         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9064         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9065         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9066         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9067         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9068         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9069         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9070         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9071         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9072         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9073         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9074         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9075         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9076         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9077         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9078         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9079         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9080         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9081         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9082         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9083         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9084         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9085         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9086         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9087         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9088         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9089         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9090         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9091         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9092         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9093         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9094         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9095         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9096         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9097         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9098         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9099         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9100         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9101         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9102         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9103         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9104         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9105         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9106         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9107         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9108         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9109         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9110         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9111         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9112         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9113         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9114         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9115         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9116         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9117         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9118         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9119         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9120         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9121         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9122         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9123         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9124         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9125         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9126         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9127         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9128         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9129         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9130         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9131         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9132         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9133         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9134         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9135         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9136         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9137         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9138         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9139         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9140         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9141         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9142         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9143         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9144         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9145         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9146         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9147         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9148         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9149         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9150         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9151         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9152         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9153         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9154         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9155         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9156         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9157         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9158         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9159         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9160         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9161         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9162         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9163         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9164         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9165         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9166         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9167         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9168         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9169         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9170         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9171         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9172         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9173         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9174         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9175         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9176         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9177         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9178         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9179         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9180         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9181         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9182         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9183         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9184         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9185         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9186         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9187         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9188         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9189
9190         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9191         _XOPEN_SOURCE_EXTENDED for XPG4.
9192
9193         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9194
9195         * Makeconfig (localtime): Remove variable.
9196         (inst_localtime-file): Likewise.
9197
9198 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9199
9200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9201         Update.
9202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9203         Update.
9204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9205         Update.
9206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9207         Update.
9208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9209         Update.
9210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9211         Update.
9212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9213         Update.
9214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9215         Update.
9216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9217         Update.
9218
9219 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9220
9221         [BZ #2550]
9222         [BZ #2570]
9223         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9224         comparisons to determine direction to adjust input.
9225         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9226         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9227         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9228         Likewise.
9229         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9230         Likewise.
9231         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9232         Likewise.
9233         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9234         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9235         Likewise.
9236         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9237         Likewise.
9238         * math/libm-test.inc (nexttoward_test): Add more tests.
9239
9240 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9241
9242         [BZ #14040]
9243         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9244         in version GLIBC_2.1, not GLIBC_2.0.
9245         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9246         Likewise.
9247
9248 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9249
9250         [BZ #13942]
9251         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9252         (1 - x) * (1 + x).
9253         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9254         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9255         * math/libm-test.inc (acos_test): Add more tests.
9256         (asin_test): Likewise.
9257         * sysdeps/i386/fpu/libm-test-ulps: Update.
9258         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9259
9260         [BZ #14034]
9261         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9262         of square root.
9263         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9264         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9265         * math/libm-test.inc (acos_test_tonearest): New function.
9266         (acos_test_towardzero): Likewise.
9267         (acos_test_downward): Likewise.
9268         (acos_test_upward): Likewise.
9269         (asin_test_tonearest): Likewise.
9270         (asin_test_towardzero): Likewise.
9271         (asin_test_downward): Likewise.
9272         (asin_test_upward): Likewise.
9273         (main): Call the new functions.
9274         * sysdeps/i386/fpu/libm-test-ulps: Update.
9275         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9276
9277         [BZ #13884]
9278         [BZ #13924]
9279         * math/e_exp10.c: Include <float.h>.
9280         (__ieee754_exp10): Handle underflow here rather than multiplying
9281         large negative argument by M_LN10.
9282         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9283         of __ieee754_expf.
9284         * math/e_exp10l.c: Include <float.h>.
9285         (__ieee754_exp10l): Handle underflow here rather than multiplying
9286         large negative argument by M_LN10l.
9287         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9288         spurious overflow exception on underflow.
9289
9290 2012-04-29  Marek Polacek  <polacek@redhat.com>
9291
9292         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9293         (__fortify_function): New macro.
9294         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9295         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9296         __extern_always_inline.
9297         * libio/bits/stdio2.h: Likewise.
9298         * libio/bits/stdio.h: Likewise.
9299         * string/string.h: Likewise.
9300         * string/bits/string3.h: Likewise.
9301         * include/stdio.h: Likewise.
9302         * stdlib/bits/stdlib.h: Likewise.
9303         * stdlib/stdlib.h: Likewise.
9304         * rt/bits/mqueue2.h: Likewise.
9305         * rt/mqueue.h: Likewise.
9306         * posix/bits/unistd.h: Likewise.
9307         * posix/unistd.h: Likewise.
9308         * io/bits/poll2.h: Likewise.
9309         * io/bits/fcntl2.h: Likewise.
9310         * io/fcntl.h: Likewise.
9311         * io/sys/poll.h: Likewise.
9312         * misc/bits/syslog.h: Likewise.
9313         * misc/bits/syslog-ldbl.h: Likewise.
9314         * misc/sys/syslog.h: Likewise.
9315         * socket/bits/socket2.h: Likewise.
9316         * socket/sys/socket.h: Likewise.
9317         * debug/tst-chk1.c: Likewise.
9318         * wcsmbs/bits/wchar2.h: Likewise.
9319         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9320         * wcsmbs/wchar.h: Likewise.
9321
9322 2012-04-29  Andreas Jaeger  <aj@suse.de>
9323
9324         * Makerules (tests): Remove enable-check-abi protection.
9325         (check-abi-warn): Remove.
9326         (check-abi-%): Remove check-abi-warn usage.
9327
9328         * configure.in: Remove check-abi configure option.
9329         * configure: Regenerated.
9330         * config.make.in (enable-check-abi): Remove.
9331
9332 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9333
9334         [BZ #14033]
9335         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9336         double functions to double *_finite functions.
9337
9338         [BZ #13941]
9339         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9340         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9341         LDBL_MIN_EXP.
9342         * stdio-common/Makefile (tests): Add tst-sprintf3.
9343         * stdio-common/tst-sprintf3.c: New file.
9344
9345         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9346         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9347
9348 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9349
9350         * conform/conformtest.pl: Remove duplicate typed-constant
9351         handling.
9352
9353 2012-04-28  David S. Miller  <davem@davemloft.net>
9354
9355         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9356         (check-abi-%): Remove AWK script prerequisite and explicit
9357         abilist directory.
9358         (check-abi): Rewrite to just diff the symlist with the abilist.
9359         (config-tls, config-abi-config): Delete, no longer used.
9360         (update-abi-%): Remove AWK script and explicit abilist directory.
9361         (update-abi): Rewrite to simply compare and conditionally copy the
9362         symlist and the sysdep abilist file.  Remove update-abi-config
9363         checks.
9364         * abilist/ld.abilist: Remove.
9365         * abilist/libBrokenLocale.abilist: Remove.
9366         * abilist/libanl.abilist: Remove.
9367         * abilist/libcrypt.abilist: Remove.
9368         * abilist/libdl.abilist: Remove.
9369         * abilist/librt.abilist: Remove.
9370         * abilist/libthread_db.abilist: Remove.
9371         * abilist/libutil.abilist: Remove.
9372         * scripts/extract-abilist.awk: Remove.
9373         * scripts/merge-abilist.awk: Remove.
9374         * sysdeps/generic/libcidn.abilist: New file.
9375         * sysdeps/generic/libnss_compat.abilist: New file.
9376         * sysdeps/generic/libnss_db.abilist: New file.
9377         * sysdeps/generic/libnss_dns.abilist: New file.
9378         * sysdeps/generic/libnss_files.abilist: New file.
9379         * sysdeps/generic/libnss_hesiod.abilist: New file.
9380         * sysdeps/generic/libnss_nis.abilist: New file.
9381         * sysdeps/generic/libnss_nisplus.abilist: New file.
9382         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9383         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9384         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9385         file.
9386         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9387         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9388         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9389         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9390         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9391         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9392         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9393         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9394         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9395         file.
9396         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9397         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9398         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9399         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9400         file.
9401         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9402         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9403         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9404         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9405         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9406         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9407         file.
9408         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9409         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9410         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9411         file.
9412         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9413         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9414         New file.
9415         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9416         New file.
9417         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9418         New file.
9419         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9420         New file.
9421         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9422         New file.
9423         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9424         New file.
9425         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9426         New file.
9427         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9428         New file.
9429         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9430         New file.
9431         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9432         New file.
9433         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9434         New file.
9435         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9436         New file.
9437         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9438         New file.
9439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9440         file.
9441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9442         New file.
9443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9444         New file.
9445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9446         file.
9447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9448         New file.
9449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9450         New file.
9451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9452         file.
9453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9454         New file.
9455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9456         New file.
9457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9458         New file.
9459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9460         New file.
9461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9462         New file.
9463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9464         New file.
9465         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9466         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9467         file.
9468         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9469         New file.
9470         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9471         file.
9472         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9473         file.
9474         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9475         file.
9476         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9477         file.
9478         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9479         file.
9480         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9481         New file.
9482         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9483         file.
9484         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9485         file.
9486         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9487         New file.
9488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9489         file.
9490         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9491         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9492         file.
9493         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9494         New file.
9495         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9496         file.
9497         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9498         file.
9499         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9500         file.
9501         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9502         file.
9503         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9504         file.
9505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9506         New file.
9507         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9508         file.
9509         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9510         file.
9511         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9512         New file.
9513         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9514         file.
9515         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9516         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9517         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9518         file.
9519         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9520         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9521         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9522         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9523         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9524         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9525         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9526         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9527         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9528         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9529         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9530         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9531         file.
9532         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9533         New file.
9534         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9535         file.
9536         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9537         file.
9538         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9539         file.
9540         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9541         file.
9542         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9543         file.
9544         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9545         New file.
9546         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9547         New file.
9548         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9549         file.
9550         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9551         New file.
9552         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9553         file.
9554         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9555         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9556         file.
9557         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9558         New file.
9559         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9560         file.
9561         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9562         file.
9563         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9564         file.
9565         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9566         file.
9567         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9568         file.
9569         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9570         New file.
9571         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9572         New file.
9573         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9574         file.
9575         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9576         New file.
9577         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9578         file.
9579
9580 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9581
9582         * conform/conformtest.pl: Fix typo in handling typed-constant from
9583         allow-header.
9584
9585 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9586
9587         * README: Cut down references to pre-2.6 Linux kernels and
9588         Linuxthreads.  Update lists of configurations in libc and ports
9589         and sort alphabetically.  Say "or newer" with Linux kernel version
9590         requirements.
9591
9592         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9593
9594 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9595
9596         [BZ #887]
9597         * math/libm-test.inc (logb_test_downward): New test to expose
9598         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9599         rounding mode.
9600
9601 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9602
9603         [BZ #14027]
9604         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9605         to be done.
9606         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9607         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9608
9609 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9610
9611         * sysdeps/unix/i386/brk.S: Remove file.
9612         * sysdeps/unix/i386/dl-brk.S: Likewise.
9613         * sysdeps/unix/i386/pipe.S: Likewise.
9614         * sysdeps/unix/i386/sigreturn.S: Likewise.
9615         * sysdeps/unix/i386/syscall.S: Likewise.
9616         * sysdeps/unix/i386/vfork.S: Likewise.
9617         * sysdeps/unix/i386/wait.S: Likewise.
9618
9619         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9620         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9621
9622         * configure.in (arm*-none*): Do not allow without
9623         --enable-hacker-mode.
9624         (netbsd*): Remove case setting base_os.
9625         (386bsd*): Likewise.
9626         (freebsd*): Likewise.
9627         (bsdi*): Likewise.
9628         (osf*): Likewise.
9629         (sunos*): Likewise.
9630         (ultrix*): Likewise.
9631         (newsos*): Likewise.
9632         (dynix*): Likewise.
9633         (*bsd*): Likewise.
9634         (sysv*): Likewise.
9635         (isc*): Likewise.
9636         (esix*): Likewise.
9637         (sco*): Likewise.
9638         (minix*): Likewise.
9639         (irix4*): Likewise.
9640         (irix6*): Likewise.
9641         (solaris[2-9]*): Likewise.
9642         (none): Likewise.
9643         * configure: Regenerated.
9644
9645 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9646
9647         [BZ #11521]
9648         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9649         overflow or cancellation in calculating denominator.
9650         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9651         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9652         down expression to avoid unexpected rounding in newer GCCs.
9653         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9654
9655 2012-04-26  David S. Miller  <davem@davemloft.net>
9656
9657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9658         long-double compat symbols.
9659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9664         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9665         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9666         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9667         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9668         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9669         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9671         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9672
9673 2012-04-25  David S. Miller  <davem@davemloft.net>
9674
9675         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9676         HWCAP_* values only after the memory barriers have been defined.
9677         (atomic_full_barrier): Define.
9678         (atomic_read_barrier): Define.
9679         (atomic_write_barrier): Define.
9680
9681 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9682
9683         * shlib-versions: Add libgcc_s version information.
9684         * sysdeps/generic/libgcc_s.h: Remove.
9685         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9686         libgcc_s.h.
9687         * sysdeps/gnu/unwind-resume.c: Likewise.
9688         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9689
9690 2012-04-25  David S. Miller  <davem@davemloft.net>
9691
9692         * sysdeps/unix/sparc/brk.S: Delete.
9693         * sysdeps/unix/sparc/dl-brk.S: Delete.
9694         * sysdeps/unix/sparc/pipe.S: Delete.
9695         * sysdeps/unix/sparc/sysdep.S: Delete.
9696         * sysdeps/unix/sparc/sysdep.h: Delete.
9697         * sysdeps/unix/sparc/vfork.S: Delete.
9698         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9699         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9700         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9701         ret_ERRVAL, r0, r1, MOVE): Define.
9702         (JUMPTARGET): Remove.
9703         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9704         sysdeps/unix/sparc/sysdep.h
9705         (ENTRY, END): Remove.
9706         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9707
9708 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9709
9710         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9711         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9712         -DIS_IN_build.
9713
9714         * timezone/README: Update upstream location and email address for
9715         tzcode and tzdata.
9716         * timezone/zdump.c: Update from tzcode 2012b.
9717         * timezone/zic.c: Likewise.
9718
9719         * configure.in (libc_cv_as_needed): Remove test.
9720         * configure: Regenerated.
9721         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9722         conditional definition.
9723         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9724         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9725         * config.make.in (have-as-needed): Remove variable.
9726
9727 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9728             Paul Pluzhnikov  <ppluzhnikov@google.com>
9729
9730         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9731         strings correctly.
9732
9733 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9734
9735         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9736         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9737         * sysdeps/sh/strlen.S: Likewise.
9738
9739 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9740
9741         * sysdeps/unix/fork.S: Remove file.
9742         * sysdeps/unix/i386/fork.S: Likewise.
9743         * sysdeps/unix/sparc/fork.S: Likewise.
9744
9745         * sysdeps/unix/system.c: Remove file.
9746         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9747
9748         * sysdeps/unix/getegid.S: Remove file.
9749         * sysdeps/unix/geteuid.S: Likewise.
9750
9751 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9752
9753         * scripts/check-localplt.awk: New file.
9754         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9755         of diff.
9756         * scripts/data/localplt-generic.data: Add a comment.
9757
9758         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9759         NODE when __dir_mkfile failed.
9760         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9761         Reported by Ludovic Courtès <ludo@gnu.org>.
9762
9763 2012-04-24  Andreas Jaeger  <aj@suse.de>
9764
9765         * Makerules (common-clean): Also remove gen-as-const-headers
9766         files.
9767
9768 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9769
9770         * Makerules (native-compile): Do not change working directory for
9771         build.  Use $(OUTPUT_OPTION) in command.
9772         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9773
9774 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9775
9776         [BZ #13886]
9777         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9778         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9779         * math/libm-test.inc (floor_test): Add more tests.
9780         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9781
9782 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9783
9784         * sysdeps/unix/getdents.c: Remove file.
9785         * sysdeps/unix/sysv/getdents.c: Likewise.
9786         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9787
9788         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9789         sysdeps/unix/mman/syscalls.list.
9790         (mmap): Likewise.
9791         (mprotect): Likewise.
9792         (msync): Likewise.
9793         (munmap): Likewise.
9794         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9795         * sysdeps/unix/mman/syscalls.list: Remove.
9796         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9797
9798         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9799         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9800         * configure: Regenerated.
9801         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9802         $(libgcc_s_suffix).
9803         * config.make.in (libgcc_s_suffix): Remove variable.
9804
9805 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9806
9807         * sysdeps/unix/sysv/gethostname.c: Move to ...
9808         * sysdeps/posix/gethostname.c: ... here.
9809
9810         * sysdeps/unix/execve.S: Remove file.
9811
9812         * sysdeps/unix/_exit.S: Remove file.
9813
9814 2012-04-23  Andreas Jaeger  <aj@suse.de>
9815
9816         [BZ #13739]
9817         * manual/Makefile: Remove make dist support, there's no
9818         need for a stand-alone documentation tar ball.
9819         (TEXI2DVI): Define always, it's not in Makeconfig.
9820         (dist): Removed.
9821         (tar-it): Removed.
9822         (edition): Removed.
9823         (glibc-doc-$(edition).tar): Removed
9824         (%.Z): Removed.
9825         (%.gz): Removed.
9826         (%.uu): Removed.
9827         (ETAGS): Remove, it's in Makeconfig.
9828         (move-if-change): Remove, it's in Makeconfig.
9829
9830 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9831
9832         [BZ #13970]
9833         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9834         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9835         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9836         (strtod_l, strtof_l, strtold_l): Remove __wur.
9837         It is not necessarily an error to ignore strtol's return value.
9838         One can reliably look at the stored endptr to decide whether
9839         the number had valid syntax.
9840
9841 2012-04-21  Andreas Jaeger  <aj@suse.de>
9842
9843         [BZ #13739]
9844         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9845
9846 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9847
9848         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9849         * sysdeps/unix/sysv/Versions: Remove file.
9850
9851 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9852
9853         [BZ #13927]
9854         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9855
9856 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9857
9858         [BZ #7064]
9859         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9860         version from __vm86.
9861
9862 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9863
9864         * sysdeps/unix/common/lxstat.c: Remove file.
9865         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9866
9867         * sysdeps/unix/sysv/Makefile: Remove file.
9868
9869         * sysdeps/unix/sysv/direct.h: Remove file.
9870
9871         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9872         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9873         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9874         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9875         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9876         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9877         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9878
9879         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9880
9881         * sysdeps/unix/xmknod.c: Remove file.
9882         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9883
9884         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9885
9886         * sysdeps/unix/sysv/i386/time.S: Remove file.
9887
9888         * sysdeps/unix/fxstat.c: Remove file.
9889         * sysdeps/unix/xstat.c: Likewise.
9890         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9891
9892         * sysdeps/unix/sysv/sigaction.c: Remove file.
9893
9894         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9895         (sysdep_headers): Remove variable.
9896         [termio.h not in sysdep_headers] (generated): Likewise.
9897         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9898         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9899         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9900         * sysdeps/unix/sysv/tcflow.c: Likewise.
9901         * sysdeps/unix/sysv/tcflush.c: Likewise.
9902         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9903         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9904         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9905         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9906         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9907
9908         * sysdeps/unix/siglist.c: Remove file.
9909
9910         * sysdeps/unix/getppid.S: Remove file.
9911
9912         * sysdeps/unix/mkdir.c: Remove file.
9913         * sysdeps/unix/rmdir.c: Likewise.
9914
9915 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9916
9917         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9918         ERR_MAX value.
9919         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9920         errlist-compat value.
9921
9922 2012-04-18  David S. Miller  <davem@davemloft.net>
9923
9924         * sysdeps/generic/memcopy.h (reg_char): Delete.
9925         * debug/strcat_chk.c: Use char, not reg_char.
9926         * debug/strcpy_chk.c: Likewise.
9927         * debug/strncat_chk.c: Likewise.
9928         * debug/strncpy_chk.c: Likewise.
9929         * string/memchr.c: Likewise.
9930         * string/memrchr.c: Likewise.
9931         * string/rawmemchr.c: Likewise.
9932         * string/strcat.c: Likewise.
9933         * string/strchr.c: Likewise.
9934         * string/strchrnul.c: Likewise.
9935         * string/strcmp.c: Likewise.
9936         * string/strcpy.c: Likewise.
9937         * string/strncat.c: Likewise.
9938         * string/strncmp.c: Likewise.
9939         * string/strncpy.c: Likewise.
9940
9941 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9942
9943         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9944         __builtin_memcopy is called when src and dest ranges are known to not
9945         overlap.
9946
9947 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9948
9949         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9950         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9951         fwd_align_merge macro call.
9952         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9953         bwd_align_merge macro call.
9954         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9955
9956 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9957
9958         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9959         bwd_align_merge macros.
9960         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9961         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9962         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9963
9964 2012-04-18  David S. Miller  <davem@davemloft.net>
9965
9966         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9967
9968 2012-04-18  Andreas Jaeger  <aj@suse.de>
9969
9970         [BZ# 6794]
9971         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9972         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9973         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9974
9975         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9976         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9977         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9978
9979         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9980         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9981         Adjust for changed ldbl-128 files.
9982
9983         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9984         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9985         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9986
9987 2012-04-17  David S. Miller  <davem@davemloft.net>
9988
9989         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9990
9991 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9992
9993         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9994         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9995         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9996         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9997         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9998         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9999
10000 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10001
10002         [BZ #6794]
10003         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10004         * math/libm-test.inc: Add ilogb errno and exception tests.
10005         * math/w_ilogb.c: New file: ilogb wrapper.
10006         * math/w_ilogbf.c: New file: ilogbf wrapper.
10007         * math/w_ilogbl.c: New file: ilogbl wrapper.
10008         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10009         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10010         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10011         exception being thrown with 0.0 as argument.
10012         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10013         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10014         exception being thrown with 0.0 as argument.
10015         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10016         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10017         exception being thrown with 0.0 as argument.
10018         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10019         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10020         exception being thrown with 0.0 as argument.
10021         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10022         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10023         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10024         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10025         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10026         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10027         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10028         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10029         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10030
10031 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10032
10033         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10034         with altivec.
10035
10036 2012-04-16  Marek Polacek  <polacek@redhat.com>
10037
10038         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10039
10040 2012-04-16  Marek Polacek  <polacek@redhat.com>
10041
10042         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10043         operands of fdivp instruction.
10044
10045 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10046
10047         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10048         * elf/tst-auditmod3b.c: Likewise.
10049         * elf/tst-auditmod4b.c: Likewise.
10050         * elf/tst-auditmod5b.c: Likewise.
10051         * elf/tst-auditmod6b.c: Likewise.
10052         * elf/tst-auditmod6c.c: Likewise.
10053         * elf/tst-auditmod7b.c: Likewise.
10054         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10055         * sysdeps/x86_64/preconfigure.in: Likewise.
10056         * sysdeps/x86_64/preconfigure: Regenerated.
10057
10058 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10059
10060         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10061         __ILP32__.
10062
10063 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10064
10065         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10066         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10067
10068 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10069
10070         [BZ #13973]
10071         * locale/iso-639.def: Fix gl language name. Spotted by
10072         Yaron Shahrabani.
10073
10074 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10075
10076         [BZ #2074]
10077         * libio/libio.h (__io_write_fn): Update comment.
10078
10079 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10080
10081         [BZ #2074]
10082         * stdio.texi (Hook Functions): The user provided writer function
10083         is not allowed to return -1.
10084
10085 2012-04-11  David S. Miller  <davem@davemloft.net>
10086
10087         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10088
10089 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10090
10091         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10092         Add a leading slash to rtkaio.
10093
10094 2012-04-11  Jim Meyering  <meyering@redhat.com>
10095
10096         [BZ #11959]
10097         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10098         It is not necessarily an error to ignore fwrite's return
10099         value.  One can reliably use ferror to test for errors after
10100         the fact.
10101
10102 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10103
10104         * bits/types.h (__snseconds_t): New type.
10105         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10106
10107         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10108         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10109         (__SNSECONDS_T_TYPE): Likewise.
10110         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10111         (__SNSECONDS_T_TYPE): Likewise.
10112         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10113         (__SNSECONDS_T_TYPE): Likewise.
10114
10115 2012-04-10  Andreas Jaeger  <aj@suse.de>
10116
10117         [BZ #2636]
10118         * manual/time.texi (Processor Time): Return type of times is
10119         elapsed real time since an arbitrary point in the past.
10120         (CPU Time): Move CLK_TCK from here...
10121         (Processor Time): ...to here.  Correct description.
10122         * manual/conf.texi (Constants for Sysconf): Correct description of
10123         _SC_CLK_TCK.
10124
10125 2012-04-10  David S. Miller  <davem@davemloft.net>
10126
10127         [BZ #13967]
10128         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10129         where the is a gap between DT_REL(A) and DT_JMPREL.
10130
10131 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10132
10133         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10134         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10135         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10136
10137 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10138
10139         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10140         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10141         (dl_main): Handle --inhibit-cache.
10142         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10143         _dl_inhibit_cache.
10144         * elf/dl-load.c (_dl_map_object): Use it.
10145         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10146
10147 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10148
10149         [BZ #13872]
10150         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10151         (__ieee754_powl): Saturate large exponents rather than testing for
10152         overflow of y*log2(x).
10153         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10154         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10155         exceptions.
10156
10157         [BZ #11521]
10158         * math/s_ctan.c: Include <float.h>.
10159         (__ctan): Avoid internal overflow or cancellation in calculating
10160         denominator.
10161         * math/s_ctanf.c: Likewise.
10162         * math/s_ctanl.c: Likewise.
10163         * math/s_ctanh.c: Likewise.
10164         * math/s_ctanhf.c: Likewise.
10165         * math/s_ctanhl.c: Likewise.
10166         * math/libm-test.inc (ctan_test): Add more tests.
10167         (ctanh_test): Likewise.
10168         * sysdeps/i386/fpu/libm-test-ulps: Update.
10169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10170
10171 2012-04-09  Andreas Jaeger  <aj@suse.de>
10172
10173         [BZ #6894]
10174         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10175         is an optional BSD extension.
10176
10177         [BZ #10254]
10178         * manual/stdio.texi (Opening Streams): Document additional fopen
10179         parameters.
10180
10181 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10182
10183         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10184         %eax without telling the compiler.
10185
10186 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10187
10188         [BZ # 13963]
10189         * manual/install.texi: Use sourceware.org.
10190
10191 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10192
10193         [BZ #13873]
10194         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10195         (__ieee754_pow): Generate overflow and underflow using huge*huge
10196         and tiny*tiny rather than just returning constant infinity or zero
10197         for large exponents.
10198         * math/libm-test.inc (pow_test): Require overflow exceptions for
10199         applicable cases of large exponents.
10200
10201         [BZ #706]
10202         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10203         (__ieee754_pow): Use iterative multiplication algorithm only for
10204         integer exponents with absolute value below 1024.  Check for odd
10205         integer exponents when using algorithm for real exponents.
10206         * math/libm-test.inc (pow_test): Add more tests.
10207         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10208
10209 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10210
10211         [BZ #13705]
10212         * math/libm-test.inc (exp_test): Do not allow overflow exception
10213         on underflow test.
10214
10215 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10216
10217         [BZ #13705]
10218         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10219         instead of __kernel_standard_f.
10220
10221 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10222
10223         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10224         * sysdeps/x86_64/memset_chk.S: Likewise.
10225
10226 2012-04-08  Andreas Jaeger  <aj@suse.de>
10227
10228         [BZ #10153]
10229         * manual/startup.texi (Environment Access): Describe return value
10230         for putenv and setenv.
10231
10232         [BZ #6895]
10233         * manual/filesys.texi (Directory Entries): Add description for
10234         DT_LNK.
10235
10236         [BZ #6890]
10237         * manual/filesys.texi (Directory Entries): Clarify that it's file
10238         system not operating system in the description of DT_UNKNOWN.
10239
10240         [BZ #6578]
10241         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10242
10243 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10244
10245         [BZ #6649]
10246         * manual/llio.texi (Opening and Closing Files): Add cross
10247         reference to explain mode argument.
10248
10249 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10250
10251         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10252         * sysdeps/x86_64/memset_chk.S: Likewise.
10253
10254 2012-04-07  David S. Miller  <davem@davemloft.net>
10255
10256         * elf/elf.h (R_SPARC_WDISP10): Define.
10257         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10258         R_SPARC_SIZE32.
10259         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10260         R_SPARC_SIZE64 and R_SPARC_H34.
10261
10262 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10263
10264         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10265         conditions and remove no longer applicable assertion.
10266
10267 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10268
10269         * bits/byteswap.h: Include <features.h>.
10270         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10271         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10272
10273 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10274
10275         * bits/byteswap.h (__bswap_16): Removed.
10276         Include <bits/byteswap-16.h> to get __bswap_16.
10277         * sysdeps/i386/bits/byteswap.h: Likewise.
10278         * sysdeps/s390/bits/byteswap.h: Likewise.
10279         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10280         * bits/byteswap-16.h: New file.
10281         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10282         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10283         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10284         * string/Makefile (headers): Add bits/byteswap-16.h.
10285
10286 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10287
10288         [BZ #13895]
10289         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10290         extra indirection.
10291         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10292         * nss/tst-nss-static.c: New.
10293
10294 2012-04-06  Robert Millan  <rmh@gnu.org>
10295
10296         [BZ #6486]
10297         * manual/llio.texi (File Position Primitive): lseek
10298         refers to WHENCE when it really means OFFSET.
10299
10300 2012-04-06  Andreas Jaeger  <aj@suse.de>
10301
10302         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10303         strncmp declarations.
10304
10305         * abilist/libc.abilist: Add __poll and __ppoll.
10306
10307 2012-04-05  David S. Miller  <davem@davemloft.net>
10308
10309         * scripts/check-local-headers.sh: Accept a host triplet in the
10310         path matched by the exclude regexp.
10311
10312         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10313         definition.
10314         * sysdeps/powerpc/powerpc32/dl-machine.h
10315         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10316         * sysdeps/s390/s390-32/dl-machine.h
10317         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10318         * sysdeps/sparc/sparc32/dl-machine.h
10319         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10320         * sysdeps/sparc/sparc64/dl-machine.h
10321         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10322
10323         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10324         lazy binding.
10325         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10326         undefined symbol errors.
10327
10328         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10329         DT_NEEDED entries.
10330
10331 2012-04-05  Michael Matz  <matz@suse.de>
10332
10333         [BZ #13592]
10334         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10335
10336 2012-04-05  Andreas Jaeger  <aj@suse.de>
10337
10338         [BZ #13908]
10339         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10340         comment.
10341
10342 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10343
10344         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10345         which ROUND is no valid rounding mode.
10346
10347 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10348
10349         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10350         read again.
10351         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10352
10353 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10354
10355         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10356         an exception using FPU order intentionally.
10357
10358 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10359
10360         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10361         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10362         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10363         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10364
10365 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10366
10367         [BZ #12340]
10368         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10369         EINVAL when BUFLEN is too smal.
10370
10371 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10372
10373         [BZ #13553]
10374         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10375         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10376
10377 2012-04-03  Andreas Jaeger  <aj@suse.de>
10378
10379         [BZ #13938]
10380         * manual/setjmp.texi (System V contexts): Fix sentence.
10381
10382         [BZ #13926]
10383         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10384         New macro for this case.
10385         [!__GNUC__] (__bswap_64): New inline function for this case.
10386         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10387         * bits/byteswap.h: Likewise.
10388         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10389         ull, guard with __GLIBC_HAVE_LONG_LONG.
10390
10391         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10392         __GLIBC_HAVE_LONG_LONG.
10393
10394         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10395         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10396
10397 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10398
10399         [BZ #13691]
10400         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10401         inptr and inend, rather than using last_ch.
10402
10403 2012-04-02  David S. Miller  <davem@davemloft.net>
10404
10405         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10406         * stdio-common/printf-parse.h (read_int): Change return type to
10407         'int', return -1 on INT_MAX overflow.
10408         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10409         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10410         overflows INT_MAX.  Check for overflow of in-format-string precision
10411         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10412         SIZE_MAX not INT_MAX for integer overflow test.
10413         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10414         skip the construct in the format string but do not record anything.
10415         * stdio-common/bug22.c: Adjust to test both width/prevision
10416         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10417         explicitly for proper errno values.
10418
10419 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10420
10421         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10422         CHAR_MAX.
10423         * string/test-strcmp.c [! WIDE]: Likewise.
10424         * time/tst-mktime2.c: Likewise for INT_MAX.
10425         * string/test-string.h: #include <sys/param.h> for MIN.
10426
10427         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10428         * sysdeps/i386/init-first.c (init): Likewise.
10429         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10430         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10431         * sysdeps/sh/init-first.c (init): Likewise.
10432
10433 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10434
10435         * po/ru.po: Update from translation team.
10436         * po/vi.po: Likewise.
10437
10438 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10439
10440         * resolv/nss_dns/dns-host.c: Merge copyright years.
10441
10442 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10443
10444         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10445         Optimize memcpy with prefetch if
10446         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10447         src, dst pointers have unequal 16 byte alignments.
10448
10449 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10450
10451         [BZ #13928]
10452         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10453         from a CNAME entry and return the minimum ttl for the query.
10454         (gaih_getanswer_slice): Likewise.
10455
10456 2012-03-30  Jeff Law  <law@redhat.com>
10457
10458         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10459         due to long keys.
10460         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10461         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10462
10463         * resolv/nss_dns/dns-host.c: Update copyright year.
10464
10465 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10466
10467         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10468         requests to save a system call.  Fix check that all bytes are sent.
10469
10470         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10471         comments for sendmmsg.
10472
10473 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10474
10475         [BZ #13691]
10476         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10477         with only 1 character between 0x0041 and 0x01b0.
10478         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10479         * wcsmbs/tst-mbsnrtowcs.c: New file.
10480
10481 2012-03-29  David S. Miller  <davem@davemloft.net>
10482
10483         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10484         small copies by hand.
10485
10486 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10487
10488         [BZ #13761]
10489         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10490         _nss_compat_initgroups_dyn): Fall back to malloc/free
10491         for large group memberships.
10492
10493 2012-03-28  David S. Miller  <davem@davemloft.net>
10494
10495         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10496         that branches into memcpy.
10497         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10498         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10499         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10500         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10501         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10502         bits.
10503         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10504         implementation too.
10505         * sysdeps/sparc/mempcpy.S: New file.
10506
10507         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10508         the IFUNC routine in the libc case.
10509         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10510
10511         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10512         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10513         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10514         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10515         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10516         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10517         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10518         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10519
10520         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10521         loop to 256 bytes instead of 64 bytes and fix test signedness.
10522
10523         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10524         * sysdeps/sparc/sparc32/Makefile: rather than here...
10525         * sysdeps/sparc/sparc64/Makefile: and here.
10526
10527 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10528
10529         * malloc/mallocbug.c: Avoid warnings about unused variables.
10530
10531 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10532
10533         [BZ #13760]
10534         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10535         in the right place. Discard and retry query if response is
10536         larger than input buffer size.
10537
10538 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10539
10540         [BZ #369]
10541         [BZ #2678]
10542         [BZ #3866]
10543         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10544         x for large integer exponent.
10545         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10546         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10547         sign of result as needed afterwards.
10548         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10549         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10550         result for underflowing pow the same as for overflow.
10551         (__kernel_standard_l): Handle powl overflow and underflow here
10552         rather than calling __kernel_standard.
10553         * math/libm-test.inc (pow_test): Add more tests.
10554
10555         [BZ #3868]
10556         [BZ #13879]
10557         [BZ #13910]
10558         [BZ #13911]
10559         [BZ #13912]
10560         [BZ #13913]
10561         [BZ #13915]
10562         [BZ #13916]
10563         [BZ #13917]
10564         [BZ #13918]
10565         [BZ #13919]
10566         [BZ #13920]
10567         [BZ #13921]
10568         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10569         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10570         (__kernel_standard_l): New function.
10571         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10572         __kernel_standard.
10573         * math/w_acosl.c (__acosl): Likewise.
10574         * math/w_asinl.c (__asinl): Likewise.
10575         * math/w_atan2l.c (__atan2l): Likewise.
10576         * math/w_atanhl.c (__atanhl): Likewise.
10577         * math/w_coshl.c (__coshl): Likewise.
10578         * math/w_exp10l.c (__exp10l): Likewise.
10579         * math/w_exp2l.c (__exp2l): Likewise.
10580         * math/w_fmodl.c (__fmodl): Likewise.
10581         * math/w_hypotl.c (__hypotl): Likewise.
10582         * math/w_j0l.c (__j0l, __y0l): Likewise.
10583         * math/w_j1l.c (__j1l, __y1l): Likewise.
10584         * math/w_jnl.c (__jnl, __ynl): Likewise.
10585         * math/w_lgammal.c (__lgammal): Likewise.
10586         * math/w_log10l.c (__log10l): Likewise.
10587         * math/w_log2l.c (__log2l): Likewise.
10588         * math/w_logl.c (__logl): Likewise.
10589         * math/w_powl.c (__powl): Likewise.
10590         * math/w_remainderl.c (__remainderl): Likewise.
10591         * math/w_scalbl.c (sysv_scalbl): Likewise.
10592         * math/w_sinhl.c (__sinhl): Likewise.
10593         * math/w_sqrtl.c (__sqrtl): Likewise.
10594         * math/w_tgammal.c (__tgammal): Likewise.
10595         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10596         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10597         * math/libm-test.inc (acos_test): Add more tests.
10598         (acosh_test): Likewise.
10599         (asin_test): Likewise.
10600         (atanh_test): Likewise.
10601         (exp_test): Likewise.
10602         (exp10_test): Likewise.
10603         (exp2_test): Likewise.
10604         (expm1_test): Likewise.
10605         (lgamma_test): Likewise.
10606         (log_test): Likewise.
10607         (log10_test): Likewise.
10608         (log1p_test): Likewise.
10609         (log2_test): Likewise.
10610         (pow_test): Do not allow some spurious overflow exceptions.
10611         (sqrt_test): Add more tests.
10612         (tgamma_test): Likewise.
10613         (y0_test): Likewise.
10614         (y1_test): Likewise.
10615         (yn_test): Likewise.
10616
10617 2012-03-27  Anton Blanchard  <anton@samba.org>
10618
10619         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10620         MAP_HUGETLB.
10621         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10622         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10623         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10624
10625 2012-03-27  David S. Miller  <davem@davemloft.net>
10626
10627         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10628
10629         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10630         have-as-vis3 check.
10631
10632 2012-03-27  Andreas Jaeger  <aj@suse.de>
10633
10634         * sysdeps/x86_64/elf/configure.in: Moved to ...
10635         * sysdeps/x86_64/configure.in: ... here.
10636         * sysdeps/x86_64/elf/start.S: Moved to ...
10637         * sysdeps/x86_64/start.S: ... here.
10638         * sysdeps/x86_64/elf/configure: Delete.
10639
10640         * sysdeps/x86_64/configure.in: Merge contents from
10641         sysdeps/i386/configure.in (without i686 check).
10642
10643         * sysdeps/i386/elf/Versions: Merge into ...
10644         * sysdeps/i386/Versions: ... this.
10645         * sysdeps/i386/elf/Versions: Delete file.
10646         * sysdeps/i386/elf/start.S: Moved to ...
10647         * sysdeps/i386/start.S: ...here.
10648         * sysdeps/i386/elf/configure.in: Merge into...
10649         * sysdeps/i386/configure.in: ...here.
10650         * sysdeps/i386/elf/configure.in: Delete file.
10651         * sysdeps/i386/elf/configure: Delete file.
10652
10653         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10654         * debug/backtracesyms.c: ... here.
10655         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10656         * debug/backtracesymsfd.c: ... here.
10657         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10658         * sysdeps/generic/ifunc-sel.h: ... here.
10659
10660         * sysdeps/unix/i386/start.c: Delete file.
10661         * sysdeps/unix/sparc/start.c: Delete file.
10662         * sysdeps/unix/start.c: Delete file.
10663
10664         * sysdeps/sh/elf/configure.in: Moved to ...
10665         * sysdeps/sh/configure.in: ... here.
10666         * sysdeps/sh/elf/start.S: Moved to ...
10667         * sysdeps/sh/start.S: ... here.
10668         * sysdeps/sh/elf/configure: Delete file.
10669
10670         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10671         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10672         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10673         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10674         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10675         * sysdeps/powerpc/powerpc64/start.S: here.
10676         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10677         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10678         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10679         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10680         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10681
10682         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10683         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10684         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10685         * sysdeps/powerpc/powerpc32/start.S: ... here.
10686         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10687         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10688         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10689
10690         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10691         * sysdeps/powerpc/ifunc-sel.h: ... here.
10692         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10693         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10694
10695         * sysdeps/sparc/elf/configure.in: Moved to ...
10696         * sysdeps/sparc/configure.in: ... here.
10697         * sysdeps/sparc/elf/configure: Delete file.
10698         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10699         * sysdeps/sparc/sparc32/start.S: ... here.
10700         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10701         * sysdeps/sparc/sparc64/start.S: ... here.
10702         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10703         * sysdeps/sparc/sparc32/Makefile: ... this.
10704         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10705         * sysdeps/sparc/sparc64/Makefile: ... this.
10706
10707         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10708         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10709         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10710         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10711         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10712         * sysdeps/s390/s390-32/setjmp.S: ... here.
10713         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10714         * sysdeps/s390/s390-32/configure.in: ... here.
10715         * sysdeps/s390/s390-32/elf/configure: Delete file.
10716         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10717         * sysdeps/s390/s390-32/start.S: ... here.
10718
10719         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10720         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10721         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10722         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10723         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10724         * sysdeps/s390/s390-64/setjmp.S: ... here.
10725         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10726         * sysdeps/s390/s390-64/configure.in: ... here
10727         * sysdeps/s390/s390-64/elf/configure: Delete file.
10728         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10729         * sysdeps/s390/s390-64/start.S: ... here.
10730         * sysdeps/s390/s390-64/elf/configure: Delete.
10731
10732         * configure.in: Remove support for elf directories in sysdeps.
10733
10734         * configure: Regenerated.
10735         * sysdeps/i386/configure: Regenerated.
10736         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10737         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10738         * sysdeps/s390/s390-32/configure: Regenerated.
10739         * sysdeps/s390/s390-64/configure: Regenerated.
10740         * sysdeps/sh/configure: Regenerated.
10741         * sysdeps/sparc/configure: Regenerated.
10742         * sysdeps/x86_64/configure: Regenerated.
10743
10744 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10745
10746         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10747
10748         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10749         denormal result into account.
10750
10751 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10752
10753         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10754         Reported by Allan McRae <allan@archlinux.org>.
10755
10756 2012-03-23  Jeff Law  <law@redhat.com>
10757
10758         * nss/getnssent.c (__nss_getent): Fix typo.
10759
10760 2012-03-23  David S. Miller  <davem@davemloft.net>
10761
10762         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10763
10764 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10765
10766         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10767         to pad to uint64_t for each field.
10768         (dl_tls_index): Replace unsigned long with uint64_t.
10769
10770 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10771         Paul Pluzhnikov  <ppluzhnikov@google.com>
10772
10773         [BZ #6528]
10774         * grp/Makefile (otherlibs): Don't set it.
10775         * inet/Makefile (otherlibs): Likewise.
10776         * login/Makefile (otherlibs): Likewise.
10777         * nscd/Makefile (otherlibs): Likewise.
10778         * posix/Makefile (otherlibs): Likewise.
10779         * pwd/Makefile (otherlibs): Likewise.
10780         * rt/Makefile (otherlibs): Likewise.
10781         * sunrpc/Makefile (otherlibs): Likewise.
10782         * nss/Makefile (otherlibs): Likewise.
10783         Add libnss_files to routines and static-only-routines.
10784         ($(objpfx)getent): Remove rule.
10785         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10786         static-only-routines.
10787
10788 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10789
10790         [BZ #13892]
10791         * math/s_cexp.c: Include <float.h>.
10792         (__cexp): Handle exp result overflowing not necessarily
10793         overflowing both real and imaginary parts of result.
10794         * math/s_cexpf.c: Likewise.
10795         * math/s_cexpl.c: Likewise.
10796         * math/libm-test.inc (cexp_test): Add more tests.
10797         * sysdeps/i386/fpu/libm-test-ulps: Update.
10798         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10799
10800 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10801
10802         * include/link.h (ELFW): New macro.
10803         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10804         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10805
10806 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10807
10808         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10809         with uint64_t.
10810
10811 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10812
10813         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10814         declaration.
10815         (struct La_x32_retval): Likewise.
10816
10817 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10818
10819         * sysdeps/x86_64/preconfigure.in: New file.
10820         * sysdeps/x86_64/preconfigure: New generated file.
10821
10822 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10823
10824         [BZ #13824]
10825         * math/e_exp2l.c: Include <float.h>.
10826         (__ieee754_exp2l): Handle overflow and underflow cases
10827         separately.  Only pass fractional part of argument to
10828         __ieee754_expl.
10829         * math/libm-test.inc (exp2_test): Add more tests.
10830
10831         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10832         negating x to take absolute value.
10833         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10834         Likewise.
10835         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10836         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10837         Likewise.
10838         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10839         computing low part if x was negated.
10840         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10841
10842 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10843
10844         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10845         la_x32_gnu_pltexit.
10846         (pltexit): Cast int_retval to ptrdiff_t.
10847         * elf/tst-auditmod3b.c: Likewise.
10848         * elf/tst-auditmod4b.c: Likewise.
10849         * elf/tst-auditmod5b.c: Likewise.
10850         * elf/tst-auditmod6b.c: Likewise.
10851         * elf/tst-auditmod6c.c: Likewise.
10852         * elf/tst-auditmod7b.c: Likewise.
10853
10854         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10855         and x32_gnu_pltexit.
10856
10857         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10858         __ELF_NATIVE_CLASS.
10859         (La_x32_regs): New macro.
10860         (La_x32_retval): Likewise.
10861         (la_x32_gnu_pltenter): New function prototype.
10862         (la_x32_gnu_pltexit): Likewise.
10863
10864 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10865
10866         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10867         exponent.
10868
10869         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10870
10871         * configure.in (libc_cv_cc_nofma): Check for option to disable
10872         generation of FMA instructions.
10873         * configure: Regenerate.
10874         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10875         * sysdeps/ieee754/dbl-64/Makefile: New file.
10876         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10877         Remove brandred-fma4.
10878         (CFLAGS-brandred-fma4.c): Remove.
10879         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10880         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10881         define.
10882         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10883         define.
10884
10885 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10886
10887         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10888         LLONG_MAX != LONG_MAX.
10889         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10890         (_fitoa_word): Likewise.
10891         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10892         LLONG_MAX != LONG_MAX.
10893         * stdio-common/_itowa.h: Include <_itoa.h>.
10894         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10895         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10896         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10897         only if not defined.
10898         (_ITOA_WORD_TYPE): Likewise.
10899         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10900         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10901
10902 2012-03-21  David S. Miller  <davem@davemloft.net>
10903
10904         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10905
10906 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10907
10908         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10909         of x86_64 when setting libc_cv_slibdir, libdir and
10910         libc_cv_localedir.
10911         * sysdeps/unix/sysv/linux/configure: Regenerated.
10912
10913 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10914
10915         * manual/lang.texi (Old Varargs): Remove section.
10916         (How Variadic): Update menu.
10917         (va_start): Do not mention varargs.h.
10918
10919 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10920             Joseph Myers  <joseph@codesourcery.com>
10921
10922         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10923         link test.
10924         * configure: Regenerated.
10925
10926 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10927
10928         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10929         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10930         conformtest.pl
10931
10932 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10933
10934         * NOTES: Remove.
10935         * Makefile (files-for-dist): Remove NOTES.
10936         (NOTES): Remove rule.
10937         * README: Don't refer to NOTES.
10938         * manual/creature.texi: Don't include macros.texi.
10939         * manual/intro.texi (creature.texi): Remove comment referring to
10940         NOTES.
10941
10942         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10943         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10944         * configure: Regenerated.
10945         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10946         LIBC_TRY_CC_OPTION.
10947         (libc_cv_as_i686): Likewise.
10948         (libc_cv_cc_avx): Likewise.
10949         (libc_cv_cc_sse2avx): Likewise.
10950         (libc_cv_cc_fma4): Likewise.
10951         (libc_cv_cc_novzeroupper): Likewise.
10952         * sysdeps/i386/configure: Regenerated.
10953
10954         [BZ #13883]
10955         * sysdeps/i386/fpu/s_cexp.S: Remove.
10956         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10957         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10958         * math/libm-test.inc (cexp_test): Add more tests.
10959         * sysdeps/i386/fpu/libm-test-ulps: Update.
10960         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10961
10962 2012-03-21  Allan McRae  <allan@archlinux.org>
10963
10964         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10965
10966 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10967
10968         [BZ #13871]
10969         * math/w_exp2.c: Do not include <float.h>.
10970         (o_threshold, u_threshold): Remove.
10971         (__exp2): Calculate result before checking finiteness and calling
10972         __kernel_standard.
10973         * math/w_exp2f.c: Likewise.
10974         * math/w_exp2l.c: Likewise.
10975         * math/libm-test.inc (exp2_test): Require overflow exception for
10976         1e6 input.
10977
10978         [BZ #3866]
10979         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10980         range of signed 64-bit integers before using fistpll.  Remove
10981         checks for whether integers fit in mantissa bits.
10982         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10983         the range of signed 32-bit integers before using fistpl.  Remove
10984         checks for whether integers fit in mantissa bits.
10985         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10986         (__ieee754_powl): Test for y outside the range of signed 64-bit
10987         integers before using fistpll.  Reduce 64-bit values to 63-bit
10988         ones as needed.
10989         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10990         divide-by-zero is raised for zero to large negative powers.
10991         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10992         (__ieee754_powl): Test for y outside the range of signed 64-bit
10993         integers before using fistpll.  Reduce 64-bit values to 63-bit
10994         ones as needed.
10995         * math/libm-test.inc (pow_test): Add more tests.
10996
10997 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10998
10999         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11000         <stdio-common/_itoa.h>.
11001         * debug/segfault.c: Likewise.
11002         * elf/dl-cache.c: Likewise.
11003         * elf/dl-minimal.c: Likewise.
11004         * elf/dl-misc.c: Likewise.
11005         * elf/dl-sysdep.c: Likewise.
11006         * elf/dl-version.c: Likewise.
11007         * elf/rtld.c: Likewise.
11008         * hurd/hurdsock.c: Likewise.
11009         * hurd/lookup-retry.c: Likewise.
11010         * malloc/malloc.c: Likewise.
11011         * malloc/mtrace.c: Likewise.
11012         * nscd/nscd_getgr_r.c: Likewise.
11013         * nscd/nscd_getpw_r.c: Likewise.
11014         * nscd/nscd_getserv_r.c: Likewise.
11015         * posix/getopt_init.c: Likewise.
11016         * posix/wordexp.c: Likewise.
11017         * stdio-common/_itoa.c: Likewise.
11018         * stdio-common/printf_fphex.c: Likewise.
11019         * stdio-common/vfprintf.c: Likewise.
11020         * string/_strerror.c: Likewise.
11021         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11022         * sysdeps/i386/i686/hp-timing.h: Likewise.
11023         * sysdeps/mach/_strerror.c: Likewise.
11024         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11025         * sysdeps/mach/hurd/sethostid.c: Likewise.
11026         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11027         * sysdeps/mach/xpg-strerror.c: Likewise.
11028         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11029         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11030         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11031         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11032         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11033         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11034         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11035         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11036         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11037         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11038         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11039         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11040         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11041         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11042         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11043         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11044         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11045         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11046         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11047         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11048         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11049
11050         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11051
11052         * stdio-common/_itoa.h: Moved to ...
11053         * sysdeps/generic/_itoa.h: Here.
11054
11055         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11056
11057         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11058         instead of "_itoa.h" and "_itowa.h".
11059         * stdio-common/vfprintf.: Likewise.
11060
11061 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11062
11063         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11064         <bits/wordsize.h>.
11065         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11066         (__signbit): Likwise.
11067         (llrintf): Likwise.
11068         (llrint): Likwise.
11069
11070 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11071
11072         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11073         __WORDSIZE != 64.
11074
11075 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11076
11077         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11078         OVERFLOW_EXCEPTION_OK.
11079         * math/libm-test.inc ("Philosophy"): Update comment about
11080         exception testing.
11081         (OVERFLOW_EXCEPTION): Define.
11082         (OVERFLOW_EXCEPTION_OK): Likewise.
11083         (INVALID_EXCEPTION_OK): Renumber.
11084         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11085         (IGNORE_ZERO_INF_SIGN): Likewise.
11086         (test_exceptions): Handle FE_OVERFLOW.
11087         (exp10_test): Expect overflow exceptions.
11088         (exp2_test): Likewise.
11089         (expm1_test): Likewise.
11090         (nextafter_test): Likewise.
11091         (pow_test): Likewise.
11092         (scalbn_test): Likewise.
11093         (scalbln_test): Likewise.
11094
11095 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11096
11097         * sysdeps/x86_64/bits/atomic.h
11098         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11099         64bit integer.
11100         (atomic_exchange_acq): Likewise.
11101         (__arch_exchange_and_add_body): Likewise.
11102         (__arch_add_body): Likewise.
11103         (atomic_add_negative): Likewise.
11104         (atomic_add_zero): Likewise.
11105
11106 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11107
11108         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11109         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11110
11111 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11112
11113         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11114         Check __x86_64__ instead of __WORDSIZE.
11115
11116 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11117
11118         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11119
11120 2012-03-19  David S. Miller  <davem@davemloft.net>
11121
11122         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11123
11124         * sysdeps/sparc/fpu/fenv_private.h: New file.
11125         * sysdeps/sparc/fpu/math_private.h: Use it.
11126         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11127         Remove.
11128         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11129         (libc_feholdexcept_setroundl): Remove.
11130         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11131         Remove.
11132         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11133         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11134
11135 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11136
11137         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11138         int64_t instead of long int.
11139         (INSERT_WORDS64): Likwise.
11140
11141 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11142
11143         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11144         _Unwind_GetCFA return to _Unwind_Ptr first.
11145
11146 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11147
11148         [BZ #13629]
11149         * math/s_clog.c: Include <float.h>.
11150         (__clog): Scale large or subnormal inputs.
11151         * math/s_clogf.c: Likewise.
11152         * math/s_clogl.c: Likewise.
11153         * math/s_clog10.c: Include <float.h>.
11154         (M_LOG10_2): Define.
11155         (__clog10): Scale large or subnormal inputs.
11156         * math/s_clog10f.c: Likewise.
11157         * math/s_clog10l.c: Likewise.
11158         * math/libm-test.inc (clog_test): Add more tests.
11159         (clog10_test): Likewise.
11160         * sysdeps/i386/fpu/libm-test-ulps: Update.
11161         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11162
11163         [BZ #11451]
11164         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11165         x and y.
11166         * math/libm-test.inc (atan2_test): Add another test.
11167
11168         * Makerules (common-objdir-compile): Remove.
11169         * sysdeps/unix/Makefile (config-generated): Do not add
11170         $(unix-generated) to variable.
11171         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11172         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11173         Remove rule.
11174         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11175         Likewise.
11176         [generic bits/local_lim.h] (before-compile): Do not append to
11177         variable.
11178         [generic bits/local_lim.h] (common-generated): Likewise.
11179         [generic sys/param.h] (before-compile): Do not append to variable.
11180         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11181         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11182         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11183         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11184         include.
11185         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11186         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11187         [generic sys/param.h] ($(addprefix
11188         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11189         [generic sys/param.h] (common-generated): Do not append to
11190         variable.
11191         [generic sys/param.h] (sysdep_headers): Likewise.
11192         [generic bits/errno.h] (before-compile): Do not append to
11193         variable.
11194         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11195         rule.
11196         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11197         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11198         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11199         [generic bits/errno.h] (common-generated): Do not append to
11200         variable.
11201         [generic bits/ioctls.h] (before-compile): Do not append to
11202         variable.
11203         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11204         rule.
11205         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11206         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11207         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11208         rule.
11209         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11210         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11211         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11212         [generic bits/ioctls.h] (common-generated): Do not append to
11213         variable.
11214         [generic sys/syscall.h] (syscall.h): Remove variable.
11215         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11216         rule.
11217         [generic sys/syscall.h] (before-compile): Do not append to
11218         variable.
11219         [generic sys/syscall.h] (common-generated): Likewise.
11220         * sysdeps/unix/errnos-tmpl.c: Remove file.
11221         * sysdeps/unix/errnos.awk: Likewise.
11222         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11223         * sysdeps/unix/ioctls.awk: Likewise.
11224         * sysdeps/unix/mk-local_lim.c: Likewise.
11225         * sysdeps/unix/snarf-ioctls: Likewise.
11226
11227 2012-03-19  Richard Henderson  <rth@twiddle.net>
11228
11229         * sysdeps/i386/fpu/fenv_private.h: New file.
11230         * sysdeps/i386/fpu/math_private.h: Use it.
11231         (math_opt_barrier, math_force_eval): Remove.
11232         (libc_feholdexcept_setround_53bit): Remove.
11233         (libc_feupdateenv_53bit): Remove.
11234         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11235         (math_opt_barrier, math_force_eval): Remove.
11236         (libc_feholdexcept): Remove.
11237         (libc_feholdexcept_setround): Remove.
11238         (libc_fetestexcept, libc_fesetenv): Remove.
11239         (libc_feupdateenv_test): Remove.
11240         (libc_feupdateenv, libc_feholdsetround): Remove.
11241         (libc_feresetround): Remove.
11242
11243         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11244         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11245
11246         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11247         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11248         (libc_feupdateenv_testl): New.
11249         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11250         (libc_feupdateenv_testf): New.
11251         (libc_feupdateenv): Use libc_feupdateenv_test.
11252         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11253         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11254
11255         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11256         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11257         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11258         (libc_feresetround_noex): New.
11259         (libc_feresetround_noexf): New.
11260         (libc_feresetround_noexl): New.
11261         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11262         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11263         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11264         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11265         SET_RESTORE_ROUND.
11266         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11267         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11268         (__cos): Likewise.
11269         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11270         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11271         SET_RESTORE_ROUND_NOEX.
11272         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11273         SET_RESTORE_ROUND_NOEXF.
11274         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11275         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11276         (libc_feholdsetroundf): New.
11277         (libc_feresetround, libc_feresetroundf): New.
11278
11279         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11280         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11281         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11282
11283         * sysdeps/generic/math_private.h: Include <fenv.h>.
11284         (default_libc_feholdexcept): New.
11285         (default_libc_feholdexcept_setround): New.
11286         (default_libc_fesetenv, default_libc_feupdateenv): New.
11287         (libc_feholdexcept): Only define if undefined.
11288         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11289         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11290         (libc_feholdexcept_setroundl): Likewise.
11291         (libc_feholdexcept_setround_53bit): Likewise.
11292         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11293         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11294         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11295         (libc_feupdateenv_53bit): Likewise.
11296         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11297         (libc_feholdexcept): Convert from macro to inline function.
11298         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11299         (libc_fesetenv, libc_feupdateenv): Likewise.
11300
11301         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11302         not previously defined.
11303         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11304         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11305         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11306         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11307         * sysdeps/ieee754/flt-32/math_private.h: New file.
11308         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11309         math_private.h below SET_FLOAT_WORD.
11310         (__isnan, __isinf_ns, __finite): Remove.
11311         (__isnanf, __isinf_nsf, __finitef): Remove.
11312
11313 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11314
11315         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11316
11317 2012-03-17  David S. Miller  <davem@davemloft.net>
11318
11319         [BZ #6471]
11320         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11321         for 2.16.
11322
11323 2012-03-16  David S. Miller  <davem@davemloft.net>
11324
11325         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11326         warnings.
11327
11328         [BZ #6471]
11329         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11330         properly.
11331         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11332         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11333         sysdep_routines when subdir is sysvipc.
11334         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11335         __getshmlba helper.
11336
11337         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11338
11339 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11340
11341         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11342         [__LP64__].
11343
11344 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11345
11346         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11347         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11348         (__lround): Renamed to ...
11349         (__llround): This.  Replace long int with long long int.
11350         Define lround functions as aliases of llround functions.
11351         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11352
11353 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11354
11355         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11356         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11357         adresses to uintptr_t.  Replace "long int" and "unsigned long
11358         int" with "greg_t" on va_arg.
11359
11360 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11361
11362         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11363         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11364
11365         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11366         Move e_machine check before EI_CLASS check.  Handle x32
11367         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11368         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11369         SKIP_EM_IA_64 and include
11370         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11371
11372         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11373         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11374         (add_system_dir): New macro.
11375
11376         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11377         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11378
11379 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11380
11381         [BZ #2551]
11382         [BZ #2552]
11383         [BZ #2553]
11384         [BZ #2554]
11385         [BZ #2562]
11386         [BZ #2563]
11387         [BZ #2565]
11388         [BZ #2566]
11389         [BZ #2576]
11390         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11391         (y0): Likewise.
11392         * math/w_j0f.c (j0f): Likewise.
11393         (y0f): Likewise.
11394         * math/w_j0l.c (__j0l): Likewise.
11395         (__y0l): Likewise.
11396         * math/w_j1.c (j1): Likewise.
11397         (y1): Likewise.
11398         * math/w_j1f.c (j1f): Likewise.
11399         (y1f): Likewise.
11400         * math/w_j1l.c (__j1l): Likewise.
11401         (__y1l): Likewise.
11402         * math/w_jn.c (jn): Likewise.
11403         (yn): Likewise.
11404         * math/w_jnf.c (jnf): Likewise.
11405         (ynf): Likewise.
11406         * math/w_jnl.c (__jnl): Likewise.
11407         (__ynl): Likewise.
11408         * math/libm-test.inc (j0_test): Add more tests.
11409         (j1_test): Likewise.
11410         (jn_test): Likewise.  Add trailing semicolon to existing test.
11411         (y0_test): Likewise.
11412         (y1_test): Likewise.
11413         * sysdeps/i386/fpu/libm-test-ulps: Update.
11414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11415
11416         [BZ #13851]
11417         [BZ #13854]
11418         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11419         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11420         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11421         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11422         (__tanl): Set errno for infinite argument.
11423         * sysdeps/i386/fpu/mptan.c: Remove.
11424         * sysdeps/i386/fpu/s_tan.S: Likewise.
11425         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11426         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11427         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11428         * math/libm-test.inc (tan_test): Add more tests and enable more
11429         tests for double and long double.
11430         * sysdeps/i386/fpu/libm-test-ulps: Update.
11431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11432
11433 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11434
11435         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11436         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11437
11438 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11439
11440         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11441         * configure.in: Use it for both main tree and add-ons.
11442         * configure: Regenerated.
11443
11444 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11445
11446         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11447
11448 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11449
11450         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11451         in comment.
11452
11453         [BZ #13851]
11454         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11455         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11456         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11459         infinite argument.
11460         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11461         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11462         != 0 for prec == 2.
11463         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11464         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11465         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11466         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11467         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11468         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11469         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11470         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11471         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11472         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11473         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11474         * math/libm-test.inc (cos_test): Add more tests and enable more
11475         tests for long double.
11476         (sin_test): Likewise.
11477         (sincos_test): Likewise.
11478         * sysdeps/i386/fpu/libm-test-ulps: Update.
11479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11480
11481 2012-03-16  David S. Miller  <davem@davemloft.net>
11482
11483         * sysdeps/sparc/fpu/math_private.h: New file.
11484
11485 2012-03-15  David S. Miller  <davem@davemloft.net>
11486
11487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11488         file.
11489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11491         file.
11492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11493         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11494         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11495         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11496         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11497         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11498         sysdep routines.
11499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11500
11501         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11502         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11503
11504         * sysdeps/sparc/sparc-ifunc.h: New file.
11505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11506         sparc-ifunc.h
11507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11509         Likewise.
11510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11511         Likewise.
11512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11516         Likewise.
11517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11522         Likewise.
11523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11524         Likewise.
11525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11529         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11530         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11531         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11532         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11533         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11534         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11535         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11536         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11537         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11538         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11539         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11540         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11541         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11542         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11543         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11544         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11545         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11546         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11547         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11548         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11549
11550 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11551
11552         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11553         scaling.
11554         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11555
11556 2012-03-15  Andreas Jaeger  <aj@suse.de>
11557
11558         [BZ #13852]
11559         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11560         ieee754/flt-32 implementation for sin, cos and sincos.
11561         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11562         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11563         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11564         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11565         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11566         ieee754/flt-32 implementation for tan.
11567
11568         * math/libm-test.inc (cos_test): Enable some large input tests for
11569         float as well
11570         (sin_test): Likewise.
11571         (sincos_test): Likewise.
11572         (tan_test): Add tests for large input.
11573
11574         * sysdeps/i386/fpu/libm-test-ulps: Update.
11575
11576 2012-03-15  Andreas Jaeger  <aj@suse.de>
11577
11578         [BZ #13658]
11579         * math/libm-test.inc (cos_test): Add more test cases.
11580         (sin_test): Likewise.
11581         (sincos_test): Likewise.
11582
11583 2012-03-15  Andreas Jaeger  <aj@suse.de>
11584
11585         [BZ #13837]
11586         * math/libm-test.inc (cos_test): Add a test case for large input
11587         value.
11588         (sin_test): Likewise.
11589         (sincos_test): Likewise.
11590
11591 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11592         Joseph Myers  <joseph@codesourcery.com>
11593
11594         [BZ #13658]
11595         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11596         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11597         * sysdeps/i386/fpu/branred.c: Likewise.
11598         * sysdeps/i386/fpu/dosincos.c: Likewise.
11599         * sysdeps/i386/fpu/mpa.c: Likewise.
11600         * sysdeps/i386/fpu/s_cos.S: Likewise.
11601         * sysdeps/i386/fpu/s_sin.S: Likewise.
11602         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11603         * sysdeps/i386/fpu/sincos32.c: Likewise.
11604
11605         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11606         Define.
11607         (libc_feupdateenv_53bit): Define.
11608         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11609         Define.
11610         (libc_feupdateenv_53bit): Define.
11611
11612         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11613         53 bit (without extend i386 double precision).
11614
11615         * math/libm-test.inc (sincos_test): Add tests for large input.
11616         (sin): Likewise.
11617         (cos): Likewise.
11618
11619         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11620
11621 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11622
11623         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11624
11625 2012-03-15  David S. Miller  <davem@davemloft.net>
11626
11627         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11628         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11629         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11630         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11631         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11632         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11633         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11634         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11635         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11636         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11637         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11638         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11639         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11640         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11641         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11643         file.
11644         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11646         file.
11647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11649         file.
11650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11652         file.
11653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11654         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11655         fmin/fmax sysdep routines.
11656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11657
11658 2012-03-14  David S. Miller  <davem@davemloft.net>
11659
11660         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11661         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11662         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11663         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11664         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11665         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11666         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11667         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11668         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11669         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11670         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11671         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11672         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11673         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11674         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11675         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11676         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11677         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11678         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11679         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11680         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11681         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11682         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11683         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11684         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11685         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11686         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11687         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11688         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11689         routines.
11690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11691         file.
11692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11694         file.
11695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11697         file.
11698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11700         file.
11701         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11703         file.
11704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11706         file.
11707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11708         file.
11709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11710         file.
11711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11712         file.
11713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11714         New file.
11715         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11716         file.
11717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11718         file.
11719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11721         file.
11722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11724         file.
11725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11727         file.
11728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11730         VIS3 routines.
11731
11732         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11733         New file.
11734
11735         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11736
11737         * sysdeps/sparc/configure.in: New file.
11738         * sysdeps/sparc/configure: Generate.
11739         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11740         * configure: Regenerate.
11741         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11742         * config.make.in (have-as-vis3): New.
11743         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11744         available use -Av9d instead of -Av9a.
11745         * sysdeps/sparc/sparc64/Makefile: Likewise.
11746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11748         New file.
11749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11750         file.
11751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11752         New file.
11753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11754         file.
11755         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11756         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11757         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11758         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11759         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11760
11761         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11762         fzeros/fnegs to load 0x80000000 into a float register instead of
11763         using the stack.
11764         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11765
11766 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11767
11768         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11769         bits/syscall.h.
11770         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11771         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11772         ($(inst_includedir)/bits/syscall.h): Remove rule.
11773         ($(objpfx)bits/syscall.d): Include instead of
11774         $(objpfx)syscall-list.d.
11775         (generated): Change syscall-list.h and syscall-list.d to
11776         bits/syscall.h and bits/syscall.d.
11777
11778 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11779
11780         [BZ #13846]
11781         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11782
11783 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11784
11785         [BZ #13841]
11786         * math/s_csqrt.c: Include <float.h>.
11787         (__csqrt): Scale large or subnormal inputs.
11788         * math/s_csqrtf.c: Likewise.
11789         * math/s_csqrtl.c: Likewise.
11790         * math/libm-test.inc (csqrt_test): Add more tests.
11791         * sysdeps/i386/fpu/libm-test-ulps: Update.
11792         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11793
11794         [BZ #13840]
11795         * math/libm-test.inc (hypot_test): Add more tests.
11796
11797 2012-03-13  David S. Miller  <davem@davemloft.net>
11798
11799         [BZ #13840]
11800         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11801         double-precision for the calculation instead of scaling.
11802
11803 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11804
11805         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11806         manipulate bits before adding and subtracting TWO52[sx].
11807         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11808         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11809         Likewise.
11810         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11811
11812 2012-03-13  David S. Miller  <davem@davemloft.net>
11813
11814         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11815         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11816         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11817         rtld-global-offsets.h
11818         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11819
11820         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11821         large parameters.
11822
11823         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11824
11825         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11826         'err' in the ifdef scope in which it is actually used.
11827
11828         * nss/nss_db/db-init.c: Include string.h
11829
11830 2012-03-12  David S. Miller  <davem@davemloft.net>
11831
11832         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11833         masking out of the most significant byte of random value used.
11834         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11835         Fix coding style in previous change.
11836
11837         * sysdeps/unix/sysv/linux/kernel-features.h
11838         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11839         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11840         expression.
11841         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11842         later.
11843
11844 2012-03-11  David S. Miller  <davem@davemloft.net>
11845
11846         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11847         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11848         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11849         for 'resultvar' otherwise things get truncated on 64-bit.
11850
11851         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11852         Fix masking out of the most significant byte of random value used.
11853
11854         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11855
11856 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11857
11858         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11859
11860 2012-03-09  David S. Miller  <davem@davemloft.net>
11861
11862         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11863         variables with appropriate CPP guards.
11864         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11865         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11866         on resulting framesize and the management of the outregs buffer for pltexit.
11867         Preserve floating point return values across _dl_call_pltexit call.
11868         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11869         framesize and the management of the outregs buffer for pltexit.
11870         Preserve floating point return values across _dl_call_pltexit
11871         call.
11872         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11873         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11874         (print_exit): Fix format string for return register value.
11875
11876 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11877
11878         * sunrpc/Makefile (others): Add rpcgen.
11879         ($(objpfx)rpcgen): Remove special build rule and dependency on
11880         libc.
11881         * sunrpc/rpcgen.c: New file.
11882
11883 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11884
11885         [BZ #13673]
11886         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11887         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11888         * sysdeps/i386/crti.S: Likewise.
11889         * sysdeps/i386/crtn.S: Likewise.
11890         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11891         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11892         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11893         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11894         * sysdeps/sh/crti.S: Likewise.
11895         * sysdeps/sh/crtn.S: Likewise.
11896         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11897
11898         [BZ #13673]
11899         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11900         with URL.
11901         * locale/programs/locfile-kw.gperf: Likewise.
11902         * locale/programs/charmap-kw.h: Regenerated.
11903         * locale/programs/locfile-kw.h: Likewise.
11904
11905         [BZ #13673]
11906         * intl/plural.y: Replace FSF snail mail address with URL.
11907         * intl/plural.c: Regenerated.
11908
11909 2012-03-09  Richard Henderson  <rth@twiddle.net>
11910
11911         * include/math_private.h: Remove file.
11912         * math/math_private.h: Move file ...
11913         * sysdeps/generic/math_private.h: ... here.
11914
11915         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11916         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11917         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11918
11919         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11920         and <math_private.h>.
11921         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11922         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11923         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11924         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11925         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11926         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11927         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11928         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11929         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11930         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11931         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11932         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11933         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11934         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11935         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11936         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11937         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11938         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11939         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11940         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11941         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11942         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11943         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11944         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11945         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11946         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11947         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11948         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11949         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11950         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11951         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11952         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11953         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11954         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11955         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11956         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11957         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11958         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11959         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11960         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11961         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11962         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11963         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11964         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11965         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11966         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11967         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11968         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11969         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11970         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11971         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11972         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11973         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11974         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11975         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11976         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11977         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11978         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11979         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11980         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11981         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11982         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11983         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11984         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11985         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11986         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11987         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11988         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11989         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11990         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11991         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11992         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11993         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11994         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11995         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11996         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11997         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11998         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11999         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12000         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12001         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12002         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12003         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12004         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12005         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12006         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12007         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12008         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12009         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12010         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12011         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12012         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12013         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12014         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12015         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12016         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12017         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12018         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12019         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12020         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12021         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12022         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12023         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12024         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12025         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12026         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12027         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12028         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12029         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12030         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12031         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12032         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12033         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12034         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12035         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12036         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12037         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12038         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12039         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12040         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12041         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12042         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12043         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12044         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12045         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12046         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12047         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12048         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12049         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12050         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12051         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12052         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12053         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12054         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12055         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12056         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12057         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12058         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12059         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12060         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12061         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12062         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12063         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12064         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12065         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12066         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12067         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12068         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12069         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12070         * sysdeps/ieee754/k_standard.c: Likewise.
12071         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12072         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12073         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12074         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12075         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12076         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12077         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12078         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12079         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12080         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12081         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12082         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12083         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12084         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12085         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12086         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12087         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12088         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12089         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12090         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12091         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12092         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12093         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12094         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12095         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12096         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12097         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12098         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12099         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12100         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12101         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12102         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12103         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12104         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12105         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12106         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12107         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12108         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12109         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12110         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12111         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12112         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12113         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12114         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12115         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12116         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12117         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12118         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12119         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12120         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12121         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12122         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12123         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12124         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12125         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12126         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12127         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12128         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12129         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12130         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12131         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12132         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12133         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12134         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12135         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12136         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12137         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12138         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12139         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12140         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12141         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12142         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12143         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12144         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12145         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12146         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12147         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12148         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12149         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12150         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12151         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12152         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12153         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12154         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12155         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12156         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12157         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12158         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12159         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12160         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12161         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12162         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12163         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12164         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12165         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12166         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12167         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12168         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12169         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12170         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12171         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12173         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12177         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12178         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12179         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12180         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12181         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12182         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12183         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12184         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12185         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12186         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12187         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12188         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12189         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12190         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12191         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12192         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12193         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12194         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12195         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12196         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12197         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12198         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12199         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12200         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12201         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12202         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12203         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12204         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12205         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12206         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12207         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12208         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12209         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12210         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12211         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12212         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12213         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12214         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12215         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12216         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12217         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12218         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12219         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12220         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12221         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12222         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12223         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12224         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12225         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12226         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12227         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12228         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12229         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12230         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12231         * sysdeps/ieee754/s_lib_version.c: Likewise.
12232         * sysdeps/ieee754/s_matherr.c: Likewise.
12233         * sysdeps/ieee754/s_signgam.c: Likewise.
12234         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12235         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12236         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12237         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12238         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12239         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12240         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12241         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12242         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12243         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12244         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12245         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12246         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12247         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12248         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12249         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12250         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12251         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12252         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12253         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12254         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12255
12256 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12257
12258         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12259         * sunrpc/rpc_main.c: Likewise.
12260         * sunrpc/rpc_svcout.c: Likewise.
12261
12262 2012-03-09  David S. Miller  <davem@davemloft.net>
12263
12264         * include/math_private.h: New file.
12265
12266 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12267
12268         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12269         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12270         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12271         from <bits/socket_type.h>.
12272         (enum __socket_type): Don't define here.
12273         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12274         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12275         bits/socket_type.h.
12276
12277         [BZ #13566]
12278         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12279         checking __USE_GNU.
12280
12281         * Makerules ($(inst_includedir)/%.h): New rule.
12282         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12283         (install-others): Remove variable setting.
12284         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12285
12286 2012-03-08  Richard Henderson  <rth@twiddle.net>
12287
12288         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12289         from macro to inline function; merge with the
12290         !__LIBC_INTERNAL_MATH_INLINES version.
12291         (__ieee754_sqrtf): Likewise.
12292
12293         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12294         to inline function.
12295         (__rintf, __floor, __floorf): Likewise.
12296
12297         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12298         macro to inline function.
12299         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12300
12301         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12302         not <math/math_private.h>.
12303
12304 2012-03-08  David S. Miller  <davem@davemloft.net>
12305
12306         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12307         copyright year.
12308         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12309
12310 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12311
12312         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12313         normalization.
12314         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12315         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12316
12317 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12318
12319         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12320         be defined individually, they must be defined as a block.  Define
12321         S for printing a string instead of hidint the different by using a
12322         macro for adding the 'l'.
12323         * stdio-common/tst-fphex-wide.c: Adjust.
12324
12325 2012-03-07  Marek Polacek  <polacek@redhat.com>
12326
12327         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12328
12329 2012-03-08  Marek Polacek  <polacek@redhat.com>
12330
12331         [BZ #13806]
12332         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12333         * stdio-common/tst-fphex.c: Define a few macros to make the
12334         test reusable.  Use them.
12335         * stdio-common/tst-fphex-wide.c: New file.
12336
12337 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12338
12339         [BZ #6911]
12340         * manual/macros.texi (gnusystems): New macro.
12341         (nongnusystems): Likewise.
12342         (gnulinuxhurdsystems): Likewise.
12343         (gnuhurdsystems): Likewise..
12344         (gnulinuxsystems): Likewise.
12345         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12346         variants of the GNU system, not "GNU system".
12347         * manual/conf.texi: Likewise.
12348         * manual/errno.texi: Likewise.  Update example of errno macro
12349         expansion.
12350         * manual/filesys.texi: Likewise.
12351         (getumask): Document as specific to GNU/Hurd.
12352         * manual/install.texi: Likewise.  Reword some references to
12353         GNU/Linux.
12354         * manual/intro.texi: Likewise.
12355         * manual/io.texi: Likewise.
12356         (File Name Portability): Detail which constraints are inapplicable
12357         to all GNU systems and which are only inapplicable to GNU/Hurd.
12358         * manual/job.texi: Likewise.
12359         * manual/llio.texi: Likewise.
12360         (O_NOCTTY): Document as present on GNU/Linux.
12361         * manual/maint.texi: Likewise.
12362         * manual/memory.texi: Likewise.
12363         * manual/pattern.texi: Likewise.
12364         * manual/pipe.texi: Likewise.
12365         * manual/process.texi: Likewise.
12366         * manual/resource.texi: Likewise.
12367         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12368         child on GNU/Hurd.
12369         * manual/setjmp.texi: Likewise.
12370         * manual/signal.texi: Likewise.
12371         * manual/startup.texi: Likewise.
12372         * manual/stdio.texi: Likewise.
12373         * manual/terminal.texi: Likewise.
12374         (ONLCR): Document as POSIX.
12375         (OXTABS): Document availability on GNU/Linux as XTABS.
12376         (ONOEOT): Document availability separately from other bits.
12377         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12378         * manual/time.texi: Likewise.
12379         * manual/users.texi: Likewise.
12380         * INSTALL: Regenerated.
12381         * sysdeps/gnu/errlist.c: Regenerated.
12382
12383         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12384         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12385         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12386         puts.
12387         * configure: Regenerated.
12388
12389 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12390
12391         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12392         default includes instead of AC_HEADER_CHECK.
12393         * sysdeps/i386/configure: Regenerated.
12394
12395         [BZ #10716]
12396         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12397         * math/s_cacoshf.c (__cacoshf): Likewise.
12398         * math/s_cacoshl.c (__cacoshl): Likewise.
12399         * math/s_casinh.c (__casinh): Set signs of result from argument.
12400         * math/s_casinhf.c (__casinhf): Likewise.
12401         * math/s_casinhl.c (__casinhl): Likewise.
12402         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12403         (casinh_test): Add more tests.
12404         * sysdeps/i386/fpu/libm-test-ulps: Update.
12405         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12406
12407 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12408
12409         * po/zh_TW.po: Update from translation team.
12410
12411         * login/Makefile (distribute): Remove variable.
12412         * catgets/Makefile: Likewise.
12413         * mach/Makefile: Likewise.
12414         * malloc/Makefile: Likewise.
12415         * misc/Makefile: Likewise.
12416         * iconv/Makefile: Likewise.
12417         * nscd/Makefile: Likewise.
12418         * hurd/Makefile: Likewise.
12419         * manual/Makefile: Likewise.
12420         * locale/Makefile: Likewise.
12421         * intl/Makefile: Likewise.
12422         * conform/Makefile: Likewise.
12423         * nss/Makefile: Likewise.
12424         * time/Makefile: Likewise.
12425         * soft-fp/Makefile: Likewise.
12426         * dirent/Makefile: Likewise.
12427         * gmon/Makefile: Likewise.
12428         * po/Makefile: Likewise.
12429         * rt/Makefile: Likewise.
12430         * socket/Makefile: Likewise.
12431         * math/Makefile: Likewise.
12432         * signal/Makefile: Likewise.
12433         * debug/Makefile: Likewise.
12434         * elf/Makefile: Likewise.
12435         * timezone/Makefile: Likewise.
12436         * stdlib/Makefile: Likewise.
12437         * iconvdata/Makefile: Likewise.
12438         * sunrpc/Makefile: Likewise.
12439         * io/Makefile: Likewise.
12440         * argp/Makefile: Likewise.
12441         * inet/Makefile: Likewise.
12442         * hesiod/Makefile: Likewise.
12443         * grp/Makefile: Likewise.
12444         * csu/Makefile: Likewise.
12445         * wctype/Makefile: Likewise.
12446         * crypt/Makefile: Likewise.
12447         * libio/Makefile: Likewise.
12448         * string/Makefile: Likewise.
12449         * nis/Makefile: Likewise.
12450         * resolv/Makefile: Likewise.
12451         * stdio-common/Makefile: Likewise.
12452         * wcsmbs/Makefile: Likewise.
12453         * dlfcn/Makefile: Likewise.
12454         * posix/Makefile: Likewise.
12455
12456         [BZ #6959]
12457         * timezone/Makefile: Don't install timezone files, just the programs
12458         and scripts.
12459
12460 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12461
12462         * nss/databases.def: Add missing gshadow entry.
12463
12464         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12465
12466 2012-03-06  Marek Polacek  <polacek@redhat.com>
12467
12468         [BZ #13726]
12469         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12470         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12471         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12472         * stdio-common/tst-long-dbl-fphex.c: New file.
12473
12474 2012-03-06  David S. Miller  <davem@davemloft.net>
12475
12476         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12477         (set_obp_int): New function.
12478         (get_obp_int): New function.
12479         (__get_clockfreq_via_dev_openprom): Likewise.
12480         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12481         Avoid unused variable warnings on 'val' and use builtin_expect.
12482         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12483         __builtin_expect.
12484         (INLINE_CLONE_SYSCALL): Likewise.
12485
12486 2012-03-05  David S. Miller  <davem@davemloft.net>
12487
12488         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12489
12490 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12491
12492         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12493
12494         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12495         only for |x| >= 40.
12496         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12497
12498 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12499
12500         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12501         Replace gettimeofday with __vdso_gettimeofday.
12502
12503         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12504         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12505         __vdso_clock_gettime and __vdso_getcpu.
12506
12507         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12508         time with __vdso_time.
12509
12510 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12511
12512         * manual/lang.texi (size_t): Note types to which size_t may be
12513         equivalent with the GNU C Library, but do not describe when
12514         differences between them are significant.
12515
12516 2012-03-05  Andreas Jaeger  <aj@suse.de>
12517
12518         * sysdeps/i386/fpu/libm-test-ulps: Update.
12519
12520 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12521
12522         [BZ #3976]
12523         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12524         (__ieee754_pow): Save and restore rounding mode and use
12525         round-to-nearest for main computations.
12526         * math/libm-test.inc (pow_test_tonearest): New function.
12527         (pow_test_towardzero): Likewise.
12528         (pow_test_downward): Likewise.
12529         (pow_test_upward): Likewise.
12530         (main): Call the new functions.
12531         * sysdeps/i386/fpu/libm-test-ulps: Update.
12532         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12533
12534         [BZ #3976]
12535         * math/libm-test.inc (cosh_test_tonearest): New function.
12536         (cosh_test_towardzero): Likewise.
12537         (cosh_test_downward): Likewise.
12538         (cosh_test_upward): Likewise.
12539         (sinh_test_tonearest): Likewise.
12540         (sinh_test_towardzero): Likewise.
12541         (sinh_test_downward): Likewise.
12542         (sinh_test_upward): Likewise.
12543         (main): Call the new functions.
12544         * sysdeps/i386/fpu/libm-test-ulps: Update.
12545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12546
12547 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12548
12549         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12550         default stack guard is set in last bytes.
12551         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12552
12553 2012-03-05  Kees Cook  <keescook@chromium.org>
12554
12555         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12556
12557         [BZ #13656]
12558         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12559         possibly allocate from heap instead of stack.
12560         * stdio-common/bug-vfprintf-nargs.c: New file.
12561         * stdio-common/Makefile (tests): Add nargs overflow test.
12562
12563 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12564
12565         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12566
12567 2012-03-03  Marek Polacek  <polacek@redhat.com>
12568
12569         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12570         * math/math_private.h: Likewise.
12571         * stdlib/tst-strtod.c: Likewise.
12572         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12573         * sysdeps/x86_64/bits/atomic.h: Likewise.
12574
12575 2012-03-02  David S. Miller  <davem@davemloft.net>
12576
12577         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12578         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12579         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12580         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12581         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12582         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12583         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12584         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12585
12586 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12587
12588         [BZ #13792]
12589         * manual/examples/README: New file, says the example source files
12590         can be used under GPL>=2.
12591         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12592         line containing just "*/".
12593         * manual/examples/add.c: Add copyright header (GPL>=2).
12594         * manual/examples/argp-ex1.c: Likewise.
12595         * manual/examples/argp-ex2.c: Likewise.
12596         * manual/examples/argp-ex3.c: Likewise.
12597         * manual/examples/argp-ex4.c: Likewise.
12598         * manual/examples/atexit.c: Likewise.
12599         * manual/examples/db.c: Likewise.
12600         * manual/examples/dir.c: Likewise.
12601         * manual/examples/dir2.c: Likewise.
12602         * manual/examples/execinfo.c: Likewise.
12603         * manual/examples/filecli.c: Likewise.
12604         * manual/examples/filesrv.c: Likewise.
12605         * manual/examples/fmtmsgexpl.c: Likewise.
12606         * manual/examples/genpass.c: Likewise.
12607         * manual/examples/inetcli.c: Likewise.
12608         * manual/examples/inetsrv.c: Likewise.
12609         * manual/examples/isockad.c: Likewise.
12610         * manual/examples/longopt.c: Likewise.
12611         * manual/examples/memopen.c: Likewise.
12612         * manual/examples/memstrm.c: Likewise.
12613         * manual/examples/mkfsock.c: Likewise.
12614         * manual/examples/mkisock.c: Likewise.
12615         * manual/examples/mygetpass.c: Likewise.
12616         * manual/examples/pipe.c: Likewise.
12617         * manual/examples/popen.c: Likewise.
12618         * manual/examples/rprintf.c: Likewise.
12619         * manual/examples/search.c: Likewise.
12620         * manual/examples/select.c: Likewise.
12621         * manual/examples/setjmp.c: Likewise.
12622         * manual/examples/sigh1.c: Likewise.
12623         * manual/examples/sigusr.c: Likewise.
12624         * manual/examples/stpcpy.c: Likewise.
12625         * manual/examples/strdupa.c: Likewise.
12626         * manual/examples/strftim.c: Likewise.
12627         * manual/examples/strncat.c: Likewise.
12628         * manual/examples/subopt.c: Likewise.
12629         * manual/examples/swapcontext.c: Likewise.
12630         * manual/examples/termios.c: Likewise.
12631         * manual/examples/testopt.c: Likewise.
12632         * manual/examples/testpass.c: Likewise.
12633         * manual/examples/timeval_subtract.c: Likewise.
12634
12635         [BZ #13792]
12636         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12637         function to ...
12638         * manual/timeval_subtract.c.texi: ... here, new file.
12639
12640 2012-03-02  David S. Miller  <davem@davemloft.net>
12641
12642         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12643
12644 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12645
12646         [BZ #3976]
12647         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12648         (__sin): Save and restore rounding mode and use round-to-nearest
12649         for all computations.
12650         (__cos): Save and restore rounding mode and use round-to-nearest
12651         for all computations.
12652         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12653         <fenv.h>.
12654         (tan): Save and restore rounding mode and use round-to-nearest for
12655         all computations.
12656         * math/libm-test.inc (cos_test_tonearest): New function.
12657         (cos_test_towardzero): Likewise.
12658         (cos_test_downward): Likewise.
12659         (cos_test_upward): Likewise.
12660         (sin_test_tonearest): Likewise.
12661         (sin_test_towardzero): Likewise.
12662         (sin_test_downward): Likewise.
12663         (sin_test_upward): Likewise.
12664         (tan_test_tonearest): Likewise.
12665         (tan_test_towardzero): Likewise.
12666         (tan_test_downward): Likewise.
12667         (tan_test_upward): Likewise.
12668         (main): Call the new functions.
12669         * sysdeps/i386/fpu/libm-test-ulps: Update.
12670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12671
12672         [BZ #10135]
12673         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12674         small n, then large n, before computing and testing k+n.
12675         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12676         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12677         Likewise.
12678         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12679         Likewise.
12680         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12681         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12682         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12683         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12684         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12685         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12686         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12687         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12688         * math/libm-test.inc (scalbn_test): Add more tests.
12689         (scalbln_test): Likewise.
12690
12691         * manual/filesys.texi (mode_t): Describe constraints on size and
12692         signedness, not exact equivalence to a particular type.
12693         (ino_t): Likewise.
12694         (ino64_t): Likewise.
12695         (dev_t): Likewise.
12696         (nlink_t): Likewise.
12697         (blkcnt_t): Likewise.
12698         (blkcnt64_t): Likewise.
12699         * manual/llio.texi (off_t): Likewise.
12700
12701         [BZ #3976]
12702         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12703         (__ieee754_exp): Save and restore rounding mode and use
12704         round-to-nearest for all computations.
12705         * math/libm-test.inc (exp_test_tonearest): New function.
12706         (exp_test_towardzero): Likewise.
12707         (exp_test_downward): Likewise.
12708         (exp_test_upward): Likewise.
12709         (main): Call the new functions.
12710         * sysdeps/i386/fpu/libm-test-ulps: Update.
12711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12712
12713 2012-03-01  Chris Demetriou  <cgd@google.com>
12714
12715         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12716         have predictable order.
12717
12718 2012-03-01  David S. Miller  <davem@davemloft.net>
12719
12720         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12721
12722         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12723         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12724         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12725         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12726
12727         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12728         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12729         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12731         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12732         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12733         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12734         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12735         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12736
12737         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12738
12739         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12740         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12741         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12742
12743         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12744         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12745         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12746         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12747         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12748         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12749         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12750         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12751         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12752         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12753         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12754         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12755         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12756         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12757         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12758         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12759         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12760         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12761         * sysdeps/sparc/elf/configure: Regenerated.
12762
12763 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12764
12765         * configure.in (AS, LD): Require binutils 2.20 or later.
12766         * configure: Regenerated.
12767         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12768         as required minimum version.
12769         * INSTALL: Regenerated.
12770
12771         [BZ #2541]
12772         [BZ #4108]
12773         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12774         before squaring exponent.
12775         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12776         bottom long double and 27 bits of top long double before squaring
12777         exponent.
12778         * math/libm-test.inc (erfc_test): Add more tests.
12779         * sysdeps/i386/fpu/libm-test-ulps: Update.
12780         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12782
12783 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12784
12785         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12786         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12787         containing bit-fields.
12788         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12789         * soft-fp/single.h (_FP_UNION_S): Likewise.
12790         * soft-fp/double.h (_FP_UNION_D): Likewise.
12791
12792 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12793
12794         [BZ #13786]
12795         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12796         not include ../strcmp.S.
12797         [USE_AS_STRNCASECMP_L]: Likewise.
12798         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12799         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12800         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12801         (__strncasecmp_l_ia32): Define as alias to
12802         __strncasecmp_l_nonascii.
12803
12804         [BZ #5794]
12805         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12806         * sysdeps/i386/fpu/libm-test-ulps: Update.
12807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12808
12809         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12811
12812 2012-02-29  Jeff Law  <law@redhat.com>
12813
12814         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12815         out of bounds read.
12816
12817 2012-02-29  Marek Polacek  <polacek@redhat.com>
12818
12819         [BZ #13706]
12820         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12821         * elf/Makefile: Add rules to run tst-unused-dep.out.
12822
12823 2012-02-28  David S. Miller  <davem@davemloft.net>
12824
12825         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12826         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12827         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12828         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12829         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12830         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12831
12832 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12833
12834         * math/libm-test.inc (llround_test): Move one test from
12835         lround_test.  Use TEST_f_L in moved test.
12836         (lround_test): Move misplaced test to llround_test.  Add testcase
12837         from bug 2561.
12838
12839 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12840
12841         * sysdeps/x86_64/fpu/e_expf.S: New file.
12842         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12843
12844 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12845
12846         [BZ #13637]
12847         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12848         of remain_len that may cause incomplete multi-byte character and
12849         false match.
12850         * posix/bug-regex33.c: New file.
12851         * posix/Makefile (tests): Add bug-regex33.
12852
12853 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12854
12855         * manual/macros.texi: New file.
12856         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12857         * manual/libc.texinfo: Include macros.texi.
12858         * manual/creatute.texi: Likewise.
12859         * manual/install.texi: Likewise.
12860         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12861         @glibcadj{} in references to the GNU C Library.
12862         * manual/charset.texi: Likewise.
12863         * manual/conf.texi: Likewise.
12864         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12865         when not using those macros.
12866         * manual/creature.texi: Likewise.
12867         * manual/crypt.texi: Likewise.
12868         * manual/errno.texi: Likewise.
12869         * manual/filesys.texi: Likewise.
12870         * manual/header.texi: Likewise.
12871         * manual/install.texi: Likewise.
12872         * manual/intro.texi: Likewise.
12873         * manual/io.texi: Likewise.
12874         * manual/job.texi: Likewise.
12875         * manual/lang.texi: Likewise.
12876         * manual/libc.texiinfo: Likewise.
12877         * manual/llio.texi: Likewise.
12878         * manual/locale.texi: Likewise.
12879         * manual/maint.texi: Likewise.
12880         * manual/math.texi: Likewise.
12881         * manual/memory.texi: Likewise.
12882         * manual/message.texi: Likewise.
12883         * manual/nss.texi: Likewise.
12884         * manual/pattern.texi: Likewise.
12885         * manual/process.texi: Likewise.
12886         * manual/resource.texi: Likewise.
12887         * manual/search.texi: Likewise.
12888         * manual/setjmp.texi: Likewise.
12889         * manual/signal.texi: Likewise.
12890         * manual/socket.texi: Likewise.
12891         * manual/startup.texi: Likewise.
12892         * manual/stdio.texi: Likewise.
12893         * manual/string.texi: Likewise.
12894         * manual/sysinfo.texi: Likewise.
12895         * manual/syslog.texi: Likewise.
12896         * manual/terminal.texi: Likewise.
12897         * manual/time.texi: Likewise.
12898         * manual/users.texi: Likewise.
12899         * INSTALL: Regenerated.
12900         * NOTES: Regenerated.
12901         * sysdeps/gnu/errlist.c: Regenerated.
12902
12903 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12904
12905         * include/dirent.h: Include <dirstream.h> before
12906         <dirent/dirent.h>.
12907
12908 2012-02-28  David S. Miller  <davem@davemloft.net>
12909
12910         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12911         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12912         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12913         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12914
12915 2012-02-27  David S. Miller  <davem@davemloft.net>
12916
12917         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12918         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12919         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12920         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12921
12922         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12923         frame pointer instead of stack pointer relative arg slot.
12924         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12925         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12926         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12927
12928 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12929
12930         [BZ #3992]
12931         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12932
12933 2012-02-27  David S. Miller  <davem@davemloft.net>
12934
12935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12936         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12938         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12939         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12940         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12941         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12942         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12943
12944 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12945
12946         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12947         later.  Allow versions 5-9.
12948         * configure: Regenerated.
12949         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12950         required minimum version and 4.6 as recommended version.  Do not
12951         mention bugs in GCC 2.7 and 2.8.
12952         * INSTALL: Regenerated.
12953
12954 2012-02-27  David S. Miller  <davem@davemloft.net>
12955
12956         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12957         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12960         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12961         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12962         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12963         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12964
12965         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12966         manipulate bits before adding and subtracting TWO112[sx].
12967         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12968
12969 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12970
12971         [BZ #13775]
12972         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12973         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12974         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12975         being in POSIX, because they are in 1003.1-2008.
12976
12977         * rt/tst-aio.c: Include <fcntl.h>.
12978         * rt/tst-aio7.c: Likewise.
12979         * rt/tst-aio64.c: Likewise.
12980
12981         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12982
12983 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12984
12985         * manual/install.texi (--with-headers): Describe headers as
12986         interface headers, not private headers.
12987         (Specific advice for GNU/Linux systems): Describe use of headers
12988         from "make headers_install", not private headers from older
12989         kernels.
12990         * INSTALL: Regenerated.
12991         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12992         Change to 2.6.19.
12993         * sysdeps/unix/sysv/linux/configure: Regenerated.
12994
12995         * manual/llio.texi (fclean): Remove documentation.
12996
12997         * manual/Makefile (libc-texi-generated): New variable.  Include
12998         version.texi.
12999         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13000         $(libc-texi-generated), not duplicated list of files.
13001         (version.texi, stamp-version): New rules.
13002         (realclean): Remove $(libc-texi-generated), not individual files
13003         from that list.  Do not remove dir-add.texinfo.
13004         * manual/libc.texinfo: Comment out uses of edition numbers and
13005         references to printed manual.  Remove last-updated dates.
13006         (EDITION): Comment out.
13007         (ISBN): Likewise.
13008         (VERSION, UPDATED): Remove.
13009         (version.texi): Include.
13010
13011 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13012
13013         * sysdeps/posix/spawni.c: Include <signal.h>.
13014         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13015         * sysdeps/pthread/aio_fsync.c: Likewise.
13016
13017 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13018
13019         * conform/Makefile (tests): Run only when not cross-compiling and
13020         when fast-check is not defined.
13021
13022         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13023         * conform/data/limits.h-data: Fixes for POSIX2008.
13024         * conform/run-conformtest.sh: Run all tests.
13025         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13026         headers.
13027         * include/bits/dlfcn.h: Likewise.
13028         * include/langinfo.h: Likewise.
13029         * include/monetary.h: Likewise.
13030         * include/sys/poll.h: Likewise.
13031
13032         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13033         for __USE_GNU.
13034         * posix/spawn.h: Define __need_sigset_t.
13035         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13036         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13037         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13038         to get sigevent_t only.
13039         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13040         only for __USE_GNU.
13041         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13042         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13043         process_vm_writev only for __USE_GNU.
13044         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13045
13046         * conform/Makefile: For now ignore errors from run-conformtest.
13047         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13048         POSIX to avoid namespace pollution.  Don't prepend headers.
13049         * conform/data/aio.h-data: Fixes for POSIX testing.
13050         * conform/data/fcntl.h-data: Likewise.
13051         * conform/data/glob.h-data: Likewise.
13052         * conform/data/grp.h-data: Likewise.
13053         * conform/data/pthread.h-data: Likewise.
13054         * conform/data/pwd.h-data: Likewise.
13055         * conform/data/signal.h-data: Likewise.
13056         * conform/data/spawn.h-data: Likewise.
13057         * conform/data/stdio.h-data: Likewise.
13058         * conform/data/stdlib.h-data: Likewise.
13059         * conform/data/stropts.h-data: Likewise.
13060         * conform/data/sys/mman.h-data: Likewise.
13061         * conform/data/sys/stat.h-data: Likewise.
13062         * conform/data/sys/types.h-data: Likewise.
13063         * conform/data/sys/wait.h-data: Likewise.
13064         * conform/data/time.h-data: Likewise.
13065         * conform/data/unistd.h-data: Likewise.
13066         * conform/data/utime.h-data: Likewise.
13067
13068         * io/sys/stat.h: fchmod was always in POSIX.
13069         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13070         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13071         * rt/aio.h: Define __need_timespec before including <time.h>.
13072         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13073         struct.  Add forward declaration of pthread_attr_t and use it in
13074         sigevent.
13075         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13076         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13077         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13078         always remove CLK_TCK definition.
13079
13080 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13081
13082         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13083
13084 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13085
13086         * conform/run-conformtest.sh: New file.
13087         * conform/Makefile: Run run-conformtest for tests.
13088         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13089         support.
13090
13091         * conform/data/uchar.h-data: New file.
13092         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13093         * conform/data/arpa/inet.h-data: Likewise.
13094         * conform/data/assert.h-data: Likewise.
13095         * conform/data/complex.h-data: Likewise.
13096         * conform/data/cpio.h-data: Likewise.
13097         * conform/data/ctype.h-data: Likewise.
13098         * conform/data/dirent.h-data: Likewise.
13099         * conform/data/dlfcn.h-data: Likewise.
13100         * conform/data/errno.h-data: Likewise.
13101         * conform/data/fcntl.h-data: Likewise.
13102         * conform/data/float.h-data: Likewise.
13103         * conform/data/fmtmsg.h-data: Likewise.
13104         * conform/data/fnmatch.h-data: Likewise.
13105         * conform/data/ftw.h-data: Likewise.
13106         * conform/data/glob.h-data: Likewise.
13107         * conform/data/grp.h-data: Likewise.
13108         * conform/data/iconv.h-data: Likewise.
13109         * conform/data/inttypes.h-data: Likewise.
13110         * conform/data/langinfo.h-data: Likewise.
13111         * conform/data/libgen.h-data: Likewise.
13112         * conform/data/limits.h-data: Likewise.
13113         * conform/data/locale.h-data: Likewise.
13114         * conform/data/math.h-data: Likewise.
13115         * conform/data/monetary.h-data: Likewise.
13116         * conform/data/mqueue.h-data: Likewise.
13117         * conform/data/ndbm.h-data: Likewise.
13118         * conform/data/net/if.h-data: Likewise.
13119         * conform/data/netdb.h-data: Likewise.
13120         * conform/data/netinet/in.h-data: Likewise.
13121         * conform/data/nl_types.h-data: Likewise.
13122         * conform/data/poll.h-data: Likewise.
13123         * conform/data/pthread.h-data: Likewise.
13124         * conform/data/pwd.h-data: Likewise.
13125         * conform/data/regex.h-data: Likewise.
13126         * conform/data/sched.h-data: Likewise.
13127         * conform/data/search.h-data: Likewise.
13128         * conform/data/semaphore.h-data: Likewise.
13129         * conform/data/setjmp.h-data: Likewise.
13130         * conform/data/signal.h-data: Likewise.
13131         * conform/data/spawn.h-data: Likewise.
13132         * conform/data/stdarg.h-data: Likewise.
13133         * conform/data/stdio.h-data: Likewise.
13134         * conform/data/stdlib.h-data: Likewise.
13135         * conform/data/string.h-data: Likewise.
13136         * conform/data/strings.h-data: Likewise.
13137         * conform/data/stropts.h-data: Likewise.
13138         * conform/data/sys/ipc.h-data: Likewise.
13139         * conform/data/sys/mman.h-data: Likewise.
13140         * conform/data/sys/msg.h-data: Likewise.
13141         * conform/data/sys/resource.h-data: Likewise.
13142         * conform/data/sys/select.h-data: Likewise.
13143         * conform/data/sys/sem.h-data: Likewise.
13144         * conform/data/sys/shm.h-data: Likewise.
13145         * conform/data/sys/socket.h-data: Likewise.
13146         * conform/data/sys/stat.h-data: Likewise.
13147         * conform/data/sys/statvfs.h-data: Likewise.
13148         * conform/data/sys/time.h-data: Likewise.
13149         * conform/data/sys/timeb.h-data: Likewise.
13150         * conform/data/sys/times.h-data: Likewise.
13151         * conform/data/sys/types.h-data: Likewise.
13152         * conform/data/sys/uio.h-data: Likewise.
13153         * conform/data/sys/un.h-data: Likewise.
13154         * conform/data/sys/utsname.h-data: Likewise.
13155         * conform/data/sys/wait.h-data: Likewise.
13156         * conform/data/syslog.h-data: Likewise.
13157         * conform/data/tar.h-data: Likewise.
13158         * conform/data/termios.h-data: Likewise.
13159         * conform/data/utime.h-data: Likewise.
13160         * conform/data/utmpx.h-data: Likewise.
13161         * conform/data/varargs.h-data: Likewise.
13162         * conform/data/wchar.h-data: Likewise.
13163         * conform/data/wctype.h-data: Likewise.
13164         * conform/data/wordexp.h-data: Likewise.
13165
13166         * include/stropts.h: New file.
13167         * include/uchar.h: New file.
13168         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13169         * include/assert.h: Likewise.
13170         * include/ctype.h: Likewise.
13171         * include/dirent.h: Likewise.
13172         * include/dlfcn.h: Likewise.
13173         * include/fcntl.h: Likewise.
13174         * include/fnmatch.h: Likewise.
13175         * include/glob.h: Likewise.
13176         * include/grp.h: Likewise.
13177         * include/libio.h: Likewise.
13178         * include/locale.h: Likewise.
13179         * include/math.h: Likewise.
13180         * include/net/if.h: Likewise.
13181         * include/netdb.h: Likewise.
13182         * include/netinet/in.h: Likewise.
13183         * include/pthread.h: Likewise.
13184         * include/pwd.h: Likewise.
13185         * include/regex.h: Likewise.
13186         * include/sched.h: Likewise.
13187         * include/search.h: Likewise.
13188         * include/setjmp.h: Likewise.
13189         * include/signal.h: Likewise.
13190         * include/stdio.h: Likewise.
13191         * include/stdlib.h: Likewise.
13192         * include/string.h: Likewise.
13193         * include/sys/cdefs.h: Likewise.
13194         * include/sys/mman.h: Likewise.
13195         * include/sys/msg.h: Likewise.
13196         * include/sys/resource.h: Likewise.
13197         * include/sys/select.h: Likewise.
13198         * include/sys/socket.h: Likewise.
13199         * include/sys/stat.h: Likewise.
13200         * include/sys/statvfs.h: Likewise.
13201         * include/sys/time.h: Likewise.
13202         * include/sys/times.h: Likewise.
13203         * include/sys/uio.h: Likewise.
13204         * include/sys/utsname.h: Likewise.
13205         * include/sys/wait.h: Likewise.
13206         * include/termios.h: Likewise.
13207         * include/time.h: Likewise.
13208         * include/ulimit.h: Likewise.
13209         * include/unistd.h: Likewise.
13210         * include/utime.h: Likewise.
13211         * include/wchar.h: Likewise.
13212         * include/wctype.h: Likewise.
13213         * include/wordexp.h: Likewise.
13214
13215         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13216
13217         * time/time.h: TIME_UTC must be a macro.
13218         Make timespec_get available for ISO C11 only as well.
13219
13220 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13221
13222         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13223         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13224
13225 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13226
13227         * configure.in: Use -o not -a in test for unsupported multi-arch.
13228
13229 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13230
13231         * manual/texinfo.tex: Update to version 2012-01-19.16.
13232
13233 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13234
13235         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13236
13237 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13238
13239         [BZ #13738]
13240         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13241         * manual/fdl-1.3.texi: New file.
13242         * manual/fdl-1.1.texi: File removed.
13243
13244         [BZ #13738]
13245         * manual/libc.texinfo (FDL_VERSION): New @set.
13246         Use it for mention of FDL in cover text.
13247         (Documentation License): Use it in @include file name.
13248
13249 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13250             Roland McGrath  <roland@hack.frob.com>
13251
13252         [BZ #5461]
13253         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13254         not LONG_LONG_MAX and LONG_LONG_MIN.
13255         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13256         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13257         name.
13258         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13259
13260 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13261
13262         [BZ #2547]
13263         [BZ #11365]
13264         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13265         manipulate bits before adding and subtracting TWO23[sx].
13266         * math/libm-test.inc (nearbyint_test): Add more tests.
13267
13268 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13269
13270         [BZ #2548]
13271         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13272         bits before adding and subtracting TWO23[sx].
13273         * math/libm-test.inc (rint_test): Add more tests.
13274         (rint_test_tonearest): Likewise.
13275         (rint_test_towardzero): Likewise.
13276         (rint_test_downward): Likewise.
13277         (rint_test_upward: Likewise.
13278
13279 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13280
13281         [BZ #10110]
13282         * include/stdc-predef.h: New file.  Extracted from features.h.
13283         * include/features.h: Include stdc-predef.h.
13284         * Makefile (headers): Add stdc-predef.h.
13285         * CONFORMANCE (Compiler limitations): Update.
13286
13287 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13288
13289         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13290
13291 2012-02-21  David S. Miller  <davem@davemloft.net>
13292
13293         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13294         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13295
13296 2012-02-20  David S. Miller  <davem@davemloft.net>
13297
13298         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13299         using a normal save/restore sequence, rather than allocating a
13300         dummy stack frame just to store a frame pointer and restore.
13301         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13302
13303 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13304
13305         * manual/install.texi: Fix stray word in line-wrapped comment.
13306
13307 2012-02-20  David S. Miller  <davem@davemloft.net>
13308
13309         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13310         both binutils and gcc support GOTDATA.
13311
13312         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13313         "rd %pc" in the PIC register setup sequences.
13314
13315         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13316         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13317         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13318         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13319         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13320         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13321         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13322         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13323         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13324         (SYSCALL_ERROR_HANDLER): Likewise.
13325         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13326         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13327         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13328         (SYSCALL_ERROR_HANDLER): Likewise.
13329
13330         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13331         (HAVE_GCC_GOTDATA): New.
13332         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13333         relocation support in both binutils and gcc.
13334         * sysdeps/sparc/elf/configure: Regenerate.
13335
13336         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13337         * sysdeps/sparc/sparc32/elf/configure: Delete.
13338         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13339         * sysdeps/sparc/sparc64/elf/configure: Delete.
13340         * sysdeps/sparc/elf/configure.in: New file.
13341         * sysdeps/sparc/elf/configure: Generate.
13342
13343         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13344         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13345         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13346         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13347         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13348
13349 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13350
13351         * manual/install.texi: Do not mention specific glibc version
13352         numbers.
13353         * manual/libc.texinfo (VERSION, UPDATED): Update.
13354         (@copying): Use @copyright{} and range of years.
13355
13356 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13357
13358         [BZ #13695]
13359         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13360         [crti.S not in sysdirs] (generated): Do not append.
13361         [crti.S not in sysdirs] (omit-deps): Likewise.
13362         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13363         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13364         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13365         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13366         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13367         Likewise.
13368         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13369         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13370         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13371         * csu/defs.awk: Remove file.
13372         * sysdeps/generic/initfini.c: Likewise.
13373         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13374         variable.
13375         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13376         Likewise.
13377
13378 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13379
13380         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13381         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13382         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13383         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13384         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13385         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13386         <bits/epoll.h>.
13387         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13388         (__EPOLL_PACKED): Define to empty if not defined by
13389         <bits/epoll.h>.
13390         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13391         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13392         bits/epoll.h.
13393
13394 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13395
13396         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13397         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13398         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13399         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13400         <bits/timerfd.h>.
13401         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13402         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13403         bits/timerfd.h.
13404
13405 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13406
13407         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13408         in C locale.
13409         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13410         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13411         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13412         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13413
13414 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13415
13416         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13417         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13418
13419 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13420
13421         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13422         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13423         defined.
13424         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13425         Likewise.
13426         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13427         entry for 2.16.
13428
13429 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13430
13431         * math/w_acos.c: Use non-signaling floating-point comparisons.
13432         * math/w_acosf.c: Likewise.
13433         * math/w_acosh.c: Likewise.
13434         * math/w_acoshf.c: Likewise.
13435         * math/w_acoshl.c: Likewise.
13436         * math/w_acosl.c: Likewise.
13437         * math/w_asin.c: Likewise.
13438         * math/w_asinf.c: Likewise.
13439         * math/w_asinl.c: Likewise.
13440         * math/w_atanh.c: Likewise.
13441         * math/w_atanhf.c: Likewise.
13442         * math/w_atanhl.c: Likewise.
13443         * math/w_exp2.c: Likewise.
13444         * math/w_exp2f.c: Likewise.
13445         * math/w_exp2l.c: Likewise.
13446         * math/w_j0.c: Likewise.
13447         * math/w_j0f.c: Likewise.
13448         * math/w_j0l.c: Likewise.
13449         * math/w_j1.c: Likewise.
13450         * math/w_j1f.c: Likewise.
13451         * math/w_j1l.c: Likewise.
13452         * math/w_jn.c: Likewise.
13453         * math/w_jnf.c: Likewise.
13454         * math/w_log.c: Likewise.
13455         * math/w_log10.c: Likewise.
13456         * math/w_log10f.c: Likewise.
13457         * math/w_log10l.c: Likewise.
13458         * math/w_log2.c: Likewise.
13459         * math/w_log2f.c: Likewise.
13460         * math/w_log2l.c: Likewise.
13461         * math/w_logf.c: Likewise.
13462         * math/w_logl.c: Likewise.
13463         * math/w_sqrt.c: Likewise.
13464         * math/w_sqrtf.c: Likewise.
13465         * math/w_sqrtl.c: Likewise.
13466         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13467         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13468         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13469         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13470         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13471
13472 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13473
13474         [BZ #9739]
13475         * manual/string.texi (strnlen): Use correct parameter name in
13476         equivalent expression.
13477
13478 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13479
13480         [BZ #11174]
13481         * manual/users.texi (seteuid): Consistently use neweuid for
13482         argument name.
13483
13484 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13485
13486         [BZ #13704]
13487         * manual/nss.texi (Services in the NSS configuration): Correct
13488         list of services in example configuration file.
13489
13490 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13491
13492         [BZ #11322]
13493         * manual/arith.texi: Remove statements about negative zero
13494         behaving identically to zero.
13495
13496 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13497
13498         [BZ #5993]
13499         * manual/install.texi: Do not document upgrading from libc5.
13500
13501 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13502
13503         [BZ #4596]
13504         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13505
13506 2012-02-18  David S. Miller  <davem@davemloft.net>
13507
13508         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13509         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13510         %o7 across the call.
13511         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13512         instead.
13513         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13514         SETUP_PIC_REG_LEAF.
13515         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13516         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13517         * sysdeps/sparc/crtn.S: Likewise.
13518
13519 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13520
13521         * aout/Makefile: Remove.
13522
13523 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13524
13525         [BZ #13058]
13526         * manual/examples/argp-ex1.c (main): Format definition in GNU
13527         style.
13528         * manual/examples/argp-ex2.c (main): Likewise.
13529         * manual/examples/argp-ex3.c (main): Likewise.
13530         * manual/examples/argp-ex4.c (main): Likewise.
13531         * manual/examples/longopt.c (main): Use new-style prototype
13532         definition.
13533         * manual/examples/strncat.c (main): Specify return type and use
13534         (void) for arguments.
13535         * manual/examples/subopt.c (main): Use char **argv argument.
13536
13537 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13538
13539         [BZ #5077]
13540         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13541         rounding modes.
13542
13543 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13544
13545         [BZ #6907]
13546         * manual/string.texi (strchr): Change when strchrnul is
13547         recommended.
13548
13549 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13550
13551         [BZ #174]
13552         * manual/locale.texi (setlocale): Document LOCPATH.
13553
13554 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13555
13556         [BZ #10210]
13557         * manual/process.texi (execle): Move @dots{} before last argument.
13558
13559 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13560
13561         [BZ #12047]
13562         * manual/charset.texi (Generic Charset Conversion): Fix typo
13563         (LC_TYPE -> LC_CTYPE).
13564
13565 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13566
13567         [BZ #5805]
13568         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13569         (scalbnf): Likewise.
13570         (scalbnl): Likewise.
13571         (scalbln): Likewise.
13572         (scalblnf): Likewise.
13573         (scalblnl): Likewise.
13574         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13575         (vwarnx): Likewise.
13576         (verr): Likewise.
13577         (verrx): Likewise.
13578         * manual/filesys.texi (telldir): Use braces around return type.
13579         * manual/llio.texi (mmap): Add space after comma.
13580         (mmap64): Likewise.
13581         * manual/math.texi (jn): Use @var{} on parameter names.
13582         (jnf): Likewise.
13583         (jnl): Likewise.
13584         (yn): Likewise.
13585         (ynf): Likewise.
13586         (ynl): Likewise.
13587         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13588         line.
13589         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13590         "...".
13591         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13592         (sched_get_priority_max): Likewise.
13593         * manual/signal.texi (sigvec): Add space after comma.
13594         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13595         names.
13596         (if_indextoname): Likewise.
13597         (if_freenameindex): Likewise.
13598         (sendto): Use ',' instead of '.' in prototype.
13599         * manual/startup.texi (syscall): Use @dots{} instead of literal
13600         "...".
13601         * manual/stdio.texi (__fpending): Separate initial words of
13602         paragraph from @deftypefun line.
13603         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13604         "...".
13605         (vsyslog): Use @var{} on parameter names.
13606         * manual/terminal.texi (stty): Use @var{} on parameter names.
13607         * manual/users.texi (getutmp): Use @var{} on parameter names.
13608         (getutmpx): Likewise.
13609
13610 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13611
13612         [BZ #6884]
13613         * manual/stdio.texi (fopen): Fix typos in description of
13614         ",ccs=STRING".
13615
13616 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13617
13618         [BZ #4026]
13619         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13620         get clock_id definition.
13621
13622 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13623
13624         [BZ #4822]
13625         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13626         (madvise): Cast every argument to void on its own.
13627
13628 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13629
13630         [BZ #9902]
13631         * manual/startup.texi (Exit Status): Fix typo.
13632
13633 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13634
13635         [BZ #10140]
13636         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13637         * manual/examples/argp-ex2.c: Likewise.
13638         * manual/examples/argp-ex3.c: Likewise.
13639
13640 2012-02-16  Richard Henderson  <rth@redhat.com>
13641
13642         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13643         * sysdeps/s390/s390-32/initfini.c: Remove.
13644         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13645         * sysdeps/s390/s390-64/initfini.c: Remove.
13646
13647 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13648
13649         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13650         compiler output for sysdeps/generic/initfini.c.
13651         * sysdeps/sh/elf/initfini.c: Remove file.
13652
13653 2012-02-16  David S. Miller  <davem@davemloft.net>
13654
13655         [BZ #11494]
13656         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13657
13658         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13659         * sysdeps/sparc/crti.S: New file.
13660         * sysdeps/sparc/crtn.S: New file.
13661         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13662         * sysdeps/sparc/sparc64/Makefile: Likewise.
13663
13664 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13665
13666         [BZ #3335]
13667         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13668
13669 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13670
13671         [BZ #4822]
13672         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13673
13674         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13675         (write, read, close): Likewise.
13676         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13677
13678 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13679
13680         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13681         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13682         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13683         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13684         <bits/signalfd.h>.
13685         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13686         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13687         bits/signalfd.h.
13688
13689 2012-02-14  Marek Polacek  <polacek@redhat.com>
13690
13691         * sysdeps/x86_64/crti.S: New file.
13692         * sysdeps/x86_64/crtn.S: New file.
13693         * sysdeps/x86_64/elf/initfini.c: Remove file.
13694
13695 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13696
13697         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13698         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13699         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13700         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13701         <bits/inotify.h>.
13702         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13703         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13704         bits/inotify.h.
13705
13706 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13707
13708         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13709         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13710         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13711         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13712         <bits/eventfd.h>.
13713         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13714         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13715         bits/eventfd.h.
13716
13717 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13718
13719         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13720         __feraiseexcept instead of feraiseexcept.
13721
13722         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13723         nanosleep invocations.
13724         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13725         strings, and add error checking for a nanosleep invocations.
13726
13727 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13728
13729         Replace FSF snail mail address with URLs, as per GNU coding standards.
13730         Most of the snail mail addresses were wrong anyway, and omitting
13731         them makes the source code easier to maintain.  Almost all of the
13732         changes are to license notices and to locale LC_IDENTIFICATION
13733         addresses, except for this one:
13734         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13735         not its snail mail address.
13736
13737 2012-02-09  Richard Henderson  <rth@twiddle.net>
13738
13739         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13740         of kernel-features.h.
13741
13742         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13743
13744 2012-02-08  Marek Polacek  <polacek@redhat.com>
13745
13746         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13747         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13748         * sysdeps/gnu/_G_config.h: Likewise.
13749         * sysdeps/generic/_G_config.h: Likewise.
13750
13751 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13752
13753         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13754         tests.
13755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13756
13757         * sysdeps/powerpc/powerpc32/crti.S: New file.
13758         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13759         * sysdeps/powerpc/powerpc64/crti.S: New file.
13760         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13761
13762         * Makeconfig (have-initfini): Don't set.
13763         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13764         * configure.in (nopic_initfini): Don't substitute.
13765         * config.h.in (HAVE_INITFINI): Don't #undef.
13766         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13767         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13768
13769 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13770
13771         Support crti.S and crtn.S provided directly by architectures.
13772         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13773         [crti.S in sysdirs] (omit-deps): Likewise.
13774         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13775         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13776         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13777         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13778         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13779         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13780         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13781         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13782         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13783         compiler output for sysdeps/generic/initfini.c.
13784         * sysdeps/i386/elf/Makefile: Remove file.
13785         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13786
13787 2012-02-07  Marek Polacek  <polacek@redhat.com>
13788
13789         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13790         * sysdeps/gnu/_G_config.h: Likewise.
13791         * sysdeps/mach/hurd/_G_config.h: Likewise.
13792
13793 2012-02-07  Marek Polacek  <polacek@redhat.com>
13794
13795         * math/Makefile (tests): Add tst-CMPLX2.
13796         * math/tst-CMPLX2.c: New file.
13797
13798 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13799
13800         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13801
13802         * math/libm-test.inc (jn_test): Add missing L suffix.
13803
13804 2012-02-06  Marek Polacek  <polacek@redhat.com>
13805
13806         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13807         * sysdeps/i386/fpu/e_powf.S: Likewise.
13808         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13809         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13810         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13811         * sysdeps/i386/fpu/e_pow.S: Likewise.
13812         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13813         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13814         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13815         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13816         * sysdeps/i386/fpu/e_log2.S: Likewise.
13817         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13818         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13819         * sysdeps/i386/fpu/e_powl.S: Likewise.
13820         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13821         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13822         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13823         * sysdeps/i386/fpu/e_logl.S: Likewise.
13824         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13825         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13826         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13827         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13828         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13829         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13830         * sysdeps/i386/fpu/e_log.S: Likewise.
13831         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13832         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13833         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13834         * sysdeps/i386/fpu/e_logf.S: Likewise.
13835         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13836         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13837         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13838         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13839         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13840         * sysdeps/i386/fpu/e_log10.S: Likewise.
13841         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13842         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13843         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13844         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13845         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13846         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13847         * sysdeps/i386/asm-syntax.h: Likewise.
13848         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13849         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13850         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13851         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13852         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13853         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13854         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13855         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13856         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13857         * sysdeps/powerpc/sysdep.h: Likewise.
13858         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13859         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13860
13861 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13862
13863         [BZ #411]
13864         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13865
13866 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13867
13868         * sysdeps/i386/sysdep.h: Include <features.h>.
13869         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13870         version.
13871
13872 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13873
13874         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13875         Define.
13876         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13877         LOAD_PIC_REG_STR.
13878
13879 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13880
13881         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13882         (SETUP_PIC_REG): Use GET_PC_THUNK.
13883         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13884         macro.
13885
13886 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13887
13888         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13889         for non-PIC compilation.
13890         (SETUP_PIC_REG): Add .p2align directive.
13891         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13892         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13893         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13894         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13895         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13896         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13897         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13898         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13899         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13900         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13901         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13902         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13903         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13904         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13905         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13906         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13907         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13908         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13909         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13910         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13911         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13912         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13913         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13914         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13915         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13916         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13917         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13918         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13919         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13920         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13921         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13922         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13923         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13924         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13925         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13926         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13927         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13928         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13929         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13930         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13931         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13932
13933 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13934
13935         * math/tst-CMPLX.c: Include <stdio.h>.
13936
13937 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13938
13939         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13940         float.
13941         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13942         * sysdeps/sparc/bits/mathdef.h: Likewise.
13943
13944 2012-01-31  Marek Polacek  <polacek@redhat.com>
13945
13946         * libio/libio.h: Don't define _PARAMS.
13947         * locale/programs/config.h: Don't define PARAMS.
13948         * stdlib/strtol_l.c: Likewise.
13949         (__strtol_l): Remove PARAMS from the prototype.
13950
13951 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13952
13953         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13954         names.  Just use the correct names.  Remove unnecessary wrapper
13955         functions.
13956         * malloc/arena.c: Likewise.
13957         * malloc/hooks.c: Likewise.
13958
13959         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13960         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13961         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13962
13963 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13964
13965         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13966         into tail calls.
13967         (update_get_addr): New function.
13968         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13969         GET_ADDR_MODULE parameter.
13970
13971 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13972
13973         * crypt/cert.c: Remove __STDC__ conditionals.
13974         * crypt/crypt-entry.c: Likewise.
13975         * crypt/crypt_util.c: Likewise.
13976         * libio/filedoalloc.c: Likewise.
13977         * libio/fileops.c: Likewise.
13978         * libio/genops.c: Likewise.
13979         * libio/iofclose.c: Likewise.
13980         * libio/iofdopen.c: Likewise.
13981         * libio/iofopen.c: Likewise.
13982         * libio/iofopen64.c: Likewise.
13983         * libio/iogetdelim.c: Likewise.
13984         * libio/iopopen.c: Likewise.
13985         * libio/obprintf.c: Likewise.
13986         * libio/oldfileops.c: Likewise.
13987         * libio/oldiofclose.c: Likewise.
13988         * libio/oldiofdopen.c: Likewise.
13989         * libio/oldiofopen.c: Likewise.
13990         * libio/oldiopopen.c: Likewise.
13991         * libio/wfiledoalloc.c: Likewise.
13992         * libio/wgenops.c: Likewise.
13993         * locale/programs/xmalloc.c: Likewise.
13994         * misc/syslog.c: Likewise.
13995         * stdio-common/xbug.c: Likewise.
13996         * string/memchr.c: Likewise.
13997         * string/memcmp.c: Likewise.
13998         * string/memrchr.c: Likewise.
13999         * string/rawmemchr.c: Likewise.
14000         * sysdeps/posix/getcwd.c: Likewise.
14001         * time/strftime_l.c: Likewise.
14002
14003 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14004
14005         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14006         * config.make.in (config-cflags-sse2avx): Define.
14007         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14008         Fix typo.
14009
14010 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14011
14012         * scripts/config.guess: Update from upstream config git repository.
14013         * scripts/config.sub: Likewise.
14014
14015 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14016
14017         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14018         (EM_NUM): Update.
14019         (R_TILEPRO_*, R_TILEGX_*): New macros.
14020
14021         * scripts/firstversions.awk: Fix bug in version range handling.
14022
14023         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14024
14025         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14026
14027         * include/sys/epoll.h: New file.
14028         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14029         libc_hidden_def.
14030
14031 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14032
14033         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14034         Avoid unnecessary __WORDSIZE == 64 test.
14035         (fmaxf): Use VEX format if possible.
14036         (fmax): Likewise.
14037         (fminf): Likewise.
14038         (fmin): Likewise.
14039
14040         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14041         * math/math_private.h: Remove libc_fegetround* and
14042         libc_fesetround*.
14043         * sysdeps/i386/configure.in: Check for -msse2avx.
14044         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14045         also if SSE2AVX is defined.
14046         Remove libc_fegetround* and libc_fesetround*.
14047         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14048         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14049         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14050         of HAS_YMM_USABLE.
14051         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14052         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14053         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14054         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14055         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14056
14057         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14058
14059 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14060
14061         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14062         size is not set.
14063         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14064
14065 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14066
14067         [BZ #13618]
14068         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14069         relocation.
14070         * Makeconfig (libm): Define.
14071         * elf/Makefile: Add rules to build and run tst-relsort1.
14072         * elf/tst-relsort1.c: New file.
14073         * elf/tst-relsort1mod1.c: New file.
14074         * elf/tst-relsort1mod2.c: New file.
14075
14076 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14077
14078         * math/s_ldexp.c: Remove __STDC__ conditionals.
14079         * math/s_ldexpf.c: Likewise.
14080         * math/s_ldexpl.c: Likewise.
14081         * math/s_nextafter.c: Likewise.
14082         * math/s_nexttowardf.c: Likewise.
14083         * math/s_significand.c: Likewise.
14084         * math/s_significandf.c: Likewise.
14085         * math/s_significandl.c: Likewise.
14086         * math/w_jnl.c: Likewise.
14087         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14088         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14089         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14090         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14091         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14092         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14093         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14094         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14095         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14096         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14097         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14098         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14099         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14100         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14101         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14102         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14103         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14104         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14105         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14106         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14107         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14108         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14109         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14110         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14111         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14112         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14113         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14114         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14115         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14116         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14117         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14118         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14119         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14120         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14121         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14122         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14123         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14124         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14125         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14126         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14127         * sysdeps/ieee754/k_standard.c: Likewise.
14128         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14129         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14130         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14131         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14132         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14133         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14134         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14135         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14136         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14137         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14138         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14139         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14140         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14141         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14142         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14143         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14144         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14145         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14146         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14147         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14148         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14149         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14150         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14151         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14152         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14153         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14154         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14155         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14156         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14157         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14158         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14159         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14160         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14161         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14162         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14163         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14164         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14165         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14166         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14167         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14168         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14169         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14170         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14171         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14172         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14173         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14174         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14175         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14176         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14177         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14178         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14179         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14180         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14181         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14182         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14183         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14184         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14185         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14186         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14187         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14188         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14189         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14190         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14191         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14192         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14193         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14194         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14195         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14196         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14197         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14198         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14199         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14200         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14201         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14202         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14203         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14204         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14205         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14206         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14207         * sysdeps/ieee754/s_matherr.c: Likewise.
14208         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14209         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14210         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14211         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14212
14213 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14214
14215         * crypt/md5.h: Remove __STDC__ conditionals.
14216         * libio/libioP.h: Likewise.
14217         * locale/programs/config.h: Likewise.
14218         * sysdeps/generic/sysdep.h: Likewise.
14219         * sysdeps/i386/asm-syntax.h: Likewise.
14220         * sysdeps/s390/asm-syntax.h: Likewise.
14221         * sysdeps/unix/sysdep.h: Likewise.
14222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14224
14225 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14226
14227         * libio/libio.h: Remove __STDC__ conditionals.
14228         * malloc/obstack.h: Likewise.
14229         * math/complex.h: Likewise.
14230         * math/math.h: Likewise.
14231         * sysdeps/generic/_G_config.h: Likewise.
14232         * sysdeps/gnu/_G_config.h: Likewise.
14233         * sysdeps/mach/hurd/_G_config.h: Likewise.
14234         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14235         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14236         * sysdeps/sparc/bits/mathdef.h: Likewise.
14237
14238 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14239
14240         [BZ #13583]
14241         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14242         Clean up HAS_* macros.
14243         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14244         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14245         possible.
14246         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14247         HAS_AVX.
14248         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14249         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14250         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14251         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14252         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14253
14254 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14255
14256         * elf/tst-unique3.cc (gets): Remove declaration.
14257         * elf/tst-unique3lib.cc (gets): Likewise.
14258         * elf/tst-unique3lib2.cc (gets): Likewise.
14259         * elf/tst-unique4.cc (gets): Likewise.
14260
14261 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14262
14263         * include/stdio.h: Add C++ protection.  Add gets declarations and
14264         definitions.
14265         * debug/tst-chk1.c: Don't declare gets here.
14266         * stdio-common/tst-gets.c: Likewise.
14267
14268 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14269
14270         * posix/glob: Remove directory.
14271
14272 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14273
14274         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14275
14276 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14277
14278         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14279         of the non-standard EPFNOSUPPORT.
14280
14281 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14282
14283         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14284         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14285         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14286
14287 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14288
14289         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14290
14291 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14292
14293         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14294         transient errors.
14295         * nscd/grpcache.c (cache_addgr): Likewise.
14296         * nscd/hstcache.c (cache_addhst): Likewise.
14297         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14298         * nscd/pwdcache.c (cache_addpw): Likewise.
14299         * nscd/servicescache.c (cache_addserv): Likewise.
14300
14301 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14302
14303         * malloc/malloc.c: Various cleanups.
14304         * malloc/hooks.c: Likewise.
14305
14306         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14307         * stdlib/bug-fmtmsg1.c: New file.
14308
14309         * stdlib/fmtmsg.c (init): Add missing unlock.
14310         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14311
14312 2012-01-12  Marek Polacek  <polacek@redhat.com>
14313
14314         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14315         and _GNU_SOURCE.
14316
14317 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14318
14319         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14320         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14321         macro to ensure uniqueness of label name.
14322         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14323         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14324
14325 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14326
14327         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14328
14329         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14330         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14331         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14332         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14333
14334 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14335
14336         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14337
14338         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14339         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14340         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14341
14342         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14343
14344         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14345         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14346         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14347         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14348
14349         * math/bits/math-finite.h: Add ldexp support.
14350
14351 2012-01-10  Marek Polacek  <polacek@redhat.com>
14352
14353         * locale/programs/localedef.h (show_archive_content): Add noreturn
14354         attribute.
14355
14356 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14357
14358         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14359
14360 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14361
14362         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14363
14364         * io/Makefile (headers): Add bits/poll2.h.
14365
14366 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14367
14368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14369         typo #include statement.
14370
14371 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14372
14373         * include/sys/cdefs.h: Define __attribute_alloc_size.
14374         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14375         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14376         * elf/pldd.c: Likewise.
14377         * iconv/iconv_charmap.c: Likewise.
14378         * iconv/iconvconfig.c: Likewise.
14379         * iconv/strtab.c: Likewise.
14380         * locale/programs/locale.c: Likewise.
14381         * locale/programs/localedef.h: Likewise.
14382         * locale/programs/simple-hash.c: Likewise.
14383         * nscd/nscd.h: Likewise.
14384         * nss/makedb.c: Likewise.
14385         * sysdeps/generic/ldconfig.h: Likewise.
14386         * locale/programs/localedef.c: Remove xmalloc prototype.
14387         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14388
14389 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14390
14391         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14392         appropriate.
14393
14394 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14395
14396         * math/Makefile (tests): Add tst-CMPLX.
14397         * math/tst-CMPLX.c: New file.
14398
14399         * math/complex.h (CMPLXL): Fix typo.
14400
14401         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14402         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14403         GLIBC_2.16.
14404         * debug/tst-chk1.c: Add poll and ppoll tests.
14405         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14406         * include/sys/poll.h: Add hidden proto for ppoll.
14407         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14408         * sysdeps/mach/hurd/ppoll.c: Likewise.
14409         * io/ppoll.c: Likewise.
14410         * debug/poll_chk.c: New file.
14411         * debug/ppoll_chk.c: New file.
14412         * include/bits/poll2.h: New file.
14413         * io/bits/poll2.h: New file.
14414
14415         [BZ #1350]
14416         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14417
14418         * configure.in: static is always set to yes.  Remove.
14419         * config.make.in: Don't set build-static.
14420         * Makeconfig: Remove use of build-static.
14421         * dlfcn/Makefile: Likewise.
14422         * elf/Makefile: Likewise.
14423         * math/Makefile: Likewise.
14424         * misc/Makefile: Likewise.
14425         * nptl/Makefile: Likewise.
14426         * sysdeps/mach/hurd/Makefile: Likewise.
14427
14428         * configure.in: PWD_P is not used anymore.
14429         * config.make.in: Remove PWD_P entry.
14430
14431         * configure.in: Remove last remnants of RANLIB.
14432         No need to check for signed size_t anymore.
14433         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14434         and IA-64.
14435         Remove __builtin_expect test because we require at least gcc 3.4.
14436         * aclocal.m4: Likewise.
14437
14438         * wcsmbs/mbrtoc16.c: Implement using towc function.
14439         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14440         * wcsmbs/wcsmbsload.c: Likewise.
14441         * iconv/gconv_simple.c: Likewise.
14442         * iconv/gconv_int.h: Likewise.
14443         * iconv/gconv_builtin.h: Likewise.
14444         * iconv/iconv_prog.c: Remove CHAR16 handling.
14445
14446         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14447
14448         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14449
14450         * configure.in: Remove --with-elf and --enable-bounded options.
14451         Dont set base_machine for ia64.  More non-ELF conditions removed.
14452         Remove testing and setting of leading underscore information.
14453         * config.make.in (build-bounded): Set to no.
14454         * config.h.in: Remove NO_UNDERSCORES entry.
14455         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14456         them.
14457         * csu/start.c: Remove !NO_UNDERSCORE code.
14458         * locale/localeinfo.h: Likewise.
14459         * sysdeps/generic/machine-gmon.h: Likewise.
14460         * sysdeps/generic/sysdep.h: Likewise.
14461         * sysdeps/i386/sysdep.h: Likewise.
14462         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14463         * sysdeps/mach/sysdep.h: Likewise.
14464         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14465         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14466         * sysdeps/sh/sysdep.h: Likewise.
14467         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14468         * sysdeps/unix/i386/sysdep.S: Likewise.
14469         * sysdeps/unix/sparc/start.c: Likewise.
14470         * sysdeps/unix/sparc/sysdep.S: Likewise.
14471         * sysdeps/unix/sparc/sysdep.h: Likewise.
14472         * sysdeps/unix/start.c: Likewise.
14473         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14474         * sysdeps/x86_64/sysdep.h: Likewise.
14475
14476 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14477
14478         [BZ #13553]
14479         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14480         for non-gcc.
14481         * argp/argp-fmtstream.h: Use const instead __const.
14482         * argp/argp.h: Likewise.
14483         * assert/assert.h: Likewise.
14484         * bits/fenv.h: Likewise.
14485         * bits/sched.h: Likewise.
14486         * bits/sigset.h: Likewise.
14487         * bits/sigthread.h: Likewise.
14488         * catgets/nl_types.h: Likewise.
14489         * conform/data/pthread.h-data: Likewise.
14490         * crypt/crypt-private.h: Likewise.
14491         * crypt/crypt.h: Likewise.
14492         * crypt/crypt_util.c: Likewise.
14493         * ctype/ctype.h: Likewise.
14494         * debug/execinfo.h: Likewise.
14495         * debug/mbsnrtowcs_chk.c: Likewise.
14496         * debug/mbsrtowcs_chk.c: Likewise.
14497         * debug/wcsnrtombs_chk.c: Likewise.
14498         * debug/wcsrtombs_chk.c: Likewise.
14499         * debug/wcstombs_chk.c: Likewise.
14500         * dirent/dirent.h: Likewise.
14501         * dlfcn/dlfcn.h: Likewise.
14502         * elf/neededtest4.c: Likewise.
14503         * grp/grp.h: Likewise.
14504         * gshadow/gshadow.h: Likewise.
14505         * iconv/gconv.h: Likewise.
14506         * iconv/gconv_int.h: Likewise.
14507         * iconv/gconv_simple.c: Likewise.
14508         * iconv/iconv.h: Likewise.
14509         * iconv/loop.c: Likewise.
14510         * iconv/skeleton.c: Likewise.
14511         * include/aio.h: Likewise.
14512         * include/aliases.h: Likewise.
14513         * include/argz.h: Likewise.
14514         * include/arpa/inet.h: Likewise.
14515         * include/assert.h: Likewise.
14516         * include/dirent.h: Likewise.
14517         * include/dlfcn.h: Likewise.
14518         * include/execinfo.h: Likewise.
14519         * include/fcntl.h: Likewise.
14520         * include/fenv.h: Likewise.
14521         * include/glob.h: Likewise.
14522         * include/grp.h: Likewise.
14523         * include/libintl.h: Likewise.
14524         * include/mntent.h: Likewise.
14525         * include/netdb.h: Likewise.
14526         * include/pwd.h: Likewise.
14527         * include/rpc/netdb.h: Likewise.
14528         * include/sched.h: Likewise.
14529         * include/search.h: Likewise.
14530         * include/shadow.h: Likewise.
14531         * include/signal.h: Likewise.
14532         * include/stdio.h: Likewise.
14533         * include/stdlib.h: Likewise.
14534         * include/string.h: Likewise.
14535         * include/sys/socket.h: Likewise.
14536         * include/sys/stat.h: Likewise.
14537         * include/sys/statfs.h: Likewise.
14538         * include/sys/statvfs.h: Likewise.
14539         * include/sys/syslog.h: Likewise.
14540         * include/sys/time.h: Likewise.
14541         * include/sys/uio.h: Likewise.
14542         * include/time.h: Likewise.
14543         * include/unistd.h: Likewise.
14544         * include/utmp.h: Likewise.
14545         * include/wchar.h: Likewise.
14546         * include/wctype.h: Likewise.
14547         * inet/aliases.h: Likewise.
14548         * inet/arpa/inet.h: Likewise.
14549         * inet/netinet/ether.h: Likewise.
14550         * inet/netinet/in.h: Likewise.
14551         * intl/libintl.h: Likewise.
14552         * io/bits/fcntl2.h: Likewise.
14553         * io/fcntl.h: Likewise.
14554         * io/ftw.h: Likewise.
14555         * io/sys/poll.h: Likewise.
14556         * io/sys/stat.h: Likewise.
14557         * io/sys/statfs.h: Likewise.
14558         * io/sys/statvfs.h: Likewise.
14559         * io/utime.h: Likewise.
14560         * libio/bits/stdio.h: Likewise.
14561         * libio/bits/stdio2.h: Likewise.
14562         * libio/libio.h: Likewise.
14563         * libio/libioP.h: Likewise.
14564         * libio/stdio.h: Likewise.
14565         * locale/lc-ctype.c: Likewise.
14566         * locale/locale.h: Likewise.
14567         * login/utmp.h: Likewise.
14568         * malloc/arena.c: Likewise.
14569         * malloc/malloc.c: Likewise.
14570         * malloc/malloc.h: Likewise.
14571         * malloc/mcheck.c: Likewise.
14572         * malloc/mtrace.c: Likewise.
14573         * math/bits/mathcalls.h: Likewise.
14574         * math/fenv.h: Likewise.
14575         * math/math_private.h: Likewise.
14576         * misc/bits/error.h: Likewise.
14577         * misc/bits/syslog.h: Likewise.
14578         * misc/err.h: Likewise.
14579         * misc/error.h: Likewise.
14580         * misc/fstab.h: Likewise.
14581         * misc/mntent.h: Likewise.
14582         * misc/regexp.h: Likewise.
14583         * misc/search.h: Likewise.
14584         * misc/sgtty.h: Likewise.
14585         * misc/sys/mman.h: Likewise.
14586         * misc/sys/syslog.h: Likewise.
14587         * misc/sys/uio.h: Likewise.
14588         * misc/sys/xattr.h: Likewise.
14589         * misc/ttyent.h: Likewise.
14590         * nis/rpcsvc/ypclnt.h: Likewise.
14591         * nss/nss.h: Likewise.
14592         * posix/bits/unistd.h: Likewise.
14593         * posix/fnmatch.h: Likewise.
14594         * posix/glob.h: Likewise.
14595         * posix/sched.h: Likewise.
14596         * posix/spawn.h: Likewise.
14597         * posix/sys/wait.h: Likewise.
14598         * posix/unistd.h: Likewise.
14599         * posix/wordexp.h: Likewise.
14600         * pwd/pwd.h: Likewise.
14601         * resolv/netdb.h: Likewise.
14602         * resource/sys/resource.h: Likewise.
14603         * rt/aio.h: Likewise.
14604         * rt/bits/mqueue2.h: Likewise.
14605         * rt/mqueue.h: Likewise.
14606         * shadow/shadow.h: Likewise.
14607         * signal/signal.h: Likewise.
14608         * socket/send.c: Likewise.
14609         * socket/sendto.c: Likewise.
14610         * socket/sys/socket.h: Likewise.
14611         * stdio-common/printf.h: Likewise.
14612         * stdlib/bits/stdlib.h: Likewise.
14613         * stdlib/fmtmsg.h: Likewise.
14614         * stdlib/monetary.h: Likewise.
14615         * stdlib/stdlib.h: Likewise.
14616         * stdlib/ucontext.h: Likewise.
14617         * streams/stropts.h: Likewise.
14618         * string/argz.h: Likewise.
14619         * string/bits/string2.h: Likewise.
14620         * string/string.h: Likewise.
14621         * string/strings.h: Likewise.
14622         * sunrpc/rpc/auth.h: Likewise.
14623         * sunrpc/rpc/auth_des.h: Likewise.
14624         * sunrpc/rpc/clnt.h: Likewise.
14625         * sunrpc/rpc/netdb.h: Likewise.
14626         * sunrpc/rpc/pmap_clnt.h: Likewise.
14627         * sunrpc/rpc/xdr.h: Likewise.
14628         * sysdeps/generic/inttypes.h: Likewise.
14629         * sysdeps/generic/net/if.h: Likewise.
14630         * sysdeps/generic/sys/swap.h: Likewise.
14631         * sysdeps/gnu/net/if.h: Likewise.
14632         * sysdeps/gnu/utmpx.h: Likewise.
14633         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14634         * sysdeps/i386/i486/bits/string.h: Likewise.
14635         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14636         * sysdeps/s390/bits/string.h: Likewise.
14637         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14638         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14639         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14640         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14641         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14642         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14643         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14644         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14645         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14646         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14647         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14648         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14649         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14650         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14651         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14652         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14653         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14654         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14655         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14656         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14657         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14658         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14659         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14660         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14661         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14662         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14663         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14664         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14665         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14666         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14667         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14668         * sysvipc/sys/ipc.h: Likewise.
14669         * sysvipc/sys/msg.h: Likewise.
14670         * sysvipc/sys/sem.h: Likewise.
14671         * sysvipc/sys/shm.h: Likewise.
14672         * termios/termios.h: Likewise.
14673         * time/sys/time.h: Likewise.
14674         * time/time.h: Likewise.
14675         * wcsmbs/bits/wchar2.h: Likewise.
14676         * wcsmbs/uchar.h: Likewise.
14677         * wcsmbs/wchar.h: Likewise.
14678         * wctype/wctype.h: Likewise.
14679
14680         [BZ #13551]
14681         * Makeconfig: Remove all but ELF support including AIX support.
14682         * Makerules: Likewise.
14683         * config.h.in: Likewise.
14684         * config.make.in: Likewise.
14685         * configure: Likewise.
14686         * configure.in: Likewise.
14687         * csu/Makefile: Likewise.
14688         * csu/version.c: Likewise.
14689         * debug/Makefile: Likewise.
14690         * dlfcn/Makefile: Likewise.
14691         * elf/Makefile: Likewise.
14692         * extra-lib.mk: Likewise.
14693         * iconv/Makefile: Likewise.
14694         * include/libc-symbols.h: Likewise.
14695         * include/shlib-compat.h: Likewise.
14696         * resolv/Makefile: Likewise.
14697         * resolv/res_libc.c: Likewise.
14698         * rt/Makefile: Likewise.
14699         * sysdeps/i386/asm-syntax.h: Likewise.
14700         * sysdeps/i386/sysdep.h: Likewise.
14701         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14702         * sysdeps/mach/sysdep.h: Likewise.
14703         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14704         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14705         * sysdeps/s390/asm-syntax.h: Likewise.
14706         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14707         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14708         * sysdeps/sh/sysdep.h: Likewise.
14709         * sysdeps/unix/sparc/sysdep.h: Likewise.
14710         * sysdeps/wordsize-32/divdi3.c: Likewise.
14711         * sysdeps/x86_64/sysdep.h: Likewise.
14712
14713         * argp/Versions: Remove _argp_unlock_xxx.
14714
14715         [BZ #13559]
14716         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14717         * abilist/libBrokenLocale.abilist: Likewise.
14718         * abilist/libanl.abilist: Likewise.
14719         * abilist/libc.abilist: Likewise.
14720         * abilist/libcrypt.abilist: Likewise.
14721         * abilist/libdl.abilist: Likewise.
14722         * abilist/libm.abilist: Likewise.
14723         * abilist/libnsl.abilist: Likewise.
14724         * abilist/libpthread.abilist: Likewise.
14725         * abilist/libresolv.abilist: Likewise.
14726         * abilist/librt.abilist: Likewise.
14727         * abilist/libthread_db.abilist: Likewise.
14728         * abilist/libutil.abilist: Likewise.
14729         * abilist/libnss_db.abilist: New file.
14730
14731         * scripts/abilist.awk: Add support for indirect functions.
14732
14733         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14734
14735         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14736
14737         * shlib-versions: Remove entries for ports architectures.
14738
14739         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14740         files in ports.
14741         * elf/stackguard-macros.h: Remove support for IA-64.
14742         * elf/tst-auditmod1.c: Likewise.
14743         * sysdeps/generic/ldsodefs.h: Likewise.
14744
14745         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14746         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14747         configure files.
14748
14749         [BZ #13552]
14750         * configure.in: Remove --enable-omitfp support.
14751         * FAQ.in: Adjust.
14752         * config.make.in: Likewise.
14753         * Makeconfig: Likewise.
14754         * manual/install.texi: Likewise.
14755
14756         In case anyone cares, the IA-64 architecture could move to ports.
14757         * sysdeps/ia64/*: Removed.
14758         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14759         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14760
14761         [BZ #13555]
14762         * configure.in: Remove entries for unsupported architectures.
14763
14764         [BZ #13533]
14765         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14766         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14767         routines.
14768         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14769         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14770         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14771         fall back to using wcrtomb.
14772         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14773         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14774         renaming.
14775         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14776         * wcsmbs/tst-c16c32-1.c: New file.
14777
14778         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14779         local variable.
14780
14781         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14782
14783         * elf/tst-unique3.cc: Add explicit declaration of gets.
14784         * elf/tst-unique3lib.cc: Likewise.
14785         * elf/tst-unique3lib2.cc: Likewise.
14786         * elf/tst-unique4.cc: Likewise.
14787
14788         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14789
14790 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14791
14792         [BZ #13566]
14793         * assert/assert.h (static_assert): Don't define for C++.
14794         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14795         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14796
14797 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14798
14799         * iconv/loop.c (single loop): Fix assertion in storing of
14800         remaining bytes.
14801
14802         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14803
14804 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14805
14806         * posix/getconf.c: Update copyright year.
14807         * nss/getent.c: Likewise.
14808         * nss/makedb.c: Likewise.
14809         * iconv/iconvconfig.c: Likewise.
14810         * iconv/iconv_prog.c: Likewise.
14811         * elf/ldconfig.c: Likewise.
14812         * elf/pldd.c: Likewise.
14813         * elf/sotruss.ksh: Likewise.
14814         * catgets/gencat.c: Likewise.
14815         * csu/version.c: Likewise.
14816         * elf/ldd.bash.in: Likewise.
14817         * elf/sprof.c (print_version): Likewise.
14818         * locale/programs/locale.c: Likewise.
14819         * locale/programs/localedef.c: Likewise.
14820         * login/programs/pt_chown.c: Likewise.
14821         * nscd/nscd.c (print_version): Likewise.
14822         * debug/xtrace.sh: Likewise.
14823         * malloc/memusage.sh: Likewise.
14824         * malloc/mtrace.pl: Likewise.
14825         * debug/catchsegv.sh: Likewise.
14826
14827 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14828
14829         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14830         pure attribute.
14831
14832 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14833
14834         [BZ #13533]
14835         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14836         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14837         transformations.
14838         * iconv/gconv_int.h: Likewise.
14839         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14840         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14841         from libc for GLIBC_2.16.
14842         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14843         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14844         * wcsmbs/uchar.h: Really define mbstate_t.
14845         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14846         * wcsmbs/c16rtomb.c: New file.
14847         * wcsmbs/mbrtoc16.c: New file.
14848         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14849         for C/POSIX locale.
14850         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14851         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14852
14853         * wcsmbs/wchar.h: Add missing __restrict.
14854
14855 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14856
14857         [BZ #13532]
14858         * time/Makefile (routines): Add timespec_get.
14859         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14860         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14861         timespec for ISO C11.
14862         * time/timespec_get.c: New file.
14863         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14864         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14865
14866         [BZ #13531]
14867         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14868         * stdlib/stdlib.h: Declare aligned_alloc.
14869         * Versions.def: Add GLIBC_2.16 for libc.
14870         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14871
14872         [BZ 13527]
14873         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14874         ISO C11.
14875
14876         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14877         code.
14878
14879         [BZ #13528]
14880         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14881
14882         [BZ #13529]
14883         * assert/assert.h (static_assert): Define.
14884
14885         * version.h: Update for 2.16 development version.
14886
14887         [BZ #13526]
14888         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14889         _ISOC11_SOURCE.
14890
14891         * version.h (RELEASE): Bump for 2.15 release.
14892         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14893
14894         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14895         Patch by Marek Polacek <mpolacek@redhat.com>.
14896
14897         * bits/byteswap.h: Protect long long constants with __extension__.
14898         * sysdeps/i386/bits/byteswap.h: Likewise.
14899         * sysdeps/ia64/bits/byteswap.h: Likewise.
14900         * sysdeps/s390/bits/byteswap.h: Likewise.
14901         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14902
14903 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14904
14905         [BZ #13540]
14906         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14907         destination buffer.
14908         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14909
14910 2011-12-23  Marek Polacek  <polacek@redhat.com>
14911
14912         * elf/dl-addr.c (determine_info): Add inline keyword.
14913         * elf/tst-auditmod4b.c (check_avx): Likewise.
14914         * elf/tst-auditmod6b.c (check_avx): Likewise.
14915         * elf/tst-auditmod6c.c (check_avx): Likewise.
14916         * elf/tst-auditmod7b.c (check_avx): Likewise.
14917
14918 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14919
14920         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14921         !__SSE_MATH__.
14922
14923 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14924
14925         [BZ #13540]
14926         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14927         processing for last bytes.
14928
14929 2011-08-06  Bruno Haible  <bruno@clisp.org>
14930
14931         [BZ #13061]
14932         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14933         U+0385, not to U+1FEE.
14934
14935         [BZ #13062]
14936         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14937         entry for U+00A5 U+0301.
14938
14939 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14940
14941         [BZ #13166]
14942         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14943         buffer for the output is too small.
14944
14945         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14946         optimization.
14947
14948         [BZ #13185]
14949         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14950         SSE flags if possible.
14951
14952 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14953
14954         [BZ #13540]
14955         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14956         processing for last bytes.
14957
14958 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14959
14960         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14961         (syscall-list-default-options, syscall-list-default-condition)
14962         (syscall-list-includes): Define.
14963         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14964         list of ABIs and options and #if conditions for each ABI.  Do not
14965         handle common syscalls between ABIs specially.
14966         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14967         Remove.
14968         (syscall-list-variants, syscall-list-32bit-options)
14969         (syscall-list-32bit-condition, syscall-list-64bit-options)
14970         (syscall-list-64bit-condition): Define.
14971         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14972         (syscall-list-variants, syscall-list-32bit-options)
14973         (syscall-list-32bit-condition, syscall-list-64bit-options)
14974         (syscall-list-64bit-condition): Define.
14975         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14976         Remove.
14977         (syscall-list-variants, syscall-list-32bit-options)
14978         (syscall-list-32bit-condition, syscall-list-64bit-options)
14979         (syscall-list-64bit-condition): Define.
14980         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14981         Remove.
14982         (syscall-list-variants, syscall-list-32bit-options)
14983         (syscall-list-32bit-condition, syscall-list-64bit-options)
14984         (syscall-list-64bit-condition): Define.
14985
14986 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14987
14988         * locale/iso-639.def: Add brx entry.
14989
14990         [BZ #13328]
14991         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14992         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14993
14994         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14995         __feraiseexcept_renamed.
14996
14997 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14998
14999         [BZ #13538]
15000         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15001         EPOLLET with unsigned values.
15002         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15003         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15004
15005         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15006         to large cancellation.
15007         * math/s_cacoshf.c: Likewise.
15008         * math/s_cacoshl.c: Likewise.
15009
15010 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15011
15012         [BZ #13305]
15013         [BZ #12786]
15014         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15015         * math/s_cacoshf.c: Likewise.
15016         * math/s_cacoshl.c: Likewise.
15017
15018 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15019
15020         [BZ #13439]
15021         * iconv/gconv.h: Define __GCONV_SWAP.
15022         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15023         * iconvdata/utf-16.c: Likewise.
15024         * iconvdata/utf-32.c: Likewise.
15025
15026 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15027
15028         [BZ #13524]
15029         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15030         numerator after shifting it by one limb.
15031
15032 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15033
15034         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15035         under [__USE_EXTERN_INLINES].
15036
15037 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15038
15039         [BZ #13446]
15040         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15041
15042 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15043
15044         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15045         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15046         optimized code.
15047         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15048         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15049         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15050         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15051         for strncasecmp/strncasecmp_l compilation.
15052         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15053         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15054
15055 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15056
15057         [BZ #13484]
15058         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15059         of __asm__.
15060
15061 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15062
15063         [BZ #13506]
15064         * time/tzfile.c (__tzfile_read): Check values from file header.
15065
15066 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15067
15068         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15069         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15070         * powerpc/powerpc32/dl-start.S: Likewise.
15071         * powerpc/powerpc32/elf/start.S: Likewise.
15072         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15073         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15074         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15075         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15076         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15077         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15078         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15079         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15080         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15081         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15082         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15083         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15084         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15085         * powerpc/powerpc32/memset.S: Likewise.
15086         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15087         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15088         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15089         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15090         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15091         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15092         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15093         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15094         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15095         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15096         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15097         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15098         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15099
15100 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15101
15102         * math/libm-test.inc: Added more nearbyint tests.
15103         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15104         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15105         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15106         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15107
15108 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15109
15110         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15111         FD_CLOEXEC.
15112
15113 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15114
15115         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15116         Add wcscpy-ssse3 wcscpy-c.
15117         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15118         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15119         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15120         * sysdeps/x86_64/wcschr.S: New file.
15121         * sysdeps/x86_64/wcsrchr.S: New file.
15122         * string/test-strcmp.c: Remove checking of wcscmp function for
15123         wrong alignments.
15124         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15125         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15126         wcsrchr-sse2 wcsrchr-c.
15127         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15128         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15129         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15130         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15131         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15132         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15133         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15134         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15135         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15136         * wcsmbc/wcschr.c (WCSCHR): New macro.
15137
15138 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15139
15140         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15141         * wcsmbs/test-wcsrchr.c: New file.
15142         * string/test-strrchr.c: Add wcsrchr support.
15143         (WIDE): New macro.
15144         * wcsmbs/test-wcscpy.c: New file.
15145         * string/test-strcpy.c: Add wcscpy support.
15146         (WIDE): New macro.
15147
15148 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15149
15150         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15151         the inner loop.
15152
15153 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15154
15155         [BZ #13472]
15156         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15157
15158 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15159
15160         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15161         Minor optimizations.
15162
15163         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15164         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15165         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15166
15167 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15168
15169         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15170         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15171         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15172         for gcc to avoid warnings.
15173         * inet/Makefile (tests): Add tst-checks.
15174         * inet/tst-checks.c: New file.
15175
15176         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15177         warning.
15178
15179         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15180         __wmemcmp_sse2.
15181
15182         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15183         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15184
15185         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15186
15187 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15188
15189         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15190         problem.
15191
15192         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15193
15194 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15195
15196         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15197         conditional on GCC version.
15198         (__arch_compare_and_exchange_val_8_acq)
15199         (__arch_compare_and_exchange_val_16_acq)
15200         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15201         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15202         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15203
15204 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15205
15206         * sysdeps/sh/backtrace.c: New file.
15207
15208 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15209
15210         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15211         parenthesis.
15212
15213 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15214
15215         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15216         falling back to utime.
15217
15218 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15219
15220         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15221         expectations for float.
15222
15223 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15224
15225         * locale/weight.h (findidx): Add parameter len.
15226         * locale/weightwc.h (findidx): Likewise.
15227         * posix/fnmatch_loop.c (FCT): Adjust caller.
15228         * posix/regcomp.c (build_equiv_class): Likewise.
15229         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15230         * posix/regexec.c (check_node_accept_bytes): Likewise.
15231         * string/strcoll_l.c (STRCOLL): Likewise.
15232         * string/strxfrm_l.c (STRXFRM): Likewise.
15233
15234 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15235
15236         * Makefile.in: Remove CVSOPT handling.
15237         * configure.in: Remove use of AC_REVISION.
15238         * iconvdata/Makefile (distribute): No need to filter out CVS.
15239         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15240         handling.
15241
15242 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15243
15244         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15245         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15246         [USE_AS_STRNCASECMP_L]: Likewise.
15247         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15248         NO_TLS_DIRECT_SEG_REFS.
15249         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15250         Fix argument offsets for non-PIC.
15251         [USE_AS_STRNCASECMP_L]: Likewise.
15252         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15253         NO_TLS_DIRECT_SEG_REFS.
15254
15255 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15256
15257         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15258         O_CLOEXEC.
15259         * locale/loadlocale.c (_nl_load_locale): Likewise.
15260
15261 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15262
15263         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15264         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15265         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15266         (SYSCALL_GETTIME): Set errno on error.
15267
15268         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15269         count references to noai6ai_cached.
15270
15271 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15272
15273         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15274
15275         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15276         FD_CLOEXEC for /proc/self/maps.
15277
15278         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15279         FD_CLOEXEC for /proc/meminfo.
15280
15281         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15282         gai.conf.
15283
15284         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15285         FD_CLOEXEC for given file.
15286
15287         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15288
15289         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15290         FD_CLOEXEC for /etc/hosts.
15291         (_gethtent): Likewise.
15292
15293         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15294
15295         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15296         cancellation and set FD_CLOEXEC for /etc/netgroup.
15297
15298         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15299         reading /etc/publickey.
15300
15301         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15302         allow cancellation when reading /etc/group.
15303
15304         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15305         cancellation.
15306         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15307
15308         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15309         when using data file.
15310
15311         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15312
15313         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15314         (write_nis_obj): Use "c" and "e" in fopen.
15315
15316         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15317
15318         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15319
15320         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15321
15322         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15323
15324         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15325         locale.alias.
15326
15327         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15328
15329         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15330
15331         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15332
15333         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15334         file parsing and set FD_CLOEXEC.
15335
15336 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15337
15338         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15339
15340 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15341
15342         * malloc/arena.c (arena_get2): Don't call reused_arena when
15343         _int_new_arena failed.
15344
15345 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15346
15347         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15348         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15349         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15350         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15351         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15352         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15353         to compile strcasecmp and strncasecmp.
15354         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15355         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15356
15357         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15358
15359 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15360
15361         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15362         locale-defines.sym to gen-as-const-headers.
15363         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15364         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15365         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15366         to compile strcasecmp and strncasecmp.
15367         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15368         strcasecmp_l and strncasecmp_l.
15369         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15370         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15371         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15372         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15373         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15374         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15375         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15376         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15377         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15378         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15379         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15380
15381 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15382
15383         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15384         result of SYSDEP_GETTIME_CPU to retval.
15385         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15386         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15387
15388         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15389         variable.
15390
15391         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15392         mantissa words.
15393         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15394
15395         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15396         from unused variable.
15397
15398         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15399         DWARF definitions.
15400         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15401         for assembling.
15402
15403         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15404         over namespaces.
15405
15406         * sunrpc/rpc_prot.c (rejected): Fix case value.
15407
15408         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15409         unsigned long long int to avoid warnings in shift.
15410
15411         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15412         of use of trans.
15413         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15414         variable tmp.
15415
15416         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15417         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15418         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15419
15420         * nis/nis_table.c (nis_list): Use variable of correct type for
15421         result of __follow_path call.
15422
15423 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15424
15425         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15426         of math functions ceil, trunc, floor, round, and sqrt, when
15427         avaliable on the platform.
15428         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15429         name clash.
15430         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15431         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15432         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15433
15434 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15435
15436         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15437         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15438
15439 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15440
15441         * include/unistd.h: Fix __readlink return type.
15442         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15443
15444 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15445
15446         * stdlib/ucontext.h: Undo last change for makecontext.
15447
15448 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15449
15450         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15451
15452         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15453         * setjmp/setjmp.h: Mark functions as non-leaf.
15454         * setjmp/bits/setjmp2.h: Likewise.
15455         * stdlib/ucontext.h: Likewise.
15456
15457 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15458
15459         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15460         (reused_arena): Don't check arena limit.
15461         (arena_get2): Atomically check arena limit.
15462
15463 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15464
15465         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15466         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15467
15468         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15469         instructions.
15470
15471 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15472
15473         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15474         handler when locking.
15475
15476         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15477         Fix size of allocated buffer.
15478
15479 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15480
15481         [BZ #10103]
15482         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15483         declarations for long double functions.
15484         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15485
15486         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15487
15488 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15489
15490         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15491         installed.
15492
15493         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15494         is disabled.
15495
15496 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15497
15498         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15499
15500 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15501
15502         * include/alloca.h (stackinfo_alloca_round): Define.
15503         (extend_alloca): Use it.
15504         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15505         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15506         here.
15507
15508         * scripts/check-local-headers.sh: Ignore libaudit.h.
15509
15510         * nscd/Makefile (extra-objs): Make recursively expanded.
15511
15512 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15513
15514         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15515         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15516
15517         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15518         * posix/tst-rfc3484-2.c: Likewise.
15519         * posix/tst-rfc3484-3.c: Likewise.
15520
15521         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15522         process_vm_writev.
15523         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15524         process_vm_writev.
15525         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15526         process_vm_writev from libc using GLIBC_2.15 version.
15527
15528         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15529
15530 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15531
15532         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15533         stack usage.
15534
15535 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15536
15537         [BZ #13367]
15538         * nss/getent.c (initgroups_keys): Show error message in case no group
15539         names are given.
15540
15541         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15542         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15543         __bump_nl_timestamp.
15544         * nscd/connections (nscd_init): When host database is served open
15545         netlink socket and request notification about configuration changes.
15546         (main_loop_poll): Track netlink file descriptor and bump timestamp
15547         in case data becomes available.
15548         (main_loop_epoll): Likewise.
15549         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15550         (database_pers_head): Add extra_data fileds.
15551         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15552         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15553         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15554         Adjust caller.
15555         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15556         in6ai data, call __free_in6ai.
15557         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15558         Add -DHAVE_NETLINK.
15559         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15560         interface information.  Reuse previous data if netlink timestamp
15561         is not changed.
15562         (__bump_nl_timestamp): New function.
15563         (__free_in6ai): New function.
15564
15565 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15566
15567         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15568         close_not_cancel_no_status here.
15569         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15570
15571 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15572
15573         [BZ #13276]
15574         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15575         return value.
15576
15577         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15578         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15579         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15580
15581 2011-07-03  Andreas Jaeger  <aj@suse.de>
15582
15583         [BZ #10709]
15584         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15585         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15586         * math/libm-test.inc (sin_test): Add test case.
15587
15588 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15589
15590         [BZ #13337]
15591         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15592         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15593
15594         * elf/chroot_canon.c (chroot_canon): Cleanups.
15595
15596         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15597
15598         [BZ #13335]
15599         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15600         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15601
15602         * string/test-strchr.c: Make usable for strchrnul testing.
15603         * string/test-strchrnul.c: New file.
15604         * string/Makefile (strop-tests): Add strchrnul.
15605
15606         * po/it.po: Update from translation team.
15607         * po/es.po: Likewise.
15608
15609 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15610
15611         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15612         the three constants needed as parameters.  Drop the others.
15613         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15614         __m128i_strloadu_tolower.
15615         Create and initialize variable zero and use it in all the places
15616         where _mm_setzero_si128 was used.
15617
15618         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15619         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15620         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15621         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15622         anymore.
15623         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15624         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15625         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15626         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15627         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15628         __mpranred, __mptan.
15629         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15630         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15631         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15632         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15633         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15634         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15635         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15636         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15637         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15638
15639 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15640
15641         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15642         redefine if SHARED.
15643         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15644
15645         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15646         wide char related routines to wcsmbs subdir.
15647
15648 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15649
15650         [BZ #13344]
15651         * misc/sys/cdefs.h (__THROWNL): Define.
15652         * posix/unistd.h: Use __THREADNL instead of __THREAD
15653         for memory synchronization functions.
15654
15655 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15656
15657         [BZ #13349]
15658         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15659         doesn't exist.
15660         * manual/stdio.texi (Obstack Streams): Node removed.
15661
15662 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15663
15664         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15665         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15666         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15667
15668         * math/math_private.h (math_force_eval): Allow non-addressable
15669         arguments.
15670         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15671
15672 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15673
15674         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15675         file is not needed.
15676
15677         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15678         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15679         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15680         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15681         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15682         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15683         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15684         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15685         Add AVX variants.
15686         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15687         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15688         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15689         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15690         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15691         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15692         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15693         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15694         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15695         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15696         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15697         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15698         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15699         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15700         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15701         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15702         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15703         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15704         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15705
15706         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15707         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15708
15709         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15710         place.  Use VEX encoding when compiling for AVX.
15711
15712 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15713
15714         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15715         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15716
15717         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15718
15719 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15720
15721         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15722         useless if() expression.
15723         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15724         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15725         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15726         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15727         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15728         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15729         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15730         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15731         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15732         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15733         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15734         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15735         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15736         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15737         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15738         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15739         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15740         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15741         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15742
15743         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15744
15745 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15746
15747         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15748         condition.
15749         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15750
15751 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15752
15753         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15754         .text section.  Avoid duplicate constants.
15755         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15756         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15757         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15758         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15759         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15760         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15761         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15762         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15763         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15764         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15765         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15766         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15767         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15768         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15769         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15770         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15771         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15772         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15773         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15774         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15775         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15776         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15777         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15778         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15779         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15780         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15781         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15782         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15783         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15784         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15785         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15786         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15787         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15788         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15789         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15790         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15791         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15792         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15793         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15794         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15795         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15796         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15797         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15798         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15799         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15800
15801 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15802
15803         * sysdeps/x86_64/dla.h: Move to ...
15804         * sysdeps/x86_64/fpu/dla.h: ...here.
15805         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15806         situations.  Use __builtin_fma only for gcc 4.6 and up.
15807
15808         * config.make.in: Add have-mfma4 entry.
15809         * configure.in: Substitute libc_cv_cc_fma4.
15810         * math/Makefile (dbl-only-routines): Add sincostab.
15811         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15812         Use __sincostab not sincos.
15813         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15814         name is a macro.
15815         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15816         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15817         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15818         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15819         using __copysign.
15820         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15821         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15822         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15823         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15824         and __inv.
15825         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15826         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15827         __copysign.
15828         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15829         define aliases when function name is a macro.
15830         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15831         sysdeps/ieee754/dbl-64/sincos.tbl.
15832         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15833         fma4-enabled routines.
15834         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15835         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15836         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15837         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15838         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15839         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15840         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15841         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15842         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15843         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15844         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15845         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15846         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15847         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15848         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15849         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15850         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15851         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15852         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15853         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15854         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15855         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15856         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15857         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15858         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15859         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15860         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15861         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15862         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15863         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15864
15865         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15866         rename.
15867         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15868         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15869         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15870         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15871         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15872         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15873         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15874         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15875
15876 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15877
15878         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15879
15880 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15881
15882         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15883
15884         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15885         prediction.
15886         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15887
15888         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15889         Remove unused variable magic_bits.
15890         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15891
15892         * string/strnlen.c: Define and use STRNLEN macro.
15893         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15894         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15895         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15896         * wcsmbs/wcslen.c: Define and use WCSLEN.
15897         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15898         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15899         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15900         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15901         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15902         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15903         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15904
15905 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15906
15907         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15908         strnlen-sse2-no-bsf.
15909         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15910         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15911         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15912         Add strnlen support.
15913         (USE_AS_STRNLEN): New macro.
15914         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15915         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15916         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15917         * sysdeps/x86_64/wcslen.S: New file.
15918
15919 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15920
15921         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15922         XMM-moves are used for copying on small sizes.
15923
15924 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15925
15926         * wcsmbs/Makefile (strop-tests): Add wcschr.
15927         * wcsmbs/test-wcschr.c: New file.
15928         * string/test-strchr.c: Update.
15929         Add wcschr support.
15930         (WIDE): New macro.
15931
15932 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15933
15934         * wcsmbs/Makefile (strop-tests): Add wcslen.
15935         * wcsmbs/test-wcslen.c: New file.
15936         * string/test-strlen.c: Update.
15937         Add wcslen support.
15938         (WIDE): New macro.
15939
15940 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15941
15942         * po/it.po: Update from translation team.
15943
15944 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15945
15946         * sysdeps/x86_64/wcscmp.S: Update.
15947         Fix wrong comparison semantics.
15948         wcscmp shall use signed comparison not unsigned.
15949         Don't use substraction to avoid overflow bug.
15950         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15951         * wcsmbc/wcscmp.c: Likewise.
15952         * string/test-strcmp.c: Likewise.
15953         Add new tests to check cases with negative values.
15954
15955 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15956
15957         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15958         * sysdeps/x86_64/dla.h: ...here.  New file.
15959         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15960         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15961         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15962         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15963         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15964         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15965         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15966         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15967         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15968
15969 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15970
15971         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15972         __ynl_finite aliases.
15973
15974 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15975
15976         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15977
15978         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15979         define DLA_FMA.
15980         [DLA_FMA] (EMULV): Use DLA_FMA.
15981         [DLA_FMA] (MUL12): Use EMULV.
15982         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15983         that are not needed.
15984         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15985         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15986         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15987         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15988         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15989         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15990         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15991
15992 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15993
15994         * math/s_nan.c: Undef __nan.
15995         * math/s_nanf.c: Undef __nanf.
15996         * math/s_nanl.c: Undef __nanl.
15997         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15998         "math_private.h".
15999
16000 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16001
16002         * math/s_catan.c: Add branch predictions.
16003         * math/s_catanf.c: Likewise.
16004         * math/s_catanh.c: Likewise.
16005         * math/s_catanhf.c: Likewise.
16006         * math/s_catanhl.c: Likewise.
16007         * math/s_catanl.c: Likewise.
16008         * math/s_cexp.c: Likewise.
16009         * math/s_cexpf.c: Likewise.
16010         * math/s_cexpl.c: Likewise.
16011         * math/s_clog.c: Likewise.
16012         * math/s_clog10.c: Likewise.
16013         * math/s_clog10f.c: Likewise.
16014         * math/s_clog10l.c: Likewise.
16015         * math/s_clogf.c: Likewise.
16016         * math/s_clogl.c: Likewise.
16017         * math/s_csqrt.c: Likewise.
16018         * math/s_csqrtf.c: Likewise.
16019         * math/s_csqrtl.c: Likewise.
16020         * math/s_ctanf.c: Likewise.
16021         * math/s_ctanh.c: Likewise.
16022         * math/s_ctanhf.c: Likewise.
16023         * math/s_ctanhl.c: Likewise.
16024         * math/s_ctanl.c: Likewise.
16025
16026         * math/math_private.h: Define __nan, __nanf, __nanl.
16027         * math/s_cacosh.c: Include <math_private.h>.
16028         * math/s_cacoshl.c: Likewise.
16029         * math/s_casinh.c: Likewise.
16030         * math/s_casinhf.c: Likewise.
16031         * math/s_casinhl.c: Likewise.
16032         * math/s_ccos.c: Rely entire on ccosh.
16033         * math/s_ccosf.c: Rely entire on ccoshf.
16034         * math/s_ccosl.c: Rely entirely on ccoshl.
16035         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16036         Remove tests for FE_INVALID.
16037         * math/s_ccoshf.c: Likewise.
16038         * math/s_ccoshl.c: Likewise.
16039         * math/s_csin.c: Likewise.
16040         * math/s_csinf.c: Likewise.
16041         * math/s_csinh.c Likewise.
16042         * math/s_csinhf.c: Likewise.
16043         * math/s_csinhl.c: Likewise.
16044         * math/s_csinl.c: Likewise.
16045         * math/s_ctan.c: Likewise.
16046         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16047         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16048         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16049
16050 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16051
16052         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16053         compilation problems.
16054
16055         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16056         __builtin_expect.
16057
16058 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16059
16060         * sysdeps/i386/configure.in: Test for -mfma4 option.
16061         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16062         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16063         COMMON_CPUID_INDEX_80000001.
16064         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16065         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16066         use it if FMA3 is not supported.
16067         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16068
16069         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16070         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16071
16072 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16073
16074         [BZ #12892]
16075         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16076         it would create a cycle with a link time dependency.
16077
16078 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16079
16080         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16081         instruction.
16082         * string/Makefile (strop-tests): Add rawmemchr.
16083         * string/test-rawmemchr.c: New file.
16084
16085         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16086         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16087         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16088         when compiling str{,n}casecmp and when AVX is available.  Hook up
16089         new optimized code in initializers.
16090
16091 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16092
16093         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16094         __feraiseexcept instead of feraiseexcept.
16095
16096 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16097
16098         * math/math_private.h: Define defaults for libc_fetestexcept and
16099         libc_feupdateenv.
16100         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16101         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16102         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16103         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16104         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16105         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16106         libc_fetestexcept and libc_feupdateenv.
16107
16108         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16109         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16110         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16111         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16112         libc_feholdexcept_setround.
16113
16114         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16115         Add s_nearbyint-c and s_nearbyintf-c.
16116         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16117         nearbyintf inlines.
16118         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16119         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16120         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16121         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16122
16123         * math/math_private.h: Define defaults for libc_fegetround,
16124         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16125         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16126         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16127         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16128         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16129         standard functions.
16130         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16131         Remove comments and hacks for old compiler versions.
16132         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16133         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16134         libc_feholdexceptl.
16135
16136 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16137
16138         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16139         (__feraiseexcept_renamed): Add __NTH.
16140         (feraiseexcept): Add __NTH.  Rename local variables to fix
16141         namespace violations.
16142
16143 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16144
16145         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16146
16147         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16148
16149         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16150         recently added interfaces.
16151         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16152
16153         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16154         about macro parameter expansion.
16155
16156         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16157         __NO_MATH_INLINES is defined.  Cleanups.
16158
16159         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16160         and __floorf is target has SSE4.1.
16161         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16162         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16163         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16164         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16165
16166         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16167         name.
16168         (floorf): Likewise.
16169
16170         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16171
16172 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16173
16174         * misc/sys/cdefs.h: Fix last change.
16175
16176         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16177         database lookup.
16178
16179 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16180
16181         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16182
16183         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16184         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16185         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16186         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16187         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16188         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16189         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16190         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16191         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16192         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16193         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16194         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16195         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16196         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16197         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16198         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16199         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16200         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16201         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16202         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16203         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16204         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16205
16206         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16207         ceil, ceilf, floor, floorf.
16208
16209         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16210         Perform IRELATIVE relocations last.
16211
16212         * elf/do-rel.h: Add another parameter nrelative, replacing the
16213         local variable with the same name.  Change name of the function
16214         to end in Rel or Rela (uppercase).
16215         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16216         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16217         elf_dynamic_do_##reloc function.
16218
16219 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16220
16221         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16222         is sufficient, at least on modern CPUs.
16223
16224         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16225
16226         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16227         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16228
16229         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16230         __expl_finite.
16231         * math/bits/math-finite.h: Add entries for exp.
16232         * math/e_expl.c: Add __*_finite alias.
16233         * sysdeps/i386/fpu/e_exp.S: Likewise.
16234         * sysdeps/i386/fpu/e_expf.S: Likewise.
16235         * sysdeps/i386/fpu/e_expl.c: Likewise.
16236         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16237         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16238         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16239         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16240         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16241         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16242         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16243
16244         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16245         is sufficient, at least on modern CPUs.
16246
16247         * ctype/ctype-info.c (__ctype_init): Define.
16248         * include/ctype.h (__ctype_init): Declare.
16249         (__ctype_b_loc): The variable is always initialized.
16250         (__ctype_toupper_loc): Likewise.
16251         (__ctype_tolower_loc): Likewise.
16252         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16253         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16254
16255 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16256
16257         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16258
16259         * configure.in: Also look in $cxxmachine/include for C++ system
16260         headers.
16261
16262 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16263
16264         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16265         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16266         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16267         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16268         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16269         (USE_AS_WMEMCMP): New macro.
16270         Fixing indents.
16271         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16272         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16273         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16274         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16275         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16276         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16277         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16278         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16279         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16280         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16281         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16282         (USE_AS_WMEMCMP): New macro.
16283         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16284         * sysdeps/string/test-memcmp.c: Update.
16285         Fix simple_wmemcmp.
16286         Add new tests.
16287         * wcsmbs/wmemcmp.c: Update.
16288         (WMEMCMP): New macro.
16289         Fix overflow bug.
16290
16291 2011-10-12  Andreas Jaeger  <aj@suse.de>
16292
16293         [BZ #13268]
16294         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16295
16296 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16297
16298         * libio/iofwide.c (do_length): Avoid warning.
16299
16300         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16301
16302 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16303
16304         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16305
16306         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16307         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16308         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16309         * sysdeps/i386/i686/fpu/e_log.S: New file.
16310         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16311         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16312
16313         * ctype/ctype.h: Add support for inlined isXXX functions when
16314         compiling C++ code.
16315
16316 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16317
16318         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16319
16320         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16321
16322 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16323
16324         [BZ #13291]
16325         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16326
16327 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16328
16329         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16330         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16331         feraiseexcept.
16332
16333         * sysdeps/x86_64/memrchr.S: Check for zero size.
16334
16335         * string/stratcliff.c: Add memrchr tests.
16336
16337 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16338
16339         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16340         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16341         rawmemchr-sse2 rawmemchr-sse2-bsf.
16342         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16343         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16344         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16345         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16346         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16347         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16348         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16349         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16350         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16351         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16352         * string/memrchr.c (MEMRCHR): New macro.
16353
16354 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16355
16356         Add integration with gcc's -ffinite-math-only and optimize wrapper
16357         functions in libm.
16358         * Versions.def: Define GLIBC_2.15 version for libm.
16359         * math/Makefile (headers): Add bits/math-finite.h.
16360         * math/bits/math-finite.h: New file.
16361         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16362         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16363         * math/e_acoshl.c: Add __*_finite alias.
16364         * math/e_acosl.c: Likewise.
16365         * math/e_asinl.c: Likewise.
16366         * math/e_atan2l.c: Likewise.
16367         * math/e_atanhl.c: Likewise.
16368         * math/e_coshl.c: Likewise.
16369         * math/e_exp10.c: Likewise.
16370         * math/e_exp10f.c: Likewise.
16371         * math/e_exp10l.c: Likewise.
16372         * math/e_exp2l.c: Likewise.
16373         * math/e_fmodl.c: Likewise.
16374         * math/e_gammal_r.c: Likewise.
16375         * math/e_hypotl.c: Likewise.
16376         * math/e_j0l.c: Likewise.
16377         * math/e_j1l.c: Likewise.
16378         * math/e_jnl.c: Likewise.
16379         * math/e_lgammal_r.c: Likewise.
16380         * math/e_log10l.c: Likewise.
16381         * math/e_log2l.c: Likewise.
16382         * math/e_logl.c: Likewise.
16383         * math/e_powl.c: Likewise.
16384         * math/e_sinhl.c: Likewise.
16385         * math/e_sqrtl.c: Likewise.
16386         * math/e_scalb.c: Completely rewritten and optimized.
16387         * math/e_scalbf.c: Likewise.
16388         * math/e_scalbl.c: Likewise.
16389         * math/w_acos.c: Likewise.
16390         * math/w_acosf.c: Likewise.
16391         * math/w_acosl.c: Likewise.
16392         * math/w_acosh.c: Likewise.
16393         * math/w_acoshf.c: Likewise.
16394         * math/w_acoshl.c: Likewise.
16395         * math/w_asin.c: Likewise.
16396         * math/w_asinf.c: Likewise.
16397         * math/w_asinl.c: Likewise.
16398         * math/w_atan2.c: Likewise.
16399         * math/w_atan2f.c: Likewise.
16400         * math/w_atan2l.c: Likewise.
16401         * math/w_atanh.c: Likewise.
16402         * math/w_atanhf.c: Likewise.
16403         * math/w_atanhl.c: Likewise.
16404         * math/w_exp10.c: Likewise.
16405         * math/w_exp10f.c: Likewise.
16406         * math/w_exp10l.c: Likewise.
16407         * math/w_fmod.c: Likewise.
16408         * math/w_fmodf.c: Likewise.
16409         * math/w_fmodl.c: Likewise.
16410         * math/w_j0.c: Likewise.
16411         * math/w_j0f.c: Likewise.
16412         * math/w_j0l.c: Likewise.
16413         * math/w_j1.c: Likewise.
16414         * math/w_j1f.c: Likewise.
16415         * math/w_j1l.c: Likewise.
16416         * math/w_jn.c: Likewise.
16417         * math/w_jnf.c: Likewise.
16418         * math/w_log.c: Likewise.
16419         * math/w_logf.c: Likewise.
16420         * math/w_logl.c: Likewise.
16421         * math/w_log10.c: Likewise.
16422         * math/w_log10f.c: Likewise.
16423         * math/w_log10l.c: Likewise.
16424         * math/w_log2.c: Likewise.
16425         * math/w_log2f.c: Likewise.
16426         * math/w_log2l.c: Likewise.
16427         * math/w_pow.c: Likewise.
16428         * math/w_powf.c: Likewise.
16429         * math/w_powl.c: Likewise.
16430         * math/w_remainder.c: Likewise.
16431         * math/w_remainderf.c: Likewise.
16432         * math/w_remainderl.c: Likewise.
16433         * math/w_scalb.c: Likewise.
16434         * math/w_scalbf.c: Likewise.
16435         * math/w_scalbl.c: Likewise.
16436         * math/w_sqrt.c: Likewise.
16437         * math/w_sqrtf.c: Likewise.
16438         * math/w_sqrtl.c: Likewise.
16439         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16440         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16441         used.
16442         * math/math_private.h: Declare __kernel_standard_f.
16443         * math/w_cosh.c: Remove cruft and optimize a bit.
16444         * math/w_coshf.c: Likewise.
16445         * math/w_coshl.c: Likewise.
16446         * math/w_exp2.c: Likewise.
16447         * math/w_exp2f.c: Likewise.
16448         * math/w_exp2l.c: Likewise.
16449         * math/w_hypot.c: Likewise.
16450         * math/w_hypotf.c: Likewise.
16451         * math/w_hypotl.c: Likewise.
16452         * math/w_lgamma.c: Likewise.
16453         * math/w_lgamma_r.c: Likewise.
16454         * math/w_lgammaf.c: Likewise.
16455         * math/w_lgammaf_r.c: Likewise.
16456         * math/w_lgammal.c: Likewise.
16457         * math/w_lgammal_r.c: Likewise.
16458         * math/w_sinh.c: Likewise.
16459         * math/w_sinhf.c: Likewise.
16460         * math/w_sinhl.c: Likewise.
16461         * math/w_tgamma.c: Likewise.
16462         * math/w_tgammaf.c: Likewise.
16463         * math/w_tgammal.c: Likewise.
16464         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16465         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16466         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16467         Minor optimizations.  Pretty printing.  Remove cruft.
16468         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16469         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16470         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16471         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16472         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16473         * sysdeps/i386/fpu/e_asin.S: Likewise.
16474         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16475         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16476         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16477         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16478         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16479         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16480         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16481         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16482         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16483         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16484         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16485         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16486         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16487         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16488         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16489         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16490         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16491         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16492         * sysdeps/i386/fpu/e_log.S: Likewise.
16493         * sysdeps/i386/fpu/e_log10.S: Likewise.
16494         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16495         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16496         * sysdeps/i386/fpu/e_log2.S: Likewise.
16497         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16498         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16499         * sysdeps/i386/fpu/e_logf.S: Likewise.
16500         * sysdeps/i386/fpu/e_logl.S: Likewise.
16501         * sysdeps/i386/fpu/e_pow.S: Likewise.
16502         * sysdeps/i386/fpu/e_powf.S: Likewise.
16503         * sysdeps/i386/fpu/e_powl.S: Likewise.
16504         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16505         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16506         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16507         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16508         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16509         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16510         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16511         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16512         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16513         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16514         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16515         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16516         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16517         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16518         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16519         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16520         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16521         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16522         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16523         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16524         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16525         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16526         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16527         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16528         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16529         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16530         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16531         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16532         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16533         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16534         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16535         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16536         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16537         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16538         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16539         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16540         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16541         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16542         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16543         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16544         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16545         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16546         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16547         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16548         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16549         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16550         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16551         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16552         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16553         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16554         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16555         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16556         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16557         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16558         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16559         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16560         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16561         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16562         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16563         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16564         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16565         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16566         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16567         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16568         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16569         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16570         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16571         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16572         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16573         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16574         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16575         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16576         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16577         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16578         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16579         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16580         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16581         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16582         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16583         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16584         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16585         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16586         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16587         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16588         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16589         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16590         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16591         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16592         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16593         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16594         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16595         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16596         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16597         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16598         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16599         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16600         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16601         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16602         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16603         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16604         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16605         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16606         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16607         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16608         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16609         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16610         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16611         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16612         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16613         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16614         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16615         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16616         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16617         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16618         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16619         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16620         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16621         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16622         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16623         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16624         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16625         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16626         (__isnanf): Likewise.
16627         (__isinf_ns): Likewise.
16628         (__isinf_nsf): Likewise.
16629         (__finite): Likewise.
16630         (__finitef): Likewise.
16631         (__ieee754_sqrt): Define as macro.
16632         (__ieee754_sqrtf): Define as macro.
16633         (__ieee754_sqrtl): Define as macro.
16634         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16635         inlined copy.
16636         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16637         __FINITE_MATH_ONLY__ consistent.
16638         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16639
16640 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16641
16642         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16643         of rawmemchr.
16644
16645         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16646
16647 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16648
16649         * po/ja.po: Update from translation team.
16650
16651 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16652
16653         * locale/programs/locarchive.c (prepare_address_space): New function.
16654         (create_archive, enlarge_archive, open_archive): Use it.
16655
16656         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16657         inside [SHARED], where it is used.
16658
16659         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16660
16661         * nss/getent.c (netgroup_keys): Remove unused variable.
16662         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16663
16664 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16665
16666         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16667         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16668         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16669         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16670         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16671         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16672         * math/Makefile (libm-calls): Add s_isinf_ns.
16673         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16674         * math/multc3.c: Likewise.
16675         * math/s_casin.c: Likewise.
16676         * math/s_casinf.c: Likewise.
16677         * math/s_casinl.c: Likewise.
16678         * math/s_ccos.c: Likewise.
16679         * math/s_ccosf.c: Likewise.
16680         * math/s_ccosl.c: Likewise.
16681         * math/s_ctan.c: Likewise.
16682         * math/s_ctanf.c: Likewise.
16683         * math/s_ctanh.c: Likewise.
16684         * math/s_ctanhf.c: Likewise.
16685         * math/s_ctanhl.c: Likewise.
16686         * math/s_ctanl.c: Likewise.
16687         * math/w_fmod.c: Likewise.
16688         * math/w_fmodf.c: Likewise.
16689         * math/w_fmodl.c: Likewise.
16690         * math/w_remainder.c: Likewise.
16691         * math/w_remainderf.c: Likewise.
16692         * math/w_remainderl.c: Likewise.
16693         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16694         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16695         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16696         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16697         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16698         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16699         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16700         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16701
16702         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16703         of the number.
16704         * stdio-common/printf_fphex.c: Likewise.
16705         * stdio-common/printf_size.c: Likewise.
16706
16707         * math/e_exp10.c: Include math_private.h using <...> not "...".
16708         * math/e_exp10f.c: Likewise.
16709         * math/e_exp10l.c: Likewise.
16710         * math/e_exp2l.c: Likewise.
16711         * math/e_j0l.c: Likewise.
16712         * math/e_j1l.c: Likewise.
16713         * math/e_jnl.c: Likewise.
16714         * math/e_lgammal_r.c: Likewise.
16715         * math/e_rem_pio2l.c: Likewise.
16716         * math/e_scalb.c: Likewise.
16717         * math/e_scalbf.c: Likewise.
16718         * math/e_scalbl.c: Likewise.
16719         * math/k_cosl.c: Likewise.
16720         * math/k_sinl.c: Likewise.
16721         * math/k_tanl.c: Likewise.
16722         * math/s_cacoshf.c: Likewise.
16723         * math/s_catan.c: Likewise.
16724         * math/s_catanf.c: Likewise.
16725         * math/s_catanh.c: Likewise.
16726         * math/s_catanhf.c: Likewise.
16727         * math/s_catanhl.c: Likewise.
16728         * math/s_catanl.c: Likewise.
16729         * math/s_ccosh.c: Likewise.
16730         * math/s_ccoshf.c: Likewise.
16731         * math/s_ccoshl.c: Likewise.
16732         * math/s_cexp.c: Likewise.
16733         * math/s_cexpf.c: Likewise.
16734         * math/s_cexpl.c: Likewise.
16735         * math/s_clog.c: Likewise.
16736         * math/s_clog10.c: Likewise.
16737         * math/s_clog10f.c: Likewise.
16738         * math/s_clog10l.c: Likewise.
16739         * math/s_clogf.c: Likewise.
16740         * math/s_clogl.c: Likewise.
16741         * math/s_csin.c: Likewise.
16742         * math/s_csinf.c: Likewise.
16743         * math/s_csinh.c: Likewise.
16744         * math/s_csinhf.c: Likewise.
16745         * math/s_csinhl.c: Likewise.
16746         * math/s_csinl.c: Likewise.
16747         * math/s_csqrt.c: Likewise.
16748         * math/s_csqrtf.c: Likewise.
16749         * math/s_csqrtl.c: Likewise.
16750         * math/s_ctan.c: Likewise.
16751         * math/s_ctanf.c: Likewise.
16752         * math/s_ctanh.c: Likewise.
16753         * math/s_ctanhf.c: Likewise.
16754         * math/s_ctanhl.c: Likewise.
16755         * math/s_ctanl.c: Likewise.
16756         * math/s_ldexp.c: Likewise.
16757         * math/s_ldexpf.c: Likewise.
16758         * math/s_ldexpl.c: Likewise.
16759         * math/s_significand.c: Likewise.
16760         * math/s_significandf.c: Likewise.
16761         * math/s_significandl.c: Likewise.
16762         * math/w_acos.c: Likewise.
16763         * math/w_acosf.c: Likewise.
16764         * math/w_acosh.c: Likewise.
16765         * math/w_acoshf.c: Likewise.
16766         * math/w_acoshl.c: Likewise.
16767         * math/w_acosl.c: Likewise.
16768         * math/w_asin.c: Likewise.
16769         * math/w_asinf.c: Likewise.
16770         * math/w_asinl.c: Likewise.
16771         * math/w_atan2.c: Likewise.
16772         * math/w_atan2f.c: Likewise.
16773         * math/w_atan2l.c: Likewise.
16774         * math/w_atanh.c: Likewise.
16775         * math/w_atanhf.c: Likewise.
16776         * math/w_atanhl.c: Likewise.
16777         * math/w_cosh.c: Likewise.
16778         * math/w_coshf.c: Likewise.
16779         * math/w_coshl.c: Likewise.
16780         * math/w_dremf.c: Likewise.
16781         * math/w_exp10.c: Likewise.
16782         * math/w_exp10f.c: Likewise.
16783         * math/w_exp10l.c: Likewise.
16784         * math/w_exp2.c: Likewise.
16785         * math/w_exp2f.c: Likewise.
16786         * math/w_fmod.c: Likewise.
16787         * math/w_fmodf.c: Likewise.
16788         * math/w_fmodl.c: Likewise.
16789         * math/w_hypot.c: Likewise.
16790         * math/w_hypotf.c: Likewise.
16791         * math/w_hypotl.c: Likewise.
16792         * math/w_j0.c: Likewise.
16793         * math/w_j0f.c: Likewise.
16794         * math/w_j0l.c: Likewise.
16795         * math/w_j1.c: Likewise.
16796         * math/w_j1f.c: Likewise.
16797         * math/w_j1l.c: Likewise.
16798         * math/w_jn.c: Likewise.
16799         * math/w_jnf.c: Likewise.
16800         * math/w_jnl.c: Likewise.
16801         * math/w_lgamma.c: Likewise.
16802         * math/w_lgamma_r.c: Likewise.
16803         * math/w_lgammaf.c: Likewise.
16804         * math/w_lgammaf_r.c: Likewise.
16805         * math/w_lgammal.c: Likewise.
16806         * math/w_lgammal_r.c: Likewise.
16807         * math/w_log.c: Likewise.
16808         * math/w_log10.c: Likewise.
16809         * math/w_log10f.c: Likewise.
16810         * math/w_log10l.c: Likewise.
16811         * math/w_log2.c: Likewise.
16812         * math/w_log2f.c: Likewise.
16813         * math/w_log2l.c: Likewise.
16814         * math/w_logf.c: Likewise.
16815         * math/w_logl.c: Likewise.
16816         * math/w_pow.c: Likewise.
16817         * math/w_powf.c: Likewise.
16818         * math/w_powl.c: Likewise.
16819         * math/w_remainder.c: Likewise.
16820         * math/w_remainderf.c: Likewise.
16821         * math/w_remainderl.c: Likewise.
16822         * math/w_scalb.c: Likewise.
16823         * math/w_scalbf.c: Likewise.
16824         * math/w_scalbl.c: Likewise.
16825         * math/w_sinh.c: Likewise.
16826         * math/w_sinhf.c: Likewise.
16827         * math/w_sinhl.c: Likewise.
16828         * math/w_sqrt.c: Likewise.
16829         * math/w_sqrtf.c: Likewise.
16830         * math/w_sqrtl.c: Likewise.
16831         * math/w_tgamma.c: Likewise.
16832         * math/w_tgammaf.c: Likewise.
16833         * math/w_tgammal.c: Likewise.
16834
16835         * po/ja.po: Update from translation team.
16836
16837 2011-09-29  Andreas Jaeger  <aj@suse.de>
16838
16839         [BZ #13179]
16840         * sunrpc/netname.c (netname2host): Fix logic.
16841
16842         [BZ #6779]
16843         [BZ #6783]
16844         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16845         correctly.
16846         * math/w_remainder.c (__remainder): Likewise.
16847         * math/w_remainderf.c (__remainderf): Likewise.
16848         * math/libm-test.inc (remainder_test): Add test cases.
16849
16850 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16851
16852         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16853         sdiv_qrnnd.
16854
16855 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16856
16857         * string/test-memcmp.c: Avoid unncessary #defines.
16858         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16859
16860 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16861
16862         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16863         Use new sse2 version for core i3 - i7 as it's faster
16864         than sse42 version.
16865         (bit_Prefer_PMINUB_for_stringop): New.
16866         * sysdeps/x86_64/rawmemchr.S: Update.
16867         Replace with faster SSE2 version.
16868         * sysdeps/x86_64/memrchr.S: New file.
16869         * sysdeps/x86_64/memchr.S: Update.
16870         Replace with faster SSE2 version.
16871
16872 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16873
16874         * elf/dl-load.c (lose): Add cast to avoid warning.
16875
16876 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16877
16878         * po/ca.po: Update from translation team.
16879
16880         * inet/getnetgrent_r.c: Hook up nscd.
16881         * nscd/Makefile (routines): Add nscd_netgroup.
16882         (nscd-modules): Add netgroupcache.
16883         (CFLAGS-netgroupcache.c): Define.
16884         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16885         (cache_search): Add const to second parameter.
16886         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16887         INNETGR.
16888         (dbs): Add netgrdb entry.
16889         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16890         (verify_persistent_db): Handle netgrdb.
16891         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16892         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16893         GETFDNETGR.
16894         (netgroup_response_header): Define.
16895         (innetgroup_response_header): Define.
16896         (datahead): Add netgroup_response_header and innetgroup_response_header
16897         elements.
16898         * nscd/nscd.conf: Add entries for netgroup cache.
16899         * nscd/nscd.h (dbtype): Add netgrdb.
16900         (_PATH_NSCD_NETGROUP_DB): Define.
16901         (netgroup_iov_disabled): Declare.
16902         (xmalloc, xcalloc, xrealloc): Move declarations here.
16903         (cache_search): Adjust prototype.
16904         Add netgroup-related prototypes.
16905         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16906         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16907         (__nscd_innetgr): Declare.
16908         * nscd/selinux.c (perms): Use access_vector_t as element type and
16909         add netgroup-related initializers.
16910         * nscd/netgroupcache.c: New file.
16911         * nscd/nscd_netgroup.c: New file.
16912         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16913         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16914         For four parameters use innetgr.
16915         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16916         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16917         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16918         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16919
16920         * nscd/connections.c (register_traced_file): Don't register file
16921         for disabled databases.
16922
16923 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16924
16925         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16926
16927         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16928         from tree and freeing node.
16929
16930 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16931
16932         * nss/nsswitch.c (__nss_database_lookup): Handle
16933         nss_parse_service_list out of memory case.
16934
16935 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16936
16937         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16938         out of memory case.
16939
16940 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16941
16942         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16943         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16944         pass it down.
16945         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16946         elf_machine_rela, elf_machine_lazy_rel.
16947         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16948         (ELF_DYNAMIC_DO_REL): Likewise.
16949         (ELF_DYNAMIC_DO_RELA): Likewise.
16950         (ELF_DYNAMIC_RELOCATE): Likewise.
16951         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16952         to ELF_DYNAMIC_DO_REL.
16953         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16954         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16955         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16956         elf_machine_rela.
16957         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16958         skip_ifunc, don't call ifunc function if non-zero.
16959         (elf_machine_rela): Likewise.
16960         (elf_machine_lazy_rel): Likewise.
16961         (elf_machine_lazy_rela): Likewise.
16962         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16963         (elf_machine_lazy_rel): Likewise.
16964         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16965         Likewise.
16966         (elf_machine_lazy_rel): Likewise.
16967         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16968         Likewise.
16969         (elf_machine_lazy_rel): Likewise.
16970         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16971         (elf_machine_lazy_rel): Likewise.
16972         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16973         (elf_machine_lazy_rel): Likewise.
16974         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16975         (elf_machine_lazy_rel): Likewise.
16976         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16977         (elf_machine_lazy_rel): Likewise.
16978         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16979         (elf_machine_lazy_rel): Likewise.
16980         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16981         (elf_machine_lazy_rel): Likewise.
16982
16983 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16984
16985         * nss/nss_files/files-init.c (_nss_files_init): Use static
16986         initialization for all the *_traced_file variables.
16987
16988 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16989
16990         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16991
16992 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16993
16994         [BZ #13226]
16995         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16996
16997 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16998
16999         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17000         Reread the line before reparsing it.
17001
17002 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17003
17004         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17005
17006 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17007             Maxim Kuvyrkov  <maxim@codesourcery.com>
17008             Joseph Myers  <joseph@codesourcery.com>
17009
17010         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17011         if needed for __stack_chk_guard.
17012
17013 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17014
17015         * sysdeps/posix/spawni.c (script_execute): Always define it.
17016         It will be optimized away if unused.
17017         (maybe_script_execute): New function.
17018         (__spawni): Call it.
17019
17020         * Makerules: Don't include tls.make.
17021         (config-tls): Always set to thread.
17022         * tls.make.c: File removed.
17023
17024 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17025
17026         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17027         * config.make.in (CPPFLAGS-config): New substituted variable.
17028
17029 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17030
17031         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17032
17033         [BZ #13192]
17034         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17035         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17036
17037 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17038
17039         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17040         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17041         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17042         (CALL_FAIL): Likewise.
17043         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17044         (CALL_FAIL): Macro removed.
17045         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17046
17047 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17048
17049         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17050         for __FINITE_MATH_ONLY__ == 1.
17051
17052 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17053
17054         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17055         __ieee754_sqrt instead of sqrt.
17056         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17057         __ieee754_sqrtf instead of sqrtf.
17058         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17059         __floorf instead of floorf.
17060         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17061         __floorf, __truncf instead of floorf, truncf.
17062
17063 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17064
17065         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17066
17067         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17068         __extern_always_inline.
17069         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17070         32-bit.
17071
17072 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17073
17074         * elf/rtld.c (dl_main): Also relocate in dependency order when
17075         doing symbol dependency testing.
17076
17077 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17078
17079         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17080         Always define `refsym'.
17081
17082 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17083
17084         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17085         (__FD_ELT): Renamed from __FDELT.
17086         * misc/bits/select2.h (__FD_ELT): Likewise.
17087         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17088         __FD_MASK instead of __FDELT, __FDMASK.
17089         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17090         Likewise.
17091         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17092         Likewise.
17093
17094         * elf/Makefile (gen-ldd): Fix pattern.
17095
17096         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17097         (init_tls): Likewise.
17098
17099 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17100
17101         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17102
17103 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17104
17105         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17106         `struct cmsghdr *' instead of `void *'.
17107         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17108         Likewise.
17109
17110 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17111
17112         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17113         if non-absolute.
17114         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17115         ldd_rewrite_script.
17116
17117 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17118
17119         * configure.in: Remove --with-tls option.
17120         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17121         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17122         out in case it is missing.
17123         * sysdeps/ia64/elf/configure.in: Likewise.
17124         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17125         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17126         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17127         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17128         * sysdeps/sh/elf/configure.in: Likewise.
17129         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17130         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17131         * sysdeps/x86_64/elf/configure.in: Likewise.
17132         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17133         * sysdeps/mach/hurd/tls.h: Likewise.
17134
17135         [BZ #13067]
17136         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17137
17138         [BZ #13090]
17139         * configure.in: Fix use of AC_INIT.
17140
17141         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17142
17143 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17144
17145         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17146         __set_errno.
17147         * malloc/hooks.c: Likewise.
17148
17149         [BZ #11929]
17150         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17151         variables statically.
17152         (narenas): Initialize.
17153         (list_lock): Initialize.
17154         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17155         initializtion of main_arena and list_lock.  Small cleanups.
17156         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17157         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17158         Add initializers to main_arena and mp_.
17159         (malloc_state): Remove pagesize member.  Change all users to use
17160         GLRO(dl_pagesize).
17161
17162         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17163         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17164         is always initialized.
17165
17166         * malloc/malloc.c: Removed unused configurations and dead code.
17167         * malloc/arena.c: Likewise.
17168         * malloc/hooks.c: Likewise.
17169         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17170
17171         * include/tls.h: Removed.  USE___THREAD must always be defined.
17172         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17173         * elf/dl-libc.c: Likewise.
17174         * elf/dl-tsd.c: Likewise.
17175         * include/errno.h: Likewise.
17176         * include/netdb.h: Likewise.
17177         * include/resolv.h: Likewise.
17178         * inet/herrno-loc.c: Likewise.
17179         * inet/herrno.c: Likewise.
17180         * malloc/arena.c: Likewise.
17181         * malloc/hooks.c: Likewise.
17182         * malloc/malloc.c: Likewise.
17183         * resolv/res-state.c: Likewise.
17184         * resolv/res_libc.c: Likewise.
17185         * sysdeps/i386/dl-machine.h: Likewise.
17186         * sysdeps/ia64/dl-machine.h: Likewise.
17187         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17188         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17189         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17190         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17191         * sysdeps/sh/dl-machine.h: Likewise.
17192         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17193         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17194         * sysdeps/unix/i386/sysdep.S: Likewise.
17195         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17196         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17197         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17198         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17199         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17200         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17201         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17202         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17203         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17204         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17205         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17206         * sysdeps/x86_64/dl-machine.h: Likewise.
17207         * tls.make.c: Likewise.
17208
17209         * configure.in: Remove --with-__thread option.  Make tests for
17210         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17211         tls_model attribute fail if no support is available.  Remove
17212         USE_IN_LIBIO.
17213         * Makeconfig: Adjust for dropped configure option.  All features are
17214         now mandatory.
17215         * Makerules: Likewise.
17216         * Versions.def: Likewise.
17217         * argp/argp-fmtstream.c: Likewise.
17218         * argp/argp-fmtstream.h: Likewise.
17219         * argp/argp-help.c: Likewise.
17220         * assert/assert.c: Likewise.
17221         * config.h.in: Likewise.
17222         * config.make.in: Likewise.
17223         * configure: Likewise.
17224         * configure.in: Likewise.
17225         * csu/Versions: Likewise.
17226         * csu/init.c: Likewise.
17227         * elf/tst-audit2.c: Likewise.
17228         * elf/tst-tls10.c: Likewise.
17229         * elf/tst-tls10.h: Likewise.
17230         * elf/tst-tls11.c: Likewise.
17231         * elf/tst-tls12.c: Likewise.
17232         * elf/tst-tls14.c: Likewise.
17233         * elf/tst-tlsmod11.c: Likewise.
17234         * elf/tst-tlsmod12.c: Likewise.
17235         * elf/tst-tlsmod13.c: Likewise.
17236         * elf/tst-tlsmod13a.c: Likewise.
17237         * elf/tst-tlsmod14a.c: Likewise.
17238         * elf/tst-tlsmod15b.c: Likewise.
17239         * elf/tst-tlsmod16a.c: Likewise.
17240         * elf/tst-tlsmod16b.c: Likewise.
17241         * elf/tst-tlsmod7.c: Likewise.
17242         * elf/tst-tlsmod8.c: Likewise.
17243         * elf/tst-tlsmod9.c: Likewise.
17244         * gmon/gmon.c: Likewise.
17245         * grp/fgetgrent_r.c: Likewise.
17246         * grp/putgrent.c: Likewise.
17247         * hurd/fopenport.c: Likewise.
17248         * include/libc-symbols.h: Likewise.
17249         * include/tls.h: Likewise.
17250         * intl/gettextP.h: Likewise.
17251         * intl/loadinfo.h: Likewise.
17252         * locale/global-locale.c: Likewise.
17253         * locale/localeinfo.h: Likewise.
17254         * mach/devstream.c: Likewise.
17255         * malloc/arena.c: Likewise.
17256         * malloc/set-freeres.c: Likewise.
17257         * misc/err.c: Likewise.
17258         * misc/getttyent.c: Likewise.
17259         * misc/mntent_r.c: Likewise.
17260         * posix/getopt.c: Likewise.
17261         * posix/wordexp.c: Likewise.
17262         * pwd/fgetpwent_r.c: Likewise.
17263         * resolv/Versions: Likewise.
17264         * resolv/res_hconf.c: Likewise.
17265         * shadow/fgetspent_r.c: Likewise.
17266         * shadow/putspent.c: Likewise.
17267         * stdio-common/printf_fphex.c: Likewise.
17268         * stdio-common/tmpfile.c: Likewise.
17269         * stdlib/abort.c: Likewise.
17270         * stdlib/fmtmsg.c: Likewise.
17271         * sunrpc/auth_unix.c: Likewise.
17272         * sunrpc/clnt_perr.c: Likewise.
17273         * sunrpc/clnt_tcp.c: Likewise.
17274         * sunrpc/clnt_udp.c: Likewise.
17275         * sunrpc/clnt_unix.c: Likewise.
17276         * sunrpc/openchild.c: Likewise.
17277         * sunrpc/svc_simple.c: Likewise.
17278         * sunrpc/svc_tcp.c: Likewise.
17279         * sunrpc/svc_udp.c: Likewise.
17280         * sunrpc/svc_unix.c: Likewise.
17281         * sunrpc/xdr.c: Likewise.
17282         * sunrpc/xdr_array.c: Likewise.
17283         * sunrpc/xdr_rec.c: Likewise.
17284         * sunrpc/xdr_ref.c: Likewise.
17285         * sunrpc/xdr_stdio.c: Likewise.
17286
17287 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17288
17289         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17290
17291 2011-07-03  Andreas Jaeger  <aj@suse.de>
17292
17293         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17294         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17295         regenerate with gen-libm-tests.pl.
17296
17297 2010-05-12  Petr Baudis  <pasky@suse.cz>
17298
17299         [BZ #11589]
17300         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17301         around j0() zero points by switching to j1().
17302         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17303         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17304         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17305         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17306
17307 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17308
17309         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17310         instead of 0.
17311         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17312         instead of 0.                              .
17313         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17314         Patch in part by Pavel Roskin <proski@gnu.org>.
17315
17316         [BZ #13138]
17317         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17318         realloc.
17319         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17320         Free memory block if necessary.
17321
17322         [BZ #12847]
17323         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17324         be NULL.  Don't lock in this case.
17325
17326 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17327
17328         * elf/elf.h (ELFOSABI_GNU): New macro.
17329         (ELFOSABI_LINUX): Define to that.
17330
17331 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17332
17333         * string/strncat.c (strncat): Undef the symbol in case it has been
17334         defined in bits/string.h.
17335
17336 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17337
17338         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17339
17340         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17341         link map.
17342
17343 2011-08-17  Andreas Jaeger  <aj@suse.de>
17344
17345         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17346
17347 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17348             Ian Lance Taylor  <iant@google.com>
17349
17350         * math/libm-test.inc (lround_test): New testcase.
17351         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17352
17353 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17354
17355         * Makefile: Remove support for automatic cvs check-ins.
17356         * Makerules: Likewise.
17357         * config.make.in: Likewise.
17358         * configure.in: Likewise.
17359         * intl/Makefile: Likewise.
17360         * locale/Makefile: Likewise.
17361         * po/Makefile: Likewise.
17362         * posix/Makefile: Likewise.
17363         * sysdeps/gnu/Makefile: Likewise.
17364         * sysdeps/mach/hurd/Makefile: Likewise.
17365         * sysdeps/sparc/sparc32/Makefile: Likewise.
17366
17367         [BZ #13118]
17368         * posix/Makefile (bug-regex32-ENV): Define.
17369         Patch by John Stanley <jpsinthemix@verizon.net>.
17370
17371         * misc/Makefile (headers): Add bits/select2.h.
17372         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17373         * misc/bits/select2.h: New file.
17374         * include/bits/select2.h: New file.
17375         * debug/Makefile (routines): Add fdelt_chk.
17376         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17377         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17378         FD_ISSET.
17379         * debug/fdelt_chk.c: New file.
17380
17381         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17382         * wcsmbs/test-wmemcmp.c: Likewise.
17383         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17384         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17385
17386 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17387
17388         * string/Makefile (strop-tests): Add memcmp.
17389         * string/test-wmemcmp.c: New file.
17390         * string/test-memcmp.c: Add wmemcmp support.
17391
17392 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17393
17394         [BZ #13153]
17395         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17396         2011-07-19 change.
17397
17398         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17399         garbage value in a __mach_port_mod_refs call in the cases of the
17400         task-self and thread-self ports.
17401
17402 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17403
17404         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17405
17406 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17407
17408         * elf/dl-load.c (lose): Check for non-null L.
17409
17410 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17411
17412         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17413
17414         * elf/dl-libc.c (dlerror_run): Pass back error code from
17415         dl_catch_error.
17416
17417         [BZ #13123]
17418         * elf/dl-load.c (lose): Free l_origin if it is valid.
17419
17420         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17421         names.
17422         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17423         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17424         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17425         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17426         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17427         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17428
17429 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17430
17431         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17432         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17433         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17434         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17435         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17436         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17437         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17438         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17439         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17440         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17441
17442 2011-08-15  Alan Modra  <amodra@gmail.com>
17443
17444         [BZ #13092]
17445         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17446         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17447         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17448         ppc_mcount to static-only-routines.
17449         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17450         __mcount_internal.
17451         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17452         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17453
17454 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17455
17456         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17457         for finite and infinity parameters.
17458
17459 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17460
17461         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17462         and add nop instructions for throughput optimization.
17463         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17464
17465 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17466
17467         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17468         aligned copy for power7 with vector-scalar instructions.
17469         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17470
17471 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17472
17473         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17474         AVX check.
17475
17476 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17477
17478         [BZ #13144]
17479         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17480         last change.
17481
17482 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17483
17484         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17485         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17486         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17487         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17488         clock_gettime.
17489
17490 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17491
17492         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17493         Forgot to demangle the pointer.
17494
17495         * sysdeps/i386/sysdep.h: Define atom_text_section.
17496         * sysdeps/x86_64/sysdep.h: Likewise.
17497         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17498         section with atom_text_section.
17499         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17500         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17501         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17502         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17503         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17504
17505         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17506         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17507         already be defined.  Change to take two parameters and don't assign
17508         result to variable.  Adjust all users.
17509         Define INTERNAL_GETTIME if not already defined.
17510         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17511         call.
17512         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17513         HAVE_CLOCK_GETTIME_VSYSCALL.
17514         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17515
17516         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17517         gettimeofday vsyscall, just use time.
17518
17519 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17520
17521         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17522         <errno.h>.
17523
17524 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17525
17526         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17527         syscall on x86-64.
17528         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17529         syscall.
17530         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17531         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17532         syscall if possible.
17533
17534 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17535
17536         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17537         e_ident.  Don't pass to find_mapsXX.
17538         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17539
17540 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17541
17542         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17543         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17544         * sysdeps/x86_64/multiarch/strchr.S: Update.
17545         Check bit_slow_BSF bit.
17546         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17547         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17548         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17549
17550 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17551
17552         [BZ #13134]
17553         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17554         before glibc 2.15.
17555         (tryshell): Define.
17556         (__spawni): Change last parameter to be flag.  Test
17557         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17558         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17559         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17560         * posix/spawni.c: Likewise.
17561         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17562         * posix/spawnp.c: Likewise.  Change normal version to use
17563         SPAWN_XFLAGS_USE_PATH.
17564         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17565         SPAWN_XFLAGS_TRY_SHELL.
17566
17567         [BZ #13150]
17568         * posix/glob.h: Remove gcc 1.x support.
17569
17570         [BZ #13068]
17571         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17572
17573 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17574
17575         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17576         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17577         strrchr-sse2-bsf
17578         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17579         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17580         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17581         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17582         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17583         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17584
17585 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17586
17587         * sysdeps/x86_64/wcscmp.S: New file.
17588
17589         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17590         wcscmp-c wcscmp-sse2
17591         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17592         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17593         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17594         * wcsmbs/wcscmp.c: Allow renaming.
17595
17596 2011-09-05  David S. Miller  <davem@davemloft.net>
17597
17598         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17599         stack slot, rather than the struct return pointer slot.
17600         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17601         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17602         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17603         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17604
17605 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17606
17607         * po/ja.po: Update from translation team.
17608
17609         [BZ #13144]
17610         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17611         kernel in 64-bit binaries.
17612
17613 2011-09-01  David S. Miller  <davem@davemloft.net>
17614
17615         * elf/elf.h (HWCAP_SPARC_*): Move to..
17616         * sysdeps/sparc/sysdep.h: this new file and add new values.
17617         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17618         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17619         _DL_HWCAP_COUNT to 24.
17620         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17621         entries.
17622         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17623         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17624         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17625         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17626         instead of magic constants.
17627         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17628
17629 2011-08-31  David S. Miller  <davem@davemloft.net>
17630
17631         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17632         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17633         Reimplement to do errno handling inline.
17634         (SYSCALL_ERROR_HANDLER): New macro.
17635         (__SYSCALL_STRING): Do not do errno handling in asm.
17636         (__CLONE_SYSCALL_STRING): Delete.
17637         (__INTERNAL_SYSCALL_STRING): Delete.
17638         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17639         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17640         (PSEUDO): Reimplement to do errno handling inline.
17641         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17642         (SYSCALL_ERROR_HANDLER): New macro.
17643         (__SYSCALL_STRING): Do not do errno handling in asm.
17644         (__CLONE_SYSCALL_STRING): Delete.
17645         (__INTERNAL_SYSCALL_STRING): Delete.
17646         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17647         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17648         i386.
17649         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17650         (inline_syscall*): Add 'err' argument.
17651         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17652         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17653         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17654         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17655
17656         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17657         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17658
17659 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17660
17661         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17662
17663 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17664
17665         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17666         directive.
17667
17668 2011-08-24  David S. Miller  <davem@davemloft.net>
17669
17670         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17671
17672 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17673
17674         * elf/Makefile: Add rules to build and run unload8 test.
17675         * elf/unload8.c: New file.
17676         * elf/unload8mod1.c: New file.
17677         * elf/unload8mod1x.c: New file.
17678         * elf/unload8mod2.c: New file.
17679         * elf/unload8mod3.c: New file.
17680
17681         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17682         it wasn't used.
17683
17684 2011-08-23  David S. Miller  <davem@davemloft.net>
17685
17686         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17687         subtract stack bias.
17688         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17689         %sp not %fp in calculations.
17690         (_JMPBUF_UNWINDS_ADJ): Likewise.
17691
17692         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17693         (aio_suspend): Call it to force an exception region around the
17694         AIO_MISC_WAIT() invocation.
17695
17696 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17697
17698         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17699         backslash.
17700
17701 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17702
17703         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17704         protection macro.
17705         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17706         and <dl-machine.h>.
17707         (Elf64_FuncDesc): Remove.
17708
17709 2011-08-22  David S. Miller  <davem@davemloft.net>
17710
17711         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17712         sigaltstack check, add missing cfi directives.
17713         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17714         missing cfi directives, and sigaltstack handling.
17715
17716 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17717
17718         [BZ #11724]
17719         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17720         object is seen twice.
17721         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17722
17723         * elf/Makefile (distribute): Add tst-initorder2.c.
17724         (tests): Add tst-initorder2.
17725         (modules-names): Add tst-initorder2a tst-initorder2b
17726         tst-initorder2c tst-initorder2d.  Add rules to build them.
17727         ($(objpfx)tst-initorder2.out): New rule.
17728         * elf/tst-initorder2.c: New file.
17729         * elf/tst-initorder2.exp: New file.
17730
17731 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17732
17733         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17734
17735         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17736         dependencies back to end of function.
17737
17738         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17739         $(elfobjdir)/ld.so.
17740
17741 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17742
17743         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17744         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17745         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17746         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17747         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17748         of __vdso_gettimeofday.
17749         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17750         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17751         attribute_hidden.
17752         (_libc_vdso_platform_setup): Remove initialization of
17753         __vdso_gettimeofday and __vdso_time.
17754
17755 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17756
17757         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17758         and fgetc_unlocked.
17759         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17760         getc_unlocked.
17761
17762         * elf/dl-open.c (add_to_global): Report additions to the global scope
17763         for LD_DEBUG=scopes.
17764         (dl_open_worker): Also print scope of newly loaded dependencies.
17765         (_dl_show_scope): Indicate if there is no scope.
17766
17767         [BZ #13114]
17768         * stdio-common/Makefile (tests): Add bug24.
17769         * stdio-common/bug24.c: New file.
17770
17771 2011-08-19  Andreas Jaeger  <aj@suse.de>
17772
17773         [BZ #13114]
17774         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17775         non-existant file when using close-on-exec mode.
17776
17777 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17778
17779         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17780         the very first instruction.
17781
17782         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17783         the CFI state in the end.
17784         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17785         inclusion of dl-trampoline.h.
17786         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17787
17788 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17789
17790         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17791         expectations for long double.
17792
17793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17794         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17795
17796 2011-08-14  David S. Miller  <davem@davemloft.net>
17797
17798         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17799         artificual limit depends upon the system page size.
17800
17801 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17802
17803         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17804         * resolv/Makefile: Define CFLAGS-libresolv.
17805
17806 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17807
17808         * nss/makedb.c (compute_tables): Make variables used in nested
17809         function static.
17810
17811 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17812
17813         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17814         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17815         if buffer was too small.
17816
17817         * elf/pldd.c (main): Attach to all threads in the process.
17818         Rewrite /proc handling to use *at functions.
17819
17820 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17821
17822         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17823         specifies first scope to show.
17824         (dl_open_worker): Update callers.  Move printing scope of new
17825         object to before the relocation.
17826         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17827         * sysdeps/generic/ldsodefs.h: Update declaration.
17828
17829         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17830         string for the scope number.
17831
17832 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17833
17834         * nscd/servicescache.c (cache_addserv): Make sure written is always
17835         initialized.
17836
17837 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17838
17839         * sysdeps/i386/i486/bits/atomic.h
17840         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17841         statement expression, so as to suppress "set but not used" warning.
17842         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17843
17844         * string/strncat.c (STRNCAT): Use prototype definition.
17845
17846         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17847         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17848         -Iprograms here.
17849         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17850         (localedef-modules): Add localedef.
17851         (locale-modules): Add locale.
17852
17853         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17854         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17855         to avoid a warning.
17856
17857 2011-08-14  David S. Miller  <davem@davemloft.net>
17858
17859         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17860         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17861
17862 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17863
17864         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17865         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17866         * elf/rtld.c (dl_main): Set l_name of vDSO.
17867         Call _dl_show_scope when DL_DEBUG_SCOPES.
17868         (process_dl_debug): Recognize scopes flag and also set it for all.
17869         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17870         Declare _dl_show_scope.
17871
17872         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17873         (do_dlopen): Pass caller_dlopen to dl_open.
17874         (__libc_dlopen_mode): Initialize caller_dlopen.
17875
17876         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17877         of libc.  Make tolower call locale-independent.  Optimize a bit by
17878         using isdigit instead of isalnum.
17879         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17880
17881 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17882
17883         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17884         was a dependency or dynamically loaded.
17885
17886 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17887
17888         * intl/l10nflist.c: Allow architecture-specific pop function.
17889         * sysdeps/x86_64/l10nflist.c: New file.
17890
17891         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17892         classification.
17893
17894 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17895
17896         * include/dirent.h: Add libc_hidden_proto for scandirat and
17897         scandirat64.  Don't declare __scandirat64.
17898         * dirent/scandirat.c: Add libc_hidden_def.
17899         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17900         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17901
17902 2011-08-10  David S. Miller  <davem@davemloft.net>
17903
17904         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17905         enum.
17906         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17907         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17908         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17909
17910 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17911
17912         * Versions.def [libc]: Add GLIBC_2.15.
17913         * dirent/Makefile (routines): Add scandirat and scandirat64.
17914         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17915         GLIBC_2.15.
17916         * dirent/dirent.h: Declare scandirat and scandirat64.
17917         * dirent/scandirat.c: New file.
17918         * dirent/scandirat64.c: New file.
17919         * sysdeps/wordsize-64/scandirat.c: New file.
17920         * sysdeps/wordsize-64/scandirat64.c: New file.
17921         * dirent/opendir.c: Define opendirat.
17922         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17923         using scandirat.
17924         * dirent/scandir64.c: Adjust for scandir.c change.
17925         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17926         __scandirat64, and __scandir_cancel_handler.
17927         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17928         additional parameter and use openat instead of open (outside of ld.so).
17929         Add new __opendir as wrapper around __opendirat.
17930         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17931         here without requiring old scandirat implementation.
17932
17933 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17934
17935         * dirent/scandir.c (cancel_handler): Renamed to
17936         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17937         defined.  Adjust users.
17938         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17939         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17940
17941 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17942
17943         * string/test-string.h (IMPL): Use __STRING to expand name and then
17944         stringify it.
17945
17946         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17947         of cleanups.
17948
17949 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17950
17951         * string/Makefile: Update.
17952         (strop-tests): Append strncat.
17953         * string/test-wcscmp.c: New file.
17954         New comprehensive test for wcscmp.
17955         * string/test-strcmp.c: Update.
17956         (WIDE): New define.
17957
17958 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17959
17960         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17961         line.
17962
17963 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17964
17965         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17966         encoding to ACE if AI_IDN.
17967
17968 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17969
17970         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17971         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17972
17973 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17974
17975         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17976         Fix overflow bug in strncat.
17977         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17978
17979         * string/test-strncat.c: Update.
17980         Add new tests for checking overflow bugs.
17981
17982 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17983
17984         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17985         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17986         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17987         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17988         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17989         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17990         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17991         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17992         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17993
17994         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17995         (USE_AS_STRCAT): Define.
17996         Add strcat and strncat support.
17997         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17998
17999 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18000
18001         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18002         __n bigger than INT_MAX+1.
18003         (__strncmp_g): Likewise.
18004
18005 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18006
18007         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18008         * libio/stido.h: Likewise.
18009
18010         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18011         (AF_NFC): Define.
18012         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18013         (AF_NFC): Define.
18014
18015         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18016         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18017         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18018         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18019         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18020
18021         [BZ #13021]
18022         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18023         installed.
18024
18025         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18026         typo.
18027         (_dl_x86_64_save_sse): Likewise.
18028
18029 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18030
18031         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18032         OSXSAVE.
18033         (_dl_x86_64_save_sse): Likewise.
18034
18035         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18036
18037         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18038
18039 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18040
18041         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18042         change.
18043         (_dl_x86_64_save_sse): Use correct AVX check.
18044
18045 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18046
18047         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18048         bug in strncpy/strncat.
18049         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18050
18051 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18052
18053         * string/tester.c (test_strcat): Add tests for different alignments
18054         of source and destination.
18055         (test_strncat): Likewise.
18056
18057 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18058
18059         [BZ #12852]
18060         * posix/glob.c (glob): Check passed in values before using them in
18061         expressions to avoid some overflows.
18062         (glob_in_dir): Likewise.
18063
18064         [BZ #13007]
18065         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18066         check for AVX enablement so that we don't crash with old kernels and
18067         new hardware.
18068         * elf/tst-audit4.c: Add same checks here.
18069         * elf/tst-audit6.c: Likewise.
18070
18071         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18072
18073 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18074
18075         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18076
18077 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18078
18079         * po/cs.po: Update from translation team.
18080         * po/bg.po: Likewise.
18081
18082 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18083
18084         * misc/sys/cdefs.h: Add support for const attribute.
18085         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18086         to gnu_dev_{major,minor,makedev} functions.
18087
18088 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18089
18090         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18091
18092 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18093
18094         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18095         strlen results.
18096
18097 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18098
18099         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18100         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18101         register in order to avoid conflicts with the soft frame pointer
18102         being held in r11 when necessary.
18103         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18104         (INTERNAL_VSYSCALL_NCS): Likewise.
18105
18106 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18107
18108         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18109         * elf/dl-fini.c (_dl_fini): Adjust caller.
18110         * elf/dl-close.c (_dl_close_worker): Likewise.
18111         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18112
18113 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18114
18115         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18116         "aux_cache->nlibs < 0".
18117
18118         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18119         in the reload-count case.
18120
18121 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18122
18123         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18124         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18125         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18126         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18127         * sysdeps/x86_64/multiarch/strcat.S: New file.
18128         * sysdeps/x86_64/multiarch/strncat.S: New file.
18129         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18130         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18131         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18132         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18133         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18134         (USE_AS_STRCAT): Define.
18135         Add strcat and strncat support.
18136         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18137         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18138         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18139         * string/strncat.c: Update.
18140         (USE_AS_STRNCAT): Define.
18141         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18142         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18143         and i7.
18144         * sysdeps/x86_64/multiarch/init-arch.h
18145         (bit_Prefer_PMINUB_for_stringop): New.
18146         (index_Prefer_PMINUB_for_stringop): Likewise.
18147         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18148         bit_Prefer_PMINUB_for_stringop.
18149
18150 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18151
18152         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18153         buffer64.
18154         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18155         of casting of buffer.
18156         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18157         buffer32 and buffer64.
18158         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18159         writes instead of casting of buffer.
18160         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18161         buffer32.
18162         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18163         casting of buffer.
18164
18165 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18166
18167         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18168
18169 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18170
18171         * nscd/nscd.c (termination_handler): Don't do anything for a database
18172         if it has not yet been initialized.
18173
18174 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18175
18176         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18177
18178 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18179
18180         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18181
18182 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18183
18184         * po/nl.po: Update from translation team.
18185         * po/sv.po: Likewise.
18186
18187 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18188
18189         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18190         now disallowed by GCC.
18191
18192         * configure.in (use-default-link): Default to yes if a test -shared
18193         link meets our qualifications.
18194         * configure: Regenerated.
18195
18196         * config.make.in (output-format): New variable.
18197         * configure.in: Check for ld --print-output-format support.
18198         * configure: Regenerated.
18199         * Makerules ($(common-objpfx)format.lds)
18200         [$(output-format) != unknown]: Just use $(output-format),
18201         instead of the linker-script munging.
18202
18203 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18204
18205         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18206         of $(common-objpfx)shlib.lds.
18207         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18208
18209         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18210         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18211
18212         * configure.in (-z relro check): Adjust test code to add a large
18213         writable data section after it.
18214         * configure: Regenerated.
18215
18216 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18217
18218         * configure.in (-z relro check): Fix test code to make the variable
18219         truly const.
18220         * configure: Regenerated.
18221
18222 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18223
18224         * nscd/nscd.h (struct traced_file): Define.
18225         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18226         elements.  Add traced_files.
18227         (inotify_fd): Declare.
18228         (register_traced_file): Declare.
18229         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18230         (inotify_fd): Export.
18231         (resolv_conf_descr): Remove.
18232         (nscd_init): Move inotify descriptor creation to main.
18233         Don't register files for notification here.
18234         (register_traced_file): New function.
18235         (invalidate_cache): Don't use reset_res to determine whether to call
18236         res_init, go through the list of registered files.
18237         (main_loop_poll): The inotify descriptors are now stored in the
18238         structures for the traced files.
18239         (main_loop_epoll): Likewise
18240         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18241         to __nss_disable_nscd.
18242         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18243         for a database anymore.  Check the records for all the registered
18244         files instead.
18245         * nss/Makefile (libnss_files-routines): Add files-init.
18246         (libnss_db-routines): Add db-init.
18247         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18248         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18249         * nss/nss_db/db-init.c: New file.
18250         * nss/nss_files/files-init.c: New file.
18251         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18252         __nss_lookup_function.
18253         (__nss_lookup_function): Call nss_load_library.
18254         (nss_load_all_libraries): New function.
18255         (__nss_disable_nscd): Take parameter with callback function for files
18256         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18257         used for the cached services.
18258         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18259         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18260         options for features to all the files in nscd.
18261
18262         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18263
18264 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18265
18266         * csu/elf-init.c (__libc_csu_init): Comment typo.
18267
18268 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18269
18270         * po/pl.po: Update from translation team.
18271         * po/ja.po: Likewise.
18272         * po/ru.po: Likewise.
18273         * po/ko.po: Likewise.
18274         * po/fr.po: Likewise.
18275
18276 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18277
18278         * configure.in (.ctors/.dtors header and trailer check):
18279         Use an empirical test on a built program.
18280         * configure: Regenerated.
18281
18282         * configure.in (-z relro check): Use an empirical test on a built DSO.
18283         Detect, but do not require, on ia64.
18284         * configure: Regenerated.
18285
18286         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18287         Update tests that use readelf to use $READELF instead.
18288         * configure: Regenerated.
18289
18290 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18291
18292         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18293         if the result is not used.
18294
18295 2011-07-05  Andreas Jaeger  <aj@suse.de>
18296
18297         [BZ#9696]
18298         * stdlib/tst-strtod.c: Add testcase.
18299
18300 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18301
18302         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18303         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18304         The latter has a higher limit.  Take additional parameter to pass to
18305         the new function.
18306         (__pathconf): Pass file to __statfs_link_max.
18307         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18308         __statfs_link_max.
18309         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18310         __statfs_link_max.
18311
18312         [BZ #12868]
18313         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18314         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18315         Handle Lustre.
18316         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18317         (__statfs_filesize_max): Likewise.
18318         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18319
18320 2011-07-05  Andreas Jaeger  <aj@suse.de>
18321
18322         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18323
18324 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18325
18326         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18327         `status' variable.
18328         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18329         Likewise.
18330
18331 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18332
18333         * Makefile (strop-tests): Add strncat.
18334         * string/test-strncat.c: New file.
18335
18336 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18337
18338         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18339
18340 2011-06-21  Andreas Jaeger  <aj@suse.de>
18341
18342         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18343         Copy rule from iconvdata/Makefile.
18344
18345 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18346
18347         [BZ #12922]
18348         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18349         but no long options are defined, just return 'W'.
18350
18351 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18352
18353         [BZ #9696]
18354         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18355
18356 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18357
18358         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18359         netgroups to read.
18360         (innetgr): Likewise.
18361
18362 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18363
18364         * config.make.in (install_root): Default to $(DESTDIR).
18365
18366 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18367
18368         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18369
18370 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18371
18372         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18373
18374         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18375         containing directory rather than embedding absolute directory names.
18376
18377         * scripts/check-local-headers.sh: Rewritten using awk.
18378         Match by word, not by line.  Print error messages for matches.
18379         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18380
18381         * Makerules [shlib-lds-flags empty]:
18382         ($(common-objpfx)libc_pic.opts): New target.
18383         ($(common-objpfx)libc_pic.os.clean): New target.
18384         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18385
18386         * config.make.in (OBJCOPY): New variable.
18387         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18388         * configure: Regenerated.
18389
18390         * config.make.in (use-default-link): New variable.
18391         * configure.in (use_default_link): Grok --with-default-link to set it.
18392         * configure: Regenerated.
18393         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18394         (shlib-lds, shlib-lds-flags): Define to empty.
18395
18396         * Makerules (shlib-lds): New variable.
18397         (shlib-lds-flags): New variable.
18398         (build-shlib, build-moduile, build-module-asneeded): Use it.
18399         ($(common-objpfx)libc.so): Use $(shlib-lds).
18400         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18401         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18402
18403         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18404         DT_FLAGS/DT_FLAGS_1 with zero flags.
18405
18406         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18407         linker script munging.
18408
18409 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18410
18411         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18412         as 128-bit value.
18413         * crypt/sha512.c (sha512_process_block): Perform total addition using
18414         128-bit if possible.
18415         (__sha512_finish_ctx): Likewise.
18416         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18417         as 64-bit value.
18418         * crypt/sha256.c (SWAP64): Define.
18419         (sha256_process_block): Perform total addition using 64-bit if
18420         possible.
18421         (__sha256_finish_ctx): Likewise.
18422
18423 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18424
18425         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18426         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18427         * nscd/hstcache.c (cache_addhst): Likewise.
18428         * nscd/grpcache.c (cache_addgr): Likewise.
18429         * nscd/aicache.c (addhstaiX): Likewise
18430         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18431
18432 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18433
18434         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18435         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18436         * nscd/hstcache.c (cache_addhst): Likewise.
18437         * nscd/grpcache.c (cache_addgr): Likewise.
18438         * nscd/aicache.c (addhstaiX): Likewise
18439
18440 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18441
18442         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18443         domain only when needed.
18444
18445 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18446
18447         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18448         is always restored.
18449
18450 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18451
18452         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18453         are re-adding the entry.
18454         * nscd/servicescache.c (cache_addserv): Likewise.
18455
18456 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18457
18458         * sysdeps/generic/dl-irel.h: fix protection against multiple
18459         inclusions.
18460         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18461
18462 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18463
18464         [BZ #12935]
18465         * malloc/memusage.sh: Fix quoting in message.
18466         * debug/xtrace.sh: Likewise.
18467
18468         * configure.in: Remove support for --experimental-malloc option, make
18469         it the default.
18470         * config.make.in: Likewise.
18471         * malloc/Makefile: Likewise.
18472
18473 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18474
18475         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18476         two-byte characters.
18477
18478 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18479
18480         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18481         AC_CACHE_CHECK invocation.
18482         * configure: Regenerated.
18483
18484         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18485
18486 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18487
18488         [BZ #12350]
18489         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18490         bit from old_res_options.
18491
18492         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18493
18494         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18495         value type for setfct.
18496
18497 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18498
18499         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18500         __gettimeofday instead of gettimeofday.
18501
18502 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18503
18504         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18505
18506 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18507
18508         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18509
18510         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18511         info.
18512
18513 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18514
18515         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18516         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18517         strcpy-sse2-unaligned strncpy-sse2-unaligned
18518         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18519         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18520         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18521         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18522         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18523         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18524         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18525         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18526         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18527         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18528         (STRCPY): Support SSE2 and SSSE3 versions.
18529
18530 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18531
18532         [BZ #12874]
18533         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18534         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18535         kernels which artificially limit size of requests.
18536
18537 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18538
18539         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18540         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18541         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18542         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18543         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18544         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18545         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18546         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18547         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18548         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18549         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18550         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18551         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18552         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18553         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18554         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18555         Enable unaligned load optimization for Intel Core i3, i5 and i7
18556         processors.
18557         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18558         Define.
18559         (index_Fast_Unaligned_Load): Define.
18560         (HAS_FAST_UNALIGNED_LOAD): Define.
18561
18562 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18563
18564         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18565
18566 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18567
18568         [BZ #12907]
18569         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18570         until it is clear that the information is realy needed.
18571         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18572
18573 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18574
18575         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18576
18577 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18578
18579         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18580         /sys/devices/system/cpu/online if it is usable.
18581
18582         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18583         reading the information from the /proc filesystem to once a second.
18584
18585 2011-06-21  Andreas Jaeger  <aj@suse.de>
18586
18587         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18588         NULL after inclusion of kernel headers.
18589
18590 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18591
18592         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18593         calls to internal_setent.
18594
18595         [BZ #12885]
18596         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18597         addresses using gethostbyname4_r ignore IPv4 addresses.
18598
18599         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18600         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18601
18602         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18603
18604 2011-06-20  David S. Miller  <davem@davemloft.net>
18605
18606         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18607         inclusions.
18608         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18609
18610         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18611         (elf_irel): Use it.
18612         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18613         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18614         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18615         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18616         * sysdeps/x86_64/dl-irel.h: Likewise.
18617
18618         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18619         * elf/dl-sym.c: Likewise.
18620
18621 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18622
18623         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18624         need to dereference resplen2.
18625
18626 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18627
18628         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18629
18630 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18631
18632         * Makeconfig: Define vardbdir and inst_vardbdir.
18633         * nss/Makefile: Add rules to install db-Makefile.
18634
18635         * nss/nss_db/db-XXX.c: Cleanup.
18636
18637         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18638         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18639         GLIBC_PRIVATE.
18640         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18641         * nss/makedb.c: Implement -g option to specify that value strings
18642         are generated and should not be added to table iterated over for
18643         get*ent calls.
18644         * nss/nss_db/db-initgroups.c: New file.
18645
18646         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18647         interface.
18648
18649         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18650         (internal_getgrouplist): Adjust to name change.
18651         Update use_initgroups_entry if this is not the first call.
18652         * nss/databases.def: Add initgroups entry.
18653
18654         * nss/makedb.c (compute_tables): Check result of multiple hash table
18655         sizes to minimize maximum chain length.
18656
18657 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18658
18659         * Versions.def: Add entry for libnss_db.
18660         * shlib-versions: Likewise.
18661         * nss/Makefile: Add rules to build libnss_db.
18662         * nss/Versions: Add libnss_db information.  Organize libnss_files
18663         entries better.
18664         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18665         makedb progra.  Some minor improvements to generate smaller files.
18666         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18667         here from...
18668         * nss/makedb.c: ...here.
18669         Improve database format to be smaller and require less memory at
18670         runtime.
18671         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18672         db anymore.
18673         * nss/nss_db/db-netgrp.c: Likewise.
18674         * nss/nss_db/db-open.c: Likewise.
18675         * nss/nss_files/flies-XXX.x: Adjust comments.
18676         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18677         * nss/nss_files/files-grp.c: Likewise.
18678         * nss/nss_files/files-hosts.c: Likewise.
18679         * nss/nss_files/files-network.c: Likewise.
18680         * nss/nss_files/files-proto.c: Likewise.
18681         * nss/nss_files/files-pwd.c: Likewise.
18682         * nss/nss_files/files-rpc.c: Likewise.
18683         * nss/nss_files/files-service.c: Likewise.
18684         * nss/nss_files/files-sgrp.c: Likewise.
18685         * nss/nss_files/files-spwd.c: Likewise.
18686         * nss/nss_db/db-alias.c: Removed.
18687         * nss/nss_db/dummy-db.h: Removed.
18688
18689 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18690
18691         * nss/makedb.c: Rewritten to not use database library.
18692         * nss/Makefile: Update to build new makedb program.
18693
18694 2011-06-14  Andreas Jaeger  <aj@suse.de>
18695
18696         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18697         memset declaration.
18698
18699 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18700
18701         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18702         tmpbuf.
18703
18704 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18705
18706         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18707         * elf/Makefile ($(objpfx)ld.so): Likewise.
18708
18709         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18710         Don't list ld.so twice in dependencies.
18711
18712         * posix/bug-regex31.c: Include <stdlib.h>.
18713
18714         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18715
18716         * nis/nss_compat/compat-spwd.c
18717         (getspent_next_nss_netgr): Remove unused variable.
18718         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18719
18720         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18721         nonmembers" output to use the right array.
18722
18723         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18724
18725         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18726
18727         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18728         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18729         * catgets/gencat.c (read_input_file): Likewise.
18730         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18731
18732         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18733         variable definition inside #if's controlling its use.
18734
18735         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18736
18737         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18738
18739         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18740
18741         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18742         unreachable code.
18743
18744         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18745
18746         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18747         * configure: Regenerated.
18748
18749         * Makerules: Revert last change.
18750         * elf/Makefile: Likewise.
18751
18752 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18753
18754         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18755         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18756         (reloc-link): Likewise.
18757
18758 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18759
18760         * elf/Makefile: Add rules to build pldd.
18761         * elf/pldd.c: New file.
18762         * elf/pldd-xx.c: New file.
18763
18764 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18765
18766         * version.h: Update for 2.15 development version.
18767
18768 2011-06-07  David S. Miller  <davem@davemloft.net>
18769
18770         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18771         ifuncs.
18772         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18773         elf_machine_lazy_rel): Likewise.
18774         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18775         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18776         elf_machine_lazy_rel): Likewise.
18777         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18778         dl_hwcap via passed in argument.
18779         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18780         Likewise.
18781
18782 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18783
18784         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18785
18786 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18787
18788         [BZ #12849]
18789         * manual/fdl-1.1.texi: New file, verbatim from:
18790         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18791         * manual/lgpl-2.1.texi: New file, verbatim from:
18792         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18793         * manual/Makefile (licenses): New variable, list those new file names.
18794         (texis): Use it.
18795         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18796
18797         * manual/fdl.texi: File removed.
18798         * manual/lesser.texi: File removed.
18799         * manual/libc.texinfo (Copying, Documentation License):
18800         Use new @include file names, put @appendix directive before @include.
18801
18802 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18803
18804         [BZ #12841]
18805         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18806         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18807         (mq_open): Add __NTH.
18808
18809 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18810
18811         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18812         Assume Intel Core i3/i5/i7 processor if AVX is available.
18813
18814 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18815
18816         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18817         typo.
18818
18819 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18820
18821         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18822         memory.  Use alloca_account.  Fix memory leak when retrying.
18823
18824 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18825
18826         * version.h (RELEASE): Bump for 2.14 release.
18827         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18828
18829         * config.make.in (RANLIB): Remove entry.
18830
18831 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18832
18833         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18834         (libc.pot): Work around missing support for .ksh extension in xgettext.
18835
18836         [BZ #12684]
18837         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18838         if both request failed.
18839         (send_dg): In case of server errors clear resplen or *resplen2.
18840
18841         [BZ #12454]
18842         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18843         when there are multiple maps.
18844         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18845         (_dl_fini): Remove test here.
18846
18847         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18848
18849 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18850
18851         [BZ #12350]
18852         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18853         bit from old_res_options.
18854         (gaih_inet): Likewise.
18855
18856         [BZ #11099]
18857         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18858         as signed.
18859
18860         * resolv/res_init.c (res_setoptions): Make the code more compact.
18861
18862         [BZ #11558]
18863         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18864         set RES_USEVC.
18865
18866         [BZ #11634]
18867         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18868
18869         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18870
18871         [BZ #11781]
18872         * malloc/malloc.h: Declare malloc hook variables as volatile.
18873
18874         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18875         in last patch.
18876
18877         [BZ #11799]
18878         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18879         raise in the comment.
18880         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18881         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18882         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18883
18884 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18885
18886         [BZ #12811]
18887         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18888         grow the buffers more if it already has to be sufficient.
18889         (build_wcs_upper_buffer): Likewise.
18890         * posix/regexec.c (check_matching): Likewise.
18891         (clean_state_log_if_needed): Likewise.
18892         (extend_buffers): Don't enlarge buffers beyond size of the input
18893         buffer.
18894         Patches mostly by Emil Wojak <emil@wojak.eu>.
18895         * posix/bug-regex32.c: New file.
18896         * posix/Makefile (tests): Add bug-regex32.
18897
18898         * locale/findlocale.c (_nl_find_locale): Return right away if
18899         _nl_explode_name failed.
18900         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18901
18902         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18903
18904         * debug/xtrace.sh: Unify messages.
18905         * malloc/memusage.sh: Likewise.
18906
18907         [BZ #12813]
18908         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18909         time symbol from vDSO.  Substitute with vsyscall if not available.
18910         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18911         __vdso_time.
18912
18913         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18914         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18915         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18916         Add sendmmsg and internal_sendmmsg.
18917         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18918         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18919         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18920
18921         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18922         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18923         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18924
18925 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18926
18927         [BZ #12813]
18928         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18929         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18930         available.
18931         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18932         __vdso_getcpu.
18933
18934         [BZ #12814]
18935         * iconvdata/Makefile (tests): Add bug-iconv9.
18936         * iconvdata/bug-iconv9.c: New file.
18937
18938 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18939
18940         [BZ #12814]
18941         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18942
18943 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18944
18945         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18946         (struct user_regs_struct): Change intcs field back to cs.
18947
18948 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18949
18950         * po/ja.po: Update from translation team.
18951
18952 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18953
18954         [BZ #12795]
18955         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18956         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18957
18958 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18959
18960         * stdlib/longlong.h: Update from GCC.
18961
18962 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18963
18964         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18965         parameter name.
18966         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18967         Add parameter name.
18968         (__sysconf): Pass it down.
18969
18970 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18971
18972         [BZ #12671]
18973         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18974         some situations.
18975         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18976         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18977         add in in __libc_use_alloca calls.  Adjust callers.
18978         (glob): Use malloc in some situations.
18979
18980         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18981         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18982         pltexit.
18983
18984 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18985
18986         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18987         and CLOCK_BOOTTIME_ALARM.
18988
18989         [BZ #12782]
18990         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18991         is returned.
18992
18993         * string/_strerror.c (__strerror_r): Print negative errors as signed
18994         numbers.
18995
18996         [BZ #12777]
18997         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18998         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18999         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19000
19001         * configure.in: Fix typo in redirection and correct removal of test
19002         files in two cases.
19003
19004         [BZ #12788]
19005         * locale/setlocale.c (new_composite_name): Fix test to check for
19006         identical name of all categories.
19007
19008         [BZ #12792]
19009         * libio/filedoalloc.c (local_isatty): New function.
19010         (_IO_file_doallocate): Use local_isatty.
19011         * stdio-common/perror.c (perror): In case a new stream is used
19012         forward the stream error.
19013         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19014         error flag.
19015
19016 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19017
19018         [BZ #11869]
19019         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19020         alloca.
19021         * include/alloca.h (extend_alloca_account): Define.
19022
19023         [BZ #11857]
19024         * posix/regex.h: Fix comments with documentation of user-accessible
19025         fields after compilation and describe correct free'ing of pattern
19026         after re_compile_pattern.
19027         Patch by Reuben Thomas <rrt@sc3d.org>.
19028
19029 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19030
19031         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19032         and -mno-altivec to prevent the compiler from using Altivec and/or
19033         VSX instructions when the corresponding registers are not available.
19034
19035 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19036
19037         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19038
19039 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19040
19041         * libio/freopen.c (freopen): Use __dup2, not dup2.
19042         * libio/freopen64.c (freopen64): Likewise.
19043
19044 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19045
19046         [BZ #12775]
19047         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19048         * math/Makefile (tests): Add test-powl.
19049         (CFLAGS-test-powl.c): Define.
19050         * math/test-powl.c: New file.
19051
19052 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19053
19054         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19055
19056 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19057
19058         [BZ #11837]
19059         * iconvdata/gb18030.c: Update to GB18020-2005.
19060
19061 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19062
19063         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19064         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19065         Patch by Aharon Robbins <arnold@skeeve.com>.
19066
19067         [BZ #11892]
19068         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19069         on the stack.
19070
19071         [BZ #11895]
19072         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19073         through underflows.
19074
19075         [BZ #12766]
19076         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19077         point to strings before performing equality test for error_one_per_line
19078         mode.
19079
19080         [BZ #11697]
19081         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19082
19083         [BZ #11820]
19084         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19085         (struct user_fpregs_struct): Avoid __uint*_t types.
19086
19087         [BZ #6420]
19088         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19089         symbol info.  Use it instead of calling _dl_addr locally.
19090         (lock_and_info): New function.
19091         (tr_freehook): Call lock_and_info and pass symbol info as additional
19092         parameter to tr_where.
19093         (tr_mallochook): Likewise.
19094         (tr_reallochook): Likewise.
19095         (tr_memalignhook): Likewise.
19096
19097         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19098         used and couldn't be at all thread-safe.
19099
19100 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19101
19102         * libio/freopen.c (freopen): Don't close old file descriptor
19103         before the new one is opened.  Instead dup the new file descriptor
19104         to the old one after the new stream is created.
19105         * libio/freopen64.c (freopen64): Likewise.
19106         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19107         * libio/fileops.c (_IO_new_file_close_it): Handle new
19108         _IO_FLAGS2_NOCLOSE flag.
19109         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19110         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19111         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19112         _IO_FLAGS2_NOCLOSE flag.
19113         * include/unistd.h: Add hidden_proto for dup3.
19114         Define __have_dup3.
19115         * io/dup3.c: Define hidden symbol.
19116         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19117
19118         [BZ #7101]
19119         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19120         when an incomplete long option is used.
19121         * posix/tst-getopt_long1.c: New file.
19122         * posix/Makefile (tests): Add tst-getopt_long1.
19123
19124         [BZ #10138]
19125         * scripts/config.guess: Update from autoconf-2.68.
19126         * scripts/config.sub: Likewise.
19127
19128         [BZ #10157]
19129         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19130         tests into ...
19131         (has_cpuclock): ...this.  New function.
19132         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19133         macro here based on has_cpuclock code.
19134
19135         [BZ #10149]
19136         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19137         First byte (not low byte) is now always NUL.
19138         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19139
19140         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19141         Use non-cancelable interfaces.
19142
19143         [BZ #9809]
19144         * locale/iso-639.def: Add entry for Sorani.
19145
19146         [BZ #11901]
19147         * include/stdlib.h: Move include protection to the right place.
19148         Define abort_msg_s.  Declare __abort_msg with it.
19149         * stdlib/abort.c (__abort_msg): Adjust type.
19150         * assert/assert.c (__assert_fail_base): New function.  Majority
19151         of code from __assert_fail.  Allocate memory for __abort_msg with
19152         mmap.
19153         (__assert_fail): Now call __assert_fail_base.
19154         * assert/assert-perr.c: Remove bulk of implementation.  Use
19155         __assert_fail_base.
19156         * include/assert.hL Declare __assert_fail_base.
19157         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19158         mmap.
19159         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19160
19161 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19162
19163         [BZ #11952]
19164         [BZ #12453]
19165         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19166         until all modules are registered in the DTV.
19167         * elf/Makefile: Add rules to build and run tst-tls19.
19168         * elf/tst-tls19.c: New file.
19169         * elf/tst-tls19mod1.c: New file.
19170         * elf/tst-tls19mod2.c: New file.
19171         * elf/tst-tls19mod3.c: New file.
19172         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19173
19174         [BZ #12083]
19175         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19176         correctly.
19177
19178         [BZ #12601]
19179         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19180         two-byte sequence errors.
19181         * iconvdata/Makefile (tests): Add bug-iconv8.
19182         * iconvdata/bug-iconv8.c: New file.
19183
19184         [BZ #12626]
19185         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19186         buf2 definition.
19187
19188         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19189
19190         [BZ #12432]
19191         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19192         (dummy_getcfa): New function.
19193         (init): Get _Unwind_GetCFA address, use dummy if not found.
19194         (backtrace_helper): In recursion check, also check whether CFA changes.
19195         (__backtrace): Completely initialize arg.
19196
19197         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19198         storing incomplete byte sequence in state object.  Avoid testing for
19199         guaranteed too small input if we know there is enough data available.
19200
19201 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19202
19203         * Makeconfig (+link-pie): Indent.
19204         * Rules (binaries-pie): Define if $(have-fpie) and
19205         $(build-shared).
19206         (binaries-shared): Also filter out $(binaries-pie).
19207         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19208         * nscd/Makefile (others-pie): Add nscd.
19209         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19210         ($(objpfx)nscd): Remove command override.
19211         * login/Makefile (others-pie): Add pt_chown.
19212         ($(objpfx)pt_chown): Remove command override.
19213         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19214         remove command overrides.
19215
19216 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19217
19218         * libio/tst_putwc.c: Fix error messages.
19219
19220         [BZ #12724]
19221         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19222         currently writing and seek to current position when not.
19223         * libio/Makefile (tests): Add bug-fclose1.
19224         * libio/bug-fclose1.c: New file.
19225
19226 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19227
19228         [BZ #12511]
19229         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19230         don't set DF_1_NODELETE here.
19231         (do_lookup_x): When entering new entry test for copy relocation
19232         and if necessary set DF_1_NODELETE flag.
19233         * elf/tst-unique4.cc: New file.
19234         * elf/tst-unique4.h: New file.
19235         * elf/tst-unique4lib.cc: New file.
19236         * elf/Makefile: Add rules to build and run tst-unique4.
19237         Patch by Piotr Bury <pbury@goahead.com>.
19238
19239 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19240
19241         [BZ #12052]
19242         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19243
19244         [BZ #12625]
19245         * misc/mntent_r.c (addmntent): Flush the stream after the output
19246
19247         [BZ #12393]
19248         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19249         (is_trusted_path_normalize): Skip initial colon.  Append slash
19250         to empty buffer.  Duplicate is_trusted_path code but allow
19251         constructed patch to be prefix.
19252         (is_dst): Allow $ORIGIN followed by /.
19253         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19254         Correct testing of result of is_trusted_path_normalize
19255         (decompose_rpath): Fix warning.
19256
19257 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19258
19259         [BZ #11257]
19260         * grp/initgroups.c (internal_getgrouplist): When we found the service
19261         list through the initgroups entry in nsswitch.conf do not always
19262         continue on a successful lookup.  Don't always use the
19263         __nss_group_database value if it is set.
19264         * nss/nsswitch.conf (initgroups): Change action for successful db
19265         lookup to continue for compatibility.
19266
19267 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19268
19269         [BZ #11532]
19270         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19271         and CP774 modules.
19272         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19273         and CP774 modules.
19274         * iconvdata/tst-tables.sh: Likewise.
19275         * iconvdata/cp770.c: New file.
19276         * iconvdata/cp771.c: New file.
19277         * iconvdata/cp772.c: New file.
19278         * iconvdata/cp773.c: New file.
19279         * iconvdata/cp774.c: New file.
19280         * iconvdata/testdata/CP770: New file.
19281         * iconvdata/testdata/CP770..UTF8: New file.
19282         * iconvdata/testdata/CP771: New file.
19283         * iconvdata/testdata/CP771..UTF8: New file.
19284         * iconvdata/testdata/CP772: New file.
19285         * iconvdata/testdata/CP772..UTF8: New file.
19286         * iconvdata/testdata/CP773: New file.
19287         * iconvdata/testdata/CP773..UTF8: New file.
19288         * iconvdata/testdata/CP774: New file.
19289         * iconvdata/testdata/CP774..UTF8: New file.
19290
19291         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19292         END CHARMAP line.
19293         * iconvdata/gen-8bit-gap.sh: Likewise.
19294         * iconvdata/gen-8bit.sh: Likewise.
19295
19296         * locale/iso-639.def: Add ary entry.
19297
19298         [BZ #11258]
19299         * locale/C-translit.h.in: Add U20A1 transliteration.
19300
19301         [BZ #12178]
19302         * locale/iso-639.def: Add wae entry.
19303         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19304
19305         [BZ #12545]
19306         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19307         for n.
19308
19309         [BZ #12711]
19310         * locale/C-translit.h.in: Add entry for U20B9.
19311         Patch by pravin.d.s@gmail.com.
19312
19313 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19314
19315         [BZ #12713]
19316         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19317         ENAMETOOLONG use generic getcwd.
19318         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19319         in rtld.  Use *stat64.
19320         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19321         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19322         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19323         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19324         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19325         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19326         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19327         __fstatat64 macros.
19328         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19329         * dirent/rewinddir.c: Add libc_hidden_def.
19330         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19331         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19332
19333         * include/dirent.h (__alloc_dir): Add flags parameter.
19334         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19335         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19336         __alloc_dir.
19337         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19338         from fdopendir if O_CLOEXEC is already set.
19339
19340 2011-03-15  Alan Modra  <amodra@gmail.com>
19341
19342         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19343         l_tls_firstbyte_offset non-zero.  Save padding offset in
19344         l_tls_firstbyte_offset for later use.
19345         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19346         freeing static tls block.
19347
19348 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19349
19350         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19351         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19352         being defined by the kernel headers.
19353
19354 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19355
19356         [BZ #12734]
19357         * resolv/resolv.h: Define RES_NOTLDQUERY.
19358         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19359         no-tld-query and set RES_NOTLDQUERY.
19360         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19361         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19362         modern BIND to search name as TLD unless forbidden.
19363
19364 2011-05-07  Petr Baudis  <pasky@suse.cz>
19365             Ulrich Drepper  <drepper@gmail.com>
19366
19367         [BZ #12393]
19368         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19369         (is_trusted_path): ...to here.
19370         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19371         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19372         using is_trusted_path_normalize() in setuid scripts.
19373
19374 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19375
19376         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19377         __BEGIN/__END_DECLS.
19378
19379 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19380
19381         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19382         NSS_STATUS_NOTFOUND if no record was found.
19383
19384 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19385
19386         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19387         (headers-not-in-tirpc): Remove rpc/netdb.h
19388         * resolv/netdb.h: Revert last change.
19389
19390 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19391
19392         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19393         circular dependency between libgcc.a and libc.a.
19394
19395 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19396
19397         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19398         * nis/Makefile: Don't install rpcsvc/*.
19399         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19400         instead of <rpc/types.h>.
19401         (MAXHOSTNAMELEN): Define.
19402
19403 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19404
19405         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19406
19407 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19408
19409         [BZ #12714]
19410         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19411         gethostbyname4_r when IPv6 results are possible.
19412
19413 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19414
19415         [BZ #12723]
19416         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19417         _PC_PIPE_BUF handling.
19418
19419 2011-04-30  Bruno Haible  <bruno@clisp.org>
19420
19421         [BZ #12717]
19422         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19423         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19424         to 'int'.
19425         * inet/getnameinfo.c (getnameinfo): Likewise.
19426
19427 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19428
19429         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19430         to groups setting in database lookup.
19431         * nss/nsswitch.conf: Add initgroups entry.
19432
19433 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19434
19435         [BZ #12685]
19436         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19437         mode string.
19438         Patch by Eric Blake <eblake@redhat.com>.
19439
19440 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19441
19442         * sunrpc/Makefile (need-export-routines): Add svc_run.
19443         (routines): Remove svc_run.
19444         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19445         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19446         * sunrpc/svc_run.c (svc_run): Likewise.
19447         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19448
19449 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19450
19451         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19452         problem in reallocation in last patch.
19453
19454 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19455
19456         * sunrpc/Makefile: Move inclusion of Rules.
19457
19458 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19459
19460         * nss/nss_files/files-initgroups.c: New file.
19461         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19462         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19463         _nss_files_initgroups_dyn.
19464
19465 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19466
19467         * elf/elf.h (R_ARM_IRELATIVE): Define.
19468
19469 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19470
19471         * po/ru.po: Update from translation team.
19472
19473 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19474
19475         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19476         dependencies.
19477
19478 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19479
19480         [BZ #12653]
19481         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19482         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19483         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19484         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19485         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19486
19487 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19488
19489         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19490         differing bytes.
19491         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19492         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19493         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19494
19495 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19496
19497         [BZ #12420]
19498         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19499         storing it.
19500         * stdlib/bug-getcontext.c: New file.
19501         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19502
19503 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19504
19505         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19506         instructions into .machine "z9-109".
19507         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19508         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19509
19510 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19511
19512         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19513         between environment variables and auxiliary vector.
19514
19515 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19516
19517         * Makefile: Add rules to build linkobj/libc.so.
19518         * include/libc-symbols.h: Define libc_hidden_nolink.
19519         * include/rpc/auth.h: Mark functions which are to be hidden.
19520         * include/rpc/auth_des.h: Likewise.
19521         * include/rpc/auth_unix.h: Likewise.
19522         * include/rpc/clnt.h: Likewise.
19523         * include/rpc/des_crypt.h: Likewise.
19524         * include/rpc/key_prot.h: Likewise.
19525         * include/rpc/pmap_clnt.h: Likewise.
19526         * include/rpc/pmap_prot.h: Likewise.
19527         * include/rpc/pmap_rmt.h: Likewise.
19528         * include/rpc/rpc_msg.h: Likewise.
19529         * include/rpc/svc.h: Likewise.
19530         * include/rpc/svc_auth.h: Likewise.
19531         * include/rpc/xdr.h: Likewise.
19532         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19533         * nss/Makefile: Likewise.
19534         * sunrpc/Makefile: Don't install headers.  Build library with normal
19535         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19536         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19537         for the compat linking library.  Remove use of INTDEF/INTUSE.
19538         * sunrpc/auth_none.c: Likewise.
19539         * sunrpc/auth_unix.c: Likewise.
19540         * sunrpc/authdes_prot.c: Likewise.
19541         * sunrpc/authuxprot.c: Likewise.
19542         * sunrpc/clnt_gen.c: Likewise.
19543         * sunrpc/clnt_perr.c: Likewise.
19544         * sunrpc/clnt_raw.c: Likewise.
19545         * sunrpc/clnt_simp.c: Likewise.
19546         * sunrpc/clnt_tcp.c: Likewise.
19547         * sunrpc/clnt_udp.c: Likewise.
19548         * sunrpc/clnt_unix.c: Likewise.
19549         * sunrpc/des_crypt.c: Likewise.
19550         * sunrpc/des_soft.c: Likewise.
19551         * sunrpc/get_myaddr.c: Likewise.
19552         * sunrpc/key_call.c: Likewise.
19553         * sunrpc/key_prot.c: Likewise.
19554         * sunrpc/netname.c: Likewise.
19555         * sunrpc/pm_getmaps.c: Likewise.
19556         * sunrpc/pm_getport.c: Likewise.
19557         * sunrpc/pmap_clnt.c: Likewise.
19558         * sunrpc/pmap_prot.c: Likewise.
19559         * sunrpc/pmap_prot2.c: Likewise.
19560         * sunrpc/pmap_rmt.c: Likewise.
19561         * sunrpc/publickey.c: Likewise.
19562         * sunrpc/rpc_cmsg.c: Likewise.
19563         * sunrpc/rpc_common.c: Likewise.
19564         * sunrpc/rpc_dtable.c: Likewise.
19565         * sunrpc/rpc_prot.c: Likewise.
19566         * sunrpc/rpc_thread.c: Likewise.
19567         * sunrpc/rtime.c: Likewise.
19568         * sunrpc/svc.c: Likewise.
19569         * sunrpc/svc_auth.c: Likewise.
19570         * sunrpc/svc_authux.c: Likewise.
19571         * sunrpc/svc_raw.c: Likewise.
19572         * sunrpc/svc_run.c: Likewise.
19573         * sunrpc/svc_simple.c: Likewise.
19574         * sunrpc/svc_tcp.c: Likewise.
19575         * sunrpc/svc_udp.c: Likewise.
19576         * sunrpc/svc_unix.c: Likewise.
19577         * sunrpc/svcauth_des.c: Likewise.
19578         * sunrpc/xcrypt.c: Likewise.
19579         * sunrpc/xdr.c: Likewise.
19580         * sunrpc/xdr_array.c: Likewise.
19581         * sunrpc/xdr_float.c: Likewise.
19582         * sunrpc/xdr_intXX_t.c: Likewise.
19583         * sunrpc/xdr_mem.c: Likewise.
19584         * sunrpc/xdr_rec.c: Likewise.
19585         * sunrpc/xdr_ref.c: Likewise.
19586         * sunrpc/xdr_sizeof.c: Likewise.
19587         * sunrpc/xdr_stdio.c: Likewise.
19588
19589 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19590
19591         [BZ #12650]
19592         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19593         * sysdeps/ia64/dl-tls.h: Likewise.
19594         * sysdeps/powerpc/dl-tls.h: Likewise.
19595         * sysdeps/s390/dl-tls.h: Likewise.
19596         * sysdeps/sh/dl-tls.h: Likewise.
19597         * sysdeps/sparc/dl-tls.h: Likewise.
19598         * sysdeps/x86_64/dl-tls.h: Likewise.
19599         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19600
19601 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19602
19603         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19604         rpath element also skip the following colon.
19605         (expand_dynamic_string_token): Add is_path parameter and pass
19606         down to DL_DST_REQUIRED and _dl_dst_substitute.
19607         (decompose_rpath): Call expand_dynamic_string_token with
19608         non-zero is_path.  Ignore empty rpaths.
19609         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19610         with zero is_path.
19611
19612 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19613
19614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19615         Make cancelable.
19616
19617 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19618
19619         [BZ #12655]
19620         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19621         Patch by Filipe David Manana <fdmanana@apache.org>.
19622
19623 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19624
19625         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19626         Maintain aligned stack.
19627         (CHECK_RSP): Remove unused macro.
19628
19629 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19630
19631         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19632         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19633
19634 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19635
19636         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19637
19638         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19639
19640 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19641
19642         [BZ #12518]
19643         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19644         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19645         * sysdeps/x86_64/memmove.c: New file.
19646         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19647         (memcpy): Renamed to ...
19648         (__new_memcpy): This.
19649         (memcpy): Provide GLIBC_2_14 memcpy.
19650         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19651         (memcpy): Provide GLIBC_2_2_5 memcpy.
19652
19653 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19654
19655         [BZ #12631]
19656         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19657
19658 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19659
19660         * misc/syncfs.c: New file.
19661         * misc/Makefile (routines): Add syncfs.
19662         * posix/unistd.h: Declare syncfs.
19663         * sysdeps/unix/syscalls.list: Add syncfs.
19664
19665 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19666
19667         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19668         open_by_handle_at.
19669         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19670         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19671         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19672         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19673         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19674         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19675         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19676
19677 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19678
19679         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19680         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19681         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19682         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19683         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19684         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19685         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19686
19687         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19688         sync_file_range.c with -fexceptions.
19689         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19690         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19691         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19692         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19693         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19694         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19695         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19696         sync_file_range as cancellation point
19697         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19698         now a wrapper around __call_sync_file_range with cancellation handling.
19699         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19700         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19701         function name to __call_sync_file_range.
19702         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19703         Add call_sync_file_range.
19704
19705 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19706
19707         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19708         bits/timex.h.
19709
19710 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19711
19712         * iconv/iconv.h: Fix typo in comment.
19713         * io/fcntl.h: Likewise.
19714         * libio/stdio.h: Likewise.
19715         * posix/spawn.h: Likewise.
19716         * posix/unistd.h: Likewise.
19717         * stdlib/stdlib.h: Likewise.
19718         * time/time.h: Likewise.
19719         * wcsmbs/wchar.h: Likewise.
19720
19721         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19722         open_by_handle): Add.
19723         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19724         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19725         Augment a few comments.
19726         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19727         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19728         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19729         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19730         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19731         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19732         open_by_handle.
19733
19734         * io/fcntl.h (AT_EMPTY_PATH): Define.
19735
19736 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19737
19738         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19739         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19740         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19741         to...
19742         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19743         * Versions.def: Add GLIBC_2.14.
19744         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19745         Export.
19746
19747 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19748
19749         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19750         round counter.
19751         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19752
19753 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19754
19755         [BZ #12597]
19756         * string/test-strncmp.c (do_page_test): New function.
19757         (check2): Likewise.
19758         (test_main): Call check2.
19759         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19760
19761 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19762
19763         [BZ #12587]
19764         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19765         Handle cache information in CPU leaf 4.
19766         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19767
19768 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19769
19770         [BZ #12583]
19771         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19772         character representation.
19773         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19774
19775 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19776
19777         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19778         END(__isnan) to END(__isnanf) to match function entry point/label
19779         EALIGN(__isnanf,...).
19780
19781 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19782
19783         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19784
19785 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19786
19787         [BZ #12510]
19788         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19789         copy from the symbol referenced in the relocation to initialize the
19790         used variable.
19791         Patch by Piotr Bury <pbury@goahead.com>.
19792         * elf/Makefile: Add rules to build and tst-unique3.
19793         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19794         * elf/tst-unique3.cc: New file.
19795         * elf/tst-unique3.h: New file.
19796         * elf/tst-unique3lib.cc: New file.
19797         * elf/tst-unique3lib2.cc: New file.
19798
19799         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19800
19801 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19802
19803         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19804         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19805         to _start.
19806
19807 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19808
19809         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19810         to-be-loaded object along a path to loader is ld.so.
19811
19812 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19813             Ulrich Drepper  <drepper@gmail.com>
19814
19815         * sysdeps/x86_64/memset.S: After aligning destination, code
19816         branches to different locations depending on the value of
19817         misalignment, when multiarch is enabled. Fix this.
19818
19819 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19820
19821         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19822         Set _x86_64_preferred_memory_instruction for AMD processsors.
19823         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19824         Set bit_Prefer_SSE_for_memop for AMD processors.
19825
19826 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19827
19828         * libio/fmemopen.c (fmemopen): Optimize a bit.
19829
19830 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19831
19832         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19833
19834 2011-03-03  Roland McGrath  <roland@redhat.com>
19835
19836         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19837
19838 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19839
19840         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19841         __bzero_ultra1 instead of __memset_ultra1.
19842
19843 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19844             Ulrich Drepper  <drepper@gmail.com>
19845
19846         [BZ #12509]
19847         * include/link.h (struct link_map): Add l_orig_initfini.
19848         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19849         returning unsuccessfully.
19850         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19851         close of a file loaded at startup, restore the original l_initfini
19852         list.
19853         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19854         list, store the pointer.
19855         * elf/Makefile ($(objpfx)noload-mem): New rule.
19856         (noload-ENV): Define.
19857         (tests): Add $(objpfx)noload-mem.
19858         * elf/noload.c: Include <memcheck.h>.
19859         (main): Call mtrace.  Close all opened handles.
19860
19861 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19862
19863         [BZ #12454]
19864         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19865         dependencies are missing.
19866
19867 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19868
19869         Fix __if_freereq crash: Unlike the generic version which uses free,
19870         Hurd needs munmap.
19871         * sysdeps/mach/hurd/ifreq.h: New file.
19872
19873 2011-01-27  Petr Baudis  <pasky@suse.cz>
19874             Ulrich Drepper  <drepper@gmail.com>
19875
19876         [BZ 12445]#
19877         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19878         to extend_alloca().
19879         * stdio-common/bug23.c: New file.
19880         * stdio-common/Makefile (tests): Add bug23.
19881
19882 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19883             Ulrich Drepper  <drepper@gmail.com>
19884
19885         [BZ #12489]
19886         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19887         before performing relro protection.  At old place add assertion
19888         to make sure nothing changed.
19889
19890 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19891             Glauber de Oliveira Costa  <glommer@gmail.com>
19892
19893         * elf/elf.h: Add new ARM TLS relocs.
19894
19895 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19896
19897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19898         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19899         cast from r3.
19900         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19901         'tests' variable.
19902         * sysdeps/wordsize-64/tst-writev.c: New file.
19903
19904 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19905
19906         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19907         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19908         insns in _dl_start to prevent a TOC reference before relocs are
19909         resolved.
19910
19911 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19912
19913         [BZ #12469]
19914         * Makeconfig: Remove RANLIB definition.
19915         * Makerules: Don't use RANLIB.
19916         * aclocal.m4: Remove ranlib test.
19917         * configure.in: No need to check for ranlib.
19918         * elf/rtld-Rules: Don't use RANLIB.
19919
19920 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19921
19922         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19923         protection macro.
19924         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19925         inclusion protection macro.
19926
19927         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19928         SIGRTMIN and SIGRTMAX and print information in that case only when
19929         SIGRTMIN is defined.
19930
19931 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19932
19933         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19934         arginfo fn returning -1.
19935
19936         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19937         and thousands string is zero terminated.
19938
19939 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19940
19941         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19942         sysdeps/unix/sysv/linux/bits/socket.h.
19943
19944 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19945
19946         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19947         (__CPU_COUNT): Remove old macros.
19948         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19949         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19950         (__CPU_ALLOC, __CPU_FREE): Add macros.
19951         (__sched_cpualloc, __sched_cpufree): Add declarations.
19952
19953 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19954
19955         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19956         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19957         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19958         (readdhstai): Return value of addhstaiX call.
19959         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19960         (addgrbyX): Return value returned by cache_addgr.
19961         (readdgrbyname): Return value returned by addgrbyX.
19962         (readdgrbygid): Likewise.
19963         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19964         (addpwbyX): Return value returned by cache_addpw.
19965         (readdpwbyname): Return value returned by addhstbyX.
19966         (readdpwbyuid): Likewise.
19967         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19968         (addservbyX): Return value returned by cache_addserv.
19969         (readdservbyname): Return value returned by addservbyX:
19970         (readdservbyport): Likewise.
19971         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19972         (addhstbyX): Return value returned by cache_addhst.
19973         (readdhstbyname): Return value returned by addhstbyX.
19974         (readdhstbyaddr): Likewise.
19975         (readdhstbynamev6): Likewise.
19976         (readdhstbyaddrv6): Likewise.
19977         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19978         (readdinitgroups): Return value returned by addinitgroupsX.
19979         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19980         (prune_cache): Keep track of timeout value of re-added entries.
19981         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19982         * nscd/nscd.h: Adjust prototypes of readd* functions.
19983
19984 2011-02-04  Roland McGrath  <roland@redhat.com>
19985
19986         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19987         (nis_stats): Likewise.
19988         * nis/nis_modify.c (nis_modify): Likewise.
19989         * nis/nis_remove.c (nis_remove): Likewise.
19990         * nis/nis_add.c (nis_add): Likewise.
19991
19992         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19993
19994         * posix/fnmatch_loop.c: Add some consts.
19995
19996         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19997
19998 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19999
20000         [BZ #12460]
20001         * config.make.in (config-cflags-novzeroupper): Define.
20002         * configure.in: Substitute libc_cv_cc_novzeroupper.
20003         * elf/Makefile (AVX-CFLAGS): Define.
20004         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20005         (CFLAGS-tst-auditmod4a.c): Likewise.
20006         (CFLAGS-tst-auditmod4b.c): Likewise.
20007         (CFLAGS-tst-auditmod6b.c): Likewise.
20008         (CFLAGS-tst-auditmod6c.c): Likewise.
20009         (CFLAGS-tst-auditmod7b.c): Likewise.
20010         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20011
20012 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20013
20014         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20015         function to the callback.
20016         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20017
20018 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20019
20020         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20021         of errno.
20022
20023 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20024
20025         [BZ #11724]
20026         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20027         of constructors.
20028         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20029         of destructors.
20030         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20031
20032         [BZ #11724]
20033         * elf/Makefile: Add rules to build and run new test.
20034         * elf/tst-initorder.c: New file.
20035         * elf/tst-initorder.exp: New file.
20036         * elf/tst-initordera1.c: New file.
20037         * elf/tst-initordera2.c: New file.
20038         * elf/tst-initordera3.c: New file.
20039         * elf/tst-initordera4.c: New file.
20040         * elf/tst-initorderb1.c: New file.
20041         * elf/tst-initorderb2.c: New file.
20042         * elf/tst-order-a1.c: New file.
20043         * elf/tst-order-a2.c: New file.
20044         * elf/tst-order-a3.c: New file.
20045         * elf/tst-order-a4.c: New file.
20046         * elf/tst-order-b1.c: New file.
20047         * elf/tst-order-b2.c: New file.
20048         * elf/tst-order-main.c: New file.
20049         New test case by George Gensure <werkt0@gmail.com>.
20050
20051 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20052
20053         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20054         decoding ACE if AI_CANONIDN.
20055
20056 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20057
20058         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20059
20060 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20061
20062         * version.h (RELEASE): Bump for 2.13 release.
20063         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20064
20065         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20066
20067         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20068         MADV_NOHUGEPAGE.
20069         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20070         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20071         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20072         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20073         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20074         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20075
20076         * posix/getconf.c: Update copyright year.
20077         * catgets/gencat.c: Likewise.
20078         * csu/version.c: Likewise.
20079         * debug/catchsegv.sh: Likewise.
20080         * debug/xtrace.sh: Likewise.
20081         * elf/ldconfig.c: Likewise.
20082         * elf/ldd.bash.in: Likewise.
20083         * elf/sprof.c (print_version): Likewise.
20084         * iconv/iconv_prog.c: Likewise.
20085         * iconv/iconvconfig.c: Likewise.
20086         * locale/programs/locale.c: Likewise.
20087         * locale/programs/localedef.c: Likewise.
20088         * malloc/memusage.sh: Likewise.
20089         * malloc/mtrace.pl: Likewise.
20090         * nscd/nscd.c (print_version): Likewise.
20091         * nss/getent.c: Likewise.
20092
20093         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20094         PF_CAIF, and PF_ALG.
20095         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20096
20097 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20098
20099         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20100         (modules-names): Use them.
20101         (ifunc-test-modules, ifunc-pie-tests): Define.
20102         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20103         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20104         (test-extras): Likewise.
20105         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20106         $(compile-command.c).
20107         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20108         (all-built-dso): Define.
20109         (check-textrel.out, check-execstack.out): Depend on it.
20110
20111         * configure.in: Don't override --enable-multi-arch.
20112
20113 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20114
20115         [BZ #6812]
20116         * nscd/hstcache.c (tryagain): Define.
20117         (cache_addhst): Return tryagain not notfound for temporary errors.
20118         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20119         failed.
20120
20121 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20122
20123         [BZ #10563]
20124         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20125         to make the syscall.
20126         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20127
20128         [BZ #12378]
20129         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20130         and fall back to matching as normal character if the string ends before
20131         the matching ']' is found.  This is what POSIX requires.
20132         * posix/testfnm.c: Adjust test result.
20133         * posix/globtest.sh: Adjust test result.  Add new test.
20134         * posix/tst-fnmatch.input: Likewise.
20135         * posix/tst-fnmatch2.c: Add new test.
20136
20137 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20138
20139         * elf/Makefile (check-execstack): Revert last change.  Depend on
20140         check-execstack.h.
20141         (check-execstack.h): New target.
20142         (generated): Add check-execstack.h.
20143         * elf/check-execstack.c: Include "check-execstack.h".
20144         (main): Revert last change.
20145         (handle_file): Return zero if GNU_STACK is absent and
20146         DEFAULT_STACK_PERMS doesn't include PF_X.
20147
20148 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20149
20150         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20151         in child fails because the descriptor is already closed.
20152         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20153         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20154         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20155
20156         [BZ #12397]
20157         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20158         syscall.
20159
20160         [BZ #10484]
20161         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20162         temporary buffer used to handle multi lookups locally.
20163         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20164
20165 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20166
20167         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20168         loader is ld.so.
20169
20170 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20171
20172         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20173         alignment for SSE2.
20174
20175 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20176
20177         [BZ #12394]
20178         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20179         characters.  When rounding increased number of integer digits recompute
20180         number of groups.
20181         * stdio-common/tst-grouping.c: New file.
20182         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20183
20184 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20185
20186         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20187         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20188
20189         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20190         void.
20191         * bits/select.h: Likewise.
20192
20193 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20194
20195         * po/ja.po: Update from translation team.
20196
20197 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20198
20199         [BZ #11155]
20200         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20201         implementation just like for lxstat, fxstatat, et al.
20202
20203 2010-12-27  Jim Meyering  <meyering@redhat.com>
20204
20205         [BZ #12348]
20206         * posix/regexec.c (build_trtable): Return failure indication upon
20207         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20208
20209 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20210
20211         [BZ #12201]
20212         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20213         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20214         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20215         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20216
20217         [BZ #12207]
20218         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20219
20220         [BZ #12204]
20221         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20222         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20223
20224 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20225
20226         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20227         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20228         script has SORT_BY_INIT_PRIORITY.
20229         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20230         NO_CTORS_DTORS_SECTIONS is defined.
20231         * elf/soinit.c: Likewise.
20232         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20233         NO_CTORS_DTORS_SECTIONS is defined.
20234         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20235         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20236         * sysdeps/sh/init-first.c: Likewise.
20237         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20238
20239 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20240
20241         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20242         always use the slow path.
20243
20244 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20245
20246         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20247         similar rule which adds the sysdep directories to the header search in
20248         order to pick up the correct platform stackinfo.h.
20249         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20250         perform test if it is, otherwise return successfully without testing.
20251         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20252         DEFAULT_STACK_PERMS define in stackinfo.h.
20253         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20254         defined in stackinfo.h.
20255         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20256         DEFAULT_STACK_PERMS defined in stackinfo.h.
20257         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20258         * sysdeps/ia64/stackinfo.h: Likewise.
20259         * sysdeps/s390/stackinfo.h: Likewise.
20260         * sysdeps/sh/stackinfo.h: Likewise.
20261         * sysdeps/sparc/stackinfo.h: Likewise.
20262         * sysdeps/x86_64/stackinfo.h: Likewise.
20263         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20264         PF_X for powerpc64.  Retain PF_X for powerpc32.
20265
20266 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20267
20268         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20269         accurately.
20270         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20271         GETDENTS_64BIT_ALIGNED.
20272
20273 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20274
20275         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20276
20277 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20278
20279         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20280         _GNU_SOURCE.
20281
20282         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20283         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20284         Remove __restrict.
20285         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20286         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20287
20288 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20289
20290         [BZ #11655]
20291         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20292         are initialized.
20293
20294 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20295
20296         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20297
20298 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20299
20300         * po/it.po: Update from translation team.
20301
20302 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20303
20304         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20305         unused codes.
20306
20307 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20308
20309         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20310
20311 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20312
20313         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20314         specially.
20315         (gaih_getanswer_slice): Likewise.
20316
20317 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20318
20319         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20320
20321 2010-05-31  Petr Baudis  <pasky@suse.cz>
20322
20323         [BZ #11149]
20324         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20325         silently even in the chroot mode.
20326
20327 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20328
20329         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20330         last patch a bit.  Pretty printing
20331
20332 2010-05-31  Petr Baudis <pasky@suse.cz>
20333
20334         [BZ #10085]
20335         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20336         initialization of skip_initgroups_dyn.
20337
20338 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20339
20340         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20341         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20342
20343 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20344
20345         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20346
20347 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20348
20349         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20350         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20351         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20352         ($(objpfx)tst-fnmatch-mem): New rule.
20353         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20354         * posix/tst-fnmatch.c (main): Call mtrace.
20355
20356 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20357
20358         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20359         Support Intel processor model 6 and model 0x2c.
20360
20361 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20362
20363         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20364           signed comparison.
20365
20366 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20367
20368         [BZ #12205]
20369         * string/test-strncasecmp.c (check_result): New function.
20370         (do_one_test): Use it.
20371         (check1): New function.
20372         (test_main): Use it.
20373         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20374         Support strcasecmp and strncasecmp.
20375
20376 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20377
20378         [BZ #12194]
20379         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20380         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20381
20382 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20383
20384         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20385         IFUNC support.
20386         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20387         memset-x86-64.
20388         * sysdeps/x86_64/multiarch/bzero.S: New file.
20389         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20390         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20391         * sysdeps/x86_64/multiarch/memset.S: New file.
20392         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20393         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20394         Set bit_Prefer_SSE_for_memop for Intel processors.
20395         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20396         Define.
20397         (index_Prefer_SSE_for_memop): Define.
20398         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20399
20400 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20401
20402         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20403         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20404
20405 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20406
20407         [BZ #12191]
20408         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20409         (__x86_64_raw_data_cache_size_half): Likewise.
20410         (__x86_64_raw_shared_cache_size): Likewise.
20411         (__x86_64_raw_shared_cache_size_half): Likewise.
20412
20413         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20414         (__x86_64_raw_data_cache_size_half): Likewise.
20415         (__x86_64_raw_shared_cache_size): Likewise.
20416         (__x86_64_raw_shared_cache_size_half): Likewise.
20417         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20418         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20419         and __x86_64_raw_shared_cache_size_half.  Round
20420         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20421         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20422         to multiple of 256 bytes.
20423
20424 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20425
20426         [BZ #12167]
20427         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20428         of inacessible symlinks.  Verify result of symlink before returning it.
20429         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20430         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20431
20432 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20433
20434         * math/math.h (isinf): Fix typo in comment.
20435
20436 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20437
20438         * po/da.po: Update from translation team.
20439
20440 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20441
20442         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20443         is added to the list.
20444
20445 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20446             Ulrich Drepper  <drepper@gmail.com>
20447
20448         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20449         the global list here.  Move code to...
20450         (_dl_add_to_namespace_list): ...here.  New function.
20451         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20452         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20453         * elf/dl-load.c (lose): Don't remove the element from the list.
20454         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20455         (_dl_map_object): Likewise.
20456
20457 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20458
20459         [BZ #12159]
20460         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20461         into all bytes of SSE register.
20462         Patch by Richard Li <richardpku@gmail.com>.
20463
20464 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20465
20466         [BZ #12140]
20467         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20468         perturbing.
20469
20470 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20471
20472         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20473         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20474         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20475         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20477         submachine.
20478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20479
20480 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20481
20482         * include/dlfcn.h (__RTLD_SECURE): Define.
20483         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20484         mode & __RTLD_SECURE instead.
20485         (open_path): Rename preloaded parameter to secure.
20486         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20487         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20488         * elf/dl-deps.c (openaux): Likewise.
20489         * elf/rtld.c (struct map_args): Remove is_preloaded.
20490         (map_doit): Don't use it.
20491         (dl_main): Likewise.
20492         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20493         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20494
20495 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20496
20497         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20498         (sysd-rules-targets): Remove duplicates.
20499         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20500         rtld-%.$o dependency.
20501
20502 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20503
20504         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20505         _dl_map_object do it.
20506
20507 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20508
20509         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20510         fast fma builtins, define the macros in the C99 standard.
20511         (FP_FAST_FMAF): Likewise.
20512         (FP_FAST_FMAL): Likewise.
20513         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20514
20515         * bits/mathdef.h: Update copyright year.
20516         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20517
20518 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20519
20520         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20521         builtins, define the macros in the C99 standard.
20522         (FP_FAST_FMAF): Likewise.
20523         (FP_FAST_FMAL): Likewise.
20524         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20525         multiply/add.
20526         (FP_FAST_FMAF): Likewise.
20527
20528 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20529
20530         [BZ #3268]
20531         * math/libm-test.inc (fma_test): Some new testcases.
20532         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20533         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20534         y and infinite z.  Do multiplication by C already in long double.
20535         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20536         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20537         y and infinite z.  Do bitwise or of inexact bit into u.d.
20538         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20539         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20540         * sysdeps/i386/fpu/s_fma.S: Removed.
20541         * sysdeps/i386/fpu/s_fmal.S: Removed.
20542
20543 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20544
20545         [BZ #3268]
20546         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20547         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20548         computation is not scheduled after fetestexcept.  Fix value
20549         of minimum denormal long double.
20550
20551 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20552
20553         [BZ #3268]
20554         * math/libm-test.inc (fma_test): Add some more tests.
20555         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20556         correctly.
20557
20558 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20559
20560         * scripts/data/localplt-s390-linux-gnu.data: New file.
20561         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20562
20563 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20564
20565         [BZ #3268]
20566         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20567         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20568         instead of dbl-64.
20569         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20570         inlines.
20571         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20572         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20573         if one of x and y is very large and the other is subnormal.
20574         * sysdeps/s390/fpu/s_fmaf.c: New file.
20575         * sysdeps/s390/fpu/s_fma.c: New file.
20576         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20577         * sysdeps/powerpc/fpu/s_fma.S: New file.
20578         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20579         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20580         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20581
20582 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20583
20584         [BZ #3268]
20585         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20586         fma tests.
20587         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20588         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20589         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20590         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20591         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20592         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20593         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20594
20595 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20596
20597         [BZ #12078]
20598         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20599         * posix/bug-regex31.input: Add test case.
20600
20601 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20602
20603         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20604         * posix/bug-regex31.input: New file.
20605
20606         [BZ #12078]
20607         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20608         (parse_sub_exp): Fix last change, use postorder.
20609
20610         * posix/bug-regex31.c: New file.
20611         * posix/Makefile: Add rules to build and run bug-regex31.
20612
20613         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20614
20615         [BZ #12078]
20616         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20617
20618         [BZ #12108]
20619         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20620         to have entries in sys_siglist.
20621
20622         [BZ #12093]
20623         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20624         be NULL.
20625
20626 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20627
20628         [BZ #3268]
20629         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20630         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20631         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20632         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20633         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20634         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20635         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20636         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20637         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20638         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20639         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20640         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20641         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20642         * math/ftestexcept.c (fetestexcept): Likewise.
20643         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20644         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20645         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20646         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20647         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20648         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20649         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20650
20651 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20652
20653         [BZ #12107]
20654         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20655         newline.
20656
20657 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20658
20659         * string/bug-strstr1.c: New file.
20660         * string/Makefile: Add rules to build and run bug-strstr1.
20661
20662 2010-10-05  Eric Blake  <eblake@redhat.com>
20663
20664         [BZ #12092]
20665         * string/str-two-way.h (two_way_long_needle): Always clear memory
20666         when skipping input due to the shift table.
20667
20668 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20669
20670         [BZ #12005]
20671         * malloc/mcheck.c: Handle large requests.
20672
20673         [BZ #12077]
20674         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20675         for strncmp and strncasecmp.
20676         * string/stratcliff.c: Add tests for strcmp and strncmp.
20677         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20678
20679 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20680
20681         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20682         __set_fpscr.
20683
20684 2010-09-30  Andreas Jaeger  <aj@suse.de>
20685
20686         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20687         (CGROUP_SUPER_MAGIC): Define.
20688         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20689         Handle btrfs and cgroup file systems.
20690         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20691         Likewise.
20692
20693 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20694
20695         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20696         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20697
20698 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20699
20700         [BZ #12067]
20701         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20702         trying to locate the ELF header.
20703
20704 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20705
20706         [BZ #11611]
20707         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20708         Mask out sign-bit copies when constructing f_fsid.
20709
20710 2010-09-24  Petr Baudis <pasky@suse.cz>
20711
20712         * debug/stack_chk_fail_local.c: Add missing licence exception.
20713         * debug/warning-nop.c: Likewise.
20714
20715 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20716
20717         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20718         implementing getdents64 using getdents syscall, set d_type if
20719         __ASSUME_GETDENTS32_D_TYPE.
20720
20721 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20722
20723         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20724         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20725
20726 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20727
20728         [BZ #12037]
20729         * posix/unistd.h: Undo change of feature selection for ftruncate from
20730         2010-01-11.
20731
20732 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20733
20734         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20735         detection.
20736
20737 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20738
20739         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20740         fanotify_mark.
20741         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20742
20743 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20744
20745         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20746         variables after CHECK_SP call.
20747         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20748
20749 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20750             Ulrich Drepper  <drepper@redhat.com>
20751
20752         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20753         re-relocationg ld.so.
20754         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20755         _dl_init_paths call.
20756         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20757         here anymore.
20758
20759 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20760
20761         * resolv/res_init.c (__res_vinit): Count the default server we added.
20762
20763 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20764             Ulrich Drepper  <drepper@redhat.com>
20765
20766         [BZ #11968]
20767         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20768         (____longjmp_chk): Use %ebx for saving value across system call.
20769         Add unwind info.
20770
20771 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20772
20773         * manual/Makefile: Don't mix pattern rules with normal rules.
20774
20775 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20776
20777         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20778         operation.
20779         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20780         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20781         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20782         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20783         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20784         Likewise.
20785
20786 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20787
20788         [BZ #11979]
20789         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20790         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20791
20792 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20793
20794         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20795         * sysdeps/x86_64/addmul_1.S: Likewise.
20796         * sysdeps/x86_64/lshift.S: Likewise.
20797         * sysdeps/x86_64/mul_1.S: Likewise.
20798         * sysdeps/x86_64/rshift.S: Likewise.
20799         * sysdeps/x86_64/sub_n.S: Likewise.
20800         * sysdeps/x86_64/submul_1.S: Likewise.
20801
20802 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20803
20804         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20805         Define __sched_param instead of SCHED_* and sched_param when
20806         <bits/sched.h> is included with __need_schedparam defined.
20807         * bits/sched.h [__need_schedparam]
20808         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20809         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20810         (__defined_schedparam): Define to 1.
20811         (__sched_param): New structure, identical to sched_param.
20812         (__need_schedparam): Undefine.
20813
20814 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20815
20816         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20817         (epoll_create1): Declare.
20818
20819         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20820
20821 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20822
20823         [BZ #7066]
20824         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20825         shifting retval into place.
20826
20827 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20828
20829         * nis/rpcsvc/nis.h: Update copyright notice.
20830         * nis/rpcsvc/nis.x: Likewise.
20831         * nis/rpcsvc/nis_callback.h: Likewise.
20832         * nis/rpcsvc/nis_callback.x: Likewise.
20833         * nis/rpcsvc/nis_object.x: Likewise.
20834         * nis/rpcsvc/nis_tags.h: Likewise.
20835         * nis/rpcsvc/yp.h: Likewise.
20836         * nis/rpcsvc/yp.x: Likewise.
20837         * nis/rpcsvc/ypupd.h: Likewise.
20838         * nis/yp_xdr.c: Likewise.
20839         * nis/ypupdate_xdr.c: Likewise.
20840
20841         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20842         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20843         (pmap_getport): Use __libc_rpc_getport.
20844         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20845         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20846         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20847
20848 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20849
20850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20851         fanotify_mark.
20852
20853 2010-08-27  Roland McGrath  <roland@redhat.com>
20854
20855         * sysdeps/i386/i686/multiarch/Makefile
20856         (CFLAGS-varshift.c): New variable.
20857
20858 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20859
20860         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20861         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20862
20863         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20864
20865         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20866
20867 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20868
20869         * sysdeps/x86_64/strlen.S: Unroll the loop.
20870         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20871         strlen-sse2 strlen-sse2-bsf.
20872         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20873         __strlen_no_bsf if bit_Slow_BSF is set.
20874         (__strlen_sse42): Removed.
20875         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20876         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20877
20878 2010-08-25  Roland McGrath  <roland@redhat.com>
20879
20880         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20881         * sysdeps/x86_64/multiarch/varshift.c: New file.
20882         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20883         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20884         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20885         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20886
20887 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20888
20889         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20890         strlen-sse2 strlen-sse2-bsf.
20891         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20892         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20893         (__strlen_sse2): Removed.
20894         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20895         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20896         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20897         bit_Slow_BSF for Atom.
20898         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20899         (index_Slow_BSF): Define.
20900         (HAS_SLOW_BSF): Define.
20901
20902 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20903
20904         [BZ #10851]
20905         * resolv/res_init.c (__res_vinit): When no server address at all
20906         is given default to loopback.
20907
20908 2010-08-24  Roland McGrath  <roland@redhat.com>
20909
20910         * configure.in: Remove config-name.h generation.
20911         * configure: Regenerated.
20912         * config-name.in: File removed.
20913         * scripts/config-uname.sh: New file.
20914         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20915         ($(objdir)config-name.h): New target.
20916
20917         * sunrpc/rpc_parse.h: Avoid nested comment.
20918
20919 2010-08-24  Richard Henderson  <rth@redhat.com>
20920             Ulrich Drepper  <drepper@redhat.com>
20921             H.J. Lu  <hongjiu.lu@intel.com>
20922
20923         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20924         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20925         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20926         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20927         _mm_alignr_epi8 with _mm_loadu_si128.
20928         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20929         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20930         (__m128i_shift_right): Removed.
20931         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20932         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20933         * sysdeps/x86_64/multiarch/varshift.h: New file.
20934         * sysdeps/x86_64/multiarch/varshift.S: New file.
20935
20936 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20937
20938         * configure.in: Move assembler checks to before sysdep dir checking.
20939
20940 2010-08-20  Petr Baudis  <pasky@suse.cz>
20941
20942         * LICENSES: Sync the sunrpc license.
20943
20944 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20945
20946         * sunrpc/auth_des.c: Update copyright notice once again.
20947         * sunrpc/auth_none.c: Likewise.
20948         * sunrpc/auth_unix.c: Likewise.
20949         * sunrpc/authdes_prot.c: Likewise.
20950         * sunrpc/authuxprot.c: Likewise.
20951         * sunrpc/bindrsvprt.c: Likewise.
20952         * sunrpc/clnt_gen.c: Likewise.
20953         * sunrpc/clnt_perr.c: Likewise.
20954         * sunrpc/clnt_raw.c: Likewise.
20955         * sunrpc/clnt_simp.c: Likewise.
20956         * sunrpc/clnt_tcp.c: Likewise.
20957         * sunrpc/clnt_udp.c: Likewise.
20958         * sunrpc/clnt_unix.c: Likewise.
20959         * sunrpc/des_crypt.c: Likewise.
20960         * sunrpc/des_soft.c: Likewise.
20961         * sunrpc/get_myaddr.c: Likewise.
20962         * sunrpc/getrpcport.c: Likewise.
20963         * sunrpc/key_call.c: Likewise.
20964         * sunrpc/key_prot.c: Likewise.
20965         * sunrpc/openchild.c: Likewise.
20966         * sunrpc/pm_getmaps.c: Likewise.
20967         * sunrpc/pm_getport.c: Likewise.
20968         * sunrpc/pmap_clnt.c: Likewise.
20969         * sunrpc/pmap_prot.c: Likewise.
20970         * sunrpc/pmap_prot2.c: Likewise.
20971         * sunrpc/pmap_rmt.c: Likewise.
20972         * sunrpc/rpc/auth.h: Likewise.
20973         * sunrpc/rpc/auth_unix.h: Likewise.
20974         * sunrpc/rpc/clnt.h: Likewise.
20975         * sunrpc/rpc/des_crypt.h: Likewise.
20976         * sunrpc/rpc/key_prot.h: Likewise.
20977         * sunrpc/rpc/netdb.h: Likewise.
20978         * sunrpc/rpc/pmap_clnt.h: Likewise.
20979         * sunrpc/rpc/pmap_prot.h: Likewise.
20980         * sunrpc/rpc/pmap_rmt.h: Likewise.
20981         * sunrpc/rpc/rpc.h: Likewise.
20982         * sunrpc/rpc/rpc_des.h: Likewise.
20983         * sunrpc/rpc/rpc_msg.h: Likewise.
20984         * sunrpc/rpc/svc.h: Likewise.
20985         * sunrpc/rpc/svc_auth.h: Likewise.
20986         * sunrpc/rpc/types.h: Likewise.
20987         * sunrpc/rpc/xdr.h: Likewise.
20988         * sunrpc/rpc_clntout.c: Likewise.
20989         * sunrpc/rpc_cmsg.c: Likewise.
20990         * sunrpc/rpc_common.c: Likewise.
20991         * sunrpc/rpc_cout.c: Likewise.
20992         * sunrpc/rpc_dtable.c: Likewise.
20993         * sunrpc/rpc_hout.c: Likewise.
20994         * sunrpc/rpc_main.c: Likewise.
20995         * sunrpc/rpc_parse.c: Likewise.
20996         * sunrpc/rpc_parse.h: Likewise.
20997         * sunrpc/rpc_prot.c: Likewise.
20998         * sunrpc/rpc_sample.c: Likewise.
20999         * sunrpc/rpc_scan.c: Likewise.
21000         * sunrpc/rpc_scan.h: Likewise.
21001         * sunrpc/rpc_svcout.c: Likewise.
21002         * sunrpc/rpc_tblout.c: Likewise.
21003         * sunrpc/rpc_util.c: Likewise.
21004         * sunrpc/rpc_util.h: Likewise.
21005         * sunrpc/rpcinfo.c: Likewise.
21006         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21007         * sunrpc/rpcsvc/key_prot.x: Likewise.
21008         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21009         * sunrpc/rpcsvc/mount.x: Likewise.
21010         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21011         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21012         * sunrpc/rpcsvc/rex.x: Likewise.
21013         * sunrpc/rpcsvc/rstat.x: Likewise.
21014         * sunrpc/rpcsvc/rusers.x: Likewise.
21015         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21016         * sunrpc/rpcsvc/spray.x: Likewise.
21017         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21018         * sunrpc/rtime.c: Likewise.
21019         * sunrpc/svc.c: Likewise.
21020         * sunrpc/svc_auth.c: Likewise.
21021         * sunrpc/svc_authux.c: Likewise.
21022         * sunrpc/svc_raw.c: Likewise.
21023         * sunrpc/svc_run.c: Likewise.
21024         * sunrpc/svc_simple.c: Likewise.
21025         * sunrpc/svc_tcp.c: Likewise.
21026         * sunrpc/svc_udp.c: Likewise.
21027         * sunrpc/svc_unix.c: Likewise.
21028         * sunrpc/svcauth_des.c: Likewise.
21029         * sunrpc/xcrypt.c: Likewise.
21030         * sunrpc/xdr.c: Likewise.
21031         * sunrpc/xdr_array.c: Likewise.
21032         * sunrpc/xdr_float.c: Likewise.
21033         * sunrpc/xdr_mem.c: Likewise.
21034         * sunrpc/xdr_rec.c: Likewise.
21035         * sunrpc/xdr_ref.c: Likewise.
21036         * sunrpc/xdr_sizeof.c: Likewise.
21037         * sunrpc/xdr_stdio.c: Likewise.
21038
21039         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21040         handling.
21041
21042 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21043
21044         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21045
21046 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21047
21048         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21049         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21050         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21051         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21052         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21053         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21054         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21055         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21056         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21057         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21058         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21059         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21060         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21061         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21062
21063 2010-07-26  Anton Blanchard  <anton@samba.org>
21064
21065         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21066         * malloc/arena.c (heap_trim): Likewise.
21067
21068 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21069
21070         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21071         here.  Not...
21072         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21073         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21074
21075 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21076
21077         * sysdeps/i386/elf/Makefile: New file.
21078
21079 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21080
21081         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21082         from fanotify_init.
21083         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21084         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21085
21086 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21087
21088         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21089         of strncasecmp_l.
21090         * sysdeps/multiarch/strcmp.S: Likewise.
21091
21092 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21093
21094         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21095         strncase_l-nonascii.
21096         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21097         Add strncase_l-ssse3.
21098         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21099         * sysdeps/x86_64/strcmp.S: Likewise.
21100         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21101         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21102         * sysdeps/x86_64/strncase.S: New file.
21103         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21104         * sysdeps/x86_64/strncase_l.S: New file.
21105         * string/Makefile (strop-tests): Add strncasecmp.
21106         * string/test-strncasecmp.c: New file.
21107
21108         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21109         warning.
21110
21111         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21112         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21113
21114 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21115
21116         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21117
21118 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21119
21120         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21121         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21122         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21123
21124 2010-05-01  Alan Modra  <amodra@gmail.com>
21125
21126         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21127         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21128         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21129         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21130         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21131         tidying.  Don't tail-call __sigjmp_save for static lib.
21132         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21133         save location.
21134         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21135         (CALL_MCOUNT): Add eh info, and nop after bl.
21136         (TAIL_CALL_SYSCALL_ERROR): New macro.
21137         (PSEUDO_RET): Use it.
21138         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21139         Correct save location of integer regs and cr.
21140         (_dl_profile_resolve): Correct cr save location.  Delete nops
21141         after bl when SHARED.  Reduce cfi size a little by better
21142         placement of cfi directives.
21143         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21144         make a stack frame.  Instead use parm save area as a temp.
21145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21146         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21148         Don't make a stack frame for parent, use parm save area.
21149         Increase child stack frame to 112 bytes.  Don't save unused reg,
21150         and adjust reg usage.  Set up cfi on error recovery and
21151         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21153         (__makecontext): Add dummy nop after jump to exit.
21154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21155         Use correct parm save area and cr save, reduce stack frame.
21156         Correct cfi for possible PSEUDO_RET frame setup.
21157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21158         Branch to local label emitted by PSEUDO_RET rather than
21159         __syscall_error.
21160
21161 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21162
21163         [BZ #11904]
21164         * locale/programs/locale.c (print_assignment): New function.
21165         (show_locale_vars): Use it.
21166
21167 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21168
21169         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21170         field.
21171         (struct statfs64): Likewise.
21172         (_STATFS_F_FLAGS): Define.
21173         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21174         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21175         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21176         (ST_VALID): Define locally.
21177         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21178         __statvfs_getflags, use the provided value.
21179         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21180         __ASSUME_STATFS_F_FLAGS.
21181
21182         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21183
21184         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21185         Add sys/fanotify.h.
21186         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21187         fanotify_mask for GLIBC_2.13.
21188         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21189         fanotify_init and fanotify_mark.
21190         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21191         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21192
21193         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21194         Add prlimit.
21195         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21196         prlimit64 for GLIBC_2.13.
21197         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21198         prlimit64.
21199         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21200         syscall.
21201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21202         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21203         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21204         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21205         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21206         add prlimit alias.
21207         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21208
21209         [BZ #11903]
21210         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21211         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21212
21213         * nss/Makefile: Add rules to build and run tst-nss-test1.
21214         * shlib-versions: Add entry for libnss_test1.
21215         * nss/nss_test1.c: New file.
21216         * nss/tst-nss-test1.c: New file.
21217
21218         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21219         (__nss_configure_lookup): Set appropriate entry in
21220         __nss_configure_lookup to true.
21221         * nss/nsswitch.h: Define enum with indeces of databases in
21222         databases and __nss_database_custom arrays.  Declare
21223         __nss_database_custom.
21224         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21225         to avoid using nscd when custom rules are installed.
21226         * nss/getXXbyYY_r.c: Likewise.
21227         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21228
21229         * nss/nss_files/files-parse.c: Whitespace fixes.
21230
21231 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21232
21233         [BZ #11883]
21234         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21235         * posix/fnmatch_loop.c: Likewise.
21236
21237 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21238
21239         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21240         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21241         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21242         * Versions.def [GLIBC_2.13]: Add.
21243
21244 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21245
21246         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21247         Also fail if tpwd after pwuid call is NULL.
21248
21249 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21250
21251         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21252         when converting to ms.
21253
21254 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21255
21256         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21257         EOPNOTSUPP errors with ENOTTY.
21258         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21259         EOPNOTSUPP errors with ENOTTY.
21260
21261 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21262
21263         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21264         Add strcasecmp_l-ssse3.
21265         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21266         strcasecmp.
21267         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21268         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21269         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21270
21271 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21272
21273         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21274
21275         * string/Makefile (strop-tests): Add strcasecmp.
21276         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21277         strcasecmp_l-nonascii.
21278         (gen-as-const-headers): Add locale-defines.sym.
21279         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21280         * sysdeps/x86_64/strcasecmp.S: New file.
21281         * sysdeps/x86_64/strcasecmp_l.S: New file.
21282         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21283         * sysdeps/x86_64/locale-defines.sym: New file.
21284         * string/test-strcasecmp.c: New file.
21285
21286         * string/test-strcasestr.c: Test both ends of the range of characters.
21287         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21288
21289 2010-07-29  Roland McGrath  <roland@redhat.com>
21290
21291         [BZ #11856]
21292         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21293
21294 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21295
21296         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21297         for ld.so.
21298
21299 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21300
21301         * manual/memory.texi (Malloc Tunable Parameters): Document
21302         M_PERTURB.
21303
21304 2010-07-26  Roland McGrath  <roland@redhat.com>
21305
21306         [BZ #11840]
21307         * configure.in (-fgnu89-inline check): Set and substitute
21308         gnu89_inline, not libc_cv_gnu89_inline.
21309         * configure: Regenerated.
21310         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21311
21312 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21313
21314         * string/test-strnlen.c: New file.
21315         * string/Makefile (strop-tests): Add strnlen.
21316         * string/tester.c (test_strnlen): Add a few more test cases.
21317         * string/tst-strlen.c: Better error reporting.
21318
21319         * sysdeps/x86_64/strnlen.S: New file.
21320
21321 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21322
21323         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21324         lower-latency instructions.
21325
21326 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21327
21328         * string/test-strcasestr.c: New file.
21329         * string/test-strstr.c: New file.
21330         * string/Makefile (strop-tests): Add strstr and strcasestr.
21331         * string/str-two-way.h: Don't undefine MAX.
21332         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21333
21334 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21335
21336         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21337         strcasestr-nonascii.
21338         (CFLAGS-strcasestr-nonascii.c): Define.
21339         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21340         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21341         Remove unused attribute.
21342
21343 2010-07-20  Roland McGrath  <roland@redhat.com>
21344
21345         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21346         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21347         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21348         like LD_HWCAP_MASK can disable hwcaps.
21349
21350 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21351
21352         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21353
21354 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21355
21356         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21357         call in strcasestr.
21358         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21359         __strcasestr_sse42_nonascii.
21360         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21361         strcasestr-nonascii.c.
21362         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21363
21364 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21365
21366         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21367         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21368         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21369         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21370
21371 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21372
21373         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21374         fcntl.
21375
21376 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21377
21378         [BZ #11577]
21379         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21380         dl_signal_cerror.
21381
21382 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21383
21384         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21385         _PC_PIPE_BUF using F_GETPIPE_SZ.
21386
21387 2010-07-05  Roland McGrath  <roland@redhat.com>
21388
21389         * manual/arith.texi (Rounding Functions): Fix rint description
21390         implicit in round description.
21391
21392 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21393
21394         * elf/Makefile: Fix linking for a few tests to make recent linker
21395         happy.
21396
21397 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21398
21399         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21400         $(common-objpfx)libc_nonshared.a.
21401
21402 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21403
21404         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21405         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21406         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21407         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21408         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21409         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21410         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21411         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21426         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21427         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21428         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21429         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21430         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21431         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21432         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21433         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21434         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21435         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21436         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21437         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21452
21453 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21454
21455         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21456         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21457         * string/memmove.c (memmove): Renamed to ...
21458         (MEMMOVE): ...this.  Default to memmove.
21459         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21460         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21461         (END_CHK): Define.
21462         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21463         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21464         mempcpy-ssse3-back memmove-ssse3-back.
21465         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21466         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21467         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21468         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21469         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21470         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21471         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21472         * sysdeps/x86_64/multiarch/memmove.c: New file.
21473         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21474         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21475         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21476         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21477         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21478         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21479         Define.
21480         (index_Fast_Copy_Backward): Define.
21481         (HAS_ARCH_FEATURE): Define.
21482         (HAS_FAST_REP_STRING): Define.
21483         (HAS_FAST_COPY_BACKWARD): Define.
21484
21485 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21486
21487         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21488         Restore proper fallback handling.
21489
21490 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21491
21492         [BZ #11701]
21493         * posix/group_member.c (__group_member): Correct checking loop.
21494
21495         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21496         OOM in getpwuid_r correctly.  Return error number when the caller
21497         should return, otherwise -1.
21498         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21499         call returning > 0 value.
21500         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21501
21502 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21503
21504         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21505         libc_nonshared.a from targets in modules-names.
21506
21507 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21508
21509         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21510         requires it.
21511
21512 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21513
21514         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21515         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21516         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21517         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21518
21519 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21520
21521         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21522
21523 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21524
21525         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21526         and F_GETPIPE_SZ.
21527         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21528         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21529         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21530         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21531         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21532         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21533
21534 2010-06-14  Roland McGrath  <roland@redhat.com>
21535
21536         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21537
21538 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21539
21540         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21541         __REDIRECT followed by __THROW.
21542         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21543         * posix/getopt.h (getopt): Likewise.
21544
21545 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21546
21547         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21548         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21549         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21550         in AT_FLAGS.
21551         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21552         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21553
21554 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21555
21556         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21557
21558 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21559
21560         [BZ #11640]
21561         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21562         Properly check family and model.
21563
21564 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21565
21566         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21567
21568 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21569
21570         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21571
21572 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21573
21574         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21575         symbol reference.
21576
21577 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21578
21579         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21580         symbol reference.
21581
21582 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21583
21584         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21585         and internal_recvmmsg.
21586         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21587         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21588         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21589         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21590
21591         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21592         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21593         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21594
21595 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21596
21597         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21598
21599 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21600
21601         POWER7 optimizations.
21602         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21603         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21604
21605 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21606
21607         * version.h: Update for 2.13 development version.
21608
21609 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21610
21611         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21612         exceptions.  Return 0.
21613
21614 2010-05-07  Roland McGrath  <roland@redhat.com>
21615
21616         * elf/ldconfig.c (main): Add a const.
21617
21618 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21619
21620         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21621         (args_options): Add no-idn option.
21622         (ahosts_keys_int): Add idn_flags to ai_flags.
21623         (parse_option): Handle 'i' option to clear idn_flags.
21624
21625         * malloc/malloc.c (_int_free): Possible race in the most recently
21626         added check.  Only act on the data if no current modification
21627         happened.
21628
21629 See ChangeLog.17 for earlier changes.