[BZ #3665] Regenerate sysdeps/mach/hurd/bits/errno.h.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2
3         [BZ #3665]
4         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5
6 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
7
8         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
9         PTR_DEMANGLE.
10
11         [BZ #5246]
12         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
13         PTR_DEMANGLE.
14
15 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
16
17         [BZ #14797]
18         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
19         definitely overflow as x * y not x * y + z.
20         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
21         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
22         * math/libm-test.inc (fma_test): Add more tests.
23         (fma_test_towardzero): Likewise.
24         (fma_test_downward): Likewise.
25         (fma_test_upward): Likewise.
26
27 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
28
29         [BZ #157]
30
31         * include/stub-tag.h: Remove file.
32         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
33         '#include' of it.
34         * manual/maint.texi (Porting): Don't reference it.
35         * Makerules ($(objpfx)stubs): Likewise.
36         * dirent/closedir.c: Don't include <stub-tag.h>.
37         * dirent/dirfd.c: Likewise.
38         * dirent/fdopendir.c: Likewise.
39         * dirent/getdents.c: Likewise.
40         * dirent/getdents64.c: Likewise.
41         * dirent/opendir.c: Likewise.
42         * dirent/readdir.c: Likewise.
43         * dirent/readdir64.c: Likewise.
44         * dirent/readdir64_r.c: Likewise.
45         * dirent/readdir_r.c: Likewise.
46         * dirent/rewinddir.c: Likewise.
47         * dirent/seekdir.c: Likewise.
48         * dirent/telldir.c: Likewise.
49         * gmon/profil.c: Likewise.
50         * grp/setgroups.c: Likewise.
51         * inet/if_index.c: Likewise.
52         * io/access.c: Likewise.
53         * io/chdir.c: Likewise.
54         * io/chmod.c: Likewise.
55         * io/chown.c: Likewise.
56         * io/close.c: Likewise.
57         * io/dup.c: Likewise.
58         * io/dup2.c: Likewise.
59         * io/dup3.c: Likewise.
60         * io/euidaccess.c: Likewise.
61         * io/faccessat.c: Likewise.
62         * io/fchdir.c: Likewise.
63         * io/fchmod.c: Likewise.
64         * io/fchmodat.c: Likewise.
65         * io/fchown.c: Likewise.
66         * io/fchownat.c: Likewise.
67         * io/fcntl.c: Likewise.
68         * io/flock.c: Likewise.
69         * io/fstatfs.c: Likewise.
70         * io/fstatfs64.c: Likewise.
71         * io/fstatvfs.c: Likewise.
72         * io/fstatvfs64.c: Likewise.
73         * io/futimens.c: Likewise.
74         * io/fxstat.c: Likewise.
75         * io/fxstat64.c: Likewise.
76         * io/fxstatat.c: Likewise.
77         * io/fxstatat64.c: Likewise.
78         * io/getcwd.c: Likewise.
79         * io/isatty.c: Likewise.
80         * io/lchmod.c: Likewise.
81         * io/lchown.c: Likewise.
82         * io/link.c: Likewise.
83         * io/linkat.c: Likewise.
84         * io/lseek.c: Likewise.
85         * io/lseek64.c: Likewise.
86         * io/lxstat64.c: Likewise.
87         * io/mkdir.c: Likewise.
88         * io/mkdirat.c: Likewise.
89         * io/mkfifo.c: Likewise.
90         * io/mkfifoat.c: Likewise.
91         * io/open.c: Likewise.
92         * io/open64.c: Likewise.
93         * io/openat.c: Likewise.
94         * io/openat64.c: Likewise.
95         * io/pipe.c: Likewise.
96         * io/pipe2.c: Likewise.
97         * io/poll.c: Likewise.
98         * io/posix_fadvise.c: Likewise.
99         * io/posix_fadvise64.c: Likewise.
100         * io/posix_fallocate.c: Likewise.
101         * io/posix_fallocate64.c: Likewise.
102         * io/read.c: Likewise.
103         * io/readlink.c: Likewise.
104         * io/readlinkat.c: Likewise.
105         * io/rmdir.c: Likewise.
106         * io/sendfile.c: Likewise.
107         * io/sendfile64.c: Likewise.
108         * io/statfs.c: Likewise.
109         * io/statfs64.c: Likewise.
110         * io/statvfs.c: Likewise.
111         * io/statvfs64.c: Likewise.
112         * io/symlink.c: Likewise.
113         * io/symlinkat.c: Likewise.
114         * io/ttyname.c: Likewise.
115         * io/ttyname_r.c: Likewise.
116         * io/umask.c: Likewise.
117         * io/unlink.c: Likewise.
118         * io/unlinkat.c: Likewise.
119         * io/utime.c: Likewise.
120         * io/utimensat.c: Likewise.
121         * io/write.c: Likewise.
122         * io/xmknod.c: Likewise.
123         * io/xmknodat.c: Likewise.
124         * io/xstat.c: Likewise.
125         * io/xstat64.c: Likewise.
126         * login/getpt.c: Likewise.
127         * login/grantpt.c: Likewise.
128         * login/unlockpt.c: Likewise.
129         * math/e_acoshl.c: Likewise.
130         * math/e_acosl.c: Likewise.
131         * math/e_asinl.c: Likewise.
132         * math/e_atan2l.c: Likewise.
133         * math/e_atanhl.c: Likewise.
134         * math/e_coshl.c: Likewise.
135         * math/e_expl.c: Likewise.
136         * math/e_fmodl.c: Likewise.
137         * math/e_gammal_r.c: Likewise.
138         * math/e_hypotl.c: Likewise.
139         * math/e_j0l.c: Likewise.
140         * math/e_j1l.c: Likewise.
141         * math/e_jnl.c: Likewise.
142         * math/e_lgammal_r.c: Likewise.
143         * math/e_log10l.c: Likewise.
144         * math/e_log2l.c: Likewise.
145         * math/e_logl.c: Likewise.
146         * math/e_powl.c: Likewise.
147         * math/e_rem_pio2l.c: Likewise.
148         * math/e_sinhl.c: Likewise.
149         * math/e_sqrtl.c: Likewise.
150         * math/fclrexcpt.c: Likewise.
151         * math/fedisblxcpt.c: Likewise.
152         * math/feenablxcpt.c: Likewise.
153         * math/fegetenv.c: Likewise.
154         * math/fegetexcept.c: Likewise.
155         * math/fegetround.c: Likewise.
156         * math/feholdexcpt.c: Likewise.
157         * math/fesetenv.c: Likewise.
158         * math/fesetround.c: Likewise.
159         * math/feupdateenv.c: Likewise.
160         * math/fgetexcptflg.c: Likewise.
161         * math/fraiseexcpt.c: Likewise.
162         * math/fsetexcptflg.c: Likewise.
163         * math/ftestexcept.c: Likewise.
164         * math/k_cosl.c: Likewise.
165         * math/k_rem_pio2l.c: Likewise.
166         * math/k_sinl.c: Likewise.
167         * math/k_tanl.c: Likewise.
168         * math/s_asinhl.c: Likewise.
169         * math/s_atanl.c: Likewise.
170         * math/s_cbrtl.c: Likewise.
171         * math/s_erfl.c: Likewise.
172         * math/s_expm1l.c: Likewise.
173         * math/s_log1pl.c: Likewise.
174         * math/s_tanhl.c: Likewise.
175         * misc/acct.c: Likewise.
176         * misc/brk.c: Likewise.
177         * misc/chflags.c: Likewise.
178         * misc/chroot.c: Likewise.
179         * misc/fchflags.c: Likewise.
180         * misc/fgetxattr.c: Likewise.
181         * misc/flistxattr.c: Likewise.
182         * misc/fremovexattr.c: Likewise.
183         * misc/fsetxattr.c: Likewise.
184         * misc/fsync.c: Likewise.
185         * misc/ftruncate.c: Likewise.
186         * misc/futimes.c: Likewise.
187         * misc/futimesat.c: Likewise.
188         * misc/getdomain.c: Likewise.
189         * misc/getdtsz.c: Likewise.
190         * misc/gethostid.c: Likewise.
191         * misc/gethostname.c: Likewise.
192         * misc/getloadavg.c: Likewise.
193         * misc/getpagesize.c: Likewise.
194         * misc/getsysstats.c: Likewise.
195         * misc/getxattr.c: Likewise.
196         * misc/gtty.c: Likewise.
197         * misc/ioctl.c: Likewise.
198         * misc/lgetxattr.c: Likewise.
199         * misc/listxattr.c: Likewise.
200         * misc/llistxattr.c: Likewise.
201         * misc/lremovexattr.c: Likewise.
202         * misc/lsetxattr.c: Likewise.
203         * misc/lutimes.c: Likewise.
204         * misc/madvise.c: Likewise.
205         * misc/mincore.c: Likewise.
206         * misc/mlock.c: Likewise.
207         * misc/mlockall.c: Likewise.
208         * misc/mmap.c: Likewise.
209         * misc/mprotect.c: Likewise.
210         * misc/msync.c: Likewise.
211         * misc/munlock.c: Likewise.
212         * misc/munlockall.c: Likewise.
213         * misc/munmap.c: Likewise.
214         * misc/preadv.c: Likewise.
215         * misc/preadv64.c: Likewise.
216         * misc/ptrace.c: Likewise.
217         * misc/pwritev.c: Likewise.
218         * misc/pwritev64.c: Likewise.
219         * misc/readv.c: Likewise.
220         * misc/reboot.c: Likewise.
221         * misc/remap_file_pages.c: Likewise.
222         * misc/removexattr.c: Likewise.
223         * misc/revoke.c: Likewise.
224         * misc/select.c: Likewise.
225         * misc/setdomain.c: Likewise.
226         * misc/setegid.c: Likewise.
227         * misc/seteuid.c: Likewise.
228         * misc/sethostid.c: Likewise.
229         * misc/sethostname.c: Likewise.
230         * misc/setregid.c: Likewise.
231         * misc/setreuid.c: Likewise.
232         * misc/setxattr.c: Likewise.
233         * misc/sstk.c: Likewise.
234         * misc/stty.c: Likewise.
235         * misc/swapoff.c: Likewise.
236         * misc/swapon.c: Likewise.
237         * misc/sync.c: Likewise.
238         * misc/syncfs.c: Likewise.
239         * misc/syscall.c: Likewise.
240         * misc/truncate.c: Likewise.
241         * misc/ualarm.c: Likewise.
242         * misc/usleep.c: Likewise.
243         * misc/ustat.c: Likewise.
244         * misc/utimes.c: Likewise.
245         * misc/vhangup.c: Likewise.
246         * misc/writev.c: Likewise.
247         * posix/_exit.c: Likewise.
248         * posix/alarm.c: Likewise.
249         * posix/execve.c: Likewise.
250         * posix/fexecve.c: Likewise.
251         * posix/fork.c: Likewise.
252         * posix/fpathconf.c: Likewise.
253         * posix/getaddrinfo.c: Likewise.
254         * posix/getegid.c: Likewise.
255         * posix/geteuid.c: Likewise.
256         * posix/getgid.c: Likewise.
257         * posix/getgroups.c: Likewise.
258         * posix/getlogin.c: Likewise.
259         * posix/getlogin_r.c: Likewise.
260         * posix/getpgid.c: Likewise.
261         * posix/getpid.c: Likewise.
262         * posix/getppid.c: Likewise.
263         * posix/getresgid.c: Likewise.
264         * posix/getresuid.c: Likewise.
265         * posix/getsid.c: Likewise.
266         * posix/getuid.c: Likewise.
267         * posix/glob64.c: Likewise.
268         * posix/nanosleep.c: Likewise.
269         * posix/pathconf.c: Likewise.
270         * posix/pause.c: Likewise.
271         * posix/posix_madvise.c: Likewise.
272         * posix/pread.c: Likewise.
273         * posix/pread64.c: Likewise.
274         * posix/pwrite.c: Likewise.
275         * posix/pwrite64.c: Likewise.
276         * posix/sched_getaffinity.c: Likewise.
277         * posix/sched_getp.c: Likewise.
278         * posix/sched_gets.c: Likewise.
279         * posix/sched_primax.c: Likewise.
280         * posix/sched_primin.c: Likewise.
281         * posix/sched_rr_gi.c: Likewise.
282         * posix/sched_setaffinity.c: Likewise.
283         * posix/sched_setp.c: Likewise.
284         * posix/sched_sets.c: Likewise.
285         * posix/sched_yield.c: Likewise.
286         * posix/setgid.c: Likewise.
287         * posix/setlogin.c: Likewise.
288         * posix/setpgid.c: Likewise.
289         * posix/setresgid.c: Likewise.
290         * posix/setresuid.c: Likewise.
291         * posix/setsid.c: Likewise.
292         * posix/setuid.c: Likewise.
293         * posix/sleep.c: Likewise.
294         * posix/spawni.c: Likewise.
295         * posix/sysconf.c: Likewise.
296         * posix/times.c: Likewise.
297         * posix/wait.c: Likewise.
298         * posix/wait3.c: Likewise.
299         * posix/wait4.c: Likewise.
300         * posix/waitpid.c: Likewise.
301         * resolv/gai_sigqueue.c: Likewise.
302         * resource/getpriority.c: Likewise.
303         * resource/getrlimit.c: Likewise.
304         * resource/getrusage.c: Likewise.
305         * resource/nice.c: Likewise.
306         * resource/setpriority.c: Likewise.
307         * resource/setrlimit.c: Likewise.
308         * resource/ulimit.c: Likewise.
309         * rt/aio_cancel.c: Likewise.
310         * rt/aio_fsync.c: Likewise.
311         * rt/aio_read.c: Likewise.
312         * rt/aio_sigqueue.c: Likewise.
313         * rt/aio_suspend.c: Likewise.
314         * rt/aio_write.c: Likewise.
315         * rt/clock_getres.c: Likewise.
316         * rt/clock_gettime.c: Likewise.
317         * rt/clock_nanosleep.c: Likewise.
318         * rt/clock_settime.c: Likewise.
319         * rt/lio_listio.c: Likewise.
320         * rt/mq_close.c: Likewise.
321         * rt/mq_getattr.c: Likewise.
322         * rt/mq_notify.c: Likewise.
323         * rt/mq_open.c: Likewise.
324         * rt/mq_receive.c: Likewise.
325         * rt/mq_send.c: Likewise.
326         * rt/mq_setattr.c: Likewise.
327         * rt/mq_timedreceive.c: Likewise.
328         * rt/mq_timedsend.c: Likewise.
329         * rt/mq_unlink.c: Likewise.
330         * rt/shm_open.c: Likewise.
331         * rt/shm_unlink.c: Likewise.
332         * rt/timer_create.c: Likewise.
333         * rt/timer_delete.c: Likewise.
334         * rt/timer_getoverr.c: Likewise.
335         * rt/timer_gettime.c: Likewise.
336         * rt/timer_settime.c: Likewise.
337         * setjmp/__longjmp.c: Likewise.
338         * setjmp/setjmp.c: Likewise.
339         * signal/kill.c: Likewise.
340         * signal/killpg.c: Likewise.
341         * signal/raise.c: Likewise.
342         * signal/sigaction.c: Likewise.
343         * signal/sigaltstack.c: Likewise.
344         * signal/sigblock.c: Likewise.
345         * signal/sigignore.c: Likewise.
346         * signal/sigintr.c: Likewise.
347         * signal/signal.c: Likewise.
348         * signal/sigpause.c: Likewise.
349         * signal/sigpending.c: Likewise.
350         * signal/sigqueue.c: Likewise.
351         * signal/sigreturn.c: Likewise.
352         * signal/sigset.c: Likewise.
353         * signal/sigsetmask.c: Likewise.
354         * signal/sigstack.c: Likewise.
355         * signal/sigsuspend.c: Likewise.
356         * signal/sigtimedwait.c: Likewise.
357         * signal/sigvec.c: Likewise.
358         * signal/sigwait.c: Likewise.
359         * signal/sigwaitinfo.c: Likewise.
360         * signal/sysv_signal.c: Likewise.
361         * socket/accept.c: Likewise.
362         * socket/accept4.c: Likewise.
363         * socket/bind.c: Likewise.
364         * socket/connect.c: Likewise.
365         * socket/getpeername.c: Likewise.
366         * socket/getsockname.c: Likewise.
367         * socket/getsockopt.c: Likewise.
368         * socket/isfdtype.c: Likewise.
369         * socket/listen.c: Likewise.
370         * socket/recv.c: Likewise.
371         * socket/recvfrom.c: Likewise.
372         * socket/recvmsg.c: Likewise.
373         * socket/send.c: Likewise.
374         * socket/sendmsg.c: Likewise.
375         * socket/sendto.c: Likewise.
376         * socket/setsockopt.c: Likewise.
377         * socket/shutdown.c: Likewise.
378         * socket/sockatmark.c: Likewise.
379         * socket/socket.c: Likewise.
380         * socket/socketpair.c: Likewise.
381         * stdio-common/ctermid.c: Likewise.
382         * stdio-common/cuserid.c: Likewise.
383         * stdio-common/remove.c: Likewise.
384         * stdio-common/rename.c: Likewise.
385         * stdio-common/renameat.c: Likewise.
386         * stdio-common/tempname.c: Likewise.
387         * stdlib/getcontext.c: Likewise.
388         * stdlib/makecontext.c: Likewise.
389         * stdlib/setcontext.c: Likewise.
390         * stdlib/swapcontext.c: Likewise.
391         * stdlib/system.c: Likewise.
392         * streams/fattach.c: Likewise.
393         * streams/fdetach.c: Likewise.
394         * streams/getmsg.c: Likewise.
395         * streams/getpmsg.c: Likewise.
396         * streams/putmsg.c: Likewise.
397         * streams/putpmsg.c: Likewise.
398         * sysdeps/unix/bsd/getpt.c: Likewise.
399         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
400         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
401         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
403         Likewise.
404         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
405         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
406         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
407         * sysvipc/msgctl.c: Likewise.
408         * sysvipc/msgget.c: Likewise.
409         * sysvipc/msgrcv.c: Likewise.
410         * sysvipc/msgsnd.c: Likewise.
411         * sysvipc/semctl.c: Likewise.
412         * sysvipc/semget.c: Likewise.
413         * sysvipc/semop.c: Likewise.
414         * sysvipc/semtimedop.c: Likewise.
415         * sysvipc/shmat.c: Likewise.
416         * sysvipc/shmctl.c: Likewise.
417         * sysvipc/shmdt.c: Likewise.
418         * sysvipc/shmget.c: Likewise.
419         * termios/tcdrain.c: Likewise.
420         * termios/tcflow.c: Likewise.
421         * termios/tcflush.c: Likewise.
422         * termios/tcgetattr.c: Likewise.
423         * termios/tcgetpgrp.c: Likewise.
424         * termios/tcsendbrk.c: Likewise.
425         * termios/tcsetattr.c: Likewise.
426         * termios/tcsetpgrp.c: Likewise.
427         * time/adjtime.c: Likewise.
428         * time/clock.c: Likewise.
429         * time/getitimer.c: Likewise.
430         * time/gettimeofday.c: Likewise.
431         * time/setitimer.c: Likewise.
432         * time/settimeofday.c: Likewise.
433         * time/stime.c: Likewise.
434         * time/time.c: Likewise.
435
436 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
437
438         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
439         /usr/old/bin.
440
441         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
442         instead of spaces.
443         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
444
445 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
446
447         [BZ #14796]
448         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
449         FE_TONEAREST before applying Dekker multiplication and Knuth
450         addition.  Clear inexact exceptions and check for exact zero
451         results afterwards.
452         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
453         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
454         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
455         * math/libm-test.inc (fma_test): Add more tests.
456         (fma_test_towardzero): Likewise.
457         (fma_test_downward): Likewise.
458         (fma_test_upward): Likewise.
459         * sysdeps/generic/math_private.h (default_libc_fesetround): New
460         function.
461         (libc_fesetround): New macro.
462         (libc_fesetroundf): Likewise.
463         (libc_fesetroundl): Likewise.
464         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
465         function.
466         (libc_fesetround_387): Likewise.
467         (libc_fesetroundf): New macro.
468         (libc_fesetround): Likewise.
469         (libc_fesetroundl): Likewise.
470         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
471         function.
472         (libc_fesetroundf): New macro.
473         (libc_fesetround): Likewise.
474         (libc_fesetroundl): Likewise.
475         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
476         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
477         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
478         libm_hidden_ver.
479         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
480         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
481         libm_hidden_def.
482         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
483         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
484         libm_hidden_ver.
485         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
486         libm_hidden_def.
487
488         [BZ #3439]
489         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
490         integer constant usable in #if and use that to give value to enum
491         constant.
492         (FE_DIVBYZERO): Likewise.
493         (FE_UNDERFLOW): Likewise.
494         (FE_OVERFLOW): Likewise.
495         (FE_INVALID): Likewise.
496         (FE_INVALID_SNAN): Likewise.
497         (FE_INVALID_ISI): Likewise.
498         (FE_INVALID_IDI): Likewise.
499         (FE_INVALID_ZDZ): Likewise.
500         (FE_INVALID_IMZ): Likewise.
501         (FE_INVALID_COMPARE): Likewise.
502         (FE_INVALID_SOFTWARE): Likewise.
503         (FE_INVALID_SQRT): Likewise.
504         (FE_INVALID_INTEGER_CONVERSION): Likewise.
505         (FE_TONEAREST): Likewise.
506         (FE_TOWARDZERO): Likewise.
507         (FE_UPWARD): Likewise.
508         (FE_DOWNWARD): Likewise.
509         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
510         (FE_DIVBYZERO): Likewise.
511         (FE_OVERFLOW): Likewise.
512         (FE_UNDERFLOW): Likewise.
513         (FE_INEXACT): Likewise.
514         (FE_TONEAREST): Likewise.
515         (FE_DOWNWARD): Likewise.
516         (FE_UPWARD): Likewise.
517         (FE_TOWARDZERO): Likewise.
518         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
519         (FE_UNDERFLOW): Likewise.
520         (FE_OVERFLOW): Likewise.
521         (FE_DIVBYZERO): Likewise.
522         (FE_INVALID): Likewise.
523         (FE_TONEAREST): Likewise.
524         (FE_TOWARDZERO): Likewise.
525         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
526         (FE_OVERFLOW): Likewise.
527         (FE_UNDERFLOW): Likewise.
528         (FE_DIVBYZERO): Likewise.
529         (FE_INEXACT): Likewise.
530         (FE_TONEAREST): Likewise.
531         (FE_TOWARDZERO): Likewise.
532         (FE_UPWARD): Likewise.
533         (FE_DOWNWARD): Likewise.
534         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
535         (FE_DIVBYZERO): Likewise.
536         (FE_OVERFLOW): Likewise.
537         (FE_UNDERFLOW): Likewise.
538         (FE_INEXACT): Likewise.
539         (FE_TONEAREST): Likewise.
540         (FE_DOWNWARD): Likewise.
541         (FE_UPWARD): Likewise.
542         (FE_TOWARDZERO): Likewise.
543
544 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
545
546         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
547
548 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
549
550         * scripts/cross-test-ssh.sh (command): Use newlines to separate
551         commands.  Quote $PWD.
552         (blacklist_exports): Don't use remove_newlines.  Replace "declare
553         -x" by "export".
554         (remove_newlines): Remove.
555
556 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
557
558         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
559         * stdlib/stdlib.h (atof): Moved to ...
560         * include/bits/stdlib-float.h: Here.  New file.
561         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
562         * stdlib/bits/stdlib-float.h: New file.
563         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
564         -mno-sse -mno-mmx.
565         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
566         <xmmintrin.h>.
567
568 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
569
570         * conform/conformtest.pl (@headers): Add fenv.h.
571         * conform/data/fenv.h-data: New file.
572         * include/fenv.h [_ISOMAC]: Disable all contents of file except
573         include of <math/fenv.h>.
574
575         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
576         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
577         && !UNIX98].  Enables tests for XOPEN2K8.
578         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
579         POSIX2008]: Likewise.
580
581         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
582         (struct rusage): Do not expect type or its members.
583
584         [BZ #3439]
585         * math/math.h (FP_NAN): Define macro to integer constant usable in
586         #if and use that to give value to enum constant.
587         (FP_INFINITE): Likewise.
588         (FP_ZERO): Likewise.
589         (FP_SUBNORMAL): Likewise.
590         (FP_NORMAL): Likewise.
591
592 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
593
594         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
595         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
596         arguments.
597
598 2012-11-02  Roland McGrath  <roland@hack.frob.com>
599
600         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
601         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
602         autoconf-time if not.
603         * configure.in: Remove AC_PREREQ.
604
605 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
606
607         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
608         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
609         of the internal implementation.
610
611 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
612
613         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
614         except include of <misc/sys/syslog.h>.
615
616 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
617
618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
619         function returns with a NULL context exit with zero.
620
621 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
622
623         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
624
625 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
626
627         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
628         (run_program_cmd): This.
629         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
630         (tst_langinfo): New variable.  Use it.
631
632 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
633
634         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
635         floating point opcodes.
636
637 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
638
639         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
640         variable.
641
642         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
643
644         * sysdeps/mach/hurd/powerpc: Remove directory.
645         * sysdeps/mach/powerpc: Likewise.
646
647 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
648
649         * scripts/check-local-headers.sh: Ignore c++ headers.
650
651 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
652
653         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
654         __libc_cleanup_region_start argument.
655
656 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
657
658         [BZ #14784]
659         [BZ #14785]
660         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
661         x * y using scaling, not as x * y + z.
662         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
663         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
664         * math/libm-test.inc (fma_test): Add more tests.
665         (fma_test_towardzero): Likewise.
666         (fma_test_downward): Likewise.
667         (fma_test_upward): Likewise.
668
669 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
670
671         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
672
673 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
674
675         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
676         New variable.
677
678 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
679
680         * rt/tst-shm.c (worker): Correct checking for mmap failure.
681
682 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
683
684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
685         Fix sort order.
686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
687         Likewise.
688
689 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
690
691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
692         Fix the order of the list for glibc 2.17.
693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
694         Likewise.
695
696 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
697
698         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
699
700 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
701
702         [BZ #14610]
703         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
704         for low part of x being zero before using __atanl (y).
705         * math/libm-test.inc (atan2_test): Add another test.
706
707         * manual/install.texi (Configuring and compiling): Document
708         general use of test-wrapper and test-wrapper-env.
709         * INSTALL: Regenerated.
710
711         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
712         (__fma): Do not extract and scale down low bits on after-rounding
713         systems when result rounded to normal precision would have normal
714         exponent.
715         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
716         (__fmal): Do not extract and scale down low bits on after-rounding
717         systems when result rounded to normal precision would have normal
718         exponent.
719         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
720         (__fmal): Do not extract and scale down low bits on after-rounding
721         systems when result rounded to normal precision would have normal
722         exponent.
723         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
724         macro.
725         (fma_test): Add more tests.
726         (fma_test_towardzero): Likewise.
727         (fma_test_downward): Likewise.
728         (fma_test_upward): Likewise.
729
730 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
731
732         * sysdeps/i386/tininess.h: Renamed to ...
733         * sysdeps/x86/tininess.h: This.
734         * sysdeps/x86_64/tininess.h: Removed.
735
736 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
737
738         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
739         input.  Use $(build-program-cmd).
740         ($(objpfx)tst-array1-static.out): Likewise.
741         ($(objpfx)tst-array2.out): Likewise.
742         ($(objpfx)tst-array3.out): Likewise.
743         ($(objpfx)tst-array4.out): Likewise.
744         ($(objpfx)tst-array5.out): Likewise.
745         ($(objpfx)tst-array5-static.out): Likewise.
746
747 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
748
749         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
750         if defined.
751
752         * nss/nsswitch.h (nss_interface_function): Provide new
753         macro for use with NSS functions.
754         * grp/initgroups.c: Use new macro.
755         * nss/getXXbyYY.c: Likewise.
756         * nss/getXXbyYY_r.c: Likewise.
757         * nss/getXXent.c: Likewise.
758         * nss/getXXent_r.c: Likewise.
759         * sysdeps/posix/getaddrinfo.c: Likewise.
760
761 2012-10-30  Andreas Jaeger  <aj@suse.de>
762
763         * po/ru.po: Update Russion translation from translation project.
764
765 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
766
767         [BZ #14152]
768         [BZ #14783]
769         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
770         result and shift together with sticky bit instead of replicating
771         round-to-nearest rounding.
772         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
773         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
774         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
775         missing underflow exceptions.
776         (fma_test_towardzero): Add more tests.
777         (fma_test_downward): Likewise.
778         (fma_test_upward): Likewise.
779
780         [BZ #14047]
781         * sysdeps/generic/tininess.h: New file.
782         * sysdeps/i386/tininess.h: Likewise.
783         * sysdeps/sh/tininess.h: Likewise.
784         * sysdeps/x86_64/tininess.h: Likewise.
785         * stdlib/tst-strtod-underflow.c: Likewise.
786         * stdlib/tst-tininess.c: Likewise.
787         * stdlib/strtod_l.c: Include <tininess.h>.
788         (round_and_return): Do not set errno for exact underflow cases.
789         Force an underflow exception when setting errno for underflow.
790         Determine underflow based on rounding to normal precision if
791         TININESS_AFTER_ROUNDING.
792         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
793         ERANGE for exact underflow cases.
794         * stdlib/Makefile (tests): Add tst-tininess and
795         tst-strtod-underflow.
796         ($(objpfx)tst-tininess): Use $(link-libm).
797         ($(objpfx)tst-strtod-underflow): Likewise.
798
799 2012-10-30  Andreas Jaeger  <aj@suse.de>
800
801         [BZ#14767]
802         * elf/Makefile (tests): Remove conditional for have-initfini-array
803         since this is now always required and the variable does not exist
804         anymore.
805         (tests-static): Likewise.
806         (modules-names): Likewise.
807
808         * po/eo.po: Add Esperanto translation from translation project.
809
810         * elf/tst-array1.c (fini_array): Make writeable so that it can be
811         merged with constructor/destructor.
812         (init_array): Likewise.
813         * elf/tst-array2dep.c (fini_array): Likewise.
814         (init_array): Likewise.
815
816 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
817
818         * manual/message.texi: Delete @cartouche tags.
819
820 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
821
822         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
823         EOPNOTSUPP.
824         * sysdeps/mach/hurd/fsync.c: Likewise.
825
826         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
827         [_POSIX_REALTIME_SIGNALS]: Change condition to
828         [_POSIX_REALTIME_SIGNALS > 0].
829
830 2012-10-27  Andreas Jaeger  <aj@suse.de>
831
832         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
833         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
834         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
835         [__WORDSIZE != 64]: Likewise.
836
837 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
838
839         *  iconvdata/tst-table.sh: Remove ${SHELL}.
840         *  iconvdata/tst-tables.sh: Likewise.
841
842 2012-10-25  David S. Miller  <davem@davemloft.net>
843
844         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
845         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
846         of strtoull.
847
848         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
849         ifunc-impl-list.c
850         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
851         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
852         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
853         file.
854
855 2012-10-25  Roland McGrath  <roland@hack.frob.com>
856
857         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
858         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
859         __getdirentries.
860
861 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
862             Jim Blandy  <jimb@codesourcery.com>
863
864         * scripts/cross-test-ssh.sh: New file.
865         * manual/install.texi (Configuring and compiling): Document use of
866         cross-test-ssh.sh.
867         * INSTALL: Regenerated.
868
869 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
870
871         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
872         EOPNOTSUPP.
873
874 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
875
876         * Makeconfig (run-program-prefix): Fix comment.
877
878 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
879             Jim Blandy  <jimb@codesourcery.com>
880
881         * Makeconfig (test-wrapper): New variable,
882         (test-wrapper-env): Likewise.
883         [$(cross-compiling) = yes && $(test-wrapper) != ""]
884         (run-built-tests): Define to yes.
885         (run-program-prefix): Use $(test-wrapper).
886         (built-program-cmd): Likewise.
887         * Rules (make-test-out): Use $(test-wrapper-env) and
888         $(host-built-program-cmd).
889         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
890         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
891         tst-pathopt.sh.
892         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
893         $(test-wrapper-env) to tst-rtld-load-self.sh.
894         ($(objpfx)order2.out): Use $(test-wrapper).
895         ($(objpfx)tst-initorder.out): Likewise.
896         ($(objpfx)tst-initorder2.out): Likewise.
897         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
898         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
899         (test_wrapper_env): New variable.  Use it to run ld.so.
900         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
901         Use it to run ld.so.
902         (test_wrapper_env): Likewise.
903         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
904         $(test-wrapper) to run-iconv-test.sh.
905         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
906         (ICONV): Use $test_wrapper.
907         * posix/Makefile ($(objpfx)globtest.out): Pass
908         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
909         globtest.sh, not $(run-program-prefix).
910         * posix/globtest.sh (run_via_rtld_prefix): New variable.
911         (test_wrapper): Likewise.
912         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
913         set together with run_via_rtld_prefix.
914         (run_program_prefix): Define in terms of test_wrapper and
915         run_via_rtld_prefix.
916
917 2012-10-24  Roland McGrath  <roland@hack.frob.com>
918
919         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
920         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
921         Targets removed.
922
923         [BZ #14743]
924         * include/time.h: Remove librt_hidden_proto (clock_gettime).
925         Declare __clock_getres, __clock_gettime, __clock_settime,
926         __clock_nanosleep, and __clock_getcpuclockid.
927         * rt/clock_gettime.c: Define __clock_gettime as an alias.
928         Remove librt_hidden_def (clock_gettime).
929         * sysdeps/unix/clock_gettime.c: Likewise.
930         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
931         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
932         * rt/clock_getres.c: Define __clock_getres as an alias.
933         * sysdeps/posix/clock_getres.c: Likewise.
934         * rt/clock_settime.c: Define __clock_settime as an alias.
935         * sysdeps/unix/clock_settime.c: Likewise.
936         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
937         * sysdeps/unix/clock_nanosleep.c: Likewise.
938         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
939         * rt/clock-compat.c: New file.
940         * rt/Makefile (librt-routines): Add clock-compat and move
941         $(clock-routines) to ...
942         (routines): ... here, new variable.
943         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
944         Don't add get_clockfreq here.
945         * rt/Versions (libc: GLIBC_2.17): New version set.
946         Add clock_* symbols here.
947         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
948         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
949         (GLIBC_2.17): Add clock_* symbols.
950         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
951         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
952         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
954         Likewise.
955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
956         Likewise.
957         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
958         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
959         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
960         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
961         * NEWS: Mention the move.
962
963         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
964         Use __open, __read, __close rather than their public counterparts.
965         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
966         (__get_clockfreq_via_cpuinfo): Likewise.
967         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
968         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
969
970         * config.h.in (HAVE_IFUNC): New #undef.
971         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
972         was successful.
973         * configure: Regenerated.
974
975 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
976
977         * configure.in: Move READELF check to start of file.
978         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
979         libc_cv_asm_gnu_indirect_function in the process.
980         * configure: Regenerated.
981
982 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
983
984         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
985         send the output to /dev/null.
986         (libc_cv_cc_with_libunwind): Likewise.
987         (libc_cv_as_noexecstack): Likewise.
988         * configure: Regenerate.
989
990 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
991
992         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
993
994         * posix/globtest.sh (TMPDIR): Do not set.
995         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
996         (testout): Likewise.
997
998 2012-10-24  Andreas Jaeger  <aj@suse.de>
999
1000         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1001         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1002         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1003         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1004         posix_fadvise64, posix_fallocate64.
1005
1006         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1007         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1008         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1009         Likewise.
1010         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1011         Likewise.
1012         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1013
1014         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1015         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1016         <bits/fcntl-linux.h>.
1017         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1018
1019         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1020         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1021         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1022         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1023         [__WORDSIZE != 64]: Likewise.
1024
1025 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1026
1027         * Makeconfig (run-built-tests): New variable.
1028         * Rules [$(cross-compiling) = yes]: Change condition to
1029         [$(run-built-tests) = no].
1030         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1031         to [$(run-built-tests) = yes].
1032         * elf/Makefile [$(cross-compiling) = no]: Likewise
1033         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1034         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1035         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1036         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1037         * io/Makefile [$(cross-compiling) = no]: Likewise.
1038         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1039         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1040         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1041         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1042         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1043         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1044         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1045         * string/Makefile [$(cross-compiling) = no]: Likewise.
1046
1047         * posix/Makefile ($(objpfx)globtest.out): Pass
1048         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1049         $(rtld-installed-name).
1050         * posix/globtest.sh (elf_objpfx): Remove variable.
1051         (rtld_installed_name): Likewise.
1052         (library_path): Likewise.
1053         (run_program_prefix): New variable.  Use for running globtest
1054         binary.
1055
1056 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1057             Joseph Myers  <joseph@codesourcery.com>
1058
1059         * Makeconfig (host-built-program-cmd): New variable.
1060         * elf/Makefile (tst-stackguard1-ARGS): Use
1061         $(host-built-program-cmd).
1062         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1063         (tst-spawn-ARGS): Likewise.
1064         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1065
1066 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1067             Jim Blandy  <jimb@codesourcery.com>
1068
1069         * Makeconfig (run-via-rtld-prefix): New variable.
1070         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1071         (built-program-cmd): Likewise.
1072
1073 2012-10-22  Andreas Jaeger  <aj@suse.de>
1074
1075         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1076         __O_RSYNC if it exists, otherwise to O_SYNC.
1077
1078 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1079             Joseph Myers  <joseph@codesourcery.com>
1080
1081         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1082         /dev/null.
1083         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1084         from /dev/null
1085         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1086         /dev/null.
1087
1088 2012-10-22  Andreas Jaeger  <aj@suse.de>
1089
1090         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1091         Define always.
1092         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1093
1094         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1095         bits/fcntl-linux.h.
1096
1097         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1098         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1099
1100         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1101         to __O_LARGEFILE.
1102         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1103         to __O_LARGEFILE.
1104
1105 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1106             Joseph Myers  <joseph@codesourcery.com>
1107
1108         * config.make.in (NM): New variable.
1109
1110 2012-10-21  Andreas Jaeger  <aj@suse.de>
1111
1112         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1113         definitions and declarations that are provided by
1114         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1115
1116 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1117
1118         [BZ #14683]
1119         * elf/Makefile (tests-static): Add tst-leaks1-static.
1120         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1121         ($(objpfx)tst-leaks1-static): New rule.
1122         ($(objpfx)tst-leaks1-static-mem): Likewise.
1123         (tst-leaks1-static-ENV): New macro.
1124         * elf/dl-open.c (dl_open_worker): Check the main application
1125         only if SHARED is defined.
1126         * elf/tst-leaks1-static.c: New file.
1127
1128 2012-10-20  Andreas Jaeger  <aj@suse.de>
1129
1130         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1131         generic values for Linux.
1132         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1133         and declarations that are provided by <bits/fcntl-linux.h> and
1134         include <bits/fcntl-linux.h>.
1135         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1136         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1137
1138 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1139
1140         * io/fcntl.h: Move include of <bits/types.h> to the top and
1141         include it unconditionally.
1142
1143 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1144
1145         * wcsmbs/Makefile (tests-ifunc): New variable.
1146         (tests): Add $(tests-ifunc).
1147         * wcsmbs/test-wcschr-ifunc.c: New file.
1148         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1149         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1150         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1151         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1152         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1153
1154         * string/Makefile (tests-ifunc): New variable.
1155         (tests): Add $(tests-ifunc).
1156         * string/test-memccpy.c (TEST_NAME): New macro.
1157         * string/test-memchr.c (TEST_NAME): Likewise.
1158         * string/test-memcmp.c (TEST_NAME): Likewise.
1159         * string/test-memcpy.c (TEST_NAME): Likewise.
1160         * string/test-memmem.c (TEST_NAME): Likewise.
1161         * string/test-memmove.c (TEST_NAME): Likewise.
1162         * string/test-memset.c (TEST_NAME): Likewise.
1163         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1164         * string/test-stpcpy.c (TEST_NAME): Likewise.
1165         * string/test-stpncpy.c (TEST_NAME): Likewise.
1166         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1167         * string/test-strcasestr.c (TEST_NAME): Likewise.
1168         * string/test-strcat.c (TEST_NAME): Likewise.
1169         * string/test-strchr.c (TEST_NAME): Likewise.
1170         * string/test-strcmp.c(TEST_NAME): Likewise.
1171         * string/test-strcpy.c (TEST_NAME): Likewise.
1172         * string/test-strcspn.c (TEST_NAME): Likewise.
1173         * string/test-strlen.c (TEST_NAME): Likewise.
1174         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1175         * string/test-strncmp.c (TEST_NAME): Likewise.
1176         * string/test-strncpy.c (TEST_NAME): Likewise.
1177         * string/test-strnlen.c (TEST_NAME): Likewise.
1178         * string/test-strpbrk.c (TEST_NAME): Likewise.
1179         * string/test-strrchr.c (TEST_NAME): Likewise.
1180         * string/test-strspn.c (TEST_NAME): Likewise.
1181         * string/test-strstr.c (TEST_NAME): Likewise.
1182         * string/test-bcopy-ifunc.c: New file.
1183         * string/test-bzero-ifunc.c: Likewise.
1184         * string/test-memccpy-ifunc.c: Likewise.
1185         * string/test-memchr-ifunc.c: Likewise.
1186         * string/test-memcmp-ifunc.c: Likewise.
1187         * string/test-memcpy-ifunc.c: Likewise.
1188         * string/test-memmem-ifunc.c: Likewise.
1189         * string/test-memmove-ifunc.c: Likewise.
1190         * string/test-mempcpy-ifunc.c: Likewise.
1191         * string/test-memset-ifunc.c: Likewise.
1192         * string/test-rawmemchr-ifunc.c: Likewise.
1193         * string/test-stpcpy-ifunc.c: Likewise.
1194         * string/test-stpncpy-ifunc.c: Likewise.
1195         * string/test-strcasecmp-ifunc.c: Likewise.
1196         * string/test-strcasestr-ifunc.c: Likewise.
1197         * string/test-strcat-ifunc.c: Likewise.
1198         * string/test-strchr-ifunc.c: Likewise.
1199         * string/test-strchrnul-ifunc.c: Likewise.
1200         * string/test-strcmp-ifunc.c: Likewise.
1201         * string/test-strcpy-ifunc.c: Likewise.
1202         * string/test-strcspn-ifunc.c: Likewise.
1203         * string/test-strlen-ifunc.c: Likewise.
1204         * string/test-strncasecmp-ifunc.c: Likewise.
1205         * string/test-strncat-ifunc.c: Likewise.
1206         * string/test-strncmp-ifunc.c: Likewise.
1207         * string/test-strncpy-ifunc.c: Likewise.
1208         * string/test-strnlen-ifunc.c: Likewise.
1209         * string/test-strpbrk-ifunc.c: Likewise.
1210         * string/test-strrchr-ifunc.c: Likewise.
1211         * string/test-strspn-ifunc.c: Likewise.
1212         * string/test-strstr-ifunc.c: Likewise.
1213
1214         * debug/Makefile (tests-ifunc): New variable.
1215         (tests): Add $(tests-ifunc).
1216         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1217         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1218         * debug/test-stpcpy_chk-ifunc.c: New file.
1219         * debug/test-strcpy_chk-ifunc.c: Likewise.
1220
1221 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1222
1223         [BZ #13601]
1224         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1225         header is not read in.
1226
1227 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1228
1229         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1230         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1231         directly.  Pass built executable to script as
1232         $(built-program-cmd).
1233         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1234         $testprogram without using LD_LIBRARY_PATH and $ldso.
1235
1236         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1237         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1238         $(rtld-installed-name).
1239         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1240         (rtld_installed_name): Likewise.
1241         (library_path): Likewise.
1242         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1243         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1244         $(run-program-prefix) to tst-tables.sh.
1245         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1246         it to run tst-table-from and tst-table-to.
1247         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1248         Pass it to tst-table.sh.
1249         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1250         $(run-program-prefix) to tst-gettext.sh.
1251         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1252         tst-translit.sh.
1253         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1254         tst-gettext2.sh.
1255         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1256         to run tst-gettext.
1257         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1258         to run tst-gettext2.
1259         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1260         to run tst-translit.
1261         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1262         $(run-program-prefix) to tst-mtrace.sh.
1263         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1264         to run tst-mtrace.
1265         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1266         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1267         $(rtld-installed-name).
1268         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1269         (rtld_installed_name): Likewise.
1270         (run_program_prefix): New variable.  Use it to run wordexp-test.
1271
1272         * Makeconfig (ARCH): Remove all definitions.
1273         (machine): Likewise.
1274         [ARCH]: Remove conditional code.
1275         [!objdir]: Give error.
1276         [!objdir] (objpfx): Remove.
1277         [!objdir] (common-objpfx): Likewise.
1278         [!objdir] (common-objdir): Likewise.
1279         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1280         AC_CONFIG_FILES call.
1281         * configure: Regenerated.
1282
1283         [BZ #13888]
1284         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1285         or TMPDIR.
1286         (testout): Likewise.
1287
1288         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1289         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1290         $(rtld-installed-name).
1291         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1292         (rtld_installed_name): Likwise.
1293         (runit): Remove function.
1294         (run_getconf): New variable,  Use it for running getconf binary.
1295
1296 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1297
1298         [BZ #14716]
1299         * string/test-memmem.c (check_result): New function.
1300         (do_one_test): Use it.
1301         (check1): New function.
1302         (test_main): Use it.
1303
1304 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1305
1306         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1307
1308 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1309
1310         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1311         (_G_LSEEK64): Likewise.
1312         (_G_MMAP64): Likewise.
1313         (_G_FSTAT64): Likewise.
1314         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1315         (_G_LSEEK64): Likewise.
1316         (_G_MMAP64): Likewise.
1317         (_G_FSTAT64): Likewise.
1318         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1319         unconditional.  Call __mmap64 directly.
1320         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1321         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1322         __lseek64 directly.
1323         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1324         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1325         __mmap64 directly.
1326         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1327         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1328         __lseek64 directly.
1329         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1330         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1331         __lseek64 directly.
1332         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1333         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1334         __lseek64 directly.
1335         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1336         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1337         __fxstat64 directly.
1338         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1339         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1340         unconditional.
1341         (freopen64) [!_G_OPEN64]: Remove conditional code.
1342         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1343         unconditional.
1344         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1345         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1346         unconditional.
1347         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1348         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1349         unconditional.
1350         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1351         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1352         unconditional.
1353         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1354         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1355         unconditional.
1356         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1357         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1358         unconditional.
1359         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1360         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1361         unconditional.
1362         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1363
1364 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1365
1366         [BZ #12140]
1367         * manual/memory.texi (Malloc Tunable Parameters): Add note
1368         about free list pointers overwriting some perturb bytes.
1369         Wording suggested by Roland McGrath.
1370
1371 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1372
1373         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1374         (lgamma_test): Likewise.
1375         (tgamma_test): Likewise.
1376
1377 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1378
1379         [BZ #14700]
1380         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1381         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1382
1383 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1384
1385         * NEWS: Mention BZ #14716.
1386         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1387         when removing AVAILABLE1_USES_J macro.
1388
1389 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1390
1391         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1392         (__bswap_64): __uint64_t for unsigned 64-bit int.
1393
1394 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1395
1396         * include/string.h (memmem): Declare libc hidden alias.
1397         * string/memmem.c (memmem): Define libc hidden alias.
1398         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1399         __read, __close instead of open, read, close.
1400
1401 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1402
1403         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1404         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1405         global and hidden.
1406         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1407         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1408         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1409         Likewise.
1410         (__rawmemchr_sse2): Likewise.
1411         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1412         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1413         (__strchr_sse2): Likewise.
1414         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1415         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1416         (__strcasecmp_sse2): Likewise.
1417         (__strncasecmp_sse2): Likewise.
1418         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1419         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1420         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1421         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1422         (__strrchr_sse2): Likewise.
1423         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1424         ifunc-impl-list.c.
1425         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1426         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1427         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1428         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1429         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1430         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1431         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1432         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1433         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1434         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1435         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1436         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1437         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1438         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1439         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1440         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1441         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1442         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1443         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1444         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1445         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1446         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1447         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1448         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1449         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1450         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1451         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1452         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1453         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1454         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1455
1456         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1457         global and hidden.
1458         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1459         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1460         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1461         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1462         Likewise.
1463         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1464         Likewise.
1465         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1466         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1467         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1468         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1469         ifunc-impl-list.c.
1470         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1471         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1472         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1473         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1474         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1475         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1476         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1477         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1478         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1479         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1480         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1481         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1482         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1483         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1484         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1485         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1486         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1487         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1488         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1489         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1490         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1491         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1492         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1493         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1494         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1495         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1496         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1497         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1498         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1499         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1500         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1501         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1502         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1503         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1504         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1505         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1506         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1507         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1508         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1509         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1510         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1511
1512         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1513         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1514         * include/ifunc-impl-list.h: New file.
1515         * misc/ifunc-impl-list.c: Likewise.
1516         * misc/Makefile (routines): Add ifunc-impl-list.
1517         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1518         * string/test-string.h: Include <ifunc-impl-list.h>.
1519         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1520         impl_array): New variables.
1521         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1522         are defined.
1523         (test_init): Call __libc_ifunc_impl_list to initialize
1524         func_list if TEST_IFUNC and TEST_NAME are defined.
1525
1526         * string/Makefile (strop-tests): Add bcopy and bzero.
1527         * string/test-bcopy.c: New file.
1528         * string/test-bzero.c: Likewise.
1529         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1530         defined.
1531         * string/test-memset.c: Support bzero test if TEST_BZERO is
1532         defined.
1533         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1534         __libc_memmove.
1535         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1536         __libc_memset.
1537         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1538         of memset.
1539
1540 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1541
1542         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1543         * configure: Regenerated.
1544
1545         * Makeconfig (+link-static-before-libc): Don't include
1546         $(link-static-libc).
1547
1548         * libio/libio.h (_IO_pos_t): Remove.
1549
1550 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1551
1552         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1553         McGrath.
1554
1555 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1556
1557         * crypt/crypt-entry.c: Include fips-private.h.
1558         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1559         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1560         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1561         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1562
1563 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1564
1565         * crypt/crypt-private.h: Include stdbool.h.
1566         (_ufc_setup_salt_r): Return bool.
1567         * crypt/crypt-entry.c: Include errno.h.
1568         (__crypt_r): Return NULL with EINVAL for bad salt.
1569         * crypt/crypt_util.c (bad_for_salt): New.
1570         (_ufc_setup_salt_r): Check that salt is long enough and within
1571         the specified alphabet.
1572         * crypt/badsalttest.c: New file.
1573         * crypt/Makefile (tests): Add it.
1574         ($(objpfx)badsalttest): New.
1575
1576 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1577
1578         * NEWS: Add entry for BZ #14602.
1579
1580 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1581
1582         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1583         type-generic.
1584         * math/libm-test.inc: Update comment listing what functions and
1585         macros are tested.
1586         (isgreater_test): New function.
1587         (isgreaterequal_test): Likewise.
1588         (isless_test): Likewise.
1589         (islessequal_test): Likewise.
1590         (islessgreater_test): Likewise.
1591         (isunordered_test): Likewise.
1592         (main): Call the new functions.
1593
1594 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1595
1596         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1597         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1598         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1599         * sysdeps/i386/configure: Regenerated.
1600         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1601         * sysdeps/mach/configure: Regenerated.
1602         * sysdeps/mach/hurd/configure: Regenerated.
1603         * sysdeps/powerpc/configure: Regenerated.
1604         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1605         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1606         * sysdeps/s390/s390-32/configure: Regenerated.
1607         * sysdeps/s390/s390-64/configure: Regenerated.
1608         * sysdeps/sh/configure: Regenerated.
1609         * sysdeps/sparc/configure: Regenerated.
1610         * sysdeps/unix/sysv/linux/configure: Regenerated.
1611         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1612         * sysdeps/x86_64/configure: Regenerated.
1613
1614         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1615         defined.  Don't check if MAP is NULL.
1616
1617 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1618
1619         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1620         (_G_stat64): Likewise.
1621         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1622         (_G_stat64): Likewise.
1623         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1624         instead of struct _G_stat64.
1625         * libio/fileops.c (mmap_remap_check): Likewise.
1626         (decide_maybe_mmap): Likewise.
1627         (_IO_new_file_seekoff): Likewise.
1628         (_IO_file_stat): Likewise.
1629         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1630         _G_off64_t.
1631         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1632         instead of struct _G_stat64.
1633         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1634
1635 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1636
1637         [BZ #14602]
1638         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1639         Replace with ...
1640         (CHECK_EOL): New macro.
1641         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1642         CHECK_EOL.
1643         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1644         Replace with CHECK_EOL.
1645         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1646         Replace with CHECK_EOL.
1647
1648 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1649
1650         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1651         type-generic.
1652         * math/libm-test.inc: Update comment listing what functions and
1653         macros are tested.
1654         (finite_test): New function.
1655         (isinf_test): Likewise.
1656         (isnan_test): Likewise.
1657         (fpclassify_test): Test subnormal input.
1658         (isfinite_test): Likewise.
1659         (isnormal_test): Likewise.
1660         (main): Call the new functions.
1661
1662 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1663
1664         [BZ #14660]
1665         * Makerules (%.dynsym): Force C locale when running
1666         $(OBJDUMP) --dynamic-syms.
1667
1668 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1669
1670         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1671         <stdint.h>.
1672
1673 2012-10-06  David S. Miller  <davem@davemloft.net>
1674
1675         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1676         upper 32-bits of the length value in %o2 since we use branch-on-register
1677         tests which consider the entire 64-bit register.
1678
1679 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1680
1681         * string/test-strstr.c (check2): Add a test for page boundary.
1682
1683 2012-10-05  David S. Miller  <davem@davemloft.net>
1684
1685         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1686         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1687         file.
1688         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1689         sysdep_routines.
1690         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1691         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1692         and bzero when HWCAP_SPARC_CRYPTO is present.
1693
1694 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1695
1696         [BZ #14602]
1697         * string/test-strstr.c (check2): New function.
1698         (test_main): Call check2.
1699
1700         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1701         and bug-strchr1.
1702         * string/bug-strcasestr1.c (do_test): Moved to ...
1703         * string/test-strcasestr.c (check1): Here.  New function.
1704         (do_one_test): Break out result checking code into ...
1705         (check_result): This.  New function.
1706         (do_one_test): Call check_result.
1707         (test_main): Call check1.
1708         * string/bug-strchr1.c (do_test): Moved to ...
1709         * string/test-strchr.c (check1): Here.  New function.
1710         (do_one_test): Break out result checking code into ...
1711         (check_result): This.  New function.
1712         (do_one_test): Call check_result.
1713         (test_main): Call check1.
1714         * string/bug-strstr1.c (main): Moved to ...
1715         * string/test-strchr.c (check1): Here.  New function.
1716         (do_one_test): Break out result checking code into ...
1717         (check_result): This.  New function.
1718         (do_one_test): Call check_result.
1719         (test_main): Call check1.
1720         * string/bug-strcasestr1.c: Removed.
1721         * string/bug-strchr1.c: Likewise.
1722         * string/bug-strstr1.c: Likewise.
1723
1724         * elf/Makefile (dl-routines): Add hwcaps.
1725         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1726         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1727         (_dl_important_hwcaps): Moved to ...
1728         * elf/dl-hwcaps.c: Here.  New file.
1729         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1730
1731         [BZ #14557]
1732         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1733         if IS_IN_rtld isn't defined.
1734
1735         * elf/dl-support.c (_dl_sysinfo_map): New.
1736         Include "get-dynamic-info.h" and "setup-vdso.h".
1737         (_dl_non_dynamic_init): Call setup_vdso.
1738         * elf/dynamic-link.h: Don't include <assert.h>.
1739         (elf_get_dynamic_info): Moved to ...
1740         * elf/get-dynamic-info.h: Here.  New file.
1741         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1742         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1743         * elf/setup-vdso.h: Here.  New file.
1744         * elf/rtld.c: Include "setup-vdso.h".
1745         (dl_main): Call setup_vdso.
1746
1747 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1748
1749         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1750         creal in comment listing functions tested.  List finite, isinf,
1751         isnan, isless, islessequal, isgreater, isgreaterequal,
1752         islessgreater, isunordered, lgamma_r and pow10 as functions and
1753         macros not tested.  Mention which functions not tested are aliases
1754         for other functions.  Fix typo.  Note that signs of NaNs are not
1755         tested.
1756
1757         * scripts/config.guess: Update from config.git.
1758         * scripts/config.sub: Likewise.
1759
1760 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1761
1762         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1763         * misc/madvise.c (madvise): Renamed to __madvise.
1764         Make madvise a weak alias.
1765         * include/sys/mman.h: Declare __madvise.
1766         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1767         * sysdeps/unix/syscalls.list
1768         (madvise): Make __madvise the strong name, and madvise a weak alias.
1769         * sysdeps/unix/sysv/linux/syscalls.list
1770         (madvise, mmap): Remove redundant entries.
1771         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1772         * malloc/malloc.c (mtrim): Likewise.
1773         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1774
1775 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1776
1777         * sysdeps/mach/hurd/dl-cache.c: File removed.
1778         * config.h.in (USE_LDCONFIG): New #undef.
1779         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1780         * configure: Regenerated.
1781         * elf/Makefile (dl-routines): Add dl-cache only under
1782         [$(use-ldconfig) = yes].
1783         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1784         cache on [USE_LDCONFIG].
1785         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1786         [USE_LDCONFIG].
1787         * elf/rtld.c (dl_main): Likewise.
1788
1789 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1790
1791         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1792         _SC_LEVEL4_CACHE_LINESIZE.
1793
1794 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1795
1796         * sysdeps/unix/bsd/confstr.h: File removed.
1797
1798 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1799
1800         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1801         sys/sdt-config.h.
1802
1803 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1804
1805         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1806         Make 'mapoff' field ElfW(Off) rather than off_t.
1807
1808 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1809
1810         * nscd/Makefile: Remove nscd-cflags and all its users.
1811         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1812         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1813
1814         [BZ #10631]
1815         * malloc.c (malloc_printerr): Clarify error message.
1816
1817 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1818
1819         [BZ #14648]
1820         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1821         Set bit_FMA_Usable if FMA is supported.
1822         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1823         macro.
1824         (bit_FMA4_Usable): Updated.
1825         (index_FMA_Usable): New macro.
1826         (CPUID_FMA): Likewise
1827         (HAS_FMA): Defined with bit_FMA_Usable.
1828
1829 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1830
1831         * bits/types.h (__swblk_t): Type removed.
1832         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1833         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1834         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1835         (__SWBLK_T_TYPE): Likewise.
1836         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1837         (__SWBLK_T_TYPE): Likewise.
1838         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1839         (__SWBLK_T_TYPE): Likewise.
1840         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1841         (__SWBLK_T_TYPE): Likewise.
1842
1843 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1844             Honza Horak <hhorak@redhat.com>
1845
1846         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1847         (xdr_mapname): Use YPMAXMAP as maxsize.
1848         (xdr_peername): Use YPMAXPEER as maxsize.
1849         (xdr_keydat): Use YPAXRECORD as maxsize.
1850         (xdr_valdat): Use YPMAXRECORD as maxsize.
1851
1852 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1853
1854         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1855
1856         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1857         * csu/init-first.c: ... here.
1858         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1859         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1860         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1861         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1862         * sysdeps/i386/init-first.c: File removed.
1863         * sysdeps/sh/init-first.c: File removed.
1864
1865 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1866
1867         [BZ #14645]
1868         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1869         if x * y might underflow to zero and z is zero.
1870         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1871         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1872         * math/libm-test.inc (min_subnorm_value): New variable.
1873         (fma_test): Add more tests.
1874         (fma_test_towardzero): Likewise.
1875         (fma_test_downward): Likewise
1876         (fma_test_upward): Likewise.
1877         (initialize): Set min_subnorm_value.
1878
1879 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1880
1881         [BZ #14638]
1882         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1883         0 + 0.
1884         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1885         mode for addition resulting in exact zero.
1886         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1887         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1888         exact 0 + 0.
1889         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1890         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1891         * math/libm-test.inc (fma_test): Add more tests.
1892         (fma_test_towardzero): New function.
1893         (fma_test_downward): Likewise.
1894         (fma_test_upward): Likewise.
1895         (main): Call the new functions.
1896
1897 2012-09-28  David S. Miller  <davem@davemloft.net>
1898
1899         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1900
1901 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1902
1903         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1904         instead of SIGALRM.
1905
1906         * sysdeps/gnu/_G_config.h: Moved to ...
1907         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1908         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1909         * sysdeps/generic/_G_config.h: ... here.
1910
1911         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1912
1913         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1914
1915         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1916         Conditionalize target on [libnss_test1.so-version].
1917
1918         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1919
1920         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1921         (elfobjdir): Move out of conditionals.
1922
1923         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1924         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1925         (__nss_lookup_function): Conditionalize label remove_from_tree on
1926         [!DO_STATIC_NSS || SHARED], matching its only use.
1927
1928 2012-09-28  David S. Miller  <davem@davemloft.net>
1929
1930         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1931         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1932         file.
1933         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1934         sysdep_routines.
1935         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1936         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1937         when HWCAP_SPARC_CRYPTO is present.
1938
1939 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1940
1941         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1942
1943 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1944
1945         [BZ #6530]
1946         * stdio-common/vfprintf.c (process_string_arg): Revert
1947         2000-07-22 change.
1948
1949 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1950
1951         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1952         for testcase.
1953         * stdio-common/tst-sprintf.c: Include <locale.h>
1954         (main): Test sprintf's handling of incomplete multibyte
1955         characters.
1956
1957 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1958
1959         * elf/dl-runtime.c (VERSYMIDX): Removed.
1960         * elf/dl-version.c (VERSYMIDX): Likewise.
1961         * elf/do-rel.h (VERSYMIDX): Likewise.
1962         (VALIDX): Likewise.
1963         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1964         * elf/rtld.c (VALIDX): Likewise.
1965         (ADDRIDX): Likewise.
1966         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1967         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1968         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1969         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1970         (VALIDX): Likewise.
1971         (ADDRIDX): Likewise.
1972
1973 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1974
1975         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1976
1977 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1978
1979         [BZ #11438]
1980         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1981         to global scope.
1982         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1983         addresses are in the same scope as 192.0.2/24.
1984         * posix/gai.conf: Document new scope table defaults.
1985
1986 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1987
1988         [BZ #5298]
1989         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1990         for ftell.  Compute offsets from write pointers instead.
1991         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1992
1993 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1994
1995         [BZ #14543]
1996         * libio/Makefile (tests): New test case tst-fseek.
1997         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1998         combination works in wide mode.
1999         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2000         state when the external buffer state changes.
2001
2002 2012-09-27  David S. Miller  <davem@davemloft.net>
2003
2004         [BZ #14376]
2005         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2006         pass reloc->r_addend in as the 'high' argument to
2007         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2008
2009         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2010
2011 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2012
2013         * rt/tst-aio2.c: Include <pthread.h>.
2014         * rt/tst-aio3.c: Likewise.
2015
2016 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2017
2018         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2019
2020 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2021
2022         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2023         contents on [SHARED].
2024
2025 2012-09-26  Marek Polacek  <polacek@redhat.com>
2026
2027         [BZ #14530]
2028         [BZ #13741]
2029         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2030         for C++ and GCC <4.3 as well as for non GCC compilers.
2031
2032 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2033
2034         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2035
2036 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2037
2038         * Makefile.in (all, install): Declare with .PHONY.
2039         Reported by Michael Hope <michael.hope@linaro.org>.
2040
2041 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2042
2043         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2044         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2045         system header.
2046         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2047         Likewise.
2048         (sydep_routines): Add the new and the internal functions.
2049         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2050         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2052         (GLIBC_2.17): Add the new function.
2053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2054         (GLIBC_2.17): Likewise.
2055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2056         (GLIBC_2.17): Likewise.
2057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2058         (GLIBC_2.17): Likewise.
2059         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2060
2061 2012-09-25  Alan Modra  <amodra@gmail.com>
2062
2063         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2064         Add release barrier before setting once_control to say
2065         initialisation is done.  Add hints on lwarx.  Use macro in
2066         place of isync.
2067         (clear_once_control): Add release barrier.
2068
2069 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2070
2071         [BZ #13629]
2072         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2073         specially.
2074         * math/s_clog10.c (__clog10): Likewise.
2075         * math/s_clog10f.c (__clog10f): Likewise.
2076         * math/s_clog10l.c (__clog10l): Likewise.
2077         * math/s_clogf.c (__clogf): Likewise.
2078         * math/s_clogl.c (__clogl): Likewise.
2079         * math/Makefile (libm-calls): Add x2y2m1.
2080         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2081         (__x2y2m1): Likewise.
2082         (__x2y2m1l): Likewise.
2083         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2084         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2085         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2086         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2087         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2088         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2089         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2090         * sysdeps/i386/fpu/libm-test-ulps: Update.
2091         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2092
2093         [BZ #14621]
2094         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2095         int as type of variable DEPTH.
2096         (glob): Use size_t instead of int as type of variables NEWCOUNT
2097         and OLD_PATHC.
2098
2099 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2100
2101         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2102         Add s_sincosf-sse2.
2103         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2104         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2105         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2106         macros for using routine as __sincosf_ia32.
2107         Use macro for function declaration and weak_alias.
2108         * sysdeps/i386/fpu/libm-test-ulps: Update.
2109
2110         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2111         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2112
2113         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2114         subnormal argument.
2115         * math/s_cexpf.c (__cexpf): Likewise.
2116         * math/s_csinf.c (__csinf): Likewise.
2117         * math/s_csinhf.c (__csinhf): Likewise.
2118         * math/s_ctanf.c (__ctanf): Likewise.
2119         * math/s_ctanhf.c (__ctanhf): Likewise.
2120         * math/s_ccosh.c (__ccoshf): Likewise.
2121         * math/s_cexp.c (__cexpl): Likewise.
2122         * math/s_csin.c (__csin): Likewise.
2123         * math/s_csinh.c (__csinh): Likewise.
2124         * math/s_ctan.c (__ctan): Likewise.
2125         * math/s_ctanh.c (ctanh): Likewise.
2126         * math/s_ccoshl.c (__ccoshl): Likewise.
2127         * math/s_cexpl.c (__cexpl): Likewise.
2128         * math/s_csinl.c (__csinl): Likewise.
2129         * math/s_csinhl.c (__csinhl): Likewise.
2130         * math/s_ctanl.c (__ctanl): Likewise.
2131         * math/s_ctanhl.c (__ctanhl): Likewise.
2132
2133 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2134
2135         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2136         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2137         (_IO_off_t): Define to __off_t, not _G_off_t.
2138         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2139         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2140         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2141         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2142         type of __dummy and __dummy2 fields.
2143         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2144         (_G_ssize_t): Likewise.
2145         (_G_off_t): Likewise.
2146         (_G_pid_t): Likewise.
2147         (_G_uid_t): Likewise.
2148         (_G_wchar_t): Likewise.
2149         (_G_wint_t): Likewise.
2150         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2151         (_G_ssize_t): Likewise.
2152         (_G_off_t): Likewise.
2153         (_G_pid_t): Likewise.
2154         (_G_uid_t): Likewise.
2155         (_G_wchar_t): Likewise.
2156         (_G_wint_t): Likewise.
2157         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2158         (_G_ssize_t): Likewise.
2159         (_G_off_t): Likewise.
2160         (_G_pid_t): Likewise.
2161         (_G_uid_t): Likewise.
2162         (_G_wchar_t): Likewise.
2163         (_G_wint_t): Likewise.
2164
2165 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2166
2167         * malloc/arena.c: Include malloc-sysdep.h.
2168         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2169         is sufficient to shrink the heap or an unmap is needed.
2170         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2171         new function check_may_shrink_heap.
2172         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2173         new function check_may_shrink_heap.
2174
2175 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2176
2177         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2178         comments.
2179
2180 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2181
2182         * catgets/test-gencat.sh: Add "set -e".
2183         * elf/tst-pathopt.sh: Likewise.
2184         * grp/tst_fgetgrent.sh: Likewise.
2185         * iconvdata/run-iconv-test.sh: Likewise.
2186         * intl/tst-gettext.sh: Likewise.
2187         * intl/tst-gettext2.sh: Likewise.
2188         * intl/tst-gettext4.sh: Likewise.
2189         * intl/tst-gettext6.sh: Likewise.
2190         * intl/tst-translit.sh: Likewise.
2191         * io/ftwtest-sh: Likewise.
2192         * libio/test-freopen.sh: Likewise.
2193         * malloc/tst-mtrace.sh: Likewise.
2194         * posix/globtest.sh: Likewise.
2195         * posix/tst-getconf.sh: Likewise.
2196         * posix/wordexp-tst.sh: Likewise.
2197         * stdio-common/tst-printf.sh: Likewise.
2198         * stdio-common/tst-unbputc.sh: Likewise.
2199         * stdlib/tst-fmtmsg.sh: Likewise.
2200         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2201         * catgets/Makefile: Do not specify -e option when running
2202         testsuite shell scripts.
2203         * elf/Makefile: Likewise.
2204         * grp/Makefile: Likewise.
2205         * iconvdata/Makefile: Likewise.
2206         * intl/Makefile: Likewise.
2207         * io/Makefile: Likewise.
2208         * libio/Makefile: Likewise.
2209         * malloc/Makefile: Likewise.
2210         * posix/Makefile: Likewise.
2211         * stdio-common/Makefile: Likewise.
2212         * stdlib/Makefile: Likewise.
2213         * sysdeps/x86_64/Makefile: Likewise.
2214
2215         * io/ftwtest-sh: Add copyright header.
2216         * posix/globtest.sh: Likewise.
2217         * posix/tst-getconf.sh: Likewise.
2218         * posix/wordexp-tst.sh: Likewise.
2219         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2220
2221 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2222
2223         [BZ #13679]
2224         * Makeconfig (+link): Defined as $(+link-static) if
2225         $(build-shared) isn't yes.
2226         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2227         isn't yes.
2228         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2229
2230         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2231
2232         [BZ #14562]
2233         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2234         new chunk size with MALLOC_ALIGN_MASK.
2235
2236 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2237
2238         [BZ #5044]
2239         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2240         <rounding-mode.h>.
2241         (__printf_fphex): Determine rounding using get_rounding_mode and
2242         round_away.
2243         * stdio-common/tst-printf-round.c (struct hex_test): New
2244         structure.
2245         (hex_tests): New variable.
2246         (test_hex_in_one_mode): New function.
2247         (do_test): Also run tests for hex float output.
2248
2249 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2250
2251         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2252         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2253         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2254         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2255         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2256         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2257         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2258         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2259
2260 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2261
2262         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2263         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2264         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2265         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2266
2267 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2268
2269         [BZ #14579]
2270         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2271         mode only.
2272         * elf/tst-rtld-load-self.sh: New test.
2273         * elf/Makefile: Run it.
2274
2275 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2276
2277         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2278         (tst-writev-ENV): Remove.
2279         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2280
2281 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2282
2283         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2284
2285 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2286
2287         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2288         unconditional.
2289         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2290         Likewise.
2291         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2292         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2293         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2294         Likewise.
2295
2296 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2297
2298         [BZ #14587]
2299         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2300         * config.make.in (have-cpp-asm-debuginfo): Removed.
2301         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2302         * configure: Regenerated.
2303
2304 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2305
2306         [BZ #5044]
2307         * stdio-common/printf_fp.c: Include <stdbool.h> and
2308         <rounding-mode.h>.
2309         (___printf_fp): Determine rounding using get_rounding_mode and
2310         round_away.
2311         * stdio-common/tst-printf-round.c: New file.
2312         * stdio-common/Makefile (tests): Add tst-printf-round.
2313         (link-libm): New variable.
2314         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2315
2316 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2317
2318         [BZ #14576]
2319         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2320         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2321         Likewise.
2322         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2323         Likewise.
2324
2325 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2326
2327         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2328         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2329         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2330         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2331
2332 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2333
2334         [BZ #14518]
2335         * include/rounding-mode.h: New file.
2336         * sysdeps/generic/get-rounding-mode.h: Likewise.
2337         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2338         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2339         (MAX_VALUE): New macro.
2340         (MIN_VALUE): Likewise.
2341         (overflow_value): New function.
2342         (underflow_value): Likewise.
2343         (round_and_return): Use overflow_value and underflow_value to
2344         determine return values in overflow and underflow cases.  Use
2345         round_away to determine rounding depending on rounding mode.
2346         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2347         determine return values in overflow and underflow cases.
2348         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2349         (struct test_results): New structure.
2350         (struct test): Use struct test_results to store expected results
2351         for all rounding modes.
2352         (TEST): Include expected results for all rounding modes.
2353         (test_in_one_mode): New function.
2354         (do_test): Use test_in_one_mode to compute and check results.
2355         Check results for all rounding modes.
2356         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2357         $(link-libm).
2358
2359 2012-12-09  Allan McRae  <allan@archlinux.org>
2360
2361         * sysdeps/i386/fpu/libm-test-ulps: Update
2362
2363 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2364
2365         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2366         (_G_int32_t): Likewise.
2367         (_G_uint16_t): Likewise.
2368         (_G_uint32_t): Likewise.
2369         (_G_HAVE_BOOL): Likewise.
2370         (_G_HAVE_ATEXIT): Likewise.
2371         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2372         (_G_HAVE_IO_FILE_OPEN): Likewise.
2373         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2374         (_G_int32_t): Likewise.
2375         (_G_uint16_t): Likewise.
2376         (_G_uint32_t): Likewise.
2377         (_G_HAVE_BOOL): Likewise.
2378         (_G_HAVE_ATEXIT): Likewise.
2379         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2380         (_G_HAVE_IO_FILE_OPEN): Likewise.
2381         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2382         (_G_int32_t): Likewise.
2383         (_G_uint16_t): Likewise.
2384         (_G_uint32_t): Likewise.
2385         (_G_HAVE_BOOL): Likewise.
2386         (_G_HAVE_ATEXIT): Likewise.
2387         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2388         (_G_HAVE_IO_FILE_OPEN): Likewise.
2389
2390 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2391
2392         * csu/libc-tls.c: Update copyright years.
2393
2394 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2395
2396         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2397         [!_G_USING_THUNKS]: Remove conditional code.
2398         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2399         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2400
2401         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2402         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2403         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2404         (_G_VTABLE_LABEL_PREFIX): Likewise.
2405         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2406         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2407         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2408         (_G_VTABLE_LABEL_PREFIX): Likewise.
2409         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2410         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2411         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2412         (_G_VTABLE_LABEL_PREFIX): Likewise.
2413         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2414
2415 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2416
2417         * libio/Makefile: Include ../Makeconfig before tests.
2418         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2419         only if $(build-shared) is yes.
2420
2421         * iconv/gconv_db.c: Update copyright years.
2422
2423 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2424
2425         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2426         unwind info if defined PIC. Fix special cases description.
2427         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2428
2429         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2430         DP_HI_MASK entry.
2431         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2432
2433 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2434
2435         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2436
2437         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2438         is NULL.
2439
2440         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2441         (LDLIBS-tst-chk4): This.
2442         (LDFLAGS-tst-chk5): Renamed to ...
2443         (LDLIBS-tst-chk5): This.
2444         (LDFLAGS-tst-chk6): Renamed to ...
2445         (LDLIBS-tst-chk6): This.
2446         (LDFLAGS-tst-lfschk4): Renamed to ...
2447         (LDLIBS-tst-lfschk4): This.
2448         (LDFLAGS-tst-lfschk5): Renamed to ...
2449         (LDLIBS-tst-lfschk5): This.
2450         (LDFLAGS-tst-lfschk6): Renamed to ...
2451         (LDLIBS-tst-lfschk6): This.
2452
2453         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2454         on $(common-objpfx)soversions.mk.
2455
2456 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2457
2458         [BZ #10014]
2459         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2460         example host name.
2461
2462 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2463
2464         * malloc/arena.c (arena_get_retry): New function that gets
2465         another arena for the caller to try its request on.
2466         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2467         current arena cannot fulfill the request.
2468         (__libc_memalign): Likewise.
2469         (__libc_memalign): Likewise.
2470         (__libc_pvalloc): Likewise.
2471         (__libc_calloc): Likewise.
2472
2473 2012-09-05  John Tobey  <john.tobey@gmail.com>
2474
2475         [BZ #13542]
2476         * manual/arith.texi (Operations on Complex): Fix description
2477         of carg branch cut.
2478
2479 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2480
2481         [BZ #10014]
2482         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2483         host name.
2484
2485         [BZ #10038]
2486         * manual/memory.texi (Memory): Make order of menu items match
2487         order of sections.
2488
2489 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2490
2491         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2492         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2493         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2494
2495 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2496
2497         * csu/libc-tls.c (static_dtv): Renamed to ...
2498         (_dl_static_dtv): This.  Make it global.
2499         (_dl_initial_dtv): Removed.
2500         (__libc_setup_tls): Updated.
2501         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2502         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2503         DL_INITIAL_DTV.
2504
2505 2012-09-06  Petr Machata  <pmachata@redhat.com>
2506
2507         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2508         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2509         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2510         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2511
2512 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2513
2514         [BZ #14545]
2515         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2516         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2517         freeing dtv[-1].
2518
2519 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2520
2521         [BZ #14544]
2522         * Makeconfig (link-static-before-libc): Replace $(+prector)
2523         with $(+prectorT).
2524         (link-static-after-libc): Replace $(+postctor) with
2525         $(+postctorT).
2526         (link-bounded): Replace $(+prector)/$(+postctor) with
2527         $(+prectorT)/$(+postctorT).
2528         (+prectorT): New macro.
2529         (+postctorT): Likewise.
2530
2531 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2532
2533         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2534         (round_str): Handle values above the maximum for IBM long double
2535         as inexact.
2536         * stdlib/tst-strtod-round.c (tests): Regenerated.
2537
2538 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2539
2540         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2541         assembler flag.
2542         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2543         zarch_nohighgprs around the zarch optimized routines.
2544         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2545         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2546         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2547         for zarch.
2548
2549 2012-09-05  David S. Miller  <davem@davemloft.net>
2550
2551         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2552
2553         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2554         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2555         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2556         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2557         entries.
2558
2559 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2560
2561         * malloc/arena.c: Fold copyright years.
2562         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2563
2564 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2565
2566         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2567
2568 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2569
2570         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2571
2572 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2573
2574         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2575         change internal state upon failure.
2576
2577 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2578
2579         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2580         * malloc/memusage.c (mmap): Likewise.
2581         (mmap64, mremap): Likewise.  Adjust name in comment.
2582
2583 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2584
2585         * libio/fileops.c: Fix typos in comments.
2586         * libio/oldfileops.c: Likewise.
2587         * libio/wfileops.c: Likewise.
2588
2589 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2590
2591         [BZ #1349]
2592         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2593         (tst-malloc-usable-ENV): Set environment for test case.
2594         * malloc/hooks.c (malloc_check_get_size): New function to get
2595         requested size.
2596         * malloc/malloc.c (musable): Use malloc_check_get_size.
2597         * malloc/tst-malloc-usable.c: New test case.
2598
2599 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2600
2601         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2602
2603 2012-09-05  Allan McRae  <allan@archlinux.org>
2604
2605         [BZ #13966]
2606         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2607         determine header location.
2608         * configure: Regenerated.
2609
2610 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2611
2612         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2613         float format.
2614         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2615         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2616         format.
2617         (test): Regenerate.
2618
2619 2012-09-04  David S. Miller  <davem@davemloft.net>
2620
2621         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2622         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2623         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2624
2625 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2626
2627         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2628         failures.
2629
2630         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2631
2632 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2633
2634         [BZ #9914]
2635         * libio/iogetdelim.c: Include <limits.h>.
2636         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2637         + len + 1 would overflow.
2638
2639 2012-09-03  Andreas Jaeger  <aj@suse.de>
2640
2641         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2642         * sysdeps/i386/fpu/libm-test-ulps: Update.
2643
2644 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2645
2646         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2647         Add s_sinf-sse2, s_conf-sse2.
2648
2649         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2650         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2651         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2652         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2653
2654         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2655         for using routine as __sinf_ia32.
2656         Use macro for function declaration and weak_alias.
2657         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2658         for using routine as __cosf_ia32.
2659         Use macro for function declaration and weak_alias.
2660
2661         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2662         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2663
2664         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2665         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2666         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2667
2668         * math/libm-test.inc (cos_test): Add more test cases.
2669         (sin_test): Likewise.
2670         (sincos_test): Likewise.
2671
2672 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2673
2674         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2675         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2676         hidden.
2677         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2678
2679 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2680
2681         [BZ #14538]
2682         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2683         first element of the GOT.
2684         (elf_machine_load_address): Return the difference between
2685         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2686
2687 2012-09-01  Allan McRae  <allan@archlinux.org>
2688
2689         [BZ #13412]
2690         * configure.in (AWK): Require gawk version 3.0 or later.
2691         * configure: Regenerated.
2692
2693 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2694
2695         * sysdeps/unix/sysv/linux/kernel-features.h
2696         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2697         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2698         [__NR_clock_getres]: Make code unconditional.
2699         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2700         (clock_getcpuclockid): Remove code left unreachable by removal of
2701         conditionals.
2702         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2703         code unconditional.
2704         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2705         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2706         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2707         Make code unconditional.
2708         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2709         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2710         * sysdeps/unix/sysv/linux/clock_settime.c
2711         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2712         conditional code.
2713         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2714         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2715
2716 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2717
2718         [BZ #14476]
2719         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2720         scripts/test-installation.pl.
2721
2722         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2723         and $ld_so_version if it is set.
2724
2725 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2726
2727         [BZ #14516]
2728         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2729         failure if reading from procfs failed.
2730         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2731
2732 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2733
2734         * sysdeps/unix/sysv/linux/kernel-features.h
2735         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2736         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2737         Remove conditional code.
2738         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2739         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2740         Remove conditional code.
2741         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2742         * sysdeps/unix/sysv/linux/i386/fxstat.c
2743         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2744         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2745         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2746         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2747         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2748         * sysdeps/unix/sysv/linux/i386/lxstat.c
2749         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2750         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2751         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2752         Remove conditional code.
2753         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2754         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2755         Remove conditional code.
2756         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2757         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2758         <kernel-features.h>.
2759         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2760         Remove.
2761         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2762         Remove conditional code.
2763         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2764         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2765         Remove conditional.
2766
2767 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2768
2769         [BZ #5400]
2770         * NEWS: Add fixed bug number.
2771
2772 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2773
2774         [BZ #14519]
2775         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2776         underflowing exponent in case of negative sign.
2777         * stdlib/tst-strtod-round-data: Add more tests.
2778         * stdlib/tst-strtod-round.c (tests): Regenerated.
2779
2780         [BZ #3479]
2781         * stdlib/strtod_l.c (NDIG): Remove.
2782         (HEXNDIG): Likewise.
2783         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2784         smallest representable value.
2785         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2786         lie within an exact representation of 1/2 ulp of the result.
2787         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2788         unconditionally.
2789         (TENS_P9_IDX): Define unconditionally.
2790         (TENS_P9_SIZE): Likewise.
2791         (TENS_P10_IDX): Likewise.
2792         (TENS_P10_SIZE): Likewise.
2793         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2794         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2795         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2796         entries for 10^2^13 and 10^2^14.
2797         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2798         (TENS_P13_IDX): Define.
2799         (TENS_P13_SIZE): Likewise.
2800         (TENS_P14_IDX): Likewise.
2801         (TENS_P14_SIZE): Likewise.
2802         (_fpioconst_pow10): Change array size to
2803         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2804         unconditional.
2805         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2806         1024]: Add entries for 10^2^13 and 10^2^14.
2807         [LAST_POW10 > _LAST_POW10]: Remove #error.
2808         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2809         (_fpioconst_pow10): Change array size to
2810         FPIOCONST_POW10_ARRAY_SIZE.
2811         * stdlib/gen-fpioconst.c: New file.
2812         * stdlib/gen-tst-strtod-round.c: Likewise.
2813         * stdlib/tst-strtod-round-data: Likewise.
2814         * stdlib/tst-strtod-round.c: Likewise.
2815         * stdlib/Makefile (tests): Add tst-strtod-round.
2816
2817         [BZ #14459]
2818         * stdlib/strtod_l.c: Include <stdint.h>.
2819         (NDEBUG): Do not define.
2820         (round_and_return): Change EXPONENT parameter to type intmax_t.
2821         Rearrange calculations to avoid internal overflow possibilities.
2822         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2823         Rearrange calculations to avoid internal overflow possibilities.
2824         Assert that number fits inside MPNSIZE limbs.
2825         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2826         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2827         calculations and add assertions to avoid internal overflow
2828         possibilities.  Add casts to avoid signed/unsigned operations.
2829         * stdlib/tst-strtod-overflow.c: New file.
2830         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2831
2832 2012-08-25  Marek Polacek  <polacek@redhat.com>
2833
2834         * time/time.h: Fix some typos in comments.
2835
2836 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2837
2838         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2839         * posix/tst-rfc3484-2.c: Likewise.
2840         * posix/tst-rfc3484-3.c: Likewise.
2841
2842 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2843
2844         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2845         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2846
2847 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2848
2849         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2850         #include of fxstatat64.c.
2851
2852 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2853
2854         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2855         * shadow/getspent_r.c: Likewise.
2856         * shadow/getspnam.c: Likewise.
2857         * shadow/getspnam_r.c: Likewise.
2858         * gshadow/getsgent.c: Likewise.
2859         * gshadow/getsgent_r.c: Likewise.
2860         * gshadow/getsgnam.c: Likewise.
2861         * gshadow/getsgnam_r.c: Likewise.
2862         * inet/getnetbyad.c: Likewise.
2863         * inet/getnetbyad_r.c: Likewise.
2864         * inet/getnetbynm.c: Likewise.
2865         * inet/getnetbynm_r.c: Likewise.
2866         * inet/getnetent.c: Likewise.
2867         * inet/getnetent_r.c: Likewise.
2868         * inet/getproto.c: Likewise.
2869         * inet/getproto_r.c: Likewise.
2870         * inet/getprtent.c: Likewise.
2871         * inet/getprtent_r.c: Likewise.
2872         * inet/getprtname.c: Likewise.
2873         * inet/getprtname_r.c: Likewise.
2874         * inet/getrpcbyname.c: Likewise.
2875         * inet/getrpcbyname_r.c: Likewise.
2876         * inet/getrpcbynumber.c: Likewise.
2877         * inet/getrpcbynumber_r.c: Likewise.
2878         * inet/getrpcent.c: Likewise.
2879         * inet/getrpcent_r.c: Likewise.
2880         * inet/getaliasent.c: Likewise.
2881         * inet/getaliasent_r.c: Likewise.
2882         * inet/getaliasname.c: Likewise.
2883         * inet/getaliasname_r.c: Likewise.
2884         * nscd/getgrgid_r.c: Likewise.
2885         * nscd/getgrnam_r.c: Likewise.
2886         * nscd/gethstbyad_r.c: Likewise.
2887         * nscd/gethstbynm3_r.c: Likewise.
2888         * nscd/getpwnam_r.c: Likewise.
2889         * nscd/getpwuid_r.c: Likewise.
2890         * nscd/getsrvbynm_r.c: Likewise.
2891         * nscd/getsrvbypt_r.c: Likewise.
2892         * nscd/gai.c: Likewise.
2893
2894         * configure.in (build_nscd): New substituted variable, set
2895         by --disable-build-nscd and defaults to $use_nscd.
2896         * configure: Regenerated.
2897         * config.make.in (build-nscd): New substituted variable.
2898         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2899         Change conditional to require [$(build-nscd) = yes] as well.
2900         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2901
2902         [BZ# 13696]
2903         * configure.in (use_nscd): New substituted variable, set by
2904         --disable-nscd.  If enabled, define USE_NSCD.
2905         * configure: Regenerated.
2906         * config.h.in: Add USE_NSCD.
2907         * config.make.in (use-nscd): New substituted variable.
2908         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2909         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2910         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2911         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2912         (CFLAGS-getgrnam_r.c): Likewise.
2913         (CFLAGS-initgroups.c): Likewise.
2914         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2915         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2916         Variables removed.
2917         * inet/getnetgrent_r.c
2918         (nscd_setnetgrent): New function, broken out of ...
2919         (setnetgrent): ... here.  Call it.
2920         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2921         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2922         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2923         * nscd/Makefile (routines, aux): Move definitions after include of
2924         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2925         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2926         Conditionalize on [USE_NSCD].
2927         (is_nscd, nscd_init_cb): Likewise.
2928         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2929         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2930         * nss/nss_db/db-init.c: Likewise.
2931         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2932         [USE_NSCD].
2933         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2934         (make_request): Use it.
2935         (cache_valid_p): New function.
2936         (__check_pf): Use it.
2937         * NEWS: Add item for --disable-nscd.
2938
2939 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2940
2941         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2942         to support sed >= 4.2.1-20-ga9bf076.
2943         * configure: Regenerated.
2944
2945 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2946
2947         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2948         Conditionalize whole body on [IREL].
2949
2950 2012-08-22  Jeff Law <law@redhat.com>
2951
2952         [BZ #14505]
2953         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2954         if the family is PF_UNSPEC.
2955
2956 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2957
2958         * Makerules (lib-version): Rename from V.
2959         (install-lib-nosubdir): Change V to lib-version.
2960
2961 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2962
2963         [BZ #14252]
2964         * powerpc32/power6/wcschr.c: New file.
2965         * powerpc32/power6/wcscpy.c: New file.
2966         * powerpc32/power6/wcsrchr.c: New file.
2967         * powerpc64/power6/wcschr.c: New file.
2968         * powerpc64/power6/wcscpy.c: New file.
2969         * powerpc64/power6/wcsrchr.c: New file.
2970
2971 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2972
2973         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2974         (two_way_short_needle): Use it.
2975         * string/strstr.c (AVAILABLE1_USES_J): Define.
2976         * string/strcasestr.c: Likewise.
2977
2978         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2979         array references.
2980         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2981
2982         [BZ #11607]
2983         * NEWS: Add an entry.
2984         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2985         define their defaults.
2986         (two_way_short_needle): Detect end-of-string on-the-fly.
2987         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2988         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2989         * string/bug-strcasestr1.c: New test.
2990         * string/Makefile: Run it.
2991
2992 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2993
2994         [BZ #11607]
2995         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2996         the first character.
2997
2998 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2999
3000         * csu/elf-init.c (__libc_csu_irel): Function removed.
3001         * csu/libc-start.c (apply_irel): New function.
3002         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3003
3004 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3005
3006         * sysdeps/unix/sysv/linux/kernel-features.h
3007         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3008         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3009         <kernel-features.h>.
3010         [__NR_fadvise64_64]: Make code unconditional.
3011         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3012         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3013         !__NR_fadvise64_64)]: Likewise.
3014         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3015         !__NR_fadvise64_64))]: Likewise.
3016         [__NR_fadvise64]: Make code unconditional.
3017         [!__NR_fadvise64]: Remove conditional code.
3018         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3019         <kernel-features.h>.
3020         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3021         unconditional.
3022         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3023         conditional code.
3024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3025         not include <kernel-features.h>.
3026         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3027         unconditional.
3028         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3029         conditional code.
3030         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3031         include <kernel-features.h>.
3032         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3033         unconditional.
3034         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3035         conditional code.
3036
3037 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3038
3039         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3040         slight instruction rearrangements per scrollpipe analysis.
3041         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3042
3043 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3044
3045         * manual/syslog.texi (syslog; vsyslog, closelog):
3046         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3047         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3048
3049         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3050         DSOCAPS to match condition on defining it.
3051
3052 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3053
3054         * sysdeps/unix/sysv/linux/kernel-features.h
3055         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3057         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3058         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3060         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3061         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3063         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3064         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3065
3066         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3067         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3068
3069         * sysdeps/unix/sysv/linux/kernel-features.h
3070         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3071         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3072         unconditional.
3073         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3074         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3075         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3076         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3077         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3078         Make code unconditional.
3079         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3080         (__mmap64) [!__NR_mmap2]: Likewise.
3081         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3082         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3083         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3084         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3085         [__NR_mmap2]: Make code unconditional.
3086         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3087         (__mmap64) [!__NR_mmap2]: Likewise.
3088
3089 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3090
3091         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3092
3093 2012-08-18  Andreas Jaeger  <aj@suse.de>
3094
3095         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3096
3097 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3098
3099         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3100         * include/unistd.h (__have_sock_cloexec): Likewise.
3101         (__have_pipe2): Likewise.
3102         (__have_dup3): Likewise.
3103
3104 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3105
3106         [BZ #9685]
3107         * include/unistd.h (__have_pipe2): Change define into an extern int.
3108         (__have_dup3): Likewise.
3109         * socket/have_sock_cloexec.c: Include fcntl.h.
3110         (__have_pipe2): New variable.
3111         (__have_dup3): Likewise.
3112
3113 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3114
3115         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3116
3117 2012-08-17  Marek Polacek  <polacek@redhat.com>
3118
3119         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3120         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3121
3122 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3123
3124         * configure.in: Add AC_SUBST for sysheaders.
3125         * configure: Regenerated.
3126         * config.make.in (sysheaders): New substituted variable.
3127
3128         * sysdeps/unix/mkfifo.c: Moved ...
3129         * sysdeps/posix/mkfifo.c: ... here.
3130         * sysdeps/unix/mkfifoat.c: Moved ...
3131         * sysdeps/posix/mkfifoat.c: ... here.
3132
3133         * sysdeps/unix/utime.c: Moved ...
3134         * sysdeps/posix/utime.c: ... here.
3135
3136         * sysdeps/unix/time.c: Moved ...
3137         * sysdeps/posix/time.c: ... here.
3138         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3139         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3140
3141         * sysdeps/unix/nice.c: Moved ...
3142         * sysdeps/posix/nice.c: ... here.
3143
3144         * sysdeps/unix/alarm.c: Moved ...
3145         * sysdeps/posix/alarm.c: ... here.
3146
3147         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3148
3149 2012-08-17  Jeff Law <law@redhat.com>
3150
3151         * intl/Makefile (codeset_mo): New variable.
3152         ($(codeset_mo)): New target.
3153         (tst-codeset.out): Depend on that.  Remove explicit rule.
3154         (tst-gettext3.out, tst-gettext5.out): Likewise.
3155         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3156         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3157         * intl/tst-codeset.sh: Remove.
3158         * intl/tst-gettext3.sh: Likewise.
3159         * intl/tst-gettext5.sh: Likewise.
3160
3161 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3162
3163         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3164         * sysdeps/unix/syscalls.list: ... here.
3165
3166         * sysdeps/posix/getaddrinfo.c
3167         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3168         (gaiconf_init, gaiconf_reload): Use them.
3169         [!_STATBUF_ST_NSEC]
3170         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3171         Define using time_t rather than struct timespec.
3172
3173         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3174         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3175         Macros removed.
3176         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3177         [!NO_THREADS].
3178         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3179         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3180         Likewise.
3181
3182         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3183         __libc_cleanup_push argument.
3184
3185         * bits/param.h: New file.
3186         * misc/sys/param.h: New file.
3187         * include/sys/param.h: New file.
3188         * misc/Makefile (headers): Add bits/param.h.
3189         * sysdeps/generic/sys/param.h: File removed.
3190         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3191         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3192         * sysdeps/mach/hurd/bits/param.h: New file.
3193         * sysdeps/mach/hurd/sys/param.h: File removed.
3194
3195         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3196         last change.
3197
3198         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3199         [_IO_MTSAFE_IO].
3200         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3201         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3202         New macros.
3203
3204         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3205         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3206         rather than -D_IO_MTSAFE_IO conditionally.
3207         * stdio-common/Makefile (CPPFLAGS): Likewise.
3208         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3209         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3210         Use $(libio-mtsafe).
3211         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3212         of -D_IO_MTSAFE_IO.
3213         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3214         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3215         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3216         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3217         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3218         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3219         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3220         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3221         (CFLAGS-fread_u_chk.c): Likewise.
3222         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3223         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3224         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3225         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3226         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3227         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3228         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3229         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3230         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3231
3232         * libio/Makefile: Test [$(libc-reentrant) = yes]
3233         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3234
3235         * Makeconfig
3236         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3237         * sysdeps/pthread/configure: File removed.
3238         * sysdeps/pthread/Makeconfig: New file.
3239         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3240         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3241
3242 2012-08-16  Gary Benson  <gbenson@redhat.com>
3243
3244         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3245         unmapping the first object in a namespace.
3246
3247 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3248
3249         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3250         (__internal_setnetgrent): ... this.  Add internal_function to
3251         definition.  Add libc_hidden_def.
3252         (setnetgrent): Update caller.
3253         (internal_endnetgrent): Renamed to ...
3254         (__internal_endnetgrent): ... this.  Add internal_function to
3255         definition.  Add libc_hidden_def.
3256         (endnetgrent): Update caller.
3257         (internal_getnetgrent_r): Renamed to ...
3258         (__internal_getnetgrent_r): ... this.  Add internal_function to
3259         definition.  Add libc_hidden_def.
3260         (__getnetgrent_r): Update caller.
3261         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3262
3263 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3264
3265         * stdlib/longlong.h: Update from GCC.
3266
3267 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3268
3269         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3270         on _QL, which is set by umul_ppmm but never used.
3271         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3272         variables, which are set by GMP macros but never used.
3273         * stdio-common/_itowa.c (_itowa): Likewise.
3274         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3275         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3276
3277 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3278
3279         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3280         struct La_sh_regs is not constant.
3281         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3282         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3283         and struct La_sparc64_regs are not constant.
3284
3285 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3286
3287         * sysdeps/unix/sysv/linux/kernel-features.h
3288         (__ASSUME_POSIX_TIMERS): Remove.
3289         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3290         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3291         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3292         Make code unconditional.
3293         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3294         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3295         Make code unconditional.
3296         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3297         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3298         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3299         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3300         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3301         Make code unconditional.
3302         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3303         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3304         (__libc_missing_posix_timers): Remove.
3305
3306 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3307
3308         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3309         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3310
3311         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3312
3313         * elf/dl-sym.c: Include <stdlib.h>.
3314
3315         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3316         constants, which avoids warnings in 32-bit builds.
3317
3318         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3319         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3320
3321         * misc/lseek.c: File moved to ...
3322         * io/lseek.c: ... here.
3323
3324         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3325
3326         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3327         shifting LEN more than 31 bits at once.
3328
3329 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3330
3331         [BZ #14195]
3332         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3333         segmentation fault for a case of two empty input strings.
3334         * string/test-strncasecmp.c (check1): Renamed to...
3335         (bz12205): ...this.
3336         (bz14195): Add new testcase for two empty input strings and N > 0.
3337         (test_main): Call new testcase, adapt for renamed function.
3338
3339 2012-08-15  Andreas Jaeger  <aj@suse.de>
3340
3341         [BZ #14090]
3342         * crypt/md5test2.c: New test, based on test supplied by Serge
3343         Belyshev <belyshev@depni.sinp.msu.ru>.
3344         * crypt/Makefile (xtests): Add md5test-giant..
3345         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3346
3347 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3348
3349         [BZ #14090]
3350         * crypt/md5.c (md5_process_block): Don't assume the buffer
3351         length is less than 2**32.
3352         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3353         length is less than 2**64.
3354
3355 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3356
3357         * string/str-two-way.h: Include <sys/param.h>.
3358         (MAX): Macro removed.
3359
3360         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3361         Move #define and #undef of memmove to just before and after
3362         including <string.h>.
3363
3364         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3365         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3366         and after including <string.h>.  Move declarations of
3367         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3368         to before #include "string/memmove.c".
3369
3370         * include/dirent.h: Declare __getdirentries.
3371
3372         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3373         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3374
3375 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3376
3377         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3378         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3379         * sysdeps/i386/configure: Regenerated.
3380         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3381         STABS_CURRENT_FILE, and STABS_FUN.
3382         (END): Remove call to STABS_FUN_END.
3383         (STABS_CURRENT_FILE1): Delete.
3384         (STABS_CURRENT_FILE): Likewise.
3385         (STABS_FUN): Likewise.
3386         (STABS_FUN_END): Likewise.
3387         (STABS_FUN2): Likewise.
3388         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3389         * sysdeps/x86_64/configure: Regenerated.
3390
3391 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3392
3393         * elf/dl-open.c: Include <atomic.h>.
3394         * elf/dl-lookup.c: Likewise.
3395
3396 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3397
3398         * sysdeps/unix/sysv/linux/kernel-features.h
3399         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3400         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3401         unconditionally.
3402         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3403         unconditionally.
3404         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3405         condition on __ASSUME_CLONE_THREAD_FLAGS.
3406
3407 2012-08-14  Andreas Jaeger  <aj@suse.de>
3408
3409         * sysdeps/i386/fpu/libm-test-ulps: Update.
3410
3411 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3412
3413         * include/atomic.h (atomic_exchange_and_add): Split into ...
3414         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3415         New atomic macros.
3416
3417 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3418
3419         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3420
3421 2012-08-13  Jeff Law <law@redhat.com>
3422
3423         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3424         null byte in the output string.
3425
3426 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3427
3428         * sysdeps/unix/sysv/linux/kernel-features.h
3429         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3430         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3431         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3432         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3433         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3434         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3435         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3436
3437 2012-08-09  Jeff Law <law@redhat.com>
3438
3439         [BZ #13939]
3440         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3441         When avoid_arena is set, don't retry in the that arena.  Pick the
3442         next one, whatever it might be.
3443         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3444         (arena_lock): Pass in new parameter to arena_get2.
3445         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3446         arena_get2.
3447         (__libc_malloc): Unify retrying after main arena failure with
3448         __libc_memalign version.
3449         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3450
3451 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3452
3453         [BZ #14166]
3454         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3455         to __redirect_strstr.
3456         (__strstr_sse42): Use typeof __redirect_strstr.
3457         (__strstr_ia32): Likewise.
3458         (__libc_strstr): New prototype.
3459         (strstr): Renamed to ...
3460         (__libc_strstr): This.
3461         (strstr): New strong alias of __libc_strstr.
3462         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3463         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3464         __redirect_time.
3465         Include <time.h>.
3466         (__libc_time): New prototype.
3467         (time_ifunc): Replace time with __libc_time.
3468         (time): New strong alias and hidden definition of __libc_time.
3469         (__GI_time): Remove strong alias.
3470         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3471         Include <stddef.h>.
3472         (memmove): Redefined to __redirect_memmove.
3473         (__memmove_sse2): Use typeof __redirect_memmove.
3474         (__memmove_ssse3): Likewise.
3475         (__memmove_ssse3_back): Likewise.
3476         (__libc_memmove): New prototype.
3477         (memmove): Renamed to ...
3478         (__libc_memmove): This.
3479         (memmove): New strong alias of __libc_memmove.
3480
3481 2012-08-08  Mark Salter  <msalter@redhat.com>
3482
3483         * elf/elf.h
3484         (R_MN10300_TLS_GD): Define.
3485         (R_MN10300_TLS_LD): Likewise.
3486         (R_MN10300_TLS_LDO): Likewise.
3487         (R_MN10300_TLS_GOTIE): Likewise.
3488         (R_MN10300_TLS_IE): Likewise.
3489         (R_MN10300_TLS_LE): Likewise.
3490         (R_MN10300_TLS_DTPMOD): Likewise.
3491         (R_MN10300_TLS_DTPOFF): Likewise.
3492         (R_MN10300_TLS_TPOFF): Likewise.
3493         (R_MN10300_SYM_DIFF): Likewise.
3494         (R_MN10300_ALIGN): Likewise.
3495         (R_MN10300_NUM): Update.
3496
3497 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3498
3499         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3500         Remove.
3501
3502 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3503
3504         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3505
3506         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3507         sysdeps/unix -> sysdeps/posix move.
3508         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3509
3510 2012-08-07      Allan McRae     <allan@archlinux.org>
3511
3512         [BZ #14303]
3513         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3514         (SUNOS_CPP): Likewise.
3515         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3516         not found.
3517         (open_input): Call CPP using execvp.
3518
3519 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3520
3521         * sysdeps/unix/sysv/linux/kernel-features.h
3522         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3523         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3524         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3525         (__ASSUME_WAITID_SYSCALL): Likewise.
3526         * sysdeps/unix/sysv/linux/dl-execstack.c
3527         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3528         code unconditional.
3529         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3530         conditional code.
3531         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3532         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3533         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3534         code.
3535         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3536         unconditional.
3537         [__ASSUME_WAITID_SYSCALL]: Likewise.
3538         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3539
3540 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3541
3542         * sysdeps/unix/closedir.c: Renamed to ...
3543         * sysdeps/posix/closedir.c: ... here.
3544         * sysdeps/unix/dirfd.c: Renamed to ...
3545         * sysdeps/posix/dirfd.c: ... here.
3546         * sysdeps/unix/dirstream.h: Renamed to ...
3547         * sysdeps/posix/dirstream.h: ... here.
3548         * sysdeps/unix/fdopendir.c: Renamed to ...
3549         * sysdeps/posix/fdopendir.c: ... here.
3550         * sysdeps/unix/opendir.c: Renamed to ...
3551         * sysdeps/posix/opendir.c: ... here.
3552         * sysdeps/unix/readdir.c: Renamed to ...
3553         * sysdeps/posix/readdir.c: ... here.
3554         * sysdeps/unix/readdir_r.c: Renamed to ...
3555         * sysdeps/posix/readdir_r.c: ... here.
3556         * sysdeps/unix/rewinddir.c: Renamed to ...
3557         * sysdeps/posix/rewinddir.c: ... here.
3558         * sysdeps/unix/seekdir.c: Renamed to ...
3559         * sysdeps/posix/seekdir.c: ... here.
3560         * sysdeps/unix/telldir.c: Renamed to ...
3561         * sysdeps/posix/telldir.c: ... here.
3562         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3563         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3564         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3565         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3566
3567         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3568         * bits/fcntl.h: ... here.
3569
3570         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3571         not 0.
3572         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3573         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3574         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3575         (struct flock): Move l_start, l_len to the beginning.
3576         Use __pid_t for l_pid.
3577         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3578         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3579         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3580         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3581         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3582         [__USE_LARGEFILE64] (struct flock64): New type.
3583         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3584
3585         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3586         * bits/dirent.h: ... here.
3587
3588         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3589         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3590
3591 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3592
3593         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3594         Change from 2.6.0 to 2.6.16.
3595         * sysdeps/unix/sysv/linux/configure: Regenerated.
3596         * sysdeps/unix/sysv/linux/kernel-features.h
3597         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3598         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3599         version.
3600         (__ASSUME_UTIMES): Likewise.
3601         (__ASSUME_CLONE_STOPPED): Remove.
3602         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3603         architectures, not kernel version.
3604         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3605         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3606         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3607         (__ASSUME_WAITID_SYSCALL): Likewise.
3608         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3609         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3610         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3611         refer to older versions.
3612
3613 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3614
3615         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3616         Define alphasort64 as an alias.
3617         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3618         Define versionsort64 as an alias.
3619         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3620         Define scandir64 as an alias.
3621         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3622         Define scandirat64 as an alias.
3623         * dirent/alphasort64.c (alphasort64):
3624         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3625         * dirent/versionsort64.c: Likewise.
3626         * dirent/scandir64.c: Likewise.
3627         * dirent/scandirat64.c: Likewise.
3628         * sysdeps/wordsize-64/alphasort.c: File removed.
3629         * sysdeps/wordsize-64/alphasort64.c: File removed.
3630         * sysdeps/wordsize-64/scandir.c: File removed.
3631         * sysdeps/wordsize-64/scandir64.c: File removed.
3632         * sysdeps/wordsize-64/scandirat.c: File removed.
3633         * sysdeps/wordsize-64/scandirat64.c: File removed.
3634         * sysdeps/wordsize-64/versionsort.c: File removed.
3635         * sysdeps/wordsize-64/versionsort64.c: File removed.
3636         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3637         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3638         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3639         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3640         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3641         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3642         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3643         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3644
3645         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3646         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3647         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3648         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3649         [defined __arch64__ || defined __sparcv9]
3650         (__INO_T_MATCHES_INO64_T): New macro.
3651         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3652         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3653         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3654         * sysdeps/unix/sysv/linux/bits/dirent.h
3655         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3656         (_DIRENT_MATCHES_DIRENT64): New macro.
3657
3658         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3659         Define lockf64 as an alias.
3660         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3661         Define fseeko64 as an alias.
3662         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3663         Define ftello64 as an alias.
3664         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3665         Define _IO_fgetpos64 and fgetpos64 as aliases.
3666         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3667         Define _IO_fsetpos64 and fsetpos64 as aliases.
3668         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3669         Conditionalize body on this.
3670         * libio/fseeko64.c: Likewise.
3671         * libio/ftello64.c: Likewise.
3672         * libio/iofgetpos64.c: Likewise.
3673         * libio/iofsetpos64.c: Likewise.
3674         * sysdeps/wordsize-64/lockf.c: File removed.
3675         * sysdeps/wordsize-64/lockf64.c: File removed.
3676         * sysdeps/wordsize-64/fseeko.c: File removed.
3677         * sysdeps/wordsize-64/fseeko64.c: File removed.
3678         * sysdeps/wordsize-64/ftello.c: File removed.
3679         * sysdeps/wordsize-64/ftello64.c: File removed.
3680         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3681         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3682         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3683         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3684         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3685         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3686         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3687         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3688         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3689         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3690         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3691         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3692         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3693         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3694
3695         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3696         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3697         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3698         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3699         [defined __arch64__ || defined __sparcv9]
3700         (__OFF_T_MATCHES_OFF64_T): New macro.
3701         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3702         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3703         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3704         (__OFF_T_MATCHES_OFF64_T): New macro.
3705
3706 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3707
3708         * stdlib/secure-getenv.c (__secure_getenv): Replace
3709         GLIBC_2_16 with GLIBC_2_17.
3710
3711 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3712
3713         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3714         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3715
3716 2012-08-03  David S. Miller  <davem@davemloft.net>
3717
3718         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3719
3720 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3721
3722         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3723         Remove.
3724         (__ASSUME_CORRECT_SI_PID): Likewise.
3725         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3726         (__ASSUME_TMPFS_NAME): Likewise.
3727         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3728         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3729         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3730         (HAVE_AUX_SECURE): Make definition unconditional.
3731         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3732         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3733
3734 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3735
3736         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3737         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3738         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3739         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3740         __eloop_threshold instead of SYMLOOP_MAX.
3741
3742         * sysdeps/generic/eloop-threshold.h: New file.
3743         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3744         of MAXSYMLINKS.
3745         * elf/chroot_canon.c (chroot_canon): Likewise.
3746
3747 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3748
3749         [BZ #13717]
3750         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3751         Change to 2.6.0 everywhere.
3752         * sysdeps/unix/sysv/linux/configure: Regenerated.
3753         * sysdeps/unix/sysv/linux/kernel-features.h
3754         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3755         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3756         kernel versions.
3757         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3758         (__ASSUME_FUTEX_REQUEUE): Remove.
3759         (__ASSUME_STATFS64): Define unconditionally.
3760         (__ASSUME_AT_SECURE): Likewise.
3761         (__ASSUME_CORRECT_SI_PID): Likewise.
3762         (__ASSUME_TGKILL): Define without depending on kernel version for
3763         i386.
3764         (__ASSUME_UTIMES): Likewise.
3765         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3766         kernel version.
3767         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3768         (__ASSUME_TMPFS_NAME): Likewise.
3769         * README: Update reference to Linux kernel versions.
3770
3771 2012-08-02  Marek Polacek  <polacek@redhat.com>
3772
3773         [BZ# 14150]
3774         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3775         libc_cv_asm_type_prefix with %.
3776         * configure: Regenerated.
3777         * include/libc-symbols.h: Remove comment about
3778         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3779         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3780         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3781         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3782         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3783         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3784         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3785         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3786         * elf/tst-unique2mod1.c: Likewise.
3787         * elf/tst-unique1mod2.c: Likewise.
3788         * elf/tst-unique1mod1.c: Likewise.
3789         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3790         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3791         Replace ASM_TYPE_DIRECTIVE with .type.
3792         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3793         * sysdeps/i386/sysdep.h: Likewise.
3794         * sysdeps/x86_64/sysdep.h: Likewise.
3795         * sysdeps/sh/sysdep.h: Likewise.
3796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3797         Do not define ASM_TYPE_DIRECTIVE.
3798         * sysdeps/powerpc/sysdep.h: Likewise.
3799         * sysdeps/powerpc/powerpc32/sysdep.h:
3800         Replace ASM_TYPE_DIRECTIVE with .type.
3801         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3802         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3803         * sysdeps/i386/fpu/e_powf.S: Likewise.
3804         * sysdeps/i386/fpu/e_expl.S: Likewise.
3805         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3806         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3807         * sysdeps/i386/fpu/e_pow.S: Likewise.
3808         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3809         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3810         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3811         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3812         * sysdeps/i386/fpu/e_log2.S: Likewise.
3813         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3814         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3815         * sysdeps/i386/fpu/e_powl.S: Likewise.
3816         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3817         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3818         * sysdeps/i386/fpu/e_logl.S: Likewise.
3819         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3820         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3821         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3822         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3823         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3824         * sysdeps/i386/fpu/e_log.S: Likewise.
3825         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3826         * sysdeps/i386/fpu/e_logf.S: Likewise.
3827         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3828         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3829         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3830         * sysdeps/i386/fpu/e_log10.S: Likewise.
3831         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3832         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3833         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3834         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3835         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3836         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3837         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3838         * sysdeps/i386/i686/strtok.S: Likewise.
3839         * sysdeps/i386/i386-mcount.S: Likewise.
3840         * sysdeps/i386/strtok.S: Likewise.
3841         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3842         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3843         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3844         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3845         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3846         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3847         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3848         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3849         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3850         * sysdeps/x86_64/_mcount.S: Likewise.
3851         * sysdeps/x86_64/strtok.S: Likewise.
3852         * sysdeps/sh/_mcount.S: Likewise.
3853
3854 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3855
3856         * libio/iofopen.c: Include <fcntl.h>.
3857         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3858         (_IO_fopen64, fopen64): Define as aliases.
3859         * libio/iofopen64.c: Include <fcntl.h>.
3860         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3861         Conditionalize body on this.
3862         * sysdeps/wordsize-64/iofopen.c: File removed.
3863         * sysdeps/wordsize-64/iofopen64.c: File removed.
3864
3865 2012-08-01  Marek Polacek  <polacek@redhat.com>
3866
3867         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3868         Use dlfcn directly instead of a variable.
3869         (binfmt-subdir): Do not define.
3870         (dlfcn): Likewise.
3871
3872 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3873
3874         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3875         Remove all definitions.
3876         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3877         <kernel-features.h>.
3878         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3879         (miss_F_GETOWN_EX): Remove all definitions.
3880         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3881         macro definition.
3882         [!__ASSUME_FCNTL64]: Remove conditional code.
3883         [__ASSUME_FCNTL64]: Make code unconditional.
3884         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3885         <kernel-features.h>.
3886         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3887         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3888         (lockf64) [__NR_fcntl64]: Make code unconditional.
3889         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3890
3891         * sysdeps/unix/sysv/linux/kernel-features.h
3892         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3893         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3894         Make code unconditional.
3895         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3896         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3898         [__NR_vfork]: Make code unconditional.
3899         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3900         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3902         [__NR_vfork]: Make code unconditional.
3903         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3904         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3905
3906 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3907
3908         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3909         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3910
3911         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3912         Define mkstemp64 as an alias.
3913         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3914         Define mkstemps64 as an alias.
3915         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3916         Define mkostemp64 as an alias.
3917         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3918         Define mkostemps64 as an alias.
3919         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3920         Conditionalize body on this.
3921         * misc/mkostemp64.c: Likewise.
3922         * misc/mkostemps64.c: Likewise.
3923         * misc/mkstemps64.c: Likewise.
3924         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3925         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3926         * sysdeps/wordsize-64/mkostemp.c: File removed.
3927         * sysdeps/wordsize-64/mkstemp.c: File removed.
3928         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3929         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3930         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3931         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3932
3933         [BZ #14138]
3934         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3935         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3936         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3937         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3938
3939         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3940         compat_symbol macros from <shlib-compat.h> rather than the underlying
3941         default_symbol_version and symbol_version macros, so that DEFAULT
3942         lines in shlib-versions are respected.
3943         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3944
3945 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3946
3947         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3948         Declare with warn_unused_result.
3949         (setgid, setregid, setegid, setresgid): Likewise.
3950         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3951         Likewise.
3952         * WUR-REPORT: Remove set*id functions.
3953
3954 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3955
3956         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3957
3958 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3959
3960         * include/sys/socket.h (__libc_accept, __libc_accept4):
3961         Add attribute_hidden.
3962         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3963
3964         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3965         use of PTR_MANGLE.
3966         * inet/getnetgrent_r.c (setup): Likewise.
3967
3968         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3969
3970 2012-07-31  David S. Miller  <davem@davemloft.net>
3971
3972         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3973
3974 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3975
3976         [BZ #13629]
3977         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3978         value between 1.0 and 2.0 and smaller part has absolute value less
3979         than 1.0.
3980         * math/s_clog10.c (__clog10): Likewise.
3981         * math/s_clog10f.c (__clog10f): Likewise.
3982         * math/s_clog10l.c (__clog10l): Likewise.
3983         * math/s_clogf.c (__clogf): Likewise.
3984         * math/s_clogl.c (__clogl): Likewise.
3985         * math/libm-test.inc (clog_test): Add more tests.
3986         (clog10_test): Likewise.
3987         * sysdeps/i386/fpu/libm-test-ulps: Update.
3988         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3989
3990 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3991
3992         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3993         Exit with zero in case no suitable GID is found, and write a
3994         message to standard error.
3995
3996 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3997
3998         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3999         rather than to 1.
4000         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4001         (MAXPATHLEN): Removed.
4002         (NOGROUP, NODEV): New macros.
4003         (setbit, clrbit, isset, isclr): New macros.
4004         (howmany, roundup, powerof2): New macros.
4005         (DEV_BSIZE): New macro.
4006
4007         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4008         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4009
4010         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4011         definition on [!__NO_LONG_DOUBLE_MATH].
4012
4013         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4014         PTR_MANGLE and PTR_DEMANGLE.
4015
4016         * socket/accept4.c (accept4): Rename to __libc_accept4.
4017         Define accept4 as a weak alias.
4018
4019         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4020         on [_DIRENT_HAVE_D_TYPE].
4021         * io/ftw.c (ftw_dir): Likewise.
4022
4023         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4024
4025         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4026
4027         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4028         Use the BSD numbers rather than the arbitrary ones we had.
4029         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4030         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4031         (SIGXCPU, SIGXFSZ): New macros.
4032         (_NSIG): Now 32.
4033
4034         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4035         initializer on [_LIBC_REENTRANT].
4036
4037         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4038         definitions inside [_POSIX_MAPPED_FILES].
4039
4040         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4041
4042         * dirent/opendir.c: Include <fcntl.h>.
4043
4044         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4045         (__libc_getspecific): Likewise.
4046         (__libc_key_create): Likewise.
4047
4048         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4049         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4050         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4051         (tmpfile64): Define as alias.
4052         * sysdeps/wordsize-64/tmpfile.c: File removed.
4053         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4054         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4055         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4056
4057         * stdio-common/vfscanf.c: Include <stdbool.h>.
4058         * nss/makedb.c: Likewise.
4059         * stdio-common/_i18n_number.h: Likewise.
4060         * argp/argp-help.c: Likewise.
4061         * posix/wordexp.c: Likewise.
4062         * sysdeps/posix/spawni.c: Likewise.
4063         * nss/nss_files/files-initgroups.c: Likewise.
4064         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4065         * nss/nss_files/files-initgroups.c: Likewise.
4066         * nss/nss_db/db-netgrp.c: Likewise.
4067         * nss/nss_db/db-initgroups.c: Likewise.
4068         * io/fchmodat.c: Include <sys/stat.h>.
4069
4070         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4071         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4072
4073         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4074         [HAVE_MMAP].
4075
4076         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4077         Add multiple inclusion protection.
4078
4079 2012-07-27  David S. Miller  <davem@davemloft.net>
4080
4081         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4082
4083 2012-07-27  Gary Benson  <gbenson@redhat.com>
4084
4085         [BZ #14298]
4086         * elf/rtld.c: Include <stap-probe.h>.
4087         (dl_main): Added static probes "init_start" and "init_complete".
4088         * elf/dl-load.c: Include <stap-probe.h>.
4089         (lose): Take new parameter "nsid".
4090         Added static probe "map_failed".
4091         (_dl_map_object_from_fd): Pass namespace id to lose.
4092         Added static probe "map_start".
4093         (open_verify): Pass namespace id to lose.
4094         * elf/dl-open.c: Include <stap-probe.h>.
4095         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4096         and "reloc_complete".
4097         * elf/dl-close.c: Include <stap-probe.h>.
4098         (_dl_close_worker): Added static probes "unmap_start" and
4099         "unmap_complete".
4100         * elf/rtld-debugger-interface.txt: New file documenting the above.
4101
4102 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4103
4104         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4105         rather than a string variable.
4106         * sunrpc/rpc_main.c (h_output): Likewise.
4107         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4108
4109 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4110
4111         * inet/check_native.c: New file.
4112
4113 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4114
4115         [BZ #13629]
4116         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4117         if larger part has absolute value 1.0.
4118         * math/s_clog10.c (__clog10): Likewise.
4119         * math/s_clog10f.c (__clog10f): Likewise.
4120         * math/s_clog10l.c (__clog10l): Likewise.
4121         * math/s_clogf.c (__clogf): Likewise.
4122         * math/s_clogl.c (__clogl): Likewise.
4123         * math/libm-test.inc (clog_test): Add more tests.
4124         (clog10_test): Likewise.
4125         * sysdeps/i386/fpu/libm-test-ulps: Update.
4126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4127
4128         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4129         (pltexit): Likewise.
4130         (La_regs): Likewise.
4131         (La_retval): Likewise.
4132         (int_retval): Likewise.
4133         Update #error for removed macros to refer only to definitions in
4134         tst-audit.h.
4135         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4136         macro.
4137         (pltexit): Likewise.
4138         (La_regs): Likewise.
4139         (La_retval): Likewise.
4140         (int_retval): Likewise.
4141         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4142         macro.
4143         (pltexit): Likewise.
4144         (La_regs): Likewise.
4145         (La_retval): Likewise.
4146         (int_retval): Likewise.
4147         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4148         macro.
4149         (pltexit): Likewise.
4150         (La_regs): Likewise.
4151         (La_retval): Likewise.
4152         (int_retval): Likewise.
4153         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4154         macro.
4155         (pltexit): Likewise.
4156         (La_regs): Likewise.
4157         (La_retval): Likewise.
4158         (int_retval): Likewise.
4159         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4160         macro.
4161         (pltexit): Likewise.
4162         (La_regs): Likewise.
4163         (La_retval): Likewise.
4164         (int_retval): Likewise.
4165         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4166         macro.
4167         (pltexit): Likewise.
4168         (La_regs): Likewise.
4169         (La_retval): Likewise.
4170         (int_retval): Likewise.
4171         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4172         macro definitions in tst-audit.h.
4173         * sysdeps/i386/tst-audit.h: New file.
4174         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4175         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4176         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4177         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4178         * sysdeps/sh/tst-audit.h: Likewise.
4179         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4180         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4181         * sysdeps/x86_64/tst-audit.h: Likewise.
4182
4183 2012-07-26  Andreas Jaeger  <aj@suse.de>
4184
4185         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4186         ptrace.
4187
4188         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4189         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4190         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4191         PTRACE_O_MASK.
4192         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4193         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4194         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4195
4196         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4197         value.
4198
4199         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4200         _sigsys.
4201         (si_call_addr, si_syscall, si_arch): Define new macro.
4202         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4203         _sigsys.
4204         (si_call_addr, si_syscall, si_arch): Define new marcro.
4205         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4206         _sigsys.
4207         (si_call_addr, si_syscall, si_arch): Define new macro.
4208         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4209         _sigsys.
4210         (si_call_addr, si_syscall, si_arch): Define new macro.
4211
4212 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4213
4214         [BZ #13717]
4215         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4216         Change to 2.4.21 where previously 2.4.1.
4217         * sysdeps/unix/sysv/linux/configure: Regenerated.
4218         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4219         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4220         Linux kernel version.
4221         (__ASSUME_STD_AUXV): Remove.
4222         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4223         kernel version.
4224         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4225         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4226         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4227         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4228         (__ASSUME_NETLINK_SUPPORT): Likewise.
4229         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4230         (__no_netlink_support): Remove conditional definition.
4231         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4232         Remove.
4233         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4234         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4235         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4236         (if_nameindex_ioctl): Remove.
4237         (if_nameindex_netlink): Do not handle __no_netlink_support.
4238         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4239         code.
4240         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4241         Remove conditional code.
4242         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4243         code.
4244         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4245         unconditional.
4246         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4247         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4248         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4249         Remove.
4250         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4251         [!__ASSUME_STD_AUXV]: Remove conditional code.
4252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4253         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4254         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4256         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4257         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4258         code.
4259         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4261         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4262         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4263         conditional code.
4264         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4266         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4267         code.
4268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4269         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4270         conditional code.
4271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4272         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4273         code unconditional.
4274         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4275         conditional code.
4276         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4277         unconditional.
4278         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4279         conditional code.
4280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4281         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4282         unconditional.
4283         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4284         conditional code.
4285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4286         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4287         code unconditional.
4288         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4289         conditional code.
4290         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4291         unconditional.
4292         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4293         conditional code.
4294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4295         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4296         code unconditional.
4297         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4298         conditional code.
4299         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4300         unconditional.
4301         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4302         conditional code.
4303
4304 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4305
4306         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4307         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4308         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4309         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4310         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4311         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4312         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4313         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4314         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4315         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4316         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4317         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4318         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4319         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4320         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4321         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4322         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4323         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4324         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4325         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4326         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4327         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4328         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4329
4330 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4331
4332         * Versions.def: Add GLIBC_2.17.
4333         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4334         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4335         Introduce __libc_secure_getenv.
4336         * stdlib/Versions (2.17): Add secure_getenv
4337         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4338         * stdlib/secure-getenv.c: Rename __secure_getenv to
4339         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4340         symbol __secure_getenv for GLIBC_2.0.
4341         * stdlib/tst-secure-getenv.c: New.
4342         * stdlib/Makefile (tests): Add testcase.
4343         * manual/startup.texi (Environment Access): Document
4344         secure_getenv.
4345         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4346         __libc_secure_getenv.
4347         * inet/ruserpass.c (ruserpass): Likewise.
4348         * malloc/mtrace.c (mtrace): Likewise.
4349         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4350         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4351         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4352         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4353         HAVE_SECURE_GETENV.
4354         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4355         __secure_getenv to __libc_secure_getenv.
4356         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4358         Likewise.
4359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4360         Likewise.
4361         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4362         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4363         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4364         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4365         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4366         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4367         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4368
4369 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4370
4371         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4372         (struct La_i86_retval): Likewise.
4373         (struct La_x86_64_regs): Likewise.
4374         (struct La_x86_64_retval): Likewise.
4375         (struct La_x32_regs): Likewise.
4376         (struct La_x32_retval): Likewise.
4377         (struct La_ppc32_regs): Likewise.
4378         (struct La_ppc32_retval): Likewise.
4379         (struct La_ppc64_regs): Likewise.
4380         (struct La_ppc64_retval): Likewise.
4381         (struct La_sh_regs): Likewise.
4382         (struct La_sh_retval): Likewise.
4383         (struct La_s390_32_regs): Likewise.
4384         (struct La_s390_32_retval): Likewise.
4385         (struct La_s390_64_regs): Likewise.
4386         (struct La_s390_64_retval): Likewise.
4387         (struct La_sparc32_regs): Likewise.
4388         (struct La_sparc32_retval): Likewise.
4389         (struct La_sparc64_regs): Likewise.
4390         (struct La_sparc64_retval): Likewise.
4391         (struct audit_ifaces): Remove architecture-specific pltenter and
4392         pltexit members.
4393         * sysdeps/i386/ldsodefs.h: New file.
4394         * sysdeps/powerpc/ldsodefs.h: Likewise.
4395         * sysdeps/s390/ldsodefs.h: Likewise.
4396         * sysdeps/sh/ldsodefs.h: Likewise.
4397         * sysdeps/sparc/ldsodefs.h: Likewise.
4398         * sysdeps/x86_64/ldsodefs.h: Likewise.
4399
4400 2012-07-25  Marek Polacek  <polacek@redhat.com>
4401
4402         [BZ #6808]
4403         * math/libm-test.inc (yn_test): Add another test.
4404         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4405         to ERANGE when the result is +-Inf.
4406         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4407         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4408         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4409         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4410
4411 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4412
4413         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4414         equal to 0.
4415         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4416         clock_t.
4417         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4418
4419 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4420
4421         * configure.in <sysdeps resolving>: Correct printing
4422         Implies_before.
4423         * configure: Regenerate.
4424
4425 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4426
4427         * math/w_ilogb.c: Include <limits.h>.
4428         * math/w_ilogbl.c: Likewise.
4429
4430 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4431
4432         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4433         va_copy.  Document allowing for unavailable va_copy only as
4434         pre-C99 compatibility.
4435         * manual/string.texi (Copying and Concatenation): Use va_copy
4436         instead of __va_copy in concat example.
4437
4438 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4439
4440         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4441         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4442         it if not null.
4443
4444         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4445         with O_NOLINK passed to __file_name_lookup.
4446
4447         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4448         with O_NOLINK passed to __file_name_lookup.
4449
4450         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4451         negative N or less than NGIDS.
4452
4453         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4454         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4455         enough.  Use memcpy instead of strncpy.
4456
4457 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4458
4459         * elf/Makefile (check-data): Remove.
4460         (localplt.data): New vpath directive.
4461         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4462         instead of $(check-data).
4463         * scripts/data/localplt-generic.data: Move to ...
4464         * sysdeps/generic/localplt.data: ... here.
4465         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4466         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4467         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4469         ... here.
4470         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4472         ... here.
4473         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4474         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4475         ... here.
4476         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4477         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4478         ... here.
4479         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4480         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4481         ... here.
4482         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4483         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4484         ... here.
4485
4486 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4487
4488         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4489         PPC32 and PPC64 files.
4490         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4491         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4492
4493 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4494
4495         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4496         __makecontext_ret to ...
4497         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4498         ... here and call exit if uc_link is NULL.  New file.
4499         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4500         __makecontext_ret.S.
4501         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4502         __makecontext_ret to ...
4503         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4504         ... here and call exit if uc_link is NULL.  New file.
4505         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4506         __makecontext_ret.S.
4507
4508 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4509
4510         * elf/elf.h (R_390_IRELATIVE): New definition.
4511         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4512         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4513         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4514         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4515         (elf_machine_lazy_rel): Likewise.
4516         * sysdeps/s390/dl-irel.h: New file.
4517         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4518         * sysdeps/s390/s390-64/memset.S: New asm code.
4519         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4520         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4521         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4522         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4523         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4524         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4525         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4526         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4527         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4528         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4529         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4530         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4531         * sysdeps/s390/s390-32/memset.S: New asm code.
4532         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4533
4534 2012-07-17  Marek Polacek  <polacek@redhat.com>
4535
4536         [BZ #14349]
4537         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4538         * sysdeps/s390/s390-64/configure.in: Likewise.
4539         * sysdeps/sparc/configure.in: Likewise.
4540         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4541         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4542         * sysdeps/i386/configure.in: Likewise.
4543         * sysdeps/x86_64/configure.in: Likewise.
4544         * sysdeps/sh/configure.in: Likewise.
4545         * sysdeps/s390/s390-32/configure: Regenerated.
4546         * sysdeps/s390/s390-64/configure: Likewise.
4547         * sysdeps/x86_64/configure: Likewise.
4548         * sysdeps/sh/configure: Likewise.
4549         * sysdeps/powerpc/powerpc64/configure: Likewise.
4550         * sysdeps/powerpc/powerpc32/configure: Likewise.
4551         * sysdeps/sparc/configure: Likwise.
4552         * sysdeps/i386/configure: Likewise.
4553
4554         * elf/dl-open.c: Comment fixes.
4555
4556 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4557
4558         * Makefile [CXX] (check-data): Remove.
4559         [CXX] (c++-types.data): New vpath directive.
4560         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4561         vpath.  Do not allow for C++ type data being missing.
4562         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4563         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4564         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4565         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4566         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4567         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4568         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4570         ... here.
4571         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4573         ... here.
4574         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4575         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4576         ... here.
4577         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4578         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4579         ... here.
4580         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4581         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4582         ... here.
4583         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4584         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4585         ... here.
4586         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4587         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4588         ... here.
4589         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4590         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4591
4592         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4593         definitions to architecture-specific files.
4594         (TLS_IE): Likewise.
4595         (TLS_LD): Likewise.
4596         (TLS_GD): Likewise.
4597         * sysdeps/i386/tls-macros.h: New file.
4598         * sysdeps/powerpc/tls-macros.h: Likewise.
4599         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4600         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4601         * sysdeps/sh/tls-macros.h: Likewise.
4602         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4603         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4604         * sysdeps/x86_64/tls-macros.h: Likewise.
4605
4606 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4607
4608         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4609         zero value for regular exit case.
4610
4611         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4612         (__start_context): Preserve zero value for regular exit case.
4613
4614 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4615             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4616
4617         * manual/setjmp.texi (setcontext): Clarify normal process
4618         termination when uc_link is the null pointer.
4619         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4620         exit call.
4621
4622 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4623
4624         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4625         preprocessor.  Test for each exception mask separately.
4626
4627 2012-07-16  Andreas Jaeger  <aj@suse.de>
4628
4629         * po/ru.po: Update from translation team.
4630
4631 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4632
4633         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4634         equal to 0.
4635         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4636         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4637         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4638         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4639         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4640
4641 2012-07-13  Andreas Jaeger  <aj@suse.de>
4642
4643         * po/fr.po: Update from translation team.
4644
4645 2012-07-12  Marek Polacek  <polacek@redhat.com>
4646
4647         [BZ #14173]
4648         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4649         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4650         loop condition.
4651
4652 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4653
4654         [BZ #13717]
4655         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4656         Change to 2.4.1 where previously 2.4.0.
4657         * sysdeps/unix/sysv/linux/configure: Regenerated.
4658         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4659         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4660         version.
4661         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4662         (__ASSUME_AT_CLKTCK): Remove.
4663         (__ASSUME_AT_PAGESIZE): Likewise.
4664         (__ASSUME_AT_XID): Likewise.
4665         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4666         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4667         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4668         unconditionally.
4669         (HAVE_AUX_PAGESIZE): Likewise.
4670         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4671         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4672         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4673
4674 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4675
4676         [BZ #14307]
4677         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4678         the temporary buffer used to invoke __gethostbyname2_r,
4679         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4680         host_data / struct gaih_addrtuple.
4681         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4682         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4683         header file nss/nsswitch.h.
4684         * nss/nsswitch.h (global scope): Add definition of implementation
4685         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4686         resolv/nss_dns/dns-host.c).
4687
4688 2012-07-11  Andreas Jaeger  <aj@suse.de>
4689
4690         * po/fr.po: Update from translation team.
4691
4692         * po/sv.po: Update from translation team
4693         * po/fr.po: Another update from translation team.
4694
4695 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4696
4697         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4698         for subnormals or multiply small sinh result by itself.
4699         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4700         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4701
4702 2012-07-11  David S. Miller  <davem@davemloft.net>
4703
4704         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4705
4706 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4707
4708         [BZ #14347]
4709         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4710         (INTERNAL_MARK): Shift it here.
4711
4712 2012-07-10  Marek Polacek  <polacek@redhat.com>
4713
4714         [BZ #14151]
4715         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4716         libc_cv_asm_global_directive with .globl.
4717         * configure: Regenerated.
4718         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4719         with .globl.
4720         * sysdeps/i386/configure: Regenerated.
4721         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4722         with .globl.
4723         * sysdeps/x86_64/configure: Regenerated.
4724         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4725         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4726         * elf/tst-unique2mod2.c: Likewise.
4727         * elf/tst-unique2mod1.c: Likewise.
4728         * elf/tst-unique1mod2.c: Likewise.
4729         * elf/tst-unique1mod1.c: Likewise.
4730         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4731         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4732         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4733         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4734         * sysdeps/mach/sysdep.h: Likewise.
4735         * sysdeps/i386/sysdep.h: Likewise.
4736         * sysdeps/i386/i386-mcount.S: Likewise.
4737         * sysdeps/x86_64/_mcount.S: Likewise.
4738         * sysdeps/x86_64/sysdep.h: Likewise.
4739         * sysdeps/sh/_mcount.S: Likewise.
4740         * sysdeps/sh/sysdep.h: Likewise.
4741         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4742         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4743         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4744         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4745         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4746         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4747         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4748         * locale/localeinfo.h: Likewise.
4749         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4750         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4751
4752 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4753
4754         [BZ #14336]
4755         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4756         system".
4757         * manual/message.texi (The Uniforum approach): Likewise.
4758         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4759         (glibc iconv Implementation): Likewise.
4760
4761 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4762
4763         [BZ #14337]
4764         * math/s_clog.c (__clog): Avoid scaling a value down where that
4765         could result in underflow.
4766         * math/s_clog10.c (__clog10): Likewise.
4767         * math/s_clog10f.c (__clog10f): Likewise.
4768         * math/s_clog10l.c (__clog10l): Likewise.
4769         * math/s_clogf.c (__clogf): Likewise.
4770         * math/s_clogl.c (__clogl): Likewise.
4771         * math/libm-test.inc (clog_test): Add more tests.
4772         (clog10_test): Likewise.
4773         * sysdeps/i386/fpu/libm-test-ulps: Update.
4774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4775
4776 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4777
4778         [BZ #14283]
4779         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4780         by 7 not 8 to examine high bit of fractional part.
4781
4782         [BZ #14042]
4783         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4784         for call to __mcount_internal.
4785         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4786         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4787         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4788
4789 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4790
4791         [BZ #14154]
4792         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4793         approximation for values within 0x1p-13f of an odd multiple of
4794         pi/4.
4795         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4796         exception.  Add more tests.
4797         * sysdeps/i386/fpu/libm-test-ulps: Update.
4798
4799         [BZ #6778]
4800         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4801         inputs and return -1 for them.  Do not check for +Inf in case not
4802         reachable for +Inf.
4803         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4804         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4805         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4806         and return -1 for them.  Do not check for +Inf in case not
4807         reachable for +Inf.
4808         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4809         define.
4810         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4811         and return -1 for them.  Do not check for +Inf in case not
4812         reachable for +Inf.
4813         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4814         spurious underflow.
4815         * sysdeps/i386/fpu/libm-test-ulps: Update.
4816         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4817
4818 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4819
4820         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4821
4822 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4823
4824         [BZ #14157]
4825         [BZ #14331]
4826         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4827         could result in spurious underflow.  Scale down values above
4828         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4829         * math/s_csqrtf.c (__csqrtf): Likewise.
4830         * math/s_csqrtl.c (__csqrtl): Likewise.
4831         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4832         spurious underflow.
4833         * sysdeps/i386/fpu/libm-test-ulps: Update.
4834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4835
4836 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4837
4838         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4839         xopen-msg.sed.
4840         * catgets/xopen-msg.awk: New file.
4841         * catgets/xopen-msg.sed: Removed.
4842
4843         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4844         po2text.sed.
4845         * intl/po2test.awk: New file.
4846         * intl/po2test.sed: Removed.
4847
4848 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4849
4850         [BZ #14328]
4851         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4852         or multiply small sinh result by itself.
4853         * math/s_ctanf.c (__ctanf): Likewise.
4854         * math/s_ctanh.c (__ctanh): Likewise.
4855         * math/s_ctanhf.c (__ctanhf): Likewise.
4856         * math/s_ctanhl.c (__ctanhl): Likewise.
4857         * math/s_ctanl.c (__ctanl): Likewise.
4858         * math/libm-test.inc (ctan_test_tonearest): New function.
4859         (ctan_test_towardzero): Likewise.
4860         (ctan_test_downward): Likewise.
4861         (ctan_test_upward): Likewise.
4862         (ctanh_test_tonearest): Likewise.
4863         (ctanh_test_towardzero): Likewise.
4864         (ctanh_test_downward): Likewise.
4865         (ctanh_test_upward): Likewise.
4866         (main): Call these new functions.
4867         * sysdeps/i386/fpu/libm-test-ulps: Update.
4868         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4869
4870 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4871
4872         * .gitignore: Delete /ports entry.
4873
4874 2012-07-03  Andreas Jaeger  <aj@suse.de>
4875
4876         * po/bg.po: Update from translation team.
4877         * po/cs.po: Likewise.
4878         * po/de.po: Likewise.
4879         * po/hr.po: Likewise.
4880         * po/nl.pl: Likewise.
4881         * po/pl.po: Likewise.
4882         * po/vi.po: Likewise.
4883
4884 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4885
4886         * Makeconfig [!+link] (+link-before-libc): New variable.
4887         [!+link] (+link-after-libc): Likewise.
4888         [!+link] (+link-tests): Likewise.
4889         [!+link] (+link): Define in terms of $(+link-before-libc) and
4890         $(+link-after-libc).
4891         [!+link-static] (+link-static-before-libc): New variable.
4892         [!+link-static] (+link-static-after-libc): Likewise.
4893         [!+link-static] (+link-static-tests): Likewise.
4894         [!+link-static] (+link-static): Define in terms of
4895         $(+link-static-before-libc) and $(+link-static-after-libc).
4896         [build-shared] (link-libc-before-gnulib): New variable.
4897         [build-shared] (link-libc-tests): Likewise.
4898         [build-shared] (link-libc): Define in terms of
4899         $(link-libc-before-gnulib).
4900         [!build-shared] (link-libc-tests): New variable.
4901         (link-libc-static-tests): New variable.
4902         [!gnulib] (gnulib-arch): New variable.
4903         [!gnulib] (gnulib-tests): Likewise.
4904         [!gnulib] (static-gnulib-arch): Likewise.
4905         [!gnulib] (static-gnulib-tests): Likewise.
4906         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4907         Define with "=" instead of ":=".
4908         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4909         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4910         * Rules (binaries-all-notests): New variable.
4911         (binaries-all-tests): Likewise.
4912         (binaries-static-notests): Likewise.
4913         (binaries-static-tests): Likewise.
4914         (binaries-all): Define using $(binaries-all-notests) and
4915         $(binaries-all-tests).
4916         (binaries-static): Define using $(binaries-static-notests) and
4917         $(binaries-static-tests).
4918         (binaries-shared-tests): New variable.
4919         (binaries-shared-notests): Likewise.
4920         (binaries-shared): Remove variable.
4921         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4922         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4923         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4924         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4925         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4926         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4927         * elf/Makefile (sln-modules): New variable.
4928         (extra-objs): Add $(sln-modules:=.o).
4929         (ldconfig-modules): Add static-stubs.
4930         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4931         * elf/static-stubs.c: New file.
4932
4933         [BZ #14283]
4934         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4935         by 7 not 8 to examine high bit of fractional part.  Use volatile
4936         variables when splitting into final array of floats if
4937         __FLT_EVAL_METHOD__ != 0.
4938         * math/libm-test.inc (cos_test): Add another test.
4939         (sin_test): Likewise.
4940         * sysdeps/i386/fpu/libm-test-ulps: Update.
4941
4942         [BZ #14273]
4943         * math/libm-test.inc (cosh_test): Add more tests.
4944
4945         * version.h (RELEASE): Set to "development".
4946         (VERSION): Set to "2.16.90".
4947
4948 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4949
4950         * NEWS: Update copyright. Remove last-updated date.
4951         Mention math library bug fixes and timezone data changes.
4952         * README: Mention GNU/Hurd, x32, and HPPA support status.
4953
4954 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4955
4956         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4957
4958 2012-06-27  Andreas Jaeger  <aj@suse.de>
4959
4960         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4961
4962 2012-06-25  Andreas Jaeger  <aj@suse.de>
4963
4964         * sysdeps/s390/fpu/libm-test-ulps: Update.
4965
4966 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4967             Thomas Schwinge  <thomas@codesourcery.com>
4968
4969         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4970         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4971         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4972         fanotify_mark.
4973
4974 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4975
4976         * sysdeps/mach/start.c: Remove file.
4977         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4978         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4979         * sysdeps/sh/init-first.c: Likewise.
4980
4981         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4982         registers for frame unwinding purposes, add CFI directives.
4983         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4984         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4985         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4986         Likewise.
4987
4988         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4989         __fortify_fail returning.
4990         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4991
4992         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4993         sysdeps/sh/____longjmp_chk.S.
4994         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4995         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4996         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4997         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4998
4999         * sysdeps/sh/abort-instr.h: New file.
5000         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5001         process in case exit returns.
5002
5003         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5004         initialize the GOT register before use.
5005
5006         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5007         calculation of ARGC > 4.
5008
5009         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5010         meaningful names to some local labels.
5011
5012 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5013             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5014
5015         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5016         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5017         (__arch_compare_and_exchange_val_16_acq): Likewise.
5018         (__arch_compare_and_exchange_val_32_acq): Likewise.
5019         (atomic_exchange_and_add): Fix gUSA sequence.
5020         (atomic_add): Likewise.
5021         (atomic_add_negative): Likewise.
5022         (atomic_add_zero): Likewise.
5023         (atomic_bit_test_set): Likewise.
5024
5025 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5026
5027         [BZ #13579]
5028         * include/link.h (struct link_map): Add l_free_initfini.
5029         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5030         l_initfini.
5031         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5032         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5033         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5034         set.
5035
5036 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5037
5038         * configure.in: Use AC_LANG_SOURCE.
5039         * configure: Regenerate.
5040
5041 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5042
5043         * configure.in (libc_cv_localstatedir): New substituted variable.
5044         * configure: Regenerated.
5045         * config.make.in (localstatedir): New variable, substituted from
5046         libc_cv_localstatedir.
5047         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5048         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5049         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5050         * sysdeps/gnu/configure: Regenerated.
5051
5052 2012-06-21  Jeff Law  <law@redhat.com>
5053
5054         [BZ #14277]
5055         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5056         free.  Simplify list management for _LIBC case.
5057
5058 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5059
5060         [BZ #14273]
5061         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5062         Clear sign bit of 64-bit integer value before comparing against
5063         overflow value.
5064
5065         * sysdeps/mach/configure: Regenerated.
5066
5067 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5068
5069         [BZ #14278]
5070         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5071
5072 2012-06-21  Jeff Law  <law@redhat.com>
5073
5074         [BZ #13882]
5075         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5076         uint16_t for elements in the "seen" array to avoid char overflows.
5077         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5078         * elf/dl-open.c (dl_open_worker): Likewise.
5079
5080 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5081
5082         * scripts/list-sources.sh: Scan PORTS for translations.
5083         * po/libc.pot: Regenerated.
5084
5085 2012-06-21  Andreas Jaeger  <aj@suse.de>
5086
5087         [BZ #12194]
5088         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5089         warning.
5090         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5091         * bits/byteswap-16.h (__bswap_16): Likewise.
5092         * bits/byteswap.h (__bswap_constant_16): Likewise.
5093
5094 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5095
5096         [BZ #14117]
5097         * sysdeps/i386/fpu_control.h: Removed.
5098         * sysdeps/x86_64/fpu_control.h: Moved to ...
5099         * sysdeps/x86/fpu_control.h: Here.
5100
5101         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5102         (_FPU_SETCW): Likewise.
5103
5104 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5105
5106         [BZ #14117]
5107         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5108         * sysdeps/x86/fpu/bits/mathinline.h: This.
5109         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5110
5111         [BZ #14050]
5112         [BZ #14117]
5113         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5114         functions if __x86_64__ is defined.
5115
5116 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5117
5118         * string/endian.h: Add !__ASSEMBLER__ condition for including
5119         conversion interfaces.
5120
5121 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5122
5123         [BZ #14241]
5124         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5125         of ABS(x) in calculating zero to negative powers other than odd
5126         integers.
5127         * math/libm-test.inc (pow_test): Add more tests.
5128
5129 2012-06-15  Andreas Jaeger  <aj@suse.de>
5130
5131         * manual/contrib.texi (Contributors): Update entry of Liubov
5132         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5133         Machado Filho.
5134
5135 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5136
5137         * string/string.h: Add __wur to GNU version of strerror_r.
5138
5139 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5140
5141         [BZ #14229]
5142         * string/Makefile (tests): Add tst-strtok_r.
5143         * string/tst-strtok_r.c: New file.
5144         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5145         RAX_LP/RDX_LP on SAVE_PTR.
5146
5147 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5148
5149         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5150
5151 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5152
5153         * libm_test.inc (csqrt_test): Allow more spurious underflow
5154         exceptions.
5155         (j0_test): Likewise.
5156         (j1_test): Likewise.
5157         (y0_test): Likewise.
5158         (y1_test): Likewise.
5159
5160 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5161
5162         * po/Makefile (libc.pot): Use UTF-8 charset.
5163
5164 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5165
5166         [BZ #14210]
5167         Suppress sign-conversion warning from FD_SET.
5168         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5169         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5170         not unsigned long int.
5171         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5172
5173 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5174
5175         [BZ #14050]
5176         [BZ #14117]
5177         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5178         __extern_always_inline instead of __extern_inline.
5179         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5180         (__signbit): Likewise.
5181         (__signbitl): Support C++ namespace.
5182         (lrintf): New inline function.
5183         (lrint): Likewise.
5184         (llrintf): Likewise.
5185         (llrint): Likewise.
5186         (fmaxf): Likewise.
5187         (fmax): Likewise.
5188         (fminf): Likewise.
5189         (fmin): Likewise.
5190         (rint): Likewise.
5191         (rintf): Likewise.
5192         (ceil): Likewise.
5193         (ceilf): Likewise.
5194         (floor): Likewise.
5195         (floorf): Likewise.
5196         (nearbyint): Likewise.
5197         (nearbyintf): Likewise.
5198
5199 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5200
5201         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5202         non-default versions.
5203
5204 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5205
5206         [BZ #14218]
5207         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5208
5209 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5210
5211         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5212         (FE_UPWARD, FE_DOWNWARD): Don't define.
5213         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5214         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5215
5216         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5217         reading it.
5218         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5219         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5220
5221 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5222
5223         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5224         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5225         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5226         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5227
5228 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5229
5230         [BZ #14117]
5231         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5232         * sysdeps/i386/fpu/Implies: New file.
5233         * sysdeps/x86_64/fpu/Implies: Likewise.
5234         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5235         * sysdeps/x86/fpu/bits/fenv.h: This.
5236
5237         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5238         __SSE_MATH__.
5239
5240 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5241
5242         [BZ #14134]
5243         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5244         character 0xffff that matches the last element of the
5245         conversion table.
5246
5247 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5248
5249         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5250         fmodl commit.
5251
5252 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5253
5254         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5255         values higher than 25.6283.
5256
5257 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5258
5259         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5260         subnormal exponent extraction and add some __builtin_expect.
5261         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5262         Fix for subnormal mantissa calculation.
5263
5264 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5265
5266         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5267         cpu2 is -1 and errno is not ENOSYS.
5268
5269 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5270
5271         [BZ #14117]
5272         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5273         * sysdeps/x86/bits/string.h: This.
5274         * sysdeps/x86_64/bits/string.h: Removed.
5275
5276         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5277         if not compiling for x86-64, but compiling for >= i486.
5278
5279         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5280         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5281
5282         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5283         New macro from Linux kernel 3.4.0.
5284         (FP_XSTATE_MAGIC2): Likewise.
5285         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5286         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5287         (struct _fpx_sw_bytes): New struct.
5288         (struct _xsave_hdr): Likewise.
5289         (struct _ymmh_state): Likewise.
5290         (struct _xstate): Likewise.
5291
5292         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5293         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5294         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5295         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5296         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5297         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5298
5299         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5300         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5301         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5302         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5303         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5304         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5305
5306 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5307
5308         [BZ #13743]
5309         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5310         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5311         (sysdep_headers): Include sys/platform/ppc.h.
5312         * sysdeps/powerpc/test-gettimebase.c: Test for
5313         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5314         * manual/Makefile (appendices): Include platform.texi.
5315         * manual/contrib.texi (Contributors): Update @node pointers.
5316         * manual/maint.texi (Maintenance): Likewise.
5317         (Platform): New node.
5318         * manual/platform.texi: New file.  Document the new features.
5319
5320 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5321             Jakub Jelinek  <jakub@redhat.com>
5322
5323         [BZ #14188]
5324         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5325         where __builtin_expect is unavailable.
5326
5327 2012-06-03  David S. Miller  <davem@davemloft.net>
5328
5329         * stdlib/longlong.h: Updated from GCC.
5330
5331 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5332
5333         [BZ #14042]
5334         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5335         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5336         __mcount_internal.
5337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5338         (GLIBC_2.16): Likewise.
5339
5340 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5341
5342         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5343
5344 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5345
5346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5347         (default-abi): New variable.
5348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5349         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5350         variable.
5351         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5352         Likewise.
5353         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5354         Likewise.
5355         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5356         Likewise.
5357
5358         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5359         definition.  Document in comment.
5360
5361 2012-06-01  David S. Miller  <davem@davemloft.net>
5362
5363         * stdlib/longlong.h: Updated from GCC.
5364
5365 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5366
5367         [BZ #14117]
5368         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5369         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5370         sys/debugreg.h sys/io.h here.
5371         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5372         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5373         sys/io.h.
5374         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5375         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5376         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5377         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5378         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5379         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5380
5381         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5382         Define only if __x86_64__ is defined.
5383
5384 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5385
5386         [BZ #14048]
5387         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5388         Use int64_t for variable i.
5389         * math/libm-test.inc (fmod_test): Add more tests.
5390
5391         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5392         z computation is not scheduled after fetestexcept.
5393         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5394         Use math_force_eval instead of asm to ensure calculation scheduled
5395         before exception test.
5396         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5397         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5398
5399 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5400
5401         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5402         computation is not scheduled after fetestexcept.
5403
5404 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5405
5406         [BZ #14117]
5407         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5408         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5409
5410 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5411
5412         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5413         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5414
5415 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5416
5417         [BZ #14117]
5418         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5419         <bits/wordsize.h>.
5420         (__WCHAR_MIN): Support __WORDSIZE == 64.
5421         (__WCHAR_MAX): Likewise.
5422
5423         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5424         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5425
5426         [BZ #14183]
5427         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5428         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5429
5430         [BZ #14117]
5431         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5432         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5433
5434         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5435         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5436
5437         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5438         Defined to 1 if __x86_64__ isn't defined.
5439         (_STAT_VER_LINUX_OLD): New.
5440         (st_atime): Remove duplicate.
5441         (st_mtime): Likewise.
5442         (st_ctime): Likewise.
5443
5444 2012-05-31  David S. Miller  <davem@davemloft.net>
5445
5446         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5447         entries.
5448
5449 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5450
5451         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5452         gen-libm-test.pl.
5453
5454         [BZ #14132]
5455         * elf/dl-reloc.c: Include <_itoa.h>.
5456         (_dl_reloc_bad_type): Remove use of INTUSE.
5457         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5458         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5459         * stdio-common/psiginfo.c (psiginfo): Likewise.
5460         * stdio-common/psignal.c (psignal): Likewise.
5461         * string/strsignal.c (strsignal): Likewise.
5462         * include/signal.h (_sys_siglist): Declare hidden proto.
5463         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5464         INTVARDEF with libc_hidden_data_def.
5465         * stdio-common/itoa-udigits.c: Likewise.
5466         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5467         (_itoa_lower_digits_internal): Remove declaration.
5468         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5469         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5470         (_sys_sigabbrev_internal): Remove aliases.
5471         (_sys_siglist): Define hidden alias.
5472
5473 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5474
5475         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5476         bits/sysctl.h.
5477
5478 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5479
5480         [BZ #14117]
5481         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5482         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5483
5484         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5485         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5486         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5487         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5488         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5489         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5490
5491         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5492         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5493         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5494
5495         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5496         with __addr.
5497         (insw): Likewise.
5498         (insl): Likewise.
5499         (outsb): Likewise.
5500         (outsw): Likewise.
5501         (outsl): Likewise.
5502
5503         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5504         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5505         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5506
5507         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5508         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5509         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5510         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5511         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5512         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5513
5514         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5515         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5516
5517         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5518         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5519
5520         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5521         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5522         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5523
5524         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5525         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5526         to ...
5527         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5528
5529         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5530         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5531         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5532
5533         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5534         for x86-64.
5535         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5536
5537 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5538
5539         * math/math.h (M_El): Use two more decimal places.
5540         (M_LOG2El): Likewise.
5541         (M_LOG10El): Likewise.
5542         (M_LN2l): Likewise.
5543         (M_LN10l): Likewise.
5544         (M_PIl): Likewise.
5545         (M_PI_2l): Likewise.
5546         (M_PI_4l): Likewise.
5547         (M_1_PIl): Likewise.
5548         (M_2_PIl): Likewise.
5549         (M_2_SQRTPIl): Likewise.
5550         (M_SQRT2l): Likewise.
5551         (M_SQRT1_2l): Likewise.
5552
5553 2012-05-31  David S. Miller  <davem@davemloft.net>
5554
5555         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5556         values between float registers.
5557         * sysdeps/sparc/sparc64/memset.S: Likewise.
5558         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5559
5560 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5561
5562         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5563         -D_FORTIFY_SOURCE=1.
5564         (CPPFLAGS-tst-longjmp_chk.c): Define.
5565         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5566         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5567         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5568         CFLAGS-tst-wchar-h.c.
5569
5570 2012-05-31  Marek Polacek  <polacek@redhat.com>
5571
5572         [BZ #14132]
5573         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5574         __endmntent_internal): Remove declaration.
5575         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5576         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5577         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5578
5579 2012-05-30  David S. Miller  <davem@davemloft.net>
5580
5581         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5582         (___Q_simulate_exceptions): Use real FP ops rather than writing
5583         into the %fsr.
5584         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5585         Likewise.
5586
5587 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5588
5589         [BZ #14117]
5590         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5591         * sysdeps/x86/bits/xtitypes.h: This.
5592
5593         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5594         * sysdeps/x86/bits/wordsize.h: This.
5595
5596         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5597         * sysdeps/x86/bits/huge_vall.h: This.
5598
5599         * sysdeps/i386/bits/select.h: Removed.
5600         * sysdeps/x86_64/bits/select.h: Renamed to ...
5601         * sysdeps/x86/bits/select.h: This.
5602
5603         * sysdeps/i386/bits/setjmp.h: Removed.
5604         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5605         * sysdeps/x86/bits/setjmp.h: This.
5606
5607         * sysdeps/i386/bits/mathdef.h: Removed.
5608         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5609         * sysdeps/x86/bits/mathdef.h: This.
5610
5611 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5612
5613         [BZ #14132]
5614         * include/sys/socket.h (__connect_internal)
5615         (__libc_sa_len_internal): Remove declaration.
5616         (__connect, __libc_sa_len): Declare hidden_proto.
5617         (SA_LEN): Remove use of INTUSE.
5618         * socket/connect.c: Add libc_hidden_def.
5619         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5620         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5621         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5622         alias.
5623         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5624         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5625         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5626         of adding _internal alias.
5627
5628 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5629
5630         [BZ #14117]
5631         * sysdeps/i386/bits/link.h: Removed.
5632         * sysdeps/i386/bits/linkmap.h: Likewise.
5633         * sysdeps/x86_64/bits/link.h: Renamed to ...
5634         * sysdeps/x86/bits/link.h: This.
5635         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5636         * sysdeps/x86/bits/linkmap.h: This.
5637
5638         * sysdeps/i386/bits/endian.h: Removed.
5639         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5640         * sysdeps/x86/bits/endian.h: This.
5641
5642         * sysdeps/i386/bits/byteswap.h: Removed.
5643         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5644         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5645         * sysdeps/x86/bits/byteswap.h: This.
5646         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5647         * sysdeps/x86/bits/byteswap-16.h: This.
5648         * sysdeps/i386/Implies: Add x86.
5649         * sysdeps/x86_64/Implies: Likewise.
5650
5651 2012-05-30  David S. Miller  <davem@davemloft.net>
5652
5653         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5654         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5655         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5656         (FP_TRAPPING_EXCEPTIONS): Define.
5657         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5658         (FP_TRAPPING_EXCEPTIONS): Define.
5659         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5660         subnormals only when inexact has been signalled or underflow
5661         exceptions are enabled.
5662         (_FP_PACK_CANONICAL): Likewise.
5663
5664 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5665
5666         [BZ #14183]
5667         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5668         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5669
5670 2012-05-30  Richard Henderson  <rth@twiddle.net>
5671
5672         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5673         with #ifndef NOT_IN_libc.
5674
5675         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5676         marked to avoid plt entry.
5677
5678 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5679
5680         [BZ #14112]
5681         * Makeconfig (default-abi): New macro.
5682         (abi-includes): Likewise.
5683         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5684         $(abi-$(default-abi)-lib-soname) for soname if defined.
5685         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5686         abi-variants.
5687         * Makefile (installed-stubs): Likewise.
5688         * include/stubs-biarch.h: Removed.
5689         * scripts/lib-names.awk: Only handle one library at a time.
5690         * scripts/soversions.awk: Remove WORDSIZE support.
5691         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5692         entries.
5693         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5694         Removed.
5695         (syscall-list-default-condition): Likewise.
5696         (syscall-list-default-condition): Likewise.
5697         (syscall-list-includes): Likewise.
5698         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5699         syscall-list-* with abi-*.  Handle undefined abi-variants.
5700         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5701         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5702         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5703         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5704         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5705         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5706         Removed.
5707         (syscall-list-32-options): Likewise.
5708         (syscall-list-32-condition): Likewise.
5709         (syscall-list-64-options): Likewise.
5710         (syscall-list-64-condition): Likewise.
5711         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5712         macro.
5713         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5714         Renamed to ...
5715         (abi-*): This.
5716         (abi-64-ld-soname): New macro.
5717         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5718         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5719         Renamed to ...
5720         (abi-*): This.
5721         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5722         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5723
5724 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5725
5726         * sysdeps/unix/sysv/linux/kernel-features.h
5727         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5728         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5729         include <kernel-features.h>.
5730         [!__NR_ftruncate64]: Remove conditional code.
5731         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5732         [__NR_ftruncate64]: Make code unconditional.
5733         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5734         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5735         include <kernel-features.h>.
5736         [!__NR_ftruncate64]: Remove conditional code.
5737         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5738         [__NR_ftruncate64]: Make code unconditional.
5739         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5741         include <kernel-features.h>.
5742         [!__NR_ftruncate64]: Remove conditional code.
5743         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5744         [__NR_ftruncate64]: Make code unconditional.
5745         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5747         include <kernel-features.h>.
5748         [!__NR_ftruncate64]: Remove conditional code.
5749         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5750         [__NR_ftruncate64]: Make code unconditional.
5751         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5752
5753         * configure.in (libc_cv_fpie): Weaken to a compile test using
5754         LIBC_TRY_CC_OPTION.
5755         * configure: Regenerated.
5756
5757 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5758
5759         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5760         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5761         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5762         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5763         Refreshed.
5764         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5765         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5766         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5767         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5768         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5769         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5770         Refreshed.
5771
5772 2012-05-27  David S. Miller  <davem@davemloft.net>
5773
5774         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5775         (___Q_zero): New.
5776         (__Q_simulate_exceptions): Return void.  Change to simulate
5777         exceptions by writing into the %fsr.
5778         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5779         (__Qp_handle_exceptions): Likewise.
5780         (numbers): Delete.
5781         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5782         __Qp_handle_exceptions.
5783         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5784         __Qp_handle_exceptions.
5785         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5786         as unused and give dummy FP_RND_NEAREST initializer.
5787         (FP_INHIBIT_RESULTS): Define.
5788         (___Q_simulate_exceptions): Update declaration.
5789         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5790         formatting.
5791         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5792         as unused and give dummy FP_RND_NEAREST initializer.
5793         (__Qp_handle_exceptions): Update declaration.
5794         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5795         formatting.
5796
5797 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5798
5799         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5800         the temporary FPU control word.
5801         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5802         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5803         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5804         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5805         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5806         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5807         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5808         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5809         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5810         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5811         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5812
5813 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5814
5815         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5816         fields.
5817
5818 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5819
5820         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5821         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5822         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5823         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5824         Likewise.
5825         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5826         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5827         Likewise.
5828
5829 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5830
5831         * po/h.po: Update from translation team.
5832
5833 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5834
5835         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5836
5837         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5838         handling of denormals.
5839         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5840         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5841         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5842         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5843         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5844         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5845         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5846         Likewise.
5847
5848 2012-05-26  Marek Polacek  <polacek@redhat.com>
5849
5850         [BZ #14152]
5851         * math/libm-test.inc (fma_test): Don't always expect underflow
5852         exception.
5853
5854 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5855
5856         [BZ #12416]
5857         * elf/tst-execstack.c: Include stackinfo.h.
5858         (do_test): Adjust test case to ensure that pthread_getattr_np
5859         behaviour remains the same after marking stack executable.
5860
5861 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5862
5863         * sysdeps/unix/sysv/linux/kernel-features.h
5864         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5865         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5866         kernel-features.h.
5867         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5868         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5869         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5870         kernel-features.h.
5871         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5872         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5873
5874 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5875
5876         * configure.in: Define the default includes to being none.
5877         * configure: Regenerated.
5878
5879 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5880
5881         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5882         * sysdeps/x86_64/setjmp.S: Likewise.
5883         * sysdeps/i386/bsd-setjmp.S: Likewise.
5884         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5885         * sysdeps/i386/setjmp.S: Likewise.
5886         * sysdeps/i386/__longjmp.S: Likewise.
5887         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5888         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5889
5890         * include/stap-probe.h: New file.
5891         * configure.in: Handle --enable-systemtap.
5892         * configure: Regenerated.
5893         * config.h.in (USE_STAP_PROBE): New #undef.
5894         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5895         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5896         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5897
5898 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5899
5900         [BZ #13717]
5901         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5902         to 2.4.0 where earlier.
5903         * sysdeps/unix/sysv/linux/configure: Regenerated.
5904         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5905         <kernel-features.h>.
5906         [__ASSUME_32BITUIDS]: Make code unconditional.
5907         [!__ASSUME_32BITUIDS]: Remove conditional code.
5908         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5909         <kernel-features.h>.
5910         [__ASSUME_32BITUIDS]: Make code unconditional.
5911         [!__ASSUME_32BITUIDS]: Remove conditional code.
5912         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5913         [__ASSUME_32BITUIDS]: Make code unconditional.
5914         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5915         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5916         <kernel-features.h>.
5917         [__ASSUME_32BITUIDS]: Make code unconditional.
5918         [!__ASSUME_32BITUIDS]: Remove conditional code.
5919         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5920         <kernel-features.h>.
5921         [__ASSUME_32BITUIDS]: Make code unconditional.
5922         [!__ASSUME_32BITUIDS]: Remove conditional code.
5923         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5924         <kernel-features.h>.
5925         [__ASSUME_32BITUIDS]: Make code unconditional.
5926         [!__ASSUME_32BITUIDS]: Remove conditional code.
5927         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5928         <kernel-features.h>.
5929         [__ASSUME_32BITUIDS]: Make code unconditional.
5930         [!__ASSUME_32BITUIDS]: Remove conditional code.
5931         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5932         <kernel-features.h>.
5933         [__ASSUME_32BITUIDS]: Make code unconditional.
5934         [!__ASSUME_32BITUIDS]: Remove conditional code.
5935         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5936         <kernel-features.h>.
5937         [__ASSUME_32BITUIDS]: Make code unconditional.
5938         [!__ASSUME_32BITUIDS]: Remove conditional code.
5939         * sysdeps/unix/sysv/linux/i386/getuid.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/lchown.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/msgctl.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/semctl.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/setegid.c: Do not include
5956         <kernel-features.h>.
5957         [__NR_setresgid] (__setresgid): Do not declare.
5958         [__ASSUME_32BITUIDS]: Make code unconditional.
5959         [!__ASSUME_32BITUIDS]: Remove conditional code.
5960         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5961         <kernel-features.h>.
5962         [__NR_setresuid] (__setresuid): Do not declare.
5963         [__ASSUME_32BITUIDS]: Make code unconditional.
5964         [!__ASSUME_32BITUIDS]: Remove conditional code.
5965         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5966         <kernel-features.h>.
5967         [__ASSUME_32BITUIDS]: Make code unconditional.
5968         [!__ASSUME_32BITUIDS]: Remove conditional code.
5969         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5970         <kernel-features.h>.
5971         [__ASSUME_32BITUIDS]: Make code unconditional.
5972         [!__ASSUME_32BITUIDS]: Remove conditional code.
5973         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5974         <kernel-features.h>.
5975         [__ASSUME_32BITUIDS]: Make code unconditional.
5976         [!__ASSUME_32BITUIDS]: Remove conditional code.
5977         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5978         <kernel-features.h>.
5979         [__ASSUME_32BITUIDS]: Make code unconditional.
5980         [!__ASSUME_32BITUIDS]: Remove conditional code.
5981         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5982         <kernel-features.h>.
5983         [__ASSUME_32BITUIDS]: Make code unconditional.
5984         [!__ASSUME_32BITUIDS]: Remove conditional code.
5985         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5986         <kernel-features.h>.
5987         [__ASSUME_32BITUIDS]: Make code unconditional.
5988         [!__ASSUME_32BITUIDS]: Remove conditional code.
5989         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5990         <kernel-features.h>.
5991         [__ASSUME_32BITUIDS]: Make code unconditional.
5992         [!__ASSUME_32BITUIDS]: Remove conditional code.
5993         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5994         <kernel-features.h>.
5995         [__ASSUME_32BITUIDS]: Make code unconditional.
5996         [!__ASSUME_32BITUIDS]: Remove conditional code.
5997         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5998         <kernel-features.h>.
5999         [__ASSUME_32BITUIDS]: Make code unconditional.
6000         [!__ASSUME_32BITUIDS]: Remove conditional code.
6001         * sysdeps/unix/sysv/linux/i386/shmctl.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/kernel-features.h
6006         (__ASSUME_SETRESUID_SYSCALL): Remove.
6007         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6008         (__ASSUME_32BITUIDS): Likewise.
6009         (__ASSUME_LDT_WORKS): Likewise.
6010         (__ASSUME_O_DIRECTORY): Likewise.
6011         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6012         architecture but not kernel version.
6013         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6014         (__ASSUME_MMAP2_SYSCALL): Likewise.
6015         (__ASSUME_STAT64_SYSCALL): Likewise.
6016         (__ASSUME_IPC64): Likewise.
6017         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6018         <kernel-features.h>.
6019         [__ASSUME_32BITUIDS]: Make code unconditional.
6020         [!__ASSUME_32BITUIDS]: Remove conditional code.
6021         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6022         <kernel-features.h>.
6023         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6024         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6025         132096]: Remove conditional code.
6026         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6027         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6028         <kernel-features.h>.
6029         [__ASSUME_32BITUIDS]: Make code unconditional.
6030         [!__ASSUME_32BITUIDS]: Remove conditional code.
6031         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6032         <kernel-features.h>.
6033         [__ASSUME_32BITUIDS]: Make code unconditional.
6034         [!__ASSUME_32BITUIDS]: Remove conditional code.
6035         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6036         <kernel-features.h>.
6037         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6038         unconditional.
6039         (__setresgid): Do not declare.
6040         [__ASSUME_32BITUIDS]: Make code unconditional.
6041         [!__ASSUME_32BITUIDS]: Remove conditional code.
6042         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6043         <kernel-features.h>.
6044         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6045         unconditional.
6046         (__setresuid): Do not declare.
6047         [__ASSUME_32BITUIDS]: Make code unconditional.
6048         [!__ASSUME_32BITUIDS]: Remove conditional code.
6049         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6050         <kernel-features.h>.
6051         [__ASSUME_32BITUIDS]: Make code unconditional.
6052         [!__ASSUME_32BITUIDS]: Remove conditional code.
6053         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6054         <kernel-features.h>.
6055         [__ASSUME_32BITUIDS]: Make code unconditional.
6056         [!__ASSUME_32BITUIDS]: Remove conditional code.
6057
6058 2012-05-25  Richard Henderson  <rth@twiddle.net>
6059
6060         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6061         dl_hwcap to ifunc resolver.
6062         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6063         elf_ifunc_invoke.
6064         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6065         dl_hwcap to ifunc resolver.
6066         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6067
6068 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6069
6070         [BZ #14153]
6071         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6072         for |x| <= 2**-26, not 2**-57.
6073         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6074         exception.
6075
6076 2012-05-24  Jeff Law  <law@redhat.com>
6077
6078         * stdio-common/Makefile (tests): Add bug25.
6079         * stdio-common/bug25.c: New test.
6080
6081 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6082
6083         [BZ #13576]
6084         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6085         multiple of MALLOC_ALIGNMENT in size.
6086         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6087
6088 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6089
6090         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6091         Require >= 256.
6092         (FILENAME_MAX): Use macro-int-constant.
6093         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6094         (_IOFBF): Use macro-int-constant.
6095         (_IOLBF): Likewise.
6096         (_IONBF): Likewise.
6097         (SEEK_CUR): Likewise.
6098         (SEEK_END): Likewise.
6099         (SEEK_SET): Likewise.
6100         (TMP_MAX): Likewise.
6101         (EOF): Use macro-int-constant.  Require < 0.
6102         (NULL): Use macro-constant.  Require == 0.
6103         (stdin): Require type to be FILE *.
6104         (stdout): Likewise.
6105         (stderr): Likewise.
6106         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6107         macro-int-constant.
6108         (EXIT_SUCCESS): Likewise.
6109         (NULL): Use macro-constant.  Require == 0.
6110         (RAND_MAX): Use macro-int-constant.
6111         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6112         [C99-based standards] (strtof): Require function.
6113         [C99-based standards] (strtold): Likewise.
6114         [C99-based standards] (strtoll): Likewise.
6115         [C99-based standards] (strtoull): Likewise.
6116         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6117         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6118         [ISO || ISO99 || ISO11] (math.h): Likewise.
6119         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6120         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6121         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6122
6123 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6124
6125         [BZ #14132]
6126         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6127         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6128         * intl/dgettext.c (DCGETTEXT): Likewise.
6129         * intl/gettext.c (DCGETTEXT): Likewise.
6130         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6131         * posix/regex_internal.h (gettext): Likewise.
6132         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6133         Remove declaration.
6134         * include/argz.h (__argz_count_internal)
6135         (__argz_stringify_internal): Remove declaration.
6136         (__argz_count, __argz_stringify): Declare hidden proto.
6137         * intl/dcgettext.c: Remove use of INTDEF.
6138         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6139         * string/argz-stringify.c: Likewise.
6140         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6141         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6142         Declare hidden proto.
6143         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6144         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6145         Declare hidden proto.
6146         * include/stdio.h (__asprintf_internal): Don't declare.
6147         (__asprintf): Don't define as macro.  Declare hidden proto.
6148         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6149         (__fsetlocking): Declare hidden proto.
6150         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6151         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6152         hidden proto.
6153         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6154         (_IO_setlinebuf): Remove use of INTUSE.
6155         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6156         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6157         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6158         Remove declaration.
6159         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6160         (_IO_do_flush): Remove use of INTUSE.
6161         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6162         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6163         (_IO_adjust_column, _IO_least_wmarker)
6164         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6165         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6166         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6167         (_IO_default_doallocate, _IO_wdefault_doallocate)
6168         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6169         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6170         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6171         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6172         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6173         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6174         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6175         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6176         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6177         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6178         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6179         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6180         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6181         proto.
6182         (_IO_flush_all_internal, _IO_adjust_column_internal)
6183         (_IO_default_uflow_internal, _IO_default_finish_internal)
6184         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6185         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6186         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6187         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6188         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6189         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6190         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6191         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6192         (_IO_file_close_internal, _IO_file_close_it_internal)
6193         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6194         (_IO_file_init_internal, _IO_file_attach_internal)
6195         (_IO_file_fopen_internal, _IO_file_read_internal)
6196         (_IO_file_sync_internal, _IO_file_seek_internal)
6197         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6198         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6199         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6200         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6201         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6202         (_IO_list_all_internal, _IO_link_in_internal)
6203         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6204         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6205         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6206         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6207         (_IO_do_write_internal, _IO_padn_internal)
6208         (_IO_getline_info_internal, _IO_getline_internal)
6209         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6210         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6211         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6212         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6213         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6214         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6215         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6216         with libc_hidden_ver, remove use of INTUSE.
6217         * libio/genops.c: Likewise.
6218         * libio/freopen.c: Likewise.
6219         * libio/freopen64.c: Likewise.
6220         * libio/iofclose.c: Likewise.
6221         * libio/iofdopen.c: Likewise.
6222         * libio/iofflush.c: Likewise.
6223         * libio/iofflush_u.c: Likewise.
6224         * libio/iofgets.c: Likewise.
6225         * libio/iofgets_u.c: Likewise.
6226         * libio/iofopen.c: Likewise.
6227         * libio/iofopncook.c: Likewise.
6228         * libio/iofread.c: Likewise.
6229         * libio/iofread_u.c: Likewise.
6230         * libio/ioftell.c: Likewise.
6231         * libio/iofwrite.c: Likewise.
6232         * libio/iogetline.c: Likewise.
6233         * libio/iogets.c: Likewise.
6234         * libio/iogetwline.c: Likewise.
6235         * libio/iopadn.c: Likewise.
6236         * libio/iopopen.c: Likewise.
6237         * libio/ioseekoff.c: Likewise.
6238         * libio/ioseekpos.c: Likewise.
6239         * libio/iosetbuffer.c: Likewise.
6240         * libio/iosetvbuf.c: Likewise.
6241         * libio/ioungetc.c: Likewise.
6242         * libio/ioungetwc.c: Likewise.
6243         * libio/iovdprintf.c: Likewise.
6244         * libio/iovsprintf.c: Likewise.
6245         * libio/iovsscanf.c: Likewise.
6246         * libio/memstream.c: Likewise.
6247         * libio/obprintf.c: Likewise.
6248         * libio/oldfileops.c: Likewise.
6249         * libio/oldiofclose.c: Likewise.
6250         * libio/oldiofdopen.c: Likewise.
6251         * libio/oldiofopen.c: Likewise.
6252         * libio/oldiopopen.c: Likewise.
6253         * libio/oldstdfiles.c: Likewise.
6254         * libio/putc.c: Likewise.
6255         * libio/setbuf.c: Likewise.
6256         * libio/setlinebuf.c: Likewise.
6257         * libio/stdfiles.c: Likewise.
6258         * libio/strops.c: Likewise.
6259         * libio/vasprintf.c: Likewise.
6260         * libio/vscanf.c: Likewise.
6261         * libio/vsnprintf.c: Likewise.
6262         * libio/vswprintf.c: Likewise.
6263         * libio/wfiledoalloc.c: Likewise.
6264         * libio/wfileops.c: Likewise.
6265         * libio/wgenops.c: Likewise.
6266         * libio/wmemstream.c: Likewise.
6267         * libio/wstrops.c: Likewise.
6268         * libio/__fpurge.c: Likewise.
6269         * libio/__fsetlocking.c: Likewise.
6270         * assert/assert.c: Likewise.
6271         * debug/fgets_chk.c: Likewise.
6272         * debug/fgets_u_chk.c: Likewise.
6273         * debug/fread_chk.c: Likewise.
6274         * debug/fread_u_chk.c: Likewise.
6275         * debug/gets_chk.c: Likewise.
6276         * debug/obprintf_chk.c: Likewise.
6277         * debug/vasprintf_chk.c: Likewise.
6278         * debug/vdprintf_chk.c: Likewise.
6279         * debug/vsnprintf_chk.c: Likewise.
6280         * debug/vsprintf_chk.c: Likewise.
6281         * malloc/mtrace.c: Likewise.
6282         * misc/error.c: Likewise.
6283         * misc/syslog.c: Likewise.
6284         * stdio-common/asprintf.c: Likewise.
6285         * stdio-common/fxprintf.c: Likewise.
6286         * stdio-common/getw.c: Likewise.
6287         * stdio-common/isoc99_fscanf.c: Likewise.
6288         * stdio-common/isoc99_scanf.c: Likewise.
6289         * stdio-common/isoc99_vfscanf.c: Likewise.
6290         * stdio-common/isoc99_vscanf.c: Likewise.
6291         * stdio-common/isoc99_vsscanf.c: Likewise.
6292         * stdio-common/printf-prs.c: Likewise.
6293         * stdio-common/printf_fp.c: Likewise.
6294         * stdio-common/printf_fphex.c: Likewise.
6295         * stdio-common/printf_size.c: Likewise.
6296         * stdio-common/putw.c: Likewise.
6297         * stdio-common/scanf.c: Likewise.
6298         * stdio-common/sprintf.c: Likewise.
6299         * stdio-common/tmpfile.c: Likewise.
6300         * stdio-common/vfprintf.c: Likewise.
6301         * stdio-common/vfscanf.c: Likewise.
6302         * stdlib/strfmon_l.c: Likewise.
6303         * sunrpc/openchild.c: Likewise.
6304         * sunrpc/xdr_stdio.c: Likewise.
6305         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6306         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6307
6308 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6309
6310         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6311
6312         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6313         in the third column, to generate for the shared library an IFUNC
6314         that uses _dl_vdso_vsym.
6315         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6316         * Makeconfig (object-suffixes-noshared): New variable.
6317
6318         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6319         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6320         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6321         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6322
6323         [BZ #14132]
6324         * include/sys/time.h (__gettimeofday): Remove macro.
6325         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6326         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6327         Remove INTDEF.
6328         (__gettimeofday): Add libc_hidden_def.
6329         (gettimeofday): Add libc_hidden_weak.
6330         * sysdeps/mach/gettimeofday.c: Likewise.
6331         * sysdeps/posix/gettimeofday.c: Likewise.
6332         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6333         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6334         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6335         (__gettimeofday_internal): Remove strong_alias.
6336         (__gettimeofday): Add libc_hidden_def.
6337         (gettimeofday): Add libc_hidden_weak.
6338         * sysdeps/unix/syscalls.list (gettimeofday):
6339         Remove __gettimeofday_internal alias.
6340
6341 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6342             H.J. Lu  <hongjiu.lu@intel.com>
6343
6344         [BZ #12495]
6345         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6346         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6347         (largebin_index_32_big): New.
6348         (largebin_index): Use it for 16-byte alignment.
6349         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6350         correction with front_misalign.
6351
6352 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6353
6354         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6355         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6356         Likewise.
6357         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6358         Likewise.
6359         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6360         Likewise.
6361         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6362         Likewise.
6363         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6364         Likewise.
6365         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6366         Likewise.
6367         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6368         Likewise.
6369         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6370         Likewise.
6371         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6372         Likewise.
6373         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6374         Likewise.
6375         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6376         Likewise.
6377         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6378         Likewise.
6379
6380         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6381         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6382
6383 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6384
6385         [BZ #10846]
6386         [BZ #14036]
6387         * math/libm-test.inc (exp_test): Add test from bug 14036.
6388         (pow_test): Add test from bug 10846.
6389
6390         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6391         and other flags.
6392         (special_function): Do not include flags in test name.
6393         (parse_args): Likewise.
6394         * sysdeps/i386/fpu/libm-test-ulps: Update.
6395         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6396         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6397         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6398         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6399
6400         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6401         exceptions.
6402         * math/libm-test.inc ("Philosophy"): Update comment about
6403         exception testing.
6404         (UNDERFLOW_EXCEPTION): New macro.
6405         (UNDERFLOW_EXCEPTION_OK): Likewise.
6406         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6407         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6408         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6409         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6410         (INVALID_EXCEPTION_OK): Update value.
6411         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6412         (OVERFLOW_EXCEPTION_OK): Likewise.
6413         (IGNORE_ZERO_INF_SIGN): Likewise.
6414         (test_exceptions): Handle underflow exceptions.
6415         (acos_test): Update for underflow exception expectations.
6416         (cexp_test): Likewise.
6417         (clog_test): Likewise.
6418         (clog10_test): Likewise.
6419         (csqrt_test): Likewise.
6420         (ctan_test): Likewise.
6421         (ctanh_test): Likewise.
6422         (exp_test): Likewise.
6423         (exp10_test): Likewise.
6424         (exp2_test): Likewise.
6425         (expm1_test): Likewise.
6426         (fma_test): Likewise.
6427         (j0_test): Likewise.
6428         (jn_test): Likewise.
6429         (nexttoward_test): Likewise.
6430         (pow_test): Likewise.
6431         (scalbn_test): Likewise.
6432         (scalbln_test): Likewise.
6433         (tan_test): Likewise.
6434         (y1_test): Likewise.
6435         * sysdeps/i386/fpu/libm-test-ulps: Update.
6436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6437
6438 2012-05-23  David S. Miller  <davem@davemloft.net>
6439
6440         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6441         (__libc_sigaction): Remove unused local variables.
6442
6443 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6444
6445         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6446
6447 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6448
6449         mktime: avoid signed integer overflow
6450         * time/mktime.c (__mktime_internal): Do not mishandle the case
6451         where diff == INT_MIN.
6452
6453         mktime: simplify computation of average
6454         * time/mktime.c (ranged_convert): Use new time_t_avg function
6455         instead of rolling our own (probably-slower) code.
6456
6457         mktime: do not assume signed right shift propagates sign bit
6458         * time/mktime.c (isdst_differ): New static function.
6459         (__mktime_internal): No need to normalize tm_isdst now.
6460         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6461         tm_isdst values.
6462
6463         mktime: merge another wrapv change from gnulib
6464         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6465         from some compilers.
6466
6467         mktime: remove incorrect attempt at unusual arithmetics
6468         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6469         The code didn't really work on such machines anyway.
6470         (TYPE_MINIMUM): Assume two's complement.
6471         (twos_complement_arithmetic): Verify that long_int and time_t
6472         are two's complement (or unsigned, in the latter case).
6473
6474         mktime: check signed shifts on long_int and time_t, too
6475         * time/mktime.c (SHR): Check that shifts work as desired
6476         on the types long_int and time_t too, as SHR is used on
6477         such types.
6478
6479         mktime: do not assume 'long' is wide enough
6480         * time/mktime.c (verify): Move decl up.
6481         (long_int): New type.
6482         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6483         to remove assumption in the code that 'long' is wide enough to
6484         store year values.  This assumption is not true on x32 and on
6485         some non-glibc platforms.
6486
6487         mktime: merge wrapv change from gnulib
6488         * time/mktime.c (WRAPV): New macro.
6489         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6490         (guess_time_tm, __mktime_internal): Do not assume that signed
6491         integer overflow wraps around; modern compilers generate code
6492         where this assumption is no longer valid.
6493
6494 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6495
6496         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6497         Replace "jmp L(pseudo_end)" with "ret".
6498         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6499         Likewise.
6500
6501 2012-05-23  Andreas Jaeger  <aj@suse.de>
6502
6503         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6504         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6505
6506 2012-05-23  Andreas Jaeger  <aj@suse.de>
6507             Maximilian Attems  <max@stro.at>
6508
6509         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6510         New macros.
6511
6512 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6513
6514         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6515         code so that pseudo_end is just ret and the stack pointer is
6516         correct also for static library in error case.
6517
6518 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6519
6520         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6521         move to syscalls.list.
6522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6526
6527         * manual/install.texi (Running make install): Do not mention Linux
6528         kernel version for which pt_chown is not needed.
6529         (Linux): Do not mention problems with nscd with 2.0 kernels.
6530         * INSTALL: Regenerated.
6531
6532 2012-05-23  Andreas Jaeger  <aj@suse.de>
6533
6534         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6535         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6536         macro.
6537         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6538         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6539         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6540         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6541         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6542         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6543         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6544         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6545         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6546         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6547         * sysdeps/unix/sysv/linux/bits/in.h
6548         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6549
6550 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6551
6552         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6553         (PREPARE_VERSION): Just use assert instead, it will be elided
6554         under [NDEBUG] anyway.
6555
6556 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6557
6558         * sysdeps/unix/sysv/linux/Makefile: Include
6559         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6560         (sysdep_routines): Remove sysctl.
6561         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6562         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6563         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6564         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6565         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6566
6567 2012-05-22  Andreas Jaeger  <aj@suse.de>
6568
6569         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6570         that pseudo_end is just ret and the stack pointer is correct also
6571         for static library in error case.
6572
6573 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6574
6575         [BZ #14122]
6576         * nss/nsswitch.c (defconfig_entries): New variable.
6577         (__nss_database_lookup): Don't leak defconfig entries.
6578         (nss_parse_service_list): Don't leak on error paths.
6579         (free_database_entries): New function.
6580         (free_defconfig): New function.
6581         (free_mem): Move common code to free_database_entries.
6582
6583 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6584
6585         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6586         Add arch_prctl.
6587         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6588
6589         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6590         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6591         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6592         New macro.
6593         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6594         (INTERNAL_SYSCALL_TYPES): Likewise.
6595         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6596         (LOAD_REGS_TYPES_[1-6]): Likewise.
6597         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6598         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6599
6600 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6601
6602         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6603         copysignl for GLIBC_2_0.
6604         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6605         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6606         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6607         logbl for GLIBC_2_0.
6608         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6609         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6610
6611 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6612
6613         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6614         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6615
6616         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6617         Use "neg %eax".
6618
6619         * time/mktime.c: Update copyright years.
6620
6621 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6622
6623         mktime: merge comment-quoting-style change from gnulib
6624         * time/mktime.c: Quote 'like this' in comments.
6625         The GNU coding standards suggest that we no longer quote `like this',
6626         as "`" and "'" are typically rendered asymmetrically nowadays.
6627         The typical gnulib style is to quote 'like this' when quoting
6628         code, and "like this" when quoting English.
6629
6630         * time/mktime.c (compile-command): Add "-I.".
6631
6632         mktime: merge mktime-internal.h change from gnulib
6633         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6634
6635         mktime: merge time_r change from gnulib
6636         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6637
6638         mktime: merge DEBUG change from gnulib
6639         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6640         case system <time.h> has a #define.
6641
6642         mktime: merge <sys/types.h> change from gnulib
6643         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6644         since <time.t> is now guaranteed to define time_t.
6645
6646         mktime: merge HAVE_CONFIG_H change from gnulib
6647         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6648
6649 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6650
6651         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6652         Use "neg %eax".
6653
6654         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6655         __rlim_t cast.
6656         (struct rusage): Use anonymous union to pad each field to
6657         __syscall_slong_t.
6658
6659 2012-05-21  David S. Miller  <davem@davemloft.net>
6660
6661         * Makefules (o-iterator): Remove .s cases.
6662         (compile-command.s): Delete.
6663         (COMPILE.s): Delete.
6664         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6665
6666 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6667
6668         * configure.in (libc_cv_predef_stack_protector): Only consider
6669         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6670         * configure: Regenerated.
6671
6672 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6673
6674         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6675         New macro.  Use R*LP on int and pointer.
6676         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6677         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6678         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6679         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6680
6681         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6682         [__WORDSIZE_TIME64_COMPAT32] instead of
6683         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6684         (struct utmp): Likewise.
6685         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6686         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6687         Renamed to ...
6688         (__WORDSIZE_TIME64_COMPAT32): This.
6689         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6690         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6691         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6692         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6693         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6694         (__WORDSIZE_TIME64_COMPAT32): New macro.
6695
6696 2012-05-21  Andreas Jaeger  <aj@suse.de>
6697
6698         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6699         only if [SHARED]. Add prototype for __wcschr_ia32.
6700
6701 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6702
6703         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6704         of %rbp unmolested in the jmp_buf while mangling the low bits.
6705         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6706         unmolested high bits of %rbp while demangling the low bits.
6707         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6708
6709 2012-05-21  Andreas Jaeger  <aj@suse.de>
6710
6711         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6712         * sunrpc/svc_simple.c: Use it for registerrpc.
6713         * sunrpc/xcrypt.c: Use it for passwd2des.
6714
6715         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6716
6717 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6718
6719         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6720         Don't define if [__SYSCALL_WORDSIZE != 32].
6721         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6722         New macro.
6723
6724 2012-05-21  Bruno Haible  <bruno@clisp.org>
6725             Andreas Jaeger  <aj@suse.de>
6726
6727         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6728         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6729         inptr and inend for must_buffer_ch.
6730         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6731         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6732         * stdio-common/Makefile (tests): Remove bug15.
6733         (bug15-ENV): Remove macro.
6734         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6735         anymore.
6736
6737 2012-05-19  Andreas Jaeger  <aj@suse.de>
6738             Roland McGrath  <roland@hack.frob.com>
6739
6740         * manual/contrib.texi: Completely rewritten. It contains now an
6741         alphabetical list of contributors and their contributions.
6742
6743 2012-05-21  Richard Henderson  <rth@twiddle.net>
6744
6745         * misc/getauxval.c (__getauxval): Use unsigned long int.
6746         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6747         (getauxval): Use unsigned long int.
6748
6749 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6750
6751         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6752
6753 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6754
6755         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6756         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6757         __alignof__ (long double).
6758
6759 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6760
6761         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6762
6763 2012-05-20  Richard Henderson  <rth@twiddle.net>
6764
6765         * misc/getauxval.c: New file.
6766         * misc/sys/auxv.h: New file.
6767         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6768         (routines): Add getauxval.
6769         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6770         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6771         * elf/dl-sysdep.c (_dl_auxv): Remove.
6772         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6773         * elf/dl-support.c (_dl_auxv): New variable.
6774         (_dl_aux_init): Initialize it.
6775         * manual/startup.texi (Auxiliary Vector): New node.
6776         * sysdeps/generic/bits/hwcap.h: New file.
6777         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6778         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6779         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6780         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6781         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6782         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6784         Update.
6785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6786         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6787         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6788         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6789         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6790         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6791         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6792         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6793
6794 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6795
6796         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6797
6798 2012-05-19  David S. Miller  <davem@davemloft.net>
6799
6800         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6801
6802 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6803
6804         [BZ #14123]
6805         * math/s_ccosh.c: Include <float.h>
6806         (__ccosh): Avoid internal overflow calculating sinh and cosh
6807         values before multiplying by sin and cos values.
6808         * math/s_ccoshf.c: Likewise.
6809         * math/s_ccoshl.c: Likewise.
6810         * math/s_csin.c: Likewise.
6811         * math/s_csinf.c: Likewise.
6812         * math/s_csinl.c: Likewise.
6813         * math/s_csinh.c: Likewise.
6814         * math/s_csinhf.c: Likewise.
6815         * math/s_csinhl.c: Likewise.
6816         * math/libm-test.inc (ccos_test): Add more tests.
6817         (ccosh_test): Likewise.
6818         (csin_test): Likewise.
6819         (csinh_test): Likewise.
6820         * sysdeps/i386/fpu/libm-test-ulps: Update.
6821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6822
6823 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6824
6825         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6826         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6827
6828         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6829
6830 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6831
6832         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6833         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6834         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6835         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6836         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6837         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6838         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6839         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6840         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6841         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6842         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6843         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6844         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6845         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6846         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6847         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6848         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6849         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6850         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6851         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6852         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6853         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6854         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6855         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6856         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6857         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6858         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6859         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6860         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6861         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6862         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6863
6864 2012-05-18  Andreas Jaeger  <aj@suse.de>
6865
6866         * csu/.gitignore: Delete.
6867
6868 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6869
6870         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6871         (timex): Use __syscall_slong_t.
6872
6873 2012-05-18  Andreas Jaeger  <aj@suse.de>
6874             Carlos O'Donell  <carlos_odonell@mentor.com>
6875
6876         * manual/install.texi (Configuring and compiling): Update
6877         description about files modified in the source directory.
6878         * INSTALL: Regenerated.
6879
6880 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6881
6882         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6883         value.  Use "or" to set return value to -1.
6884         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6885         negate return value.
6886
6887 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6888
6889         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6890         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6891         failure if the compiler has Graphite support disabled.
6892         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6893         Likewise.
6894         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6895         CFLAGS-memmove.c): Likewise.
6896         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6897         Likewise.
6898
6899 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6900
6901         * sysdeps/x86_64/x32/_itoa.h: New file.
6902
6903         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6904         getdents system call only if kernel and user dirents have the
6905         same d_ino and d_off.
6906
6907         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6908         LLONG_MAX != LONG_MAX.
6909         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6910         (_fitoa_word): Likewise.
6911
6912         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6913         years.
6914         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6915         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6916         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6917
6918         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6919         include <bits/wordsize.h>.  Check __x86_64__ instead of
6920         __WORDSIZE.
6921         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6922         if __x86_64__ is defined.  Use anonymous union on fpstate.
6923
6924         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6925         anonymous union.
6926
6927 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6928
6929         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6930         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6931         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6932         Refer to _rtld_local_ro instead of _rtld_global_ro.
6933         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6934         Likewise.
6935         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6936         Likewise.
6937         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6938         Likewise.
6939         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6940         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6941         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6942
6943         * sysdeps/powerpc/powerpc32/dl-machine.c
6944         (__elf_machine_runtime_setup) [PROF]: Don't reference
6945         _dl_prof_resolve.
6946
6947 2012-05-18  Andreas Jaeger  <aj@suse.de>
6948
6949         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6950         function only available for GCCs before 3.4 since GCC 3.4
6951         introduced a builtin.
6952         (lrint): Likewise.
6953         (llrintf): Likewise.
6954         (llrint): Likewise.
6955         (fmaxf): Likewise.
6956         (fmax): Likewise.
6957         (fminf): Likewise.
6958         (fmin): Likewise.
6959         (rint): Likewise.
6960         (rintf): Likewise.
6961         (nearbyint): Likewise.
6962         (nearbyintf): Likewise.
6963         (ceil): Likewise.
6964         (ceilf): Likewise.
6965         (floor): Likewise.
6966         (floorf): Likewise.
6967
6968 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6969
6970         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6971         on both fields and cast pointer to __syscall_ulong_t.
6972
6973         * bits/types.h (__fsword_t): New type.
6974         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6975         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6976         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6977         (__FSWORD_T_TYPE): Likewise.
6978         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6979         (__FSWORD_T_TYPE): Likewise.
6980         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6981         (__FSWORD_T_TYPE): Likewise.
6982         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6983         (__FSWORD_T_TYPE): Likewise.
6984         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6985         __SWORD_TYPE with __fsword_t.
6986         (statfs64): Likewise.
6987
6988 2012-05-17  David S. Miller  <davem@davemloft.net>
6989
6990         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6991
6992 2012-05-17  Andreas Jaeger  <aj@suse.de>
6993
6994         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6995         warning.
6996
6997 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6998
6999         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7000
7001 2012-05-17  Andreas Jaeger  <aj@suse.de>
7002
7003         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7004         when it is used.
7005
7006 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7007
7008         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7009
7010 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7011
7012         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7013         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7014
7015 2012-05-17  Andreas Jaeger  <aj@suse.de>
7016             Carlos O'Donell  <carlos_odonell@mentor.com>
7017
7018         [BZ #14059]
7019         * sysdeps/x86_64/multiarch/init-arch.h
7020         (bit_YMM_Usable): Rename to...
7021         (bit_AVX_Usable): ... this.
7022         (bit_FMA4_Usable): New macro.
7023         (bit_XMM_state): New macro.
7024         (bit_YMM_state): New macro.
7025         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7026         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7027         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7028         (CPUID_OSXSAVE): New macro.
7029         (CPUID_AVX): New macro.
7030         (CPUID_FMA4): New macro.
7031         (index_YMM_Usable): Rename to...
7032         (index_AVX_Usable): ... this.
7033         (HAS_AVX): Use HAS_ARCH_FEATURE.
7034         (HAS_FMA4): Likewise.
7035         (HAS_YMM_USABLE): Remove.
7036         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7037         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7038         are present.
7039         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7040         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7041         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7042         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7043         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7044
7045 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7046
7047         * math/libm-test.c: Support platforms without multiple rounding modes.
7048         * math/bug-nextafter.c: Support platforms without FP exceptions.
7049         * math/bug-nexttoward.c: Likewise.
7050         * math/test-fenv.c: Likewise.
7051         * math/test-misc.c: Likewise.
7052         * stdlib/bug-getcontext.c: Likewise.
7053
7054 2012-05-17  Andreas Jaeger  <aj@suse.de>
7055
7056         * manual/examples/search.c (critter_cmp): Change signature to
7057         avoid warnings.
7058         * manual/string.texi (Collation Functions): Likewise.
7059
7060 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7061
7062         * bits/types.h: Fold copyright years.
7063         * bits/typesizes.h: Likewise.
7064         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7065         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7066         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7067         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7068         * time/time.h: Likewise.
7069
7070 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7071
7072         [BZ #208]
7073         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7074         in instead of returning them.  Return void.
7075         (__libc_mallinfo): Accumulate over all arenas.
7076         (__malloc_stats): Adjust for change in int_mallinfo interface.
7077
7078 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7079
7080         [BZ #10375]
7081         * configure.in (NM): Add AC_CHECK_TOOL for it.
7082         (libc_extra_cflags): New substituted variable.
7083         Check for -fstack-protector being used implicitly.
7084         * configure: Regenerated.
7085         * config.make.in (config-extra-cflags): New variable,
7086         gets @libc_extra_cflags@.
7087         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7088
7089         [BZ #10375]
7090         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7091         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7092         * configure: Regenerated.
7093         * config.make.in (CPPUNDEFS): New substituted variable.
7094         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7095         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7096         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7097
7098 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7099
7100         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7101         (mq_attr): Use __syscall_slong_t.
7102
7103 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7104
7105         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7106         Check __x86_64__ instead of __WORDSIZE.
7107         (_STAT_VER_LINUX): Likewise.
7108         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7109         __syscall_ulong_t and __syscall_slong_t.
7110         (stat64): Likewise.
7111
7112 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7113
7114         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7115
7116 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7117
7118         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7119
7120 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7121
7122         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7123         __syscall_ulong_t.
7124
7125         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7126         include <bits/wordsize.h>.  Check __x86_64__ instead of
7127         __WORDSIZE.
7128         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7129         defined.
7130         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7131
7132         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7133         include <bits/wordsize.h>.  Check __x86_64__ instead of
7134         __WORDSIZE.
7135         (user_regs_struct): Use "__extension__ unsigned long long"
7136         instead of "unsigned long" if __x86_64__ is defined.
7137         (user): Likewise.  Pad after pointer field if __ILP32__ is
7138         defined.
7139
7140 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7141
7142         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7143         versions 5 to 9.
7144         * configure: Regenerated.
7145         * manual/install.texi (texinfo): Increase version requirement to
7146         4.5 or later.
7147         * INSTALL: Regenerated.
7148
7149         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7150
7151 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7152
7153         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7154
7155         * sysdeps/x86_64/x32/ffs.c: New file.
7156
7157         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7158         __syscall_ulong_t.
7159         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7160         defined.  Use __syscall_ulong_t.
7161         (shminfo): Use __syscall_ulong_t.
7162         (shm_info): Likewise.
7163
7164         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7165         __syscall_ulong_t.
7166
7167         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7168         <bits/wordsize.h>.
7169         (msgqnum_t): Use __syscall_ulong_t.
7170         (msglen_t): Likewise.
7171         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7172         __syscall_ulong_t.
7173
7174         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7175         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7176
7177         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7178
7179         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7180         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7181
7182         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7183         __syscall_slong_t.
7184
7185         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7186         include <bits/wordsize.h>.  Check __x86_64__ instead of
7187         __WORDSIZE.
7188
7189         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7190         "unsigned long long int" if __x86_64__ is defined.
7191         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7192
7193         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7194         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7195         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7196
7197         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7198         <stdint.h>.
7199         (GET_PC): Cast to uintptr_t first.
7200         (GET_FRAME): Likewise.
7201         (GET_STACK): Likewise.
7202
7203         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7204         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7205         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7206         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7207         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7208         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7209         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7210         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7211         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7212         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7213         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7214         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7215         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7216         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7217         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7218         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7219         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7220         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7221         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7222         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7223         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7224         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7225         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7226         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7227         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7228         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7229         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7230         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7231         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7232
7233 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7234
7235         * Makerules (+depfiles): Also collect depfiles from .oS in
7236         $(extra-objs).
7237         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7238         .oS, $(libnldbl-routines)).
7239
7240         * Makerules (native-compile-mkdep-flags): Define.
7241         * sunrpc/Makefile (extra-objs): Add $(addprefix
7242         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7243         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7244         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7245         calling $(make-target-directory).
7246
7247 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7248
7249         * bits/types.h (__snseconds_t): Removed.
7250         * time/time.h (struct timespec): Replace __snseconds_t with
7251         __syscall_slong_t.
7252         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7253         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7254         Likewise.
7255         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7256         (__SNSECONDS_T_TYPE): Likewise.
7257         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7258         (__SNSECONDS_T_TYPE): Likewise.
7259         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7260         (__SNSECONDS_T_TYPE): Likewise.
7261
7262 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7263
7264         * sysdeps/mach/hurd/bits/typesizes.h
7265         (__SYSCALL_SLONG_TYPE): New macro.
7266         (__SYSCALL_ULONG_TYPE): Likewise.
7267
7268 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7269
7270         * bits/types.h (__syscall_slong_t): New type.
7271         (__syscall_ulong_t): Likewise.
7272
7273         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7274         (__SYSCALL_ULONG_TYPE): Likewise.
7275         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7276         (__SYSCALL_SLONG_TYPE): Likewise.
7277         (__SYSCALL_ULONG_TYPE): Likewise.
7278         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7279         (__SYSCALL_SLONG_TYPE): Likewise.
7280         (__SYSCALL_ULONG_TYPE): Likewise.
7281         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7282         (__SYSCALL_SLONG_TYPE): Likewise.
7283         (__SYSCALL_ULONG_TYPE): Likewise.
7284
7285 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7286
7287         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7288         Add sigaltstack-offsets.sym.
7289         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7290         <sigaltstack-offsets.h>.
7291         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7292         longjmp_msg pointer.
7293         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7294         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7295         signal stack.
7296         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7297
7298 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7299
7300         * elf/stackguard-macros.h: Remove file.
7301         * sysdeps/generic/stackguard-macros.h: New file.
7302         * sysdeps/i386/stackguard-macros.h: Likewise.
7303         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7304         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7305         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7306         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7307         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7308         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7309         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7310         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7311         <elf/stackguard-macros.h>.
7312
7313         [BZ #14109]
7314         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7315         __aligned__ in attribute.
7316         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7317         (gregset_t): Likewise.
7318
7319 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7320
7321         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7322         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7323         * sysdeps/x86_64/x32/Implies-after: New file.
7324
7325 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7326
7327         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7328         and access return value for _dl_profile_fixup.  Use R10_LP to
7329         load frame size.
7330
7331 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7332
7333         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7334
7335 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7336
7337         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7338         * sysdeps/x86_64/x32/sysdep.h: New file.
7339
7340 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7341
7342         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7343         * sysdeps/x86_64/setjmp.S: Likewise.
7344
7345 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7346
7347         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7348         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7349         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7350         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7351         remove unused global constant.
7352
7353 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7354
7355         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7356         include of <not-cancel.h>.
7357
7358 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7359
7360         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7361
7362 2012-05-15  Jeff Law  <law@redhat.com>
7363             Andreas Jaeger  <aj@suse.de>
7364
7365         [BZ #13594]
7366         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7367         out from...
7368         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7369         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7370         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7371         code changing __hst_map_handle.map.
7372
7373 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7374
7375         * configure.in (sysnames): Look for Implies-before and Implies-after
7376         files.
7377         * configure: Regenerated.
7378
7379 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7380
7381         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7382         8-byte data alignment with LP_SIZE alignment.
7383
7384 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7385
7386         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7387         into R10_LP.
7388
7389 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7390
7391         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7392
7393 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7394
7395         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7396         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7397         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7398         Likewise.
7399         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7400
7401 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7402
7403         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7404         (stackinfo_sub_sp): Likewise.
7405
7406 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7407
7408         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7409         RAX_LP.
7410
7411 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7412
7413         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7414         into R*_LP.
7415
7416 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7417
7418         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7419         sizes into R*_LP.
7420
7421 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7422
7423         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7424
7425 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7426
7427         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7428         into R11_LP and load __x86_64_shared_cache_size_half into
7429         R8_LP.
7430
7431 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7432
7433         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7434         R8_LP.
7435
7436 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7437
7438         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7439         logb for POWER7.
7440         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7441         logbf for POWER7.
7442         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7443         logbl for POWER7.
7444         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7445         powerpc32/power7/fpu/s_logb.c via #include.
7446         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7447         powerpc32/power7/fpu/s_logbf.c via #include.
7448         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7449         powerpc32/power7/fpu/s_logbl.c via #include.
7450
7451 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7452
7453         * README.libm: Remove file.
7454
7455 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7456
7457         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7458         count for x32.  Use R*_LP and omit operand-size suffix.
7459
7460 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7461
7462         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7463         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7464         * sysdeps/x86_64/x32/shlib-versions: New file.
7465
7466 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7467
7468         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7469         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7470         Use _dl_fatal_printf instead.
7471
7472 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7473
7474         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7475         set if not set by the user.  Do not allow for being unset.
7476         * sysdeps/unix/sysv/linux/configure: Regenerated.
7477
7478 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7479
7480         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7481         the `q' suffix from lea and replace .quad with ASM_ADDR.
7482
7483 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7484
7485         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7486         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7487         instead of $17.
7488         (PTR_DEMANGLE): Likewise.
7489
7490 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7491
7492         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7493         (LP_OP): Likewise.
7494         (ASM_ADDR): Likewise.
7495         (RAX_LP): Likewise.
7496         (RBP_LP): Likewise.
7497         (RBX_LP): Likewise.
7498         (RCX_LP): Likewise.
7499         (RDI_LP): Likewise.
7500         (RSI_LP): Likewise.
7501         (RSP_LP): Likewise.
7502         (R8_LP): Likewise.
7503         (R9_LP): Likewise.
7504         (R10_LP): Likewise.
7505         (R10_LP): Likewise.
7506         (R11_LP): Likewise.
7507         (R12_LP): Likewise.
7508         (R13_LP): Likewise.
7509         (R14_LP): Likewise.
7510         (R15_LP): Likewise.
7511
7512 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7513
7514         * sysdeps/x86_64/x32/dl-machine.h: New file.
7515
7516 2012-05-14  Andreas Jaeger  <aj@suse.de>
7517
7518         * manual/Makefile (subdir): Remove export of subdir.
7519         (all): Remove target.
7520         (.PHONY): Remove all from list.
7521         (mkinstalldirs): Remove.
7522         (.PHONY): Remove installdirs from list.
7523         ($(inst_infodir)/libc.info): Use make-target-directory.
7524         (installdirs): Remove.
7525         (subdir_%): Remove.
7526         (glibc-targets): Remove.
7527         (lib): Remove.
7528         (stubs): Remove.
7529         ($(objpfx)stubs ../po/manual.pot): Remove.
7530         ($(objpfx)stamp%): Remove.
7531         (make-target-directory): Remove.
7532         (subdir_install): Remove.
7533         (routines): Remove.
7534         (aux): Remove.
7535         (sources): Remove.
7536         (objects): Remove.
7537         (headers): Remove.
7538
7539         [BZ #13750]
7540         * manual/.gitignore: Remove, it's not needed anymore.
7541         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7542         all files in it.
7543         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7544         directory.
7545         (texis): Renamed to $(objpfx)texis.
7546         (texis-path): New, contains path to generated files.
7547         (chapters.%): Use texis-path for complete path, add extra argument
7548         libc-texinfo.sh.
7549         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7550         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7551         (summary,texi, stamp-summary): Use complete path of
7552         files. Generate files in build dir.
7553         (dir-add.texi): Build in build dir.
7554         (libm-err.texi,stamp-libm-err): Likewise.
7555         (version.texi, stamp-version): Likewise.
7556         (.%c.texi): Likewise.
7557         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7558         (mostlyclean): Remove target.
7559         (realclean): Remove target.
7560         (generated): Add new variable with contents from mostlyclean and
7561         realclean, remove entries duplicated in common-mostlyclean, add
7562         stamp-libm-err and stamp-version.
7563         (generated-dirs): Add libc directory.
7564         ($(inst_infodir)/libc.info): Install files from build dir.
7565
7566         * manual/install.texi (Configuring and compiling): Adjust since
7567         the info files are not part of the tar ball anymore.
7568
7569 2012-05-14  Andreas Jaeger  <aj@suse.de>
7570
7571         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7572         variable.
7573
7574 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7575
7576         [BZ #13717]
7577         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7578         to 2.2.0 where earlier.
7579         * sysdeps/unix/sysv/linux/configure: Regenerated.
7580         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7581         Remove conditional code.
7582         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7583         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7584         Remove conditional code.
7585         [!__NR_lchown]: Likewise.
7586         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7587         [__NR_lchown]: Likewise.
7588         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7589         comment referencing __ASSUME_LCHOWN_SYSCALL.
7590         * sysdeps/unix/sysv/linux/i386/sigaction.c
7591         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7592         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7593         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7594         Remove conditional code.
7595         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7596         (__protocol_available): Remove #if 0 code.
7597         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7598         conditional code.
7599         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7600         * sysdeps/unix/sysv/linux/kernel-features.h
7601         (__ASSUME_GETCWD_SYSCALL): Don't define.
7602         (__ASSUME_REALTIME_SIGNALS): Likewise.
7603         (__ASSUME_PREAD_SYSCALL): Likewise.
7604         (__ASSUME_PWRITE_SYSCALL): Likewise.
7605         (__ASSUME_POLL_SYSCALL): Likewise.
7606         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7607         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7608         non-SPARC.
7609         (__ASSUME_SIOCGIFNAME): Don't define.
7610         (__ASSUME_MSG_NOSIGNAL): Likewise.
7611         (__ASSUME_SENDFILE): Define unconditionally.
7612         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7613         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7614         conditional code.
7615         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7616         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7617         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7618         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7619         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7620         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7621         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7623         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7624         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7626         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7627         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7629         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7630         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7632         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7633         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7635         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7636         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7638         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7639         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7641         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7642         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7644         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7645         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7646         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7647         Remove conditional code.
7648         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7649         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7650         Remove conditional code.
7651         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7652         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7653         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7654         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7655         Remove conditional code.
7656         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7657         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7658         Remove conditional code.
7659         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7660         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7661         Remove conditional code.
7662         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7663         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7664         Remove conditional code.
7665         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7666         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7667         Remove conditional code.
7668         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7669         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7670         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7671         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7672         * sysdeps/unix/sysv/linux/sigaction.c
7673         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7674         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7675         * sysdeps/unix/sysv/linux/sigpending.c
7676         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7677         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7678         * sysdeps/unix/sysv/linux/sigprocmask.c
7679         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7680         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7681         * sysdeps/unix/sysv/linux/sigsuspend.c
7682         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7683         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7684         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7685         (__libc_missing_rt_sigs): Remove.
7686         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7687         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7688         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7689         Remove conditional code.
7690         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7691         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7692         return 1.
7693         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7694         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7695         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7696         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7697
7698 2012-05-14  Andreas Jaeger  <aj@suse.de>
7699
7700         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7701         it's not used in glibc.
7702         (__coshm1): Likewise.
7703         (__acosh1p): Likewise.
7704         (__sgn): Likewise.
7705
7706         * manual/string.texi (Copying and Concatenation): Add missing
7707         variable in concat example.
7708         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7709
7710 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7711
7712         [BZ #14103]
7713         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7714         __builtin_clzl with __builtin_clzll.
7715
7716 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7717
7718         [BZ #14104]
7719         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7720         libc_freeres_ptr.
7721
7722 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7723
7724         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7725         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7726         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7727         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7728
7729 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7730
7731         * NEWS: Update ia64 info.
7732
7733 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7734
7735         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7736         used as bcopy.
7737
7738 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7739
7740         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7741         * sysdeps/unix/syscalls.list (dup3): Likewise.
7742         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7743         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7744
7745 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7746
7747         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7748         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7749
7750 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7751
7752         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7753         thread pointer.
7754         (TLS_IE): Use mov/add instead of movq/addq to load thread
7755         pointer.
7756         (TLS_GD_PREFIX): New.
7757         (TLS_GD): Use it.
7758
7759 2012-05-11  David S. Miller  <davem@davemloft.net>
7760
7761         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7762         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7763         (_FPU_SETCW): Likewise.
7764
7765 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7766
7767         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7768         is 32-byte aligned.
7769
7770 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7771
7772         [BZ #11837]
7773         * iconvdata/gb18030.c: Update tables.
7774         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7775         characters specially.
7776         (BODY for TO_LOOP): Add encoding of missing ranges.
7777
7778 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7779
7780         [BZ #13673]
7781         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7782         * sysdeps/mach/hurd/dup3.c: Likewise.
7783         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7784         * sysdeps/powerpc/memmove.c:: Likewise.
7785
7786 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7787
7788         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7789         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7790
7791 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7792
7793         * elf/elf.h (R_X86_64_RELATIVE64): New.
7794         (R_X86_64_NUM): Updated.
7795         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7796         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7797         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7798         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7799         tst-quad1pie tst-quad2pie
7800         (modules-names): Add tst-quadmod1 tst-quadmod2.
7801         ($(objpfx)tst-quad1): New dependency.
7802         ($(objpfx)tst-quad2): Likewise.
7803         ($(objpfx)tst-quad1pie): Likewise.
7804         ($(objpfx)tst-quad2pie): Likewise.
7805         * sysdeps/x86_64/tst-quad1.c: New file.
7806         * sysdeps/x86_64/tst-quad1pie.c: New file.
7807         * sysdeps/x86_64/tst-quad2.c: Likewise.
7808         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7809         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7810         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7811         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7812         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7813
7814 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7815
7816         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7817         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7818         * streams/stropts.h (t_scalar_t): Define type.
7819
7820         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7821         (_PATH_PRESERVE): Set to "/var/lib".
7822         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7823
7824         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7825         instead of int.
7826
7827         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7828         if __dir_mkfile succeeded.
7829
7830         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7831         checking for _hurd_dtablesize.  Unlock it right after having
7832         finished _hurd_dtable allocation.
7833
7834 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7835
7836         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7837         * sysdeps/mach/hurd/configure: Regenerated.
7838         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7839         special-casing to...
7840         * sysdeps/gnu/configure.in: ... this new file.
7841         * sysdeps/unix/sysv/linux/configure: Regenerated.
7842         * sysdeps/gnu/configure: New generated file.
7843
7844         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7845         for Linux: use nsec instead of usec, as well as:
7846         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7847         members of type struct timespec.
7848         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7849         New macros.
7850         (struct stat64): Likewise.
7851         (_STATBUF_ST_NSEC): New macro.
7852         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7853
7854         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7855         __strtoul_internal rather than strtoul.
7856
7857 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7858
7859         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7860         and reject them.
7861
7862 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7863
7864         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7865         which preserves existing values.
7866         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7867
7868 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7869
7870         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7871         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7872         greater than FD_SETSIZE.
7873
7874 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7875
7876         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7877         allocated, call __vm_protect to finish enabling the existing space, and
7878         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7879         allocate the remainder.
7880
7881 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7882
7883         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7884         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7885
7886 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7887
7888         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7889         sysdeps/mach/hurd/readlink.c.
7890
7891         * posix/tst-sysconf.c (posix_options): Only use
7892         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7893         _POSIX_SYNCHRONIZED_IO when they are defined
7894         * sysdeps/mach/hurd/bits/posix_opt.h:
7895         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7896         (_XOPEN_REALTIME): Undefine macro.
7897         (_XOPEN_REALTIME_THREADS): Undefine macro.
7898         (_XOPEN_SHM): Undefine macro.
7899         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7900         macro to -1.
7901         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7902         macro to -1.
7903         (_POSIX_ASYNC_IO): Undefine macro.
7904         (_POSIX_PRIORITIZED_IO): Undefine macro.
7905         (_POSIX_SPIN_LOCKS): Define macro to -1.
7906
7907         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7908         SA_NODEFER, SA_RESETHAND.
7909         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7910         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7911         F_DUPFD_CLOEXEC.
7912
7913 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7914
7915         * elf/Makefile (pldd-modules): Define unconditionally.
7916
7917 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7918
7919         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7920
7921 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7922
7923         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7924         Return ENOENT when name is empty.
7925         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7926
7927 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7928
7929         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7930
7931         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7932
7933 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7934
7935         Fix mlock in all cases except non-readable pages.
7936         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7937         instead of VM_PROT_ALL as parameter to __vm_wire function.
7938
7939         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7940         (__mkdir): When path is `/', just fail with EEXIST.
7941         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7942
7943 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7944
7945         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7946         <sys/uio.h> (for writev).
7947         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7948         and <sys/param.h> (for MIN).
7949
7950 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7951
7952         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7953         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7954         if interrupted.
7955
7956 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7957
7958         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7959         Depend on against $(link-rpcuserlibs).
7960
7961 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7962
7963         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7964         (__libc_stack_end): Do not use attribute_relro.
7965         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7966         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7967         to libthread-provided value.
7968         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7969         attribute_relro.
7970
7971 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7972
7973         [BZ #3748]
7974         * bits/libc-lock.h (__libc_once_get): New macro.
7975         * sysdeps/mach/bits/libc-lock.h: Likewise.
7976         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7977         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7978         instead of using implementation details.
7979
7980         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7981         * libio/freopen.c: Likewise.
7982         * libio/freopen64.c: Likewise.
7983         * misc/syslog.c: Likewise.
7984         * nscd/connections.c: Likewise.
7985         * nscd/netgroupcache.c: Likewise.
7986         * sysdeps/posix/getcwd.c: Likewise.
7987
7988 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7989
7990         * math/w_ilogbf.c: Add #include <limits.h>.
7991
7992 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7993
7994         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7995         path instead of returning without unlocking.
7996
7997         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7998         immediate-write ioctls.
7999         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8000
8001 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8002
8003         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8004         __builtin_frame_address instead of making assumptions about the
8005         location of the return address relative to DATA.  Force early load of
8006         the return address.
8007         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8008         __builtin_frame_address.
8009
8010         dup3 for GNU Hurd.
8011         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8012         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8013         implement dup3 and do some further code clean-ups.
8014         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8015         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8016
8017 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8018
8019         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8020
8021         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8022         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8023         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8024         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8025         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8026         d->port.lock.
8027
8028         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8029         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8030         when handler == SIG_ERR, not when handler != SIG_ERR.
8031
8032 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8033
8034         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8035         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8036         definitions.
8037
8038         accept4 for GNU Hurd.
8039         * include/sys/socket.h (__libc_accept4): New prototype.
8040         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8041         to implement __libc_accept4.
8042         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8043         __libc_accept4.
8044         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8045
8046         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8047         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8048         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8049         signal-defines.sym.
8050
8051 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8052
8053         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8054
8055 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8056
8057         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8058         assertion on O_CLOEXEC flag.
8059         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8060         * hurd/intern-fd.c: Likewise.
8061         * hurd/port2fd.c: Likewise.
8062
8063 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8064
8065         [BZ #3906]
8066         * bits/in.h (IPV6_PKTINFO): Define new macro.
8067         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8068
8069 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8070
8071         [BZ #13954]
8072         [BZ #13955]
8073         [BZ #13956]
8074         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8075         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8076         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8077         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8078         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8079         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8080         * math/libm-test.inc (logb_test) : Additional logb tests.
8081
8082 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8083             Andreas Jaeger  <aj@suse.de>
8084
8085         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8086         * configure: Regenerated.
8087         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8088         * config.make.in (link-obsolete-rpc): New substituted variable.
8089         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8090         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8091         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8092         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8093         so that libc.a contains the symbols.
8094         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8095         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8096         * sunrpc/auth_none.c: Likewise.
8097         * sunrpc/auth_unix.c: Likewise.
8098         * sunrpc/authdes_prot.c: Likewise.
8099         * sunrpc/authuxprot.c: Likewise.
8100         * sunrpc/clnt_gen.c: Likewise.
8101         * sunrpc/clnt_perr.c: Likewise.
8102         * sunrpc/clnt_raw.c: Likewise.
8103         * sunrpc/clnt_simp.c: Likewise.
8104         * sunrpc/clnt_tcp.c: Likewise.
8105         * sunrpc/clnt_udp.c: Likewise.
8106         * sunrpc/clnt_unix.c: Likewise.
8107         * sunrpc/des_crypt.c: Likewise.
8108         * sunrpc/des_soft.c: Likewise.
8109         * sunrpc/get_myaddr.c: Likewise.
8110         * sunrpc/key_call.c: Likewise.
8111         * sunrpc/key_prot.c: Likewise.
8112         * sunrpc/netname.c: Likewise.
8113         * sunrpc/pm_getmaps.c: Likewise.
8114         * sunrpc/pm_getport.c: Likewise.
8115         * sunrpc/pmap_clnt.c: Likewise.
8116         * sunrpc/pmap_prot.c: Likewise.
8117         * sunrpc/pmap_prot2.c: Likewise.
8118         * sunrpc/pmap_rmt.c: Likewise.
8119         * sunrpc/publickey.c: Likewise.
8120         * sunrpc/rpc_cmsg.c: Likewise.
8121         * sunrpc/rpc_common.c: Likewise.
8122         * sunrpc/rpc_dtable.c: Likewise.
8123         * sunrpc/rpc_prot.c: Likewise.
8124         * sunrpc/rpc_thread.c: Likewise.
8125         * sunrpc/rtime.c: Likewise.
8126         * sunrpc/svc.c: Likewise.
8127         * sunrpc/svc_auth.c: Likewise.
8128         * sunrpc/svc_raw.c: Likewise.
8129         * sunrpc/svc_run.c: Likewise.
8130         * sunrpc/svc_tcp.c: Likewise.
8131         * sunrpc/svc_udp.c: Likewise.
8132         * sunrpc/svc_unix.c: Likewise.
8133         * sunrpc/svcauth_des.c: Likewise.
8134         * sunrpc/xcrypt.c: Likewise.
8135         * sunrpc/xdr.c: Likewise.
8136         * sunrpc/xdr_array.c: Likewise.
8137         * sunrpc/xdr_float.c: Likewise.
8138         * sunrpc/xdr_intXX_t.c: Likewise.
8139         * sunrpc/xdr_mem.c: Likewise.
8140         * sunrpc/xdr_rec.c: Likewise.
8141         * sunrpc/xdr_ref.c: Likewise.
8142         * sunrpc/xdr_sizeof.c: Likewise.
8143         * sunrpc/xdr_stdio.c: Likewise.
8144
8145 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8146
8147         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8148         change.  Update copyright years.
8149
8150 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8151
8152         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8153
8154 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8155             Joseph Myers  <joseph@codesourcery.com>
8156             Paul Pluzhnikov  <ppluzhnikov@google.com>
8157
8158         [BZ #14012]
8159         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8160         requiring rpcgen.
8161         [cross-compiling] (extra-libs): Likewise.
8162         [cross-compiling] (extra-libs-others): Likewise.
8163         [cross-compiling] (librpcsvc-routines): Likewise.
8164         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8165         [cross-compiling] (omit-deps): Likewise.
8166         (sunrpc-CPPFLAGS): New variable.
8167         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8168         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8169         (cross-rpcgen-objs): New variable.
8170         (extra-objs): Append $(cross-rpcgen-objs).
8171         ($(cross-rpcgen-objs)): New rule.
8172         ($(objpfx)cross-rpcgen): Likewise.
8173         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8174         comment.
8175         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8176         ($(objpfx)x%.stmp): Likewise.
8177         * sunrpc/proto.h [IS_IN_build] (_): Define.
8178         [IS_IN_build] (_libc_intl_domainname): Likewise.
8179
8180 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8181
8182         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8183         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8184         and R_X86_64_TPOFF64.
8185
8186 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8187
8188         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8189         sysdeps/unix/sysv/syscalls.list.
8190         (stime): Likewise.
8191         (utime): Likewise.
8192         * sysdeps/unix/sysv/syscalls.list: Remove file.
8193
8194 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8195
8196         [BZ #3440]
8197         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8198         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8199         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8200         (__LC_IDENTIFICATION): Make these macros useful in #if
8201         expressions, as required by C99.
8202
8203 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8204
8205         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8206         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8207         after this.
8208
8209 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8210
8211         * stdlib/longlong.h: Updated from GCC.
8212
8213 2012-05-09  Andreas Jaeger  <aj@suse.de>
8214
8215         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8216         default is first entry.
8217         (run_mode): Set type.
8218         (main): Remove informal message about syslog.
8219         (options): Fix typo.
8220
8221         [BZ #14053]
8222         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8223         to asm.
8224         (lrint): Likewise.
8225         (llrintf): Likewise.
8226         (llrint): Likewise.
8227         (rint): Likewise.
8228         (rintf): Likewise.
8229         (nearbyint): Likewise.
8230         (nearbyintf): Likewise.
8231
8232 2012-05-09  Andreas Jaeger  <aj@suse.de>
8233             Pedro Alves  <palves@redhat.com>
8234
8235         * nscd/nscd.c (run_mode): Use enum.
8236         (main): Cleanup coding style issue.
8237
8238 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8239             Andreas Jaeger  <aj@suse.de>
8240
8241         * nscd/nscd.c (go_background): Replaced with...
8242         (run_mode): ... this.
8243         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8244         (options): Add -F --foreground.
8245         (main): Implement it.
8246         (parse_opt): Parse it.
8247
8248 2012-05-09  Andreas Jaeger  <aj@suse.de>
8249
8250         [BZ #14083]
8251         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8252         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8253         -Wconversion warning.
8254         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8255         Likewise.
8256
8257 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8258
8259         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8260         == 0.
8261         (LC_ALL): Use macro-int-constant.
8262         (LC_COLLATE): Likewise.
8263         (LC_CTYPE): Likewise.
8264         (LC_MESSAGES): Likewise.
8265         (LC_MONETARY): Likewise.
8266         (LC_NUMERIC): Likewise.
8267         (LC_TIME): Likewise.
8268         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8269         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8270         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8271         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8272         Specify type.
8273         [C99-based standards] (float_t): Expect type.
8274         [C99-based standards] (double_t): Expect type.
8275         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8276         type.
8277         [C99-based standards] (HUGE_VALL): Likewise.
8278         [C99-based standards] (INFINITY): Likewise.
8279         [C99-based standards] (NAN): Likewise.
8280         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8281         [C99-based standards] (FP_NAN): Likewise.
8282         [C99-based standards] (FP_NORMAL): Likewise.
8283         [C99-based standards] (FP_SUBNORMAL): Likewise.
8284         [C99-based standards] (FP_ZERO): Likewise.
8285         [C99-based standards] (FP_FAST_FMA): Use
8286         optional-macro-int-constant.  Specify type.  Require == 1.
8287         [C99-based standards] (FP_FAST_FMAF): Likewise.
8288         [C99-based standards] (FP_FAST_FMAL): Likewise.
8289         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8290         [C99-based standards] (FP_ILOGBNAN): Likewise.
8291         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8292         Specify type.
8293         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8294         [C99-based standards] (math_errhandling): Specify type.
8295         [ISO99 || ISO11] (signgam): Do not allow.
8296         [non-C99-based standards] (copysignf): Do not allow.
8297         [non-C99-based standards] (exp2f): Likewise.
8298         [non-C99-based standards] (log2f): Likewise.
8299         [non-C99-based standards] (modff): Allow.
8300         [non-C99-based standards] (erff): Do not allow.
8301         [non-C99-based standards] (erfcf): Likewise.
8302         [non-C99-based standards] (gammaf): Likewise.
8303         [non-C99-based standards] (hypotf): Likewise.
8304         [non-C99-based standards] (j0f): Likewise.
8305         [non-C99-based standards] (j1f): Likewise.
8306         [non-C99-based standards] (jnf): Likewise.
8307         [non-C99-based standards] (lgammaf): Likewise.
8308         [non-C99-based standards] (tgammaf): Likewise.
8309         [non-C99-based standards] (y0f): Likewise.
8310         [non-C99-based standards] (y1f): Likewise.
8311         [non-C99-based standards] (ynf): Likewise.
8312         [non-C99-based standards] (isnanf): Likewise.
8313         [non-C99-based standards] (acoshf): Likewise.
8314         [non-C99-based standards] (asinhf): Likewise.
8315         [non-C99-based standards] (atanhf): Likewise.
8316         [non-C99-based standards] (cbrtf): Likewise.
8317         [non-C99-based standards] (expm1f): Likewise.
8318         [non-C99-based standards] (ilogbf): Likewise.
8319         [non-C99-based standards] (log1pf): Likewise.
8320         [non-C99-based standards] (logbf): Likewise.
8321         [non-C99-based standards] (nextafterf): Likewise.
8322         [non-C99-based standards] (remainderf): Likewise.
8323         [non-C99-based standards] (rintf): Likewise.
8324         [non-C99-based standards] (scalbf): Likewise.
8325         [non-C99-based standards] (copysignl): Likewise.
8326         [non-C99-based standards] (exp2l): Likewise.
8327         [non-C99-based standards] (log2l): Likewise.
8328         [non-C99-based standards] (modfl): Allow.
8329         [non-C99-based standards] (erfl): Do not allow.
8330         [non-C99-based standards] (erfcl): Likewise.
8331         [non-C99-based standards] (gammal): Likewise.
8332         [non-C99-based standards] (hypotl): Likewise.
8333         [non-C99-based standards] (j0l): Likewise.
8334         [non-C99-based standards] (j1l): Likewise.
8335         [non-C99-based standards] (jnl): Likewise.
8336         [non-C99-based standards] (lgammal): Likewise.
8337         [non-C99-based standards] (tgammal): Likewise.
8338         [non-C99-based standards] (y0l): Likewise.
8339         [non-C99-based standards] (y1l): Likewise.
8340         [non-C99-based standards] (ynl): Likewise.
8341         [non-C99-based standards] (isnanl): Likewise.
8342         [non-C99-based standards] (acoshl): Likewise.
8343         [non-C99-based standards] (asinhl): Likewise.
8344         [non-C99-based standards] (atanhl): Likewise.
8345         [non-C99-based standards] (cbrtl): Likewise.
8346         [non-C99-based standards] (expm1l): Likewise.
8347         [non-C99-based standards] (ilogbl): Likewise.
8348         [non-C99-based standards] (log1pl): Likewise.
8349         [non-C99-based standards] (logbl): Likewise.
8350         [non-C99-based standards] (nextafterl): Likewise.
8351         [non-C99-based standards] (remainderl): Likewise.
8352         [non-C99-based standards] (rintl): Likewise.
8353         [non-C99-based standards] (scalbl): Likewise.
8354         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8355         [non-C99-based standards] (FP_*): Do not allow.
8356         [C99-based standards] (FP_*): Change to
8357         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8358         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8359         allow.
8360         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8361         (SIG_ERR): Likewise.
8362         [X/Open-based standards] (SIG_HOLD): Likewise.
8363         (SIG_IGN): Likewise.
8364         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8365         positive value.
8366         (SIGFPE): Likewise.
8367         (SIGILL): Likewise.
8368         (SIGINT): Likewise.
8369         (SIGSEGV): Likewise.
8370         (SIGTER): Likewise.
8371         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8372         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8373         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8374         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8375         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8376         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8377         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8378         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8379         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8380         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8381         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8382         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8383         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8384         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8385         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8386         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8387         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8388         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8389         [X/Open-based standards] (SIGTRAP): Likewise.
8390         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8391         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8392         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8393         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8394         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8395         allow.
8396
8397 2012-05-08  Ian Wienand  <ianw@vmware.com>
8398
8399         [BZ #14080]
8400         * time/tzset.c (__tzset_parse_tz): Update default rules for
8401         daylight time changes in the Energy Policy Act of 2005.
8402
8403 2012-05-09  Andreas Jaeger  <aj@suse.de>
8404
8405         [BZ #13983]
8406         * elf/ldconfig.c (parse_conf): Change string to make clear that
8407         ldconfig only issued a warning if ld.so.conf does not exist.
8408
8409 2012-05-08  David S. Miller  <davem@davemloft.net>
8410
8411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8412         movxtod instead of popping the value on the stack.
8413
8414         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8415
8416 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8417
8418         * config.h.in: Add HAVE_ARM_PCS_VFP.
8419
8420 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8421
8422         [BZ #13979]
8423         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8424         checking but the checks are disabled for any reason.
8425
8426 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8427
8428         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8429         and ELF64_R_TYPE with ELFW(R_TYPE).
8430
8431 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8432
8433         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8434         (ulimit): Likewise.
8435
8436         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8437         (settimeofday): Likewise.
8438
8439 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8440
8441         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8442         a struct th_u2 inside the union, and move tu_block/tu_code into
8443         a new th_u3 union of tu_block/tu_code inside of that.  Move
8444         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8445         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8446         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8447         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8448         (th_stuff): Change to th_u1.tu_stuff.
8449         (th_data): Define.
8450         (th_msg): Change to th_u1.th_u2.tu_data.
8451
8452 2012-05-07  David S. Miller  <davem@davemloft.net>
8453
8454         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8455
8456         [BZ #14074]
8457         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8458         (SETUP_PIC_REG): Use it.
8459         (SETUP_PIC_REG_LEAF): Use it.
8460
8461 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8462
8463         [BZ #13885]
8464         [BZ #13923]
8465         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8466         USE_AS_EXPM1L.
8467         (EXPL_FINITE): Likewise.
8468         (FLDLOG): Likewise.
8469         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8470         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8471         e_expl.S.
8472         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8473         USE_AS_EXPM1L.
8474         (EXPL_FINITE): Likewise.
8475         (FLDLOG): Likewise.
8476         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8477         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8478         e_expl.S.
8479         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8480         test of -max_value argument for long double.
8481         * sysdeps/i386/fpu/libm-test-ulps: Update.
8482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8483
8484 2012-05-06  David S. Miller  <davem@davemloft.net>
8485
8486         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8487         quad soft-float symbols whose references which are compiler
8488         generated.
8489         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8490
8491 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8492
8493         [BZ #13884]
8494         [BZ #13914]
8495         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8496         USE_AS_EXP10L.
8497         (EXPL_FINITE): Likewise.
8498         (FLDLOG): Likewise.
8499         (c0): Likewise.
8500         (c1): Likewise.
8501         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8502         Adjust comments for base varying.
8503         (__expl_finite): Change alias to EXPL_FINITE.
8504         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8505         e_expl.S.
8506         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8507         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8508         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8509         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8510         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8511         USE_AS_EXP10L.
8512         (EXPL_FINITE): Likewise.
8513         (FLDLOG): Likewise.
8514         (c0): Likewise.
8515         (c1): Likewise.
8516         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8517         Adjust comments for base varying.
8518         (__expl_finite): Change alias to EXPL_FINITE.
8519         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8520         tests for bugs.
8521         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8522
8523         [BZ #14064]
8524         * math/libm-test.inc (check_float_internal): Correct ulp
8525         calculation for subnormal expected results.
8526
8527 2012-05-06  Andreas Jaeger  <aj@suse.de>
8528
8529         * Makeconfig (+math-flags): New, set to -frounding-math.
8530         (+cflags): Add +math-flags so that all of glibc gets compiled with
8531         it.
8532
8533         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8534
8535 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8536
8537         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8538         Disable one test.
8539
8540         [BZ #13787]
8541         [BZ #13922]
8542         [BZ #14036]
8543         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8544         (__ieee754_expl): Allow for and saturate large arguments.
8545         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8546         (u_threshold): Likewise.
8547         (__exp): Call __ieee754_exp before checking for overflow and
8548         underflow.
8549         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8550         (u_threshold): Likewise.
8551         (__expf): Call __ieee754_expf before checking for overflow and
8552         underflow.
8553         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8554         (u_threshold): Likewise.
8555         (__expl): Call __ieee754_expl before checking for overflow and
8556         underflow.
8557         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8558         (__ieee754_expl): Allow for and saturate large arguments.
8559         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8560         missing overflow exception on overflow.
8561         (expm1_test): Do not allow missing overflow exception on overflow.
8562
8563         * sysdeps/i386/fpu/e_expl.c: Move to ...
8564         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8565         rather than using inline asm.
8566         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8567         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8568         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8569
8570         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8571         (nice): Likewise.
8572         (poll): Likewise.
8573         (signal): Likewise.
8574         (time): Likewise.
8575         (times): Likewise.
8576
8577 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8578
8579         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8580         sysdeps/unix/common/syscalls.list.
8581         (fchmod): Likewise.
8582         (fchown): Likewise.
8583         (ftruncate): Likewise.
8584         (getrusage): Likewise.
8585         (gettimeofday): Likewise.
8586         (setpgid): Likewise.
8587         (setregid): Likewise.
8588         (setreuid): Likewise.
8589         (sigaction): Likewise.
8590         (truncate): Likewise.
8591         (vhangup): Likewise.
8592         * sysdeps/unix/common/syscalls.list: Remove file.
8593         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8594         * sysdeps/unix/sysv/linux/Implies: Likewise.
8595
8596 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8597
8598         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8599         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8600         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8601         Moved to ...
8602         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8603         Here.
8604         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8605         to ...
8606         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8607         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8608         to ...
8609         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8610         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8611         to ...
8612         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8613         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8614         to ...
8615         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8616         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8617         to ...
8618         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8619         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8620         to ...
8621         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8622         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8623         to ...
8624         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8625         Here.
8626         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8627         to ...
8628         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8629         Here.
8630         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8631         to ...
8632         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8633         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8634         Moved to ...
8635         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8636         Here.
8637         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8638         to ...
8639         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8640
8641 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8642
8643         * sysdeps/unix/common/bits/dirent.h: Remove file.
8644         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8645
8646         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8647         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8648         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8649         * sysdeps/unix/bsd/isatty.c: Likewise.
8650         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8651         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8652         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8653
8654 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8655
8656         [BZ #13563]
8657         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8658         long double comparison inaccuracies.
8659         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8660         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8661
8662 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8663
8664         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8665         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8666
8667 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8668
8669         [BZ #14049]
8670         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8671         nonzero digits before rounding a hex value.
8672         * stdlib/tst-strtod.c (tests): Add another test.
8673
8674 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8675
8676         * sysdeps/s390/fpu/libm-test-ulps: Update.
8677
8678 2012-05-03  Andreas Jaeger  <aj@suse.de>
8679
8680         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8681         does not get optimized out.
8682         (malloc_opt_barrier): New.
8683
8684 2012-05-03  Andreas Jaeger  <aj@suse.de>
8685             Roland McGrath  <roland@hack.frob.com>
8686
8687         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8688         intermediate file deletion.
8689         (generated): Add .symlist files.
8690
8691 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8692
8693         [BZ #13775]
8694         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8695         Redirect under this condition.
8696         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8697         [__USE_GNU] (__dprintf_chk): Not under this condition.
8698         [__USE_GNU] (__vdprintf_chk): Likewise.
8699         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8700         under this condition.
8701         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8702         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8703         [__USE_XOPEN2K8] (vdprintf): Likewise.
8704         [__USE_GNU] (__dprintf_chk): Not under this condition.
8705         [__USE_GNU] (__vdprintf_chk): Likewise.
8706         [__USE_GNU] (dprintf): Likewise.
8707         [__USE_GNU] (vdprintf): Likewise.
8708
8709 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8710
8711         * elf/Makefile (common-generated): Set this instead of generated for
8712         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8713         $(all-built-dso)-derived lists.
8714
8715 2012-05-03  Andreas Jaeger  <aj@suse.de>
8716
8717         * sysdeps/i386/fpu/libm-test-ulps: Update.
8718
8719         * FAQ: Removed.
8720         * FAQ.in: Likewise.
8721         * scripts/gen-FAQ.pl: Likewise.
8722         * manual/install.texi (Installation): Point to online location of
8723         FAQ.
8724         * Makefile (files-for-dist): Remove FAQ.
8725         (FAQ): Remove.
8726
8727 2012-05-02  Allan McRae  <allan@archlinux.org>
8728
8729         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8730         (LDFLAGS-reldepmod5.so): Likewise.
8731         (LDFLAGS-reldep6mod1.so): Likewise.
8732         (LDFLAGS-reldep6mod4.so): Likewise.
8733         (LDFLAGS-reldep8mod3.so): Likewise.
8734         (LDFLAGS-unload4mod1.so): Likewise.
8735         (LDFLAGS-unload4mod2.so): Likewise.
8736         (LDFLAGS-tst-initorder): Likewise.
8737         (LDFLAGS-tst-initordera2.so): Likewise.
8738         (LDFLAGS-tst-initordera3.so): Likewise.
8739         (LDFLAGS-tst-initordera4.so): Likewise.
8740         (LDFLAGS-tst-initorderb2.so): Likewise.
8741         (LDFLAGS-noload): Likewise.
8742         (LDFLAGS-next): Likewise.
8743         (LDFLAGS-order2mod1.so): Likewise.
8744         (LDFLAGS-order2mod2.so): Likewise.
8745         (LDFLAGS-tst-initorder2): Likewise.
8746         (LDFLAGS-tst-initorder2a.so): Likewise.
8747         (LDFLAGS-tst-initorder2b.so): Likewise.
8748         (LDFLAGS-tst-initorder2c.so): Likewise.
8749         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8750
8751 2012-05-02  David S. Miller  <davem@davemloft.net>
8752
8753         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8754
8755 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8756
8757         [BZ #14055]
8758         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8759
8760 2012-05-02  Andreas Jaeger  <aj@suse.de>
8761
8762         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8763         since we manipulate rounding mode.
8764         (CPPFLAGS-test-idouble.c): Likewise.
8765         (CPPFLAGS-test-ifloat.c): Likewise.
8766         (CFLAGS-test-ldouble.c): Likewise.
8767         (CFLAGS-test-double.c): Likewise.
8768         (CFLAGS-test-float.c): Likewise.
8769         (CFLAGS-test-misc.c): Likewise.
8770         (CFLAGS-test-test-fenv.c): Likewise.
8771
8772 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8773
8774         [BZ #2550]
8775         [BZ #2570]
8776         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8777         comparisons to determine direction to adjust input.
8778
8779 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8780
8781         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8782         output to the target.
8783
8784         * scripts/localplt.awk: New file.
8785         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8786         (check-localplt-CFLAGS): Variable removed.
8787         ($(all-built-dso:=.jmprel)): New static pattern rule.
8788         (generated): Add those targets.
8789         (localplt-built-dso): New variable.
8790         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8791
8792         * elf/check-localplt.c: File removed.
8793
8794         * scripts/check-execstack.awk: New file.
8795         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8796         (check-execstack-CFLAGS): Variable removed.
8797         ($(objpfx)check-execstack.h): Target removed.
8798         ($(objpfx)execstack-default): New target.
8799         (generated): Add that instead of check-execstack.h.
8800         ($(all-built-dso:=.phdr)): New static pattern rule.
8801         (generated): Add those targets.
8802         * elf/check-execstack.c: File removed.
8803
8804         * scripts/check-textrel.awk: New file.
8805         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8806         (check-textrel-CFLAGS): Variable removed.
8807         (all-built-dso): Use := to define.o
8808         ($(all-built-dso:=.dyn)): New static pattern rule.
8809         (generated): Add those targets.
8810         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8811         * config.make.in (READELF): New substituted variable.
8812         * elf/check-textrel.c: File removed.
8813
8814 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8815
8816         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8817         allow.
8818         * conform/data/ctype.h-data [C99-based standards] (isblank):
8819         Expect function.
8820         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8821         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8822         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8823         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8824         Specify type.  Require positive value.
8825         (EILSEQ): Likewise.
8826         (ERANGE): Likewise.
8827         [ISO || POSIX] (EILSEQ): Do not expect.
8828         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8829         Specify type.  Require positive value.
8830         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8831         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8832         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8833         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8834         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8835         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8836         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8837         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8838         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8839         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8840         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8841         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8842         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8843         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8844         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8845         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8846         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8847         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8848         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8849         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8850         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8851         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8852         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8853         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8854         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8855         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8856         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8857         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8858         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8859         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8860         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8861         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8862         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8863         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8864         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8865         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8866         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8867         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8868         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8869         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8870         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8871         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8872         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8873         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8874         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8875         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8876         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8877         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8878         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8879         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8880         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8881         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8882         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8883         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8884         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8885         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8886         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8887         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8888         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8889         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8890         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8891         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8892         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8893         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8894         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8895         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8896         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8897         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8898         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8899         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8900         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8901         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8902         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8903         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8904         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8905         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8906         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8907         Require >= 2.
8908         (FLT_ROUNDS): Expect as macro, not constant.
8909         (FLT_MANT_DIG): Use macro-int-constant.
8910         (DBL_MANT_DIG): Likewise.
8911         (LDBL_MANT_DIG): Likewise.
8912         (FLT_DIG): Likewise.
8913         (DBL_DIG): Likewise.
8914         (LDBL_DIG): Likewise.
8915         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8916         (DBL_MIN_EXP): Likewise.
8917         (LDBL_MIN_EXP): Likewise.
8918         (FLT_MAX_EXP): Use macro-int-constant.
8919         (DBL_MAX_EXP): Likewise.
8920         (LDBL_MAX_EXP): Likewise.
8921         (FLT_MAX_10_EXP): Likewise.
8922         (DBL_MAX_10_EXP): Likewise.
8923         (LDBL_MAX_10_EXP): Likewise.
8924         (FLT_MAX): Use macro-constant.
8925         (DBL_MAX): Likewise.
8926         (LDBL_MAX): Likewise.
8927         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8928         (DBL_EPSILON): Likewise.
8929         (LDBL_EPSILON): Likewise.
8930         (FLT_MIN): Likewise.
8931         (DBL_MIN): Likewise.
8932         (LDBL_MIN): Likewise.
8933         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8934         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8935         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8936         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8937         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8938         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8939         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8940         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8941         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8942         [ISO11] (FLT_TRUE_MIN): Likewise.
8943         [ISO11] (LDBL_TRUE_MIN): Likewise.
8944         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8945         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8946         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8947         (SCHAR_MAX): Likewise.
8948         (UCHAR_MAX): Likewise.
8949         (CHAR_MIN): Likewise.
8950         (CHAR_MAX): Likewise.
8951         (MB_LEN_MAX): Use macro-int-constant.
8952         (SHRT_MIN): Use macro-int-constant.  Specify type.
8953         (SHRT_MAX): Likewise.
8954         (USHRT_MAX): Likewise.
8955         (INT_MAX): Likewise.
8956         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8957         bound negative.
8958         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8959         bound with "U".
8960         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8961         bound with "L".
8962         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8963         bound negative.  Suffix upper bound with "L".
8964         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8965         bound with "UL".
8966         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8967         Specify type.
8968         [C99-based standards] (LLONG_MAX): Likewise.
8969         [C99-based standards] (ULLONG_MAX): Likewise.
8970         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8971         == 0.
8972         [ISO11] (max_align_t): Require type.
8973         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8974
8975         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8976         from $CFLAGS, without defining away __attribute__ calls.
8977         (checknamespace): Use $CFLAGS_namespace.
8978
8979         * conform/conformtest.pl (@keywords): Only include C99 keywords
8980         for standards based on C99 or C11.
8981
8982         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8983         Disable tests.
8984         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8985         UNIX98]: Likewise.
8986
8987         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8988         usability of symbols in #if.
8989
8990         * conform/conformtest.pl: If macro or constant types start
8991         "promoted:", expect the symbol to be of the following type
8992         promoted by the integer promotions.
8993
8994         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8995         in one place.  Also handle "macro-constant".
8996
8997         * conform/conformtest.pl: Only accept expected macro values with
8998         "==".  Parse all "macro" lines in one place.
8999         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9000
9001         * conform/conformtest.pl: Handle braced types on "constant" lines
9002         instead of handling "typed-constant".
9003         * conform/data/signal.h-data: Use "constant" instead of
9004         "typed-constant".
9005
9006         * conform/conformtest.pl: Handle "optional-" at start of lines in
9007         one place rather than duplicating several cases.  Handle each
9008         format of "macro" line with initial "optional-".
9009
9010         * conform/conformtest.pl: Only accept expected constant or
9011         optional-constant values with "==".  Parse all "constant" lines in
9012         one place.  Parse all "optional-constant" lines in one place.
9013         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9014         * conform/data/fmtmsg.h-data: Likewise.
9015         * conform/data/netinet/in.h-data: Likewise.
9016         * conform/data/tar.h-data: Likewise.
9017         * conform/data/limits.h-data: Use "==" form on "constant" and
9018         "optional-constant" lines.
9019
9020         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9021         Use -std=c99 for XOPEN2K.
9022         (@knownproblems): Remove.
9023         (newtoken): Don't check %isknown.
9024
9025         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9026         Do not expect macro.
9027         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9028         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9029         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9030         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9031         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9032         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9033         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9034         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9035         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9036         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9037         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9038         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9039         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9040         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9041         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9042         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9043         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9044         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9045         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9046         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9047         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9048         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9049         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9050         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9051         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9052         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9053         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9054         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9055         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9056         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9057         [XPG3] (acosh): Likewise.
9058         [XPG3] (asinh): Likewise.
9059         [XPG3] (atanh): Likewise.
9060         [XPG3] (cbrt): Likewise.
9061         [XPG3] (expm1): Likewise.
9062         [XPG3] (ilogb): Likewise.
9063         [XPG3] (log1p): Likewise.
9064         [XPG3] (logb): Likewise.
9065         [XPG3] (nextafter): Likewise.
9066         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9067         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9068         [XPG3] (remainder): Likewise.
9069         [XPG3] (rint): Likewise.
9070         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9071         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9072         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9073         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9074         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9075         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9076         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9077         [UNIX98 || XOPEN2K] (scalb): Expect.
9078         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9079         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9080         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9081         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9082         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9083         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9084         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9085         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9086         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9087         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9088         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9089         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9090         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9091         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9092         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9093         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9094         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9095         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9096         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9097         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9098         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9099         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9100         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9101         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9102         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9103         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9104         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9105         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9106         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9107         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9108         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9109         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9110         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9111         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9112         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9113         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9114         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9115         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9116         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9117         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9118         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9119         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9120         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9121         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9122         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9123         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9124         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9125         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9126         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9127         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9128         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9129         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9130         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9131         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9132         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9133         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9134         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9135         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9136         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9137         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9138         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9139         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9140         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9141         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9142         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9143         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9144         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9145         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9146         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9147         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9148         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9149         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9150         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9151         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9152         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9153         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9154         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9155         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9156         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9157         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9158         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9159         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9160         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9161         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9162         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9163         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9164         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9165         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9166         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9167         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9168         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9169         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9170         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9171         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9172         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9173         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9174         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9175         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9176         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9177         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9178         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9179         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9180         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9181         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9182         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9183         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9184         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9185         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9186         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9187         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9188         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9189         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9190         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9191         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9192         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9193         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9194         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9195         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9196         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9197         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9198         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9199         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9200         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9201         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9202         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9203         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9204         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9205         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9206         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9207         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9208         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9209         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9210         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9211         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9212         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9213         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9214         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9215
9216         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9217         _XOPEN_SOURCE_EXTENDED for XPG4.
9218
9219         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9220
9221         * Makeconfig (localtime): Remove variable.
9222         (inst_localtime-file): Likewise.
9223
9224 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9225
9226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9227         Update.
9228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9229         Update.
9230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9231         Update.
9232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9233         Update.
9234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9235         Update.
9236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9237         Update.
9238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9239         Update.
9240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9241         Update.
9242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9243         Update.
9244
9245 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9246
9247         [BZ #2550]
9248         [BZ #2570]
9249         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9250         comparisons to determine direction to adjust input.
9251         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9252         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9253         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9254         Likewise.
9255         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9256         Likewise.
9257         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9258         Likewise.
9259         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9260         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9261         Likewise.
9262         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9263         Likewise.
9264         * math/libm-test.inc (nexttoward_test): Add more tests.
9265
9266 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9267
9268         [BZ #14040]
9269         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9270         in version GLIBC_2.1, not GLIBC_2.0.
9271         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9272         Likewise.
9273
9274 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9275
9276         [BZ #13942]
9277         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9278         (1 - x) * (1 + x).
9279         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9280         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9281         * math/libm-test.inc (acos_test): Add more tests.
9282         (asin_test): Likewise.
9283         * sysdeps/i386/fpu/libm-test-ulps: Update.
9284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9285
9286         [BZ #14034]
9287         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9288         of square root.
9289         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9290         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9291         * math/libm-test.inc (acos_test_tonearest): New function.
9292         (acos_test_towardzero): Likewise.
9293         (acos_test_downward): Likewise.
9294         (acos_test_upward): Likewise.
9295         (asin_test_tonearest): Likewise.
9296         (asin_test_towardzero): Likewise.
9297         (asin_test_downward): Likewise.
9298         (asin_test_upward): Likewise.
9299         (main): Call the new functions.
9300         * sysdeps/i386/fpu/libm-test-ulps: Update.
9301         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9302
9303         [BZ #13884]
9304         [BZ #13924]
9305         * math/e_exp10.c: Include <float.h>.
9306         (__ieee754_exp10): Handle underflow here rather than multiplying
9307         large negative argument by M_LN10.
9308         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9309         of __ieee754_expf.
9310         * math/e_exp10l.c: Include <float.h>.
9311         (__ieee754_exp10l): Handle underflow here rather than multiplying
9312         large negative argument by M_LN10l.
9313         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9314         spurious overflow exception on underflow.
9315
9316 2012-04-29  Marek Polacek  <polacek@redhat.com>
9317
9318         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9319         (__fortify_function): New macro.
9320         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9321         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9322         __extern_always_inline.
9323         * libio/bits/stdio2.h: Likewise.
9324         * libio/bits/stdio.h: Likewise.
9325         * string/string.h: Likewise.
9326         * string/bits/string3.h: Likewise.
9327         * include/stdio.h: Likewise.
9328         * stdlib/bits/stdlib.h: Likewise.
9329         * stdlib/stdlib.h: Likewise.
9330         * rt/bits/mqueue2.h: Likewise.
9331         * rt/mqueue.h: Likewise.
9332         * posix/bits/unistd.h: Likewise.
9333         * posix/unistd.h: Likewise.
9334         * io/bits/poll2.h: Likewise.
9335         * io/bits/fcntl2.h: Likewise.
9336         * io/fcntl.h: Likewise.
9337         * io/sys/poll.h: Likewise.
9338         * misc/bits/syslog.h: Likewise.
9339         * misc/bits/syslog-ldbl.h: Likewise.
9340         * misc/sys/syslog.h: Likewise.
9341         * socket/bits/socket2.h: Likewise.
9342         * socket/sys/socket.h: Likewise.
9343         * debug/tst-chk1.c: Likewise.
9344         * wcsmbs/bits/wchar2.h: Likewise.
9345         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9346         * wcsmbs/wchar.h: Likewise.
9347
9348 2012-04-29  Andreas Jaeger  <aj@suse.de>
9349
9350         * Makerules (tests): Remove enable-check-abi protection.
9351         (check-abi-warn): Remove.
9352         (check-abi-%): Remove check-abi-warn usage.
9353
9354         * configure.in: Remove check-abi configure option.
9355         * configure: Regenerated.
9356         * config.make.in (enable-check-abi): Remove.
9357
9358 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9359
9360         [BZ #14033]
9361         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9362         double functions to double *_finite functions.
9363
9364         [BZ #13941]
9365         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9366         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9367         LDBL_MIN_EXP.
9368         * stdio-common/Makefile (tests): Add tst-sprintf3.
9369         * stdio-common/tst-sprintf3.c: New file.
9370
9371         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9372         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9373
9374 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9375
9376         * conform/conformtest.pl: Remove duplicate typed-constant
9377         handling.
9378
9379 2012-04-28  David S. Miller  <davem@davemloft.net>
9380
9381         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9382         (check-abi-%): Remove AWK script prerequisite and explicit
9383         abilist directory.
9384         (check-abi): Rewrite to just diff the symlist with the abilist.
9385         (config-tls, config-abi-config): Delete, no longer used.
9386         (update-abi-%): Remove AWK script and explicit abilist directory.
9387         (update-abi): Rewrite to simply compare and conditionally copy the
9388         symlist and the sysdep abilist file.  Remove update-abi-config
9389         checks.
9390         * abilist/ld.abilist: Remove.
9391         * abilist/libBrokenLocale.abilist: Remove.
9392         * abilist/libanl.abilist: Remove.
9393         * abilist/libcrypt.abilist: Remove.
9394         * abilist/libdl.abilist: Remove.
9395         * abilist/librt.abilist: Remove.
9396         * abilist/libthread_db.abilist: Remove.
9397         * abilist/libutil.abilist: Remove.
9398         * scripts/extract-abilist.awk: Remove.
9399         * scripts/merge-abilist.awk: Remove.
9400         * sysdeps/generic/libcidn.abilist: New file.
9401         * sysdeps/generic/libnss_compat.abilist: New file.
9402         * sysdeps/generic/libnss_db.abilist: New file.
9403         * sysdeps/generic/libnss_dns.abilist: New file.
9404         * sysdeps/generic/libnss_files.abilist: New file.
9405         * sysdeps/generic/libnss_hesiod.abilist: New file.
9406         * sysdeps/generic/libnss_nis.abilist: New file.
9407         * sysdeps/generic/libnss_nisplus.abilist: New file.
9408         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9409         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9410         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9411         file.
9412         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9413         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9414         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9415         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9416         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9417         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9418         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9419         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9420         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9421         file.
9422         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9423         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9424         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9425         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9426         file.
9427         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9428         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9429         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9430         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9431         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9432         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9433         file.
9434         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9435         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9436         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9437         file.
9438         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9439         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9440         New file.
9441         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9442         New file.
9443         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9444         New file.
9445         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9446         New file.
9447         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9448         New file.
9449         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9450         New file.
9451         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9452         New file.
9453         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9454         New file.
9455         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9456         New file.
9457         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9458         New file.
9459         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9460         New file.
9461         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9462         New file.
9463         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9464         New file.
9465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9466         file.
9467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9468         New file.
9469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9470         New file.
9471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9472         file.
9473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9474         New file.
9475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9476         New file.
9477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9478         file.
9479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9480         New file.
9481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9482         New file.
9483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9484         New file.
9485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9486         New file.
9487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9488         New file.
9489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9490         New file.
9491         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9492         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9493         file.
9494         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9495         New file.
9496         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9497         file.
9498         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9499         file.
9500         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9501         file.
9502         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9503         file.
9504         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9505         file.
9506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9507         New file.
9508         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9509         file.
9510         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9511         file.
9512         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9513         New file.
9514         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9515         file.
9516         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9517         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9518         file.
9519         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9520         New file.
9521         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9522         file.
9523         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9524         file.
9525         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9526         file.
9527         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9528         file.
9529         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9530         file.
9531         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9532         New file.
9533         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9534         file.
9535         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9536         file.
9537         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9538         New file.
9539         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9540         file.
9541         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9542         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9543         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9544         file.
9545         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9546         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9547         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9548         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9549         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9550         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9551         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9552         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9553         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9554         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9555         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9556         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9557         file.
9558         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9559         New file.
9560         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9561         file.
9562         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9563         file.
9564         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9565         file.
9566         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9567         file.
9568         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9569         file.
9570         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9571         New file.
9572         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9573         New file.
9574         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9575         file.
9576         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9577         New file.
9578         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9579         file.
9580         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9581         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9582         file.
9583         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9584         New file.
9585         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9586         file.
9587         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9588         file.
9589         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9590         file.
9591         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9592         file.
9593         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9594         file.
9595         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9596         New file.
9597         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9598         New file.
9599         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9600         file.
9601         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9602         New file.
9603         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9604         file.
9605
9606 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9607
9608         * conform/conformtest.pl: Fix typo in handling typed-constant from
9609         allow-header.
9610
9611 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9612
9613         * README: Cut down references to pre-2.6 Linux kernels and
9614         Linuxthreads.  Update lists of configurations in libc and ports
9615         and sort alphabetically.  Say "or newer" with Linux kernel version
9616         requirements.
9617
9618         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9619
9620 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9621
9622         [BZ #887]
9623         * math/libm-test.inc (logb_test_downward): New test to expose
9624         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9625         rounding mode.
9626
9627 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9628
9629         [BZ #14027]
9630         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9631         to be done.
9632         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9633         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9634
9635 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9636
9637         * sysdeps/unix/i386/brk.S: Remove file.
9638         * sysdeps/unix/i386/dl-brk.S: Likewise.
9639         * sysdeps/unix/i386/pipe.S: Likewise.
9640         * sysdeps/unix/i386/sigreturn.S: Likewise.
9641         * sysdeps/unix/i386/syscall.S: Likewise.
9642         * sysdeps/unix/i386/vfork.S: Likewise.
9643         * sysdeps/unix/i386/wait.S: Likewise.
9644
9645         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9646         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9647
9648         * configure.in (arm*-none*): Do not allow without
9649         --enable-hacker-mode.
9650         (netbsd*): Remove case setting base_os.
9651         (386bsd*): Likewise.
9652         (freebsd*): Likewise.
9653         (bsdi*): Likewise.
9654         (osf*): Likewise.
9655         (sunos*): Likewise.
9656         (ultrix*): Likewise.
9657         (newsos*): Likewise.
9658         (dynix*): Likewise.
9659         (*bsd*): Likewise.
9660         (sysv*): Likewise.
9661         (isc*): Likewise.
9662         (esix*): Likewise.
9663         (sco*): Likewise.
9664         (minix*): Likewise.
9665         (irix4*): Likewise.
9666         (irix6*): Likewise.
9667         (solaris[2-9]*): Likewise.
9668         (none): Likewise.
9669         * configure: Regenerated.
9670
9671 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9672
9673         [BZ #11521]
9674         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9675         overflow or cancellation in calculating denominator.
9676         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9677         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9678         down expression to avoid unexpected rounding in newer GCCs.
9679         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9680
9681 2012-04-26  David S. Miller  <davem@davemloft.net>
9682
9683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9684         long-double compat symbols.
9685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9690         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9691         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9692         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9694         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9695         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9696         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9697         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9698
9699 2012-04-25  David S. Miller  <davem@davemloft.net>
9700
9701         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9702         HWCAP_* values only after the memory barriers have been defined.
9703         (atomic_full_barrier): Define.
9704         (atomic_read_barrier): Define.
9705         (atomic_write_barrier): Define.
9706
9707 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9708
9709         * shlib-versions: Add libgcc_s version information.
9710         * sysdeps/generic/libgcc_s.h: Remove.
9711         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9712         libgcc_s.h.
9713         * sysdeps/gnu/unwind-resume.c: Likewise.
9714         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9715
9716 2012-04-25  David S. Miller  <davem@davemloft.net>
9717
9718         * sysdeps/unix/sparc/brk.S: Delete.
9719         * sysdeps/unix/sparc/dl-brk.S: Delete.
9720         * sysdeps/unix/sparc/pipe.S: Delete.
9721         * sysdeps/unix/sparc/sysdep.S: Delete.
9722         * sysdeps/unix/sparc/sysdep.h: Delete.
9723         * sysdeps/unix/sparc/vfork.S: Delete.
9724         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9725         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9726         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9727         ret_ERRVAL, r0, r1, MOVE): Define.
9728         (JUMPTARGET): Remove.
9729         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9730         sysdeps/unix/sparc/sysdep.h
9731         (ENTRY, END): Remove.
9732         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9733
9734 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9735
9736         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9737         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9738         -DIS_IN_build.
9739
9740         * timezone/README: Update upstream location and email address for
9741         tzcode and tzdata.
9742         * timezone/zdump.c: Update from tzcode 2012b.
9743         * timezone/zic.c: Likewise.
9744
9745         * configure.in (libc_cv_as_needed): Remove test.
9746         * configure: Regenerated.
9747         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9748         conditional definition.
9749         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9750         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9751         * config.make.in (have-as-needed): Remove variable.
9752
9753 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9754             Paul Pluzhnikov  <ppluzhnikov@google.com>
9755
9756         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9757         strings correctly.
9758
9759 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9760
9761         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9762         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9763         * sysdeps/sh/strlen.S: Likewise.
9764
9765 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9766
9767         * sysdeps/unix/fork.S: Remove file.
9768         * sysdeps/unix/i386/fork.S: Likewise.
9769         * sysdeps/unix/sparc/fork.S: Likewise.
9770
9771         * sysdeps/unix/system.c: Remove file.
9772         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9773
9774         * sysdeps/unix/getegid.S: Remove file.
9775         * sysdeps/unix/geteuid.S: Likewise.
9776
9777 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9778
9779         * scripts/check-localplt.awk: New file.
9780         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9781         of diff.
9782         * scripts/data/localplt-generic.data: Add a comment.
9783
9784         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9785         NODE when __dir_mkfile failed.
9786         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9787         Reported by Ludovic Courtès <ludo@gnu.org>.
9788
9789 2012-04-24  Andreas Jaeger  <aj@suse.de>
9790
9791         * Makerules (common-clean): Also remove gen-as-const-headers
9792         files.
9793
9794 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9795
9796         * Makerules (native-compile): Do not change working directory for
9797         build.  Use $(OUTPUT_OPTION) in command.
9798         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9799
9800 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9801
9802         [BZ #13886]
9803         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9804         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9805         * math/libm-test.inc (floor_test): Add more tests.
9806         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9807
9808 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9809
9810         * sysdeps/unix/getdents.c: Remove file.
9811         * sysdeps/unix/sysv/getdents.c: Likewise.
9812         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9813
9814         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9815         sysdeps/unix/mman/syscalls.list.
9816         (mmap): Likewise.
9817         (mprotect): Likewise.
9818         (msync): Likewise.
9819         (munmap): Likewise.
9820         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9821         * sysdeps/unix/mman/syscalls.list: Remove.
9822         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9823
9824         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9825         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9826         * configure: Regenerated.
9827         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9828         $(libgcc_s_suffix).
9829         * config.make.in (libgcc_s_suffix): Remove variable.
9830
9831 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9832
9833         * sysdeps/unix/sysv/gethostname.c: Move to ...
9834         * sysdeps/posix/gethostname.c: ... here.
9835
9836         * sysdeps/unix/execve.S: Remove file.
9837
9838         * sysdeps/unix/_exit.S: Remove file.
9839
9840 2012-04-23  Andreas Jaeger  <aj@suse.de>
9841
9842         [BZ #13739]
9843         * manual/Makefile: Remove make dist support, there's no
9844         need for a stand-alone documentation tar ball.
9845         (TEXI2DVI): Define always, it's not in Makeconfig.
9846         (dist): Removed.
9847         (tar-it): Removed.
9848         (edition): Removed.
9849         (glibc-doc-$(edition).tar): Removed
9850         (%.Z): Removed.
9851         (%.gz): Removed.
9852         (%.uu): Removed.
9853         (ETAGS): Remove, it's in Makeconfig.
9854         (move-if-change): Remove, it's in Makeconfig.
9855
9856 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9857
9858         [BZ #13970]
9859         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9860         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9861         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9862         (strtod_l, strtof_l, strtold_l): Remove __wur.
9863         It is not necessarily an error to ignore strtol's return value.
9864         One can reliably look at the stored endptr to decide whether
9865         the number had valid syntax.
9866
9867 2012-04-21  Andreas Jaeger  <aj@suse.de>
9868
9869         [BZ #13739]
9870         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9871
9872 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9873
9874         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9875         * sysdeps/unix/sysv/Versions: Remove file.
9876
9877 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9878
9879         [BZ #13927]
9880         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9881
9882 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9883
9884         [BZ #7064]
9885         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9886         version from __vm86.
9887
9888 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9889
9890         * sysdeps/unix/common/lxstat.c: Remove file.
9891         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9892
9893         * sysdeps/unix/sysv/Makefile: Remove file.
9894
9895         * sysdeps/unix/sysv/direct.h: Remove file.
9896
9897         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9898         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9899         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9900         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9901         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9902         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9903         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9904
9905         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9906
9907         * sysdeps/unix/xmknod.c: Remove file.
9908         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9909
9910         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9911
9912         * sysdeps/unix/sysv/i386/time.S: Remove file.
9913
9914         * sysdeps/unix/fxstat.c: Remove file.
9915         * sysdeps/unix/xstat.c: Likewise.
9916         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9917
9918         * sysdeps/unix/sysv/sigaction.c: Remove file.
9919
9920         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9921         (sysdep_headers): Remove variable.
9922         [termio.h not in sysdep_headers] (generated): Likewise.
9923         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9924         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9925         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9926         * sysdeps/unix/sysv/tcflow.c: Likewise.
9927         * sysdeps/unix/sysv/tcflush.c: Likewise.
9928         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9929         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9930         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9931         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9932         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9933
9934         * sysdeps/unix/siglist.c: Remove file.
9935
9936         * sysdeps/unix/getppid.S: Remove file.
9937
9938         * sysdeps/unix/mkdir.c: Remove file.
9939         * sysdeps/unix/rmdir.c: Likewise.
9940
9941 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9942
9943         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9944         ERR_MAX value.
9945         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9946         errlist-compat value.
9947
9948 2012-04-18  David S. Miller  <davem@davemloft.net>
9949
9950         * sysdeps/generic/memcopy.h (reg_char): Delete.
9951         * debug/strcat_chk.c: Use char, not reg_char.
9952         * debug/strcpy_chk.c: Likewise.
9953         * debug/strncat_chk.c: Likewise.
9954         * debug/strncpy_chk.c: Likewise.
9955         * string/memchr.c: Likewise.
9956         * string/memrchr.c: Likewise.
9957         * string/rawmemchr.c: Likewise.
9958         * string/strcat.c: Likewise.
9959         * string/strchr.c: Likewise.
9960         * string/strchrnul.c: Likewise.
9961         * string/strcmp.c: Likewise.
9962         * string/strcpy.c: Likewise.
9963         * string/strncat.c: Likewise.
9964         * string/strncmp.c: Likewise.
9965         * string/strncpy.c: Likewise.
9966
9967 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9968
9969         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9970         __builtin_memcopy is called when src and dest ranges are known to not
9971         overlap.
9972
9973 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9974
9975         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9976         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9977         fwd_align_merge macro call.
9978         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9979         bwd_align_merge macro call.
9980         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9981
9982 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9983
9984         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9985         bwd_align_merge macros.
9986         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9987         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9988         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9989
9990 2012-04-18  David S. Miller  <davem@davemloft.net>
9991
9992         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9993
9994 2012-04-18  Andreas Jaeger  <aj@suse.de>
9995
9996         [BZ# 6794]
9997         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9998         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9999         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10000
10001         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10002         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10003         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10004
10005         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10006         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10007         Adjust for changed ldbl-128 files.
10008
10009         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10010         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10011         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10012
10013 2012-04-17  David S. Miller  <davem@davemloft.net>
10014
10015         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10016
10017 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10018
10019         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10020         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10021         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10022         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10023         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10024         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10025
10026 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10027
10028         [BZ #6794]
10029         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10030         * math/libm-test.inc: Add ilogb errno and exception tests.
10031         * math/w_ilogb.c: New file: ilogb wrapper.
10032         * math/w_ilogbf.c: New file: ilogbf wrapper.
10033         * math/w_ilogbl.c: New file: ilogbl wrapper.
10034         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10035         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10036         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10037         exception being thrown with 0.0 as argument.
10038         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10039         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10040         exception being thrown with 0.0 as argument.
10041         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10042         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10043         exception being thrown with 0.0 as argument.
10044         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10045         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10046         exception being thrown with 0.0 as argument.
10047         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10048         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10049         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10050         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10051         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10052         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10053         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10054         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10055         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10056
10057 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10058
10059         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10060         with altivec.
10061
10062 2012-04-16  Marek Polacek  <polacek@redhat.com>
10063
10064         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10065
10066 2012-04-16  Marek Polacek  <polacek@redhat.com>
10067
10068         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10069         operands of fdivp instruction.
10070
10071 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10072
10073         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10074         * elf/tst-auditmod3b.c: Likewise.
10075         * elf/tst-auditmod4b.c: Likewise.
10076         * elf/tst-auditmod5b.c: Likewise.
10077         * elf/tst-auditmod6b.c: Likewise.
10078         * elf/tst-auditmod6c.c: Likewise.
10079         * elf/tst-auditmod7b.c: Likewise.
10080         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10081         * sysdeps/x86_64/preconfigure.in: Likewise.
10082         * sysdeps/x86_64/preconfigure: Regenerated.
10083
10084 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10085
10086         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10087         __ILP32__.
10088
10089 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10090
10091         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10092         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10093
10094 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10095
10096         [BZ #13973]
10097         * locale/iso-639.def: Fix gl language name. Spotted by
10098         Yaron Shahrabani.
10099
10100 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10101
10102         [BZ #2074]
10103         * libio/libio.h (__io_write_fn): Update comment.
10104
10105 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10106
10107         [BZ #2074]
10108         * stdio.texi (Hook Functions): The user provided writer function
10109         is not allowed to return -1.
10110
10111 2012-04-11  David S. Miller  <davem@davemloft.net>
10112
10113         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10114
10115 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10116
10117         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10118         Add a leading slash to rtkaio.
10119
10120 2012-04-11  Jim Meyering  <meyering@redhat.com>
10121
10122         [BZ #11959]
10123         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10124         It is not necessarily an error to ignore fwrite's return
10125         value.  One can reliably use ferror to test for errors after
10126         the fact.
10127
10128 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10129
10130         * bits/types.h (__snseconds_t): New type.
10131         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10132
10133         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10134         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10135         (__SNSECONDS_T_TYPE): Likewise.
10136         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10137         (__SNSECONDS_T_TYPE): Likewise.
10138         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10139         (__SNSECONDS_T_TYPE): Likewise.
10140
10141 2012-04-10  Andreas Jaeger  <aj@suse.de>
10142
10143         [BZ #2636]
10144         * manual/time.texi (Processor Time): Return type of times is
10145         elapsed real time since an arbitrary point in the past.
10146         (CPU Time): Move CLK_TCK from here...
10147         (Processor Time): ...to here.  Correct description.
10148         * manual/conf.texi (Constants for Sysconf): Correct description of
10149         _SC_CLK_TCK.
10150
10151 2012-04-10  David S. Miller  <davem@davemloft.net>
10152
10153         [BZ #13967]
10154         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10155         where the is a gap between DT_REL(A) and DT_JMPREL.
10156
10157 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10158
10159         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10160         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10161         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10162
10163 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10164
10165         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10166         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10167         (dl_main): Handle --inhibit-cache.
10168         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10169         _dl_inhibit_cache.
10170         * elf/dl-load.c (_dl_map_object): Use it.
10171         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10172
10173 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10174
10175         [BZ #13872]
10176         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10177         (__ieee754_powl): Saturate large exponents rather than testing for
10178         overflow of y*log2(x).
10179         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10180         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10181         exceptions.
10182
10183         [BZ #11521]
10184         * math/s_ctan.c: Include <float.h>.
10185         (__ctan): Avoid internal overflow or cancellation in calculating
10186         denominator.
10187         * math/s_ctanf.c: Likewise.
10188         * math/s_ctanl.c: Likewise.
10189         * math/s_ctanh.c: Likewise.
10190         * math/s_ctanhf.c: Likewise.
10191         * math/s_ctanhl.c: Likewise.
10192         * math/libm-test.inc (ctan_test): Add more tests.
10193         (ctanh_test): Likewise.
10194         * sysdeps/i386/fpu/libm-test-ulps: Update.
10195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10196
10197 2012-04-09  Andreas Jaeger  <aj@suse.de>
10198
10199         [BZ #6894]
10200         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10201         is an optional BSD extension.
10202
10203         [BZ #10254]
10204         * manual/stdio.texi (Opening Streams): Document additional fopen
10205         parameters.
10206
10207 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10208
10209         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10210         %eax without telling the compiler.
10211
10212 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10213
10214         [BZ # 13963]
10215         * manual/install.texi: Use sourceware.org.
10216
10217 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10218
10219         [BZ #13873]
10220         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10221         (__ieee754_pow): Generate overflow and underflow using huge*huge
10222         and tiny*tiny rather than just returning constant infinity or zero
10223         for large exponents.
10224         * math/libm-test.inc (pow_test): Require overflow exceptions for
10225         applicable cases of large exponents.
10226
10227         [BZ #706]
10228         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10229         (__ieee754_pow): Use iterative multiplication algorithm only for
10230         integer exponents with absolute value below 1024.  Check for odd
10231         integer exponents when using algorithm for real exponents.
10232         * math/libm-test.inc (pow_test): Add more tests.
10233         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10234
10235 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10236
10237         [BZ #13705]
10238         * math/libm-test.inc (exp_test): Do not allow overflow exception
10239         on underflow test.
10240
10241 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10242
10243         [BZ #13705]
10244         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10245         instead of __kernel_standard_f.
10246
10247 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10248
10249         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10250         * sysdeps/x86_64/memset_chk.S: Likewise.
10251
10252 2012-04-08  Andreas Jaeger  <aj@suse.de>
10253
10254         [BZ #10153]
10255         * manual/startup.texi (Environment Access): Describe return value
10256         for putenv and setenv.
10257
10258         [BZ #6895]
10259         * manual/filesys.texi (Directory Entries): Add description for
10260         DT_LNK.
10261
10262         [BZ #6890]
10263         * manual/filesys.texi (Directory Entries): Clarify that it's file
10264         system not operating system in the description of DT_UNKNOWN.
10265
10266         [BZ #6578]
10267         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10268
10269 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10270
10271         [BZ #6649]
10272         * manual/llio.texi (Opening and Closing Files): Add cross
10273         reference to explain mode argument.
10274
10275 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10276
10277         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10278         * sysdeps/x86_64/memset_chk.S: Likewise.
10279
10280 2012-04-07  David S. Miller  <davem@davemloft.net>
10281
10282         * elf/elf.h (R_SPARC_WDISP10): Define.
10283         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10284         R_SPARC_SIZE32.
10285         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10286         R_SPARC_SIZE64 and R_SPARC_H34.
10287
10288 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10289
10290         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10291         conditions and remove no longer applicable assertion.
10292
10293 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10294
10295         * bits/byteswap.h: Include <features.h>.
10296         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10297         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10298
10299 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10300
10301         * bits/byteswap.h (__bswap_16): Removed.
10302         Include <bits/byteswap-16.h> to get __bswap_16.
10303         * sysdeps/i386/bits/byteswap.h: Likewise.
10304         * sysdeps/s390/bits/byteswap.h: Likewise.
10305         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10306         * bits/byteswap-16.h: New file.
10307         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10308         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10309         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10310         * string/Makefile (headers): Add bits/byteswap-16.h.
10311
10312 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10313
10314         [BZ #13895]
10315         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10316         extra indirection.
10317         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10318         * nss/tst-nss-static.c: New.
10319
10320 2012-04-06  Robert Millan  <rmh@gnu.org>
10321
10322         [BZ #6486]
10323         * manual/llio.texi (File Position Primitive): lseek
10324         refers to WHENCE when it really means OFFSET.
10325
10326 2012-04-06  Andreas Jaeger  <aj@suse.de>
10327
10328         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10329         strncmp declarations.
10330
10331         * abilist/libc.abilist: Add __poll and __ppoll.
10332
10333 2012-04-05  David S. Miller  <davem@davemloft.net>
10334
10335         * scripts/check-local-headers.sh: Accept a host triplet in the
10336         path matched by the exclude regexp.
10337
10338         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10339         definition.
10340         * sysdeps/powerpc/powerpc32/dl-machine.h
10341         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10342         * sysdeps/s390/s390-32/dl-machine.h
10343         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10344         * sysdeps/sparc/sparc32/dl-machine.h
10345         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10346         * sysdeps/sparc/sparc64/dl-machine.h
10347         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10348
10349         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10350         lazy binding.
10351         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10352         undefined symbol errors.
10353
10354         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10355         DT_NEEDED entries.
10356
10357 2012-04-05  Michael Matz  <matz@suse.de>
10358
10359         [BZ #13592]
10360         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10361
10362 2012-04-05  Andreas Jaeger  <aj@suse.de>
10363
10364         [BZ #13908]
10365         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10366         comment.
10367
10368 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10369
10370         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10371         which ROUND is no valid rounding mode.
10372
10373 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10374
10375         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10376         read again.
10377         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10378
10379 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10380
10381         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10382         an exception using FPU order intentionally.
10383
10384 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10385
10386         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10387         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10388         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10389         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10390
10391 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10392
10393         [BZ #12340]
10394         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10395         EINVAL when BUFLEN is too smal.
10396
10397 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10398
10399         [BZ #13553]
10400         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10401         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10402
10403 2012-04-03  Andreas Jaeger  <aj@suse.de>
10404
10405         [BZ #13938]
10406         * manual/setjmp.texi (System V contexts): Fix sentence.
10407
10408         [BZ #13926]
10409         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10410         New macro for this case.
10411         [!__GNUC__] (__bswap_64): New inline function for this case.
10412         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10413         * bits/byteswap.h: Likewise.
10414         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10415         ull, guard with __GLIBC_HAVE_LONG_LONG.
10416
10417         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10418         __GLIBC_HAVE_LONG_LONG.
10419
10420         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10421         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10422
10423 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10424
10425         [BZ #13691]
10426         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10427         inptr and inend, rather than using last_ch.
10428
10429 2012-04-02  David S. Miller  <davem@davemloft.net>
10430
10431         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10432         * stdio-common/printf-parse.h (read_int): Change return type to
10433         'int', return -1 on INT_MAX overflow.
10434         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10435         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10436         overflows INT_MAX.  Check for overflow of in-format-string precision
10437         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10438         SIZE_MAX not INT_MAX for integer overflow test.
10439         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10440         skip the construct in the format string but do not record anything.
10441         * stdio-common/bug22.c: Adjust to test both width/prevision
10442         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10443         explicitly for proper errno values.
10444
10445 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10446
10447         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10448         CHAR_MAX.
10449         * string/test-strcmp.c [! WIDE]: Likewise.
10450         * time/tst-mktime2.c: Likewise for INT_MAX.
10451         * string/test-string.h: #include <sys/param.h> for MIN.
10452
10453         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10454         * sysdeps/i386/init-first.c (init): Likewise.
10455         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10456         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10457         * sysdeps/sh/init-first.c (init): Likewise.
10458
10459 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10460
10461         * po/ru.po: Update from translation team.
10462         * po/vi.po: Likewise.
10463
10464 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10465
10466         * resolv/nss_dns/dns-host.c: Merge copyright years.
10467
10468 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10469
10470         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10471         Optimize memcpy with prefetch if
10472         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10473         src, dst pointers have unequal 16 byte alignments.
10474
10475 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10476
10477         [BZ #13928]
10478         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10479         from a CNAME entry and return the minimum ttl for the query.
10480         (gaih_getanswer_slice): Likewise.
10481
10482 2012-03-30  Jeff Law  <law@redhat.com>
10483
10484         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10485         due to long keys.
10486         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10487         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10488
10489         * resolv/nss_dns/dns-host.c: Update copyright year.
10490
10491 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10492
10493         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10494         requests to save a system call.  Fix check that all bytes are sent.
10495
10496         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10497         comments for sendmmsg.
10498
10499 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10500
10501         [BZ #13691]
10502         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10503         with only 1 character between 0x0041 and 0x01b0.
10504         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10505         * wcsmbs/tst-mbsnrtowcs.c: New file.
10506
10507 2012-03-29  David S. Miller  <davem@davemloft.net>
10508
10509         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10510         small copies by hand.
10511
10512 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10513
10514         [BZ #13761]
10515         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10516         _nss_compat_initgroups_dyn): Fall back to malloc/free
10517         for large group memberships.
10518
10519 2012-03-28  David S. Miller  <davem@davemloft.net>
10520
10521         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10522         that branches into memcpy.
10523         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10524         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10525         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10526         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10527         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10528         bits.
10529         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10530         implementation too.
10531         * sysdeps/sparc/mempcpy.S: New file.
10532
10533         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10534         the IFUNC routine in the libc case.
10535         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10536
10537         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10538         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10539         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10540         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10541         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10542         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10543         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10544         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10545
10546         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10547         loop to 256 bytes instead of 64 bytes and fix test signedness.
10548
10549         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10550         * sysdeps/sparc/sparc32/Makefile: rather than here...
10551         * sysdeps/sparc/sparc64/Makefile: and here.
10552
10553 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10554
10555         * malloc/mallocbug.c: Avoid warnings about unused variables.
10556
10557 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10558
10559         [BZ #13760]
10560         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10561         in the right place. Discard and retry query if response is
10562         larger than input buffer size.
10563
10564 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10565
10566         [BZ #369]
10567         [BZ #2678]
10568         [BZ #3866]
10569         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10570         x for large integer exponent.
10571         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10572         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10573         sign of result as needed afterwards.
10574         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10575         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10576         result for underflowing pow the same as for overflow.
10577         (__kernel_standard_l): Handle powl overflow and underflow here
10578         rather than calling __kernel_standard.
10579         * math/libm-test.inc (pow_test): Add more tests.
10580
10581         [BZ #3868]
10582         [BZ #13879]
10583         [BZ #13910]
10584         [BZ #13911]
10585         [BZ #13912]
10586         [BZ #13913]
10587         [BZ #13915]
10588         [BZ #13916]
10589         [BZ #13917]
10590         [BZ #13918]
10591         [BZ #13919]
10592         [BZ #13920]
10593         [BZ #13921]
10594         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10595         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10596         (__kernel_standard_l): New function.
10597         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10598         __kernel_standard.
10599         * math/w_acosl.c (__acosl): Likewise.
10600         * math/w_asinl.c (__asinl): Likewise.
10601         * math/w_atan2l.c (__atan2l): Likewise.
10602         * math/w_atanhl.c (__atanhl): Likewise.
10603         * math/w_coshl.c (__coshl): Likewise.
10604         * math/w_exp10l.c (__exp10l): Likewise.
10605         * math/w_exp2l.c (__exp2l): Likewise.
10606         * math/w_fmodl.c (__fmodl): Likewise.
10607         * math/w_hypotl.c (__hypotl): Likewise.
10608         * math/w_j0l.c (__j0l, __y0l): Likewise.
10609         * math/w_j1l.c (__j1l, __y1l): Likewise.
10610         * math/w_jnl.c (__jnl, __ynl): Likewise.
10611         * math/w_lgammal.c (__lgammal): Likewise.
10612         * math/w_log10l.c (__log10l): Likewise.
10613         * math/w_log2l.c (__log2l): Likewise.
10614         * math/w_logl.c (__logl): Likewise.
10615         * math/w_powl.c (__powl): Likewise.
10616         * math/w_remainderl.c (__remainderl): Likewise.
10617         * math/w_scalbl.c (sysv_scalbl): Likewise.
10618         * math/w_sinhl.c (__sinhl): Likewise.
10619         * math/w_sqrtl.c (__sqrtl): Likewise.
10620         * math/w_tgammal.c (__tgammal): Likewise.
10621         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10622         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10623         * math/libm-test.inc (acos_test): Add more tests.
10624         (acosh_test): Likewise.
10625         (asin_test): Likewise.
10626         (atanh_test): Likewise.
10627         (exp_test): Likewise.
10628         (exp10_test): Likewise.
10629         (exp2_test): Likewise.
10630         (expm1_test): Likewise.
10631         (lgamma_test): Likewise.
10632         (log_test): Likewise.
10633         (log10_test): Likewise.
10634         (log1p_test): Likewise.
10635         (log2_test): Likewise.
10636         (pow_test): Do not allow some spurious overflow exceptions.
10637         (sqrt_test): Add more tests.
10638         (tgamma_test): Likewise.
10639         (y0_test): Likewise.
10640         (y1_test): Likewise.
10641         (yn_test): Likewise.
10642
10643 2012-03-27  Anton Blanchard  <anton@samba.org>
10644
10645         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10646         MAP_HUGETLB.
10647         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10648         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10649         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10650
10651 2012-03-27  David S. Miller  <davem@davemloft.net>
10652
10653         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10654
10655         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10656         have-as-vis3 check.
10657
10658 2012-03-27  Andreas Jaeger  <aj@suse.de>
10659
10660         * sysdeps/x86_64/elf/configure.in: Moved to ...
10661         * sysdeps/x86_64/configure.in: ... here.
10662         * sysdeps/x86_64/elf/start.S: Moved to ...
10663         * sysdeps/x86_64/start.S: ... here.
10664         * sysdeps/x86_64/elf/configure: Delete.
10665
10666         * sysdeps/x86_64/configure.in: Merge contents from
10667         sysdeps/i386/configure.in (without i686 check).
10668
10669         * sysdeps/i386/elf/Versions: Merge into ...
10670         * sysdeps/i386/Versions: ... this.
10671         * sysdeps/i386/elf/Versions: Delete file.
10672         * sysdeps/i386/elf/start.S: Moved to ...
10673         * sysdeps/i386/start.S: ...here.
10674         * sysdeps/i386/elf/configure.in: Merge into...
10675         * sysdeps/i386/configure.in: ...here.
10676         * sysdeps/i386/elf/configure.in: Delete file.
10677         * sysdeps/i386/elf/configure: Delete file.
10678
10679         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10680         * debug/backtracesyms.c: ... here.
10681         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10682         * debug/backtracesymsfd.c: ... here.
10683         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10684         * sysdeps/generic/ifunc-sel.h: ... here.
10685
10686         * sysdeps/unix/i386/start.c: Delete file.
10687         * sysdeps/unix/sparc/start.c: Delete file.
10688         * sysdeps/unix/start.c: Delete file.
10689
10690         * sysdeps/sh/elf/configure.in: Moved to ...
10691         * sysdeps/sh/configure.in: ... here.
10692         * sysdeps/sh/elf/start.S: Moved to ...
10693         * sysdeps/sh/start.S: ... here.
10694         * sysdeps/sh/elf/configure: Delete file.
10695
10696         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10697         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10698         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10699         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10700         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10701         * sysdeps/powerpc/powerpc64/start.S: here.
10702         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10703         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10704         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10705         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10706         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10707
10708         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10709         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10710         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10711         * sysdeps/powerpc/powerpc32/start.S: ... here.
10712         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10713         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10714         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10715
10716         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10717         * sysdeps/powerpc/ifunc-sel.h: ... here.
10718         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10719         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10720
10721         * sysdeps/sparc/elf/configure.in: Moved to ...
10722         * sysdeps/sparc/configure.in: ... here.
10723         * sysdeps/sparc/elf/configure: Delete file.
10724         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10725         * sysdeps/sparc/sparc32/start.S: ... here.
10726         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10727         * sysdeps/sparc/sparc64/start.S: ... here.
10728         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10729         * sysdeps/sparc/sparc32/Makefile: ... this.
10730         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10731         * sysdeps/sparc/sparc64/Makefile: ... this.
10732
10733         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10734         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10735         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10736         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10737         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10738         * sysdeps/s390/s390-32/setjmp.S: ... here.
10739         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10740         * sysdeps/s390/s390-32/configure.in: ... here.
10741         * sysdeps/s390/s390-32/elf/configure: Delete file.
10742         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10743         * sysdeps/s390/s390-32/start.S: ... here.
10744
10745         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10746         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10747         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10748         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10749         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10750         * sysdeps/s390/s390-64/setjmp.S: ... here.
10751         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10752         * sysdeps/s390/s390-64/configure.in: ... here
10753         * sysdeps/s390/s390-64/elf/configure: Delete file.
10754         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10755         * sysdeps/s390/s390-64/start.S: ... here.
10756         * sysdeps/s390/s390-64/elf/configure: Delete.
10757
10758         * configure.in: Remove support for elf directories in sysdeps.
10759
10760         * configure: Regenerated.
10761         * sysdeps/i386/configure: Regenerated.
10762         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10763         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10764         * sysdeps/s390/s390-32/configure: Regenerated.
10765         * sysdeps/s390/s390-64/configure: Regenerated.
10766         * sysdeps/sh/configure: Regenerated.
10767         * sysdeps/sparc/configure: Regenerated.
10768         * sysdeps/x86_64/configure: Regenerated.
10769
10770 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10771
10772         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10773
10774         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10775         denormal result into account.
10776
10777 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10778
10779         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10780         Reported by Allan McRae <allan@archlinux.org>.
10781
10782 2012-03-23  Jeff Law  <law@redhat.com>
10783
10784         * nss/getnssent.c (__nss_getent): Fix typo.
10785
10786 2012-03-23  David S. Miller  <davem@davemloft.net>
10787
10788         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10789
10790 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10791
10792         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10793         to pad to uint64_t for each field.
10794         (dl_tls_index): Replace unsigned long with uint64_t.
10795
10796 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10797         Paul Pluzhnikov  <ppluzhnikov@google.com>
10798
10799         [BZ #6528]
10800         * grp/Makefile (otherlibs): Don't set it.
10801         * inet/Makefile (otherlibs): Likewise.
10802         * login/Makefile (otherlibs): Likewise.
10803         * nscd/Makefile (otherlibs): Likewise.
10804         * posix/Makefile (otherlibs): Likewise.
10805         * pwd/Makefile (otherlibs): Likewise.
10806         * rt/Makefile (otherlibs): Likewise.
10807         * sunrpc/Makefile (otherlibs): Likewise.
10808         * nss/Makefile (otherlibs): Likewise.
10809         Add libnss_files to routines and static-only-routines.
10810         ($(objpfx)getent): Remove rule.
10811         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10812         static-only-routines.
10813
10814 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10815
10816         [BZ #13892]
10817         * math/s_cexp.c: Include <float.h>.
10818         (__cexp): Handle exp result overflowing not necessarily
10819         overflowing both real and imaginary parts of result.
10820         * math/s_cexpf.c: Likewise.
10821         * math/s_cexpl.c: Likewise.
10822         * math/libm-test.inc (cexp_test): Add more tests.
10823         * sysdeps/i386/fpu/libm-test-ulps: Update.
10824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10825
10826 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10827
10828         * include/link.h (ELFW): New macro.
10829         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10830         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10831
10832 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10833
10834         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10835         with uint64_t.
10836
10837 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10838
10839         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10840         declaration.
10841         (struct La_x32_retval): Likewise.
10842
10843 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10844
10845         * sysdeps/x86_64/preconfigure.in: New file.
10846         * sysdeps/x86_64/preconfigure: New generated file.
10847
10848 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10849
10850         [BZ #13824]
10851         * math/e_exp2l.c: Include <float.h>.
10852         (__ieee754_exp2l): Handle overflow and underflow cases
10853         separately.  Only pass fractional part of argument to
10854         __ieee754_expl.
10855         * math/libm-test.inc (exp2_test): Add more tests.
10856
10857         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10858         negating x to take absolute value.
10859         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10860         Likewise.
10861         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10862         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10863         Likewise.
10864         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10865         computing low part if x was negated.
10866         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10867
10868 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10869
10870         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10871         la_x32_gnu_pltexit.
10872         (pltexit): Cast int_retval to ptrdiff_t.
10873         * elf/tst-auditmod3b.c: Likewise.
10874         * elf/tst-auditmod4b.c: Likewise.
10875         * elf/tst-auditmod5b.c: Likewise.
10876         * elf/tst-auditmod6b.c: Likewise.
10877         * elf/tst-auditmod6c.c: Likewise.
10878         * elf/tst-auditmod7b.c: Likewise.
10879
10880         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10881         and x32_gnu_pltexit.
10882
10883         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10884         __ELF_NATIVE_CLASS.
10885         (La_x32_regs): New macro.
10886         (La_x32_retval): Likewise.
10887         (la_x32_gnu_pltenter): New function prototype.
10888         (la_x32_gnu_pltexit): Likewise.
10889
10890 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10891
10892         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10893         exponent.
10894
10895         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10896
10897         * configure.in (libc_cv_cc_nofma): Check for option to disable
10898         generation of FMA instructions.
10899         * configure: Regenerate.
10900         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10901         * sysdeps/ieee754/dbl-64/Makefile: New file.
10902         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10903         Remove brandred-fma4.
10904         (CFLAGS-brandred-fma4.c): Remove.
10905         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10906         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10907         define.
10908         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10909         define.
10910
10911 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10912
10913         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10914         LLONG_MAX != LONG_MAX.
10915         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10916         (_fitoa_word): Likewise.
10917         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10918         LLONG_MAX != LONG_MAX.
10919         * stdio-common/_itowa.h: Include <_itoa.h>.
10920         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10921         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10922         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10923         only if not defined.
10924         (_ITOA_WORD_TYPE): Likewise.
10925         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10926         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10927
10928 2012-03-21  David S. Miller  <davem@davemloft.net>
10929
10930         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10931
10932 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10933
10934         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10935         of x86_64 when setting libc_cv_slibdir, libdir and
10936         libc_cv_localedir.
10937         * sysdeps/unix/sysv/linux/configure: Regenerated.
10938
10939 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10940
10941         * manual/lang.texi (Old Varargs): Remove section.
10942         (How Variadic): Update menu.
10943         (va_start): Do not mention varargs.h.
10944
10945 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10946             Joseph Myers  <joseph@codesourcery.com>
10947
10948         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10949         link test.
10950         * configure: Regenerated.
10951
10952 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10953
10954         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10955         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10956         conformtest.pl
10957
10958 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10959
10960         * NOTES: Remove.
10961         * Makefile (files-for-dist): Remove NOTES.
10962         (NOTES): Remove rule.
10963         * README: Don't refer to NOTES.
10964         * manual/creature.texi: Don't include macros.texi.
10965         * manual/intro.texi (creature.texi): Remove comment referring to
10966         NOTES.
10967
10968         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10969         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10970         * configure: Regenerated.
10971         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10972         LIBC_TRY_CC_OPTION.
10973         (libc_cv_as_i686): Likewise.
10974         (libc_cv_cc_avx): Likewise.
10975         (libc_cv_cc_sse2avx): Likewise.
10976         (libc_cv_cc_fma4): Likewise.
10977         (libc_cv_cc_novzeroupper): Likewise.
10978         * sysdeps/i386/configure: Regenerated.
10979
10980         [BZ #13883]
10981         * sysdeps/i386/fpu/s_cexp.S: Remove.
10982         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10983         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10984         * math/libm-test.inc (cexp_test): Add more tests.
10985         * sysdeps/i386/fpu/libm-test-ulps: Update.
10986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10987
10988 2012-03-21  Allan McRae  <allan@archlinux.org>
10989
10990         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10991
10992 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10993
10994         [BZ #13871]
10995         * math/w_exp2.c: Do not include <float.h>.
10996         (o_threshold, u_threshold): Remove.
10997         (__exp2): Calculate result before checking finiteness and calling
10998         __kernel_standard.
10999         * math/w_exp2f.c: Likewise.
11000         * math/w_exp2l.c: Likewise.
11001         * math/libm-test.inc (exp2_test): Require overflow exception for
11002         1e6 input.
11003
11004         [BZ #3866]
11005         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11006         range of signed 64-bit integers before using fistpll.  Remove
11007         checks for whether integers fit in mantissa bits.
11008         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11009         the range of signed 32-bit integers before using fistpl.  Remove
11010         checks for whether integers fit in mantissa bits.
11011         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11012         (__ieee754_powl): Test for y outside the range of signed 64-bit
11013         integers before using fistpll.  Reduce 64-bit values to 63-bit
11014         ones as needed.
11015         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11016         divide-by-zero is raised for zero to large negative powers.
11017         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11018         (__ieee754_powl): Test for y outside the range of signed 64-bit
11019         integers before using fistpll.  Reduce 64-bit values to 63-bit
11020         ones as needed.
11021         * math/libm-test.inc (pow_test): Add more tests.
11022
11023 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11024
11025         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11026         <stdio-common/_itoa.h>.
11027         * debug/segfault.c: Likewise.
11028         * elf/dl-cache.c: Likewise.
11029         * elf/dl-minimal.c: Likewise.
11030         * elf/dl-misc.c: Likewise.
11031         * elf/dl-sysdep.c: Likewise.
11032         * elf/dl-version.c: Likewise.
11033         * elf/rtld.c: Likewise.
11034         * hurd/hurdsock.c: Likewise.
11035         * hurd/lookup-retry.c: Likewise.
11036         * malloc/malloc.c: Likewise.
11037         * malloc/mtrace.c: Likewise.
11038         * nscd/nscd_getgr_r.c: Likewise.
11039         * nscd/nscd_getpw_r.c: Likewise.
11040         * nscd/nscd_getserv_r.c: Likewise.
11041         * posix/getopt_init.c: Likewise.
11042         * posix/wordexp.c: Likewise.
11043         * stdio-common/_itoa.c: Likewise.
11044         * stdio-common/printf_fphex.c: Likewise.
11045         * stdio-common/vfprintf.c: Likewise.
11046         * string/_strerror.c: Likewise.
11047         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11048         * sysdeps/i386/i686/hp-timing.h: Likewise.
11049         * sysdeps/mach/_strerror.c: Likewise.
11050         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11051         * sysdeps/mach/hurd/sethostid.c: Likewise.
11052         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11053         * sysdeps/mach/xpg-strerror.c: Likewise.
11054         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11055         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11056         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11057         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11058         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11059         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11060         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11061         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11062         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11063         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11064         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11065         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11066         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11067         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11068         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11069         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11070         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11071         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11072         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11073         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11074         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11075
11076         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11077
11078         * stdio-common/_itoa.h: Moved to ...
11079         * sysdeps/generic/_itoa.h: Here.
11080
11081         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11082
11083         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11084         instead of "_itoa.h" and "_itowa.h".
11085         * stdio-common/vfprintf.: Likewise.
11086
11087 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11088
11089         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11090         <bits/wordsize.h>.
11091         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11092         (__signbit): Likwise.
11093         (llrintf): Likwise.
11094         (llrint): Likwise.
11095
11096 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11097
11098         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11099         __WORDSIZE != 64.
11100
11101 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11102
11103         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11104         OVERFLOW_EXCEPTION_OK.
11105         * math/libm-test.inc ("Philosophy"): Update comment about
11106         exception testing.
11107         (OVERFLOW_EXCEPTION): Define.
11108         (OVERFLOW_EXCEPTION_OK): Likewise.
11109         (INVALID_EXCEPTION_OK): Renumber.
11110         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11111         (IGNORE_ZERO_INF_SIGN): Likewise.
11112         (test_exceptions): Handle FE_OVERFLOW.
11113         (exp10_test): Expect overflow exceptions.
11114         (exp2_test): Likewise.
11115         (expm1_test): Likewise.
11116         (nextafter_test): Likewise.
11117         (pow_test): Likewise.
11118         (scalbn_test): Likewise.
11119         (scalbln_test): Likewise.
11120
11121 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11122
11123         * sysdeps/x86_64/bits/atomic.h
11124         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11125         64bit integer.
11126         (atomic_exchange_acq): Likewise.
11127         (__arch_exchange_and_add_body): Likewise.
11128         (__arch_add_body): Likewise.
11129         (atomic_add_negative): Likewise.
11130         (atomic_add_zero): Likewise.
11131
11132 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11133
11134         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11135         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11136
11137 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11138
11139         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11140         Check __x86_64__ instead of __WORDSIZE.
11141
11142 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11143
11144         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11145
11146 2012-03-19  David S. Miller  <davem@davemloft.net>
11147
11148         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11149
11150         * sysdeps/sparc/fpu/fenv_private.h: New file.
11151         * sysdeps/sparc/fpu/math_private.h: Use it.
11152         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11153         Remove.
11154         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11155         (libc_feholdexcept_setroundl): Remove.
11156         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11157         Remove.
11158         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11159         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11160
11161 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11162
11163         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11164         int64_t instead of long int.
11165         (INSERT_WORDS64): Likwise.
11166
11167 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11168
11169         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11170         _Unwind_GetCFA return to _Unwind_Ptr first.
11171
11172 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11173
11174         [BZ #13629]
11175         * math/s_clog.c: Include <float.h>.
11176         (__clog): Scale large or subnormal inputs.
11177         * math/s_clogf.c: Likewise.
11178         * math/s_clogl.c: Likewise.
11179         * math/s_clog10.c: Include <float.h>.
11180         (M_LOG10_2): Define.
11181         (__clog10): Scale large or subnormal inputs.
11182         * math/s_clog10f.c: Likewise.
11183         * math/s_clog10l.c: Likewise.
11184         * math/libm-test.inc (clog_test): Add more tests.
11185         (clog10_test): Likewise.
11186         * sysdeps/i386/fpu/libm-test-ulps: Update.
11187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11188
11189         [BZ #11451]
11190         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11191         x and y.
11192         * math/libm-test.inc (atan2_test): Add another test.
11193
11194         * Makerules (common-objdir-compile): Remove.
11195         * sysdeps/unix/Makefile (config-generated): Do not add
11196         $(unix-generated) to variable.
11197         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11198         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11199         Remove rule.
11200         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11201         Likewise.
11202         [generic bits/local_lim.h] (before-compile): Do not append to
11203         variable.
11204         [generic bits/local_lim.h] (common-generated): Likewise.
11205         [generic sys/param.h] (before-compile): Do not append to variable.
11206         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11207         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11208         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11209         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11210         include.
11211         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11212         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11213         [generic sys/param.h] ($(addprefix
11214         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11215         [generic sys/param.h] (common-generated): Do not append to
11216         variable.
11217         [generic sys/param.h] (sysdep_headers): Likewise.
11218         [generic bits/errno.h] (before-compile): Do not append to
11219         variable.
11220         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11221         rule.
11222         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11223         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11224         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11225         [generic bits/errno.h] (common-generated): Do not append to
11226         variable.
11227         [generic bits/ioctls.h] (before-compile): Do not append to
11228         variable.
11229         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11230         rule.
11231         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11232         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11233         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11234         rule.
11235         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11236         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11237         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11238         [generic bits/ioctls.h] (common-generated): Do not append to
11239         variable.
11240         [generic sys/syscall.h] (syscall.h): Remove variable.
11241         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11242         rule.
11243         [generic sys/syscall.h] (before-compile): Do not append to
11244         variable.
11245         [generic sys/syscall.h] (common-generated): Likewise.
11246         * sysdeps/unix/errnos-tmpl.c: Remove file.
11247         * sysdeps/unix/errnos.awk: Likewise.
11248         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11249         * sysdeps/unix/ioctls.awk: Likewise.
11250         * sysdeps/unix/mk-local_lim.c: Likewise.
11251         * sysdeps/unix/snarf-ioctls: Likewise.
11252
11253 2012-03-19  Richard Henderson  <rth@twiddle.net>
11254
11255         * sysdeps/i386/fpu/fenv_private.h: New file.
11256         * sysdeps/i386/fpu/math_private.h: Use it.
11257         (math_opt_barrier, math_force_eval): Remove.
11258         (libc_feholdexcept_setround_53bit): Remove.
11259         (libc_feupdateenv_53bit): Remove.
11260         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11261         (math_opt_barrier, math_force_eval): Remove.
11262         (libc_feholdexcept): Remove.
11263         (libc_feholdexcept_setround): Remove.
11264         (libc_fetestexcept, libc_fesetenv): Remove.
11265         (libc_feupdateenv_test): Remove.
11266         (libc_feupdateenv, libc_feholdsetround): Remove.
11267         (libc_feresetround): Remove.
11268
11269         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11270         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11271
11272         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11273         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11274         (libc_feupdateenv_testl): New.
11275         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11276         (libc_feupdateenv_testf): New.
11277         (libc_feupdateenv): Use libc_feupdateenv_test.
11278         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11279         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11280
11281         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11282         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11283         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11284         (libc_feresetround_noex): New.
11285         (libc_feresetround_noexf): New.
11286         (libc_feresetround_noexl): New.
11287         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11288         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11289         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11290         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11291         SET_RESTORE_ROUND.
11292         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11293         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11294         (__cos): Likewise.
11295         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11296         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11297         SET_RESTORE_ROUND_NOEX.
11298         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11299         SET_RESTORE_ROUND_NOEXF.
11300         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11301         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11302         (libc_feholdsetroundf): New.
11303         (libc_feresetround, libc_feresetroundf): New.
11304
11305         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11306         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11307         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11308
11309         * sysdeps/generic/math_private.h: Include <fenv.h>.
11310         (default_libc_feholdexcept): New.
11311         (default_libc_feholdexcept_setround): New.
11312         (default_libc_fesetenv, default_libc_feupdateenv): New.
11313         (libc_feholdexcept): Only define if undefined.
11314         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11315         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11316         (libc_feholdexcept_setroundl): Likewise.
11317         (libc_feholdexcept_setround_53bit): Likewise.
11318         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11319         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11320         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11321         (libc_feupdateenv_53bit): Likewise.
11322         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11323         (libc_feholdexcept): Convert from macro to inline function.
11324         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11325         (libc_fesetenv, libc_feupdateenv): Likewise.
11326
11327         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11328         not previously defined.
11329         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11330         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11331         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11332         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11333         * sysdeps/ieee754/flt-32/math_private.h: New file.
11334         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11335         math_private.h below SET_FLOAT_WORD.
11336         (__isnan, __isinf_ns, __finite): Remove.
11337         (__isnanf, __isinf_nsf, __finitef): Remove.
11338
11339 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11340
11341         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11342
11343 2012-03-17  David S. Miller  <davem@davemloft.net>
11344
11345         [BZ #6471]
11346         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11347         for 2.16.
11348
11349 2012-03-16  David S. Miller  <davem@davemloft.net>
11350
11351         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11352         warnings.
11353
11354         [BZ #6471]
11355         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11356         properly.
11357         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11358         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11359         sysdep_routines when subdir is sysvipc.
11360         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11361         __getshmlba helper.
11362
11363         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11364
11365 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11366
11367         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11368         [__LP64__].
11369
11370 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11371
11372         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11373         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11374         (__lround): Renamed to ...
11375         (__llround): This.  Replace long int with long long int.
11376         Define lround functions as aliases of llround functions.
11377         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11378
11379 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11380
11381         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11382         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11383         adresses to uintptr_t.  Replace "long int" and "unsigned long
11384         int" with "greg_t" on va_arg.
11385
11386 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11387
11388         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11389         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11390
11391         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11392         Move e_machine check before EI_CLASS check.  Handle x32
11393         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11394         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11395         SKIP_EM_IA_64 and include
11396         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11397
11398         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11399         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11400         (add_system_dir): New macro.
11401
11402         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11403         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11404
11405 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11406
11407         [BZ #2551]
11408         [BZ #2552]
11409         [BZ #2553]
11410         [BZ #2554]
11411         [BZ #2562]
11412         [BZ #2563]
11413         [BZ #2565]
11414         [BZ #2566]
11415         [BZ #2576]
11416         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11417         (y0): Likewise.
11418         * math/w_j0f.c (j0f): Likewise.
11419         (y0f): Likewise.
11420         * math/w_j0l.c (__j0l): Likewise.
11421         (__y0l): Likewise.
11422         * math/w_j1.c (j1): Likewise.
11423         (y1): Likewise.
11424         * math/w_j1f.c (j1f): Likewise.
11425         (y1f): Likewise.
11426         * math/w_j1l.c (__j1l): Likewise.
11427         (__y1l): Likewise.
11428         * math/w_jn.c (jn): Likewise.
11429         (yn): Likewise.
11430         * math/w_jnf.c (jnf): Likewise.
11431         (ynf): Likewise.
11432         * math/w_jnl.c (__jnl): Likewise.
11433         (__ynl): Likewise.
11434         * math/libm-test.inc (j0_test): Add more tests.
11435         (j1_test): Likewise.
11436         (jn_test): Likewise.  Add trailing semicolon to existing test.
11437         (y0_test): Likewise.
11438         (y1_test): Likewise.
11439         * sysdeps/i386/fpu/libm-test-ulps: Update.
11440         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11441
11442         [BZ #13851]
11443         [BZ #13854]
11444         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11445         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11446         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11447         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11448         (__tanl): Set errno for infinite argument.
11449         * sysdeps/i386/fpu/mptan.c: Remove.
11450         * sysdeps/i386/fpu/s_tan.S: Likewise.
11451         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11452         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11453         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11454         * math/libm-test.inc (tan_test): Add more tests and enable more
11455         tests for double and long double.
11456         * sysdeps/i386/fpu/libm-test-ulps: Update.
11457         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11458
11459 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11460
11461         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11462         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11463
11464 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11465
11466         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11467         * configure.in: Use it for both main tree and add-ons.
11468         * configure: Regenerated.
11469
11470 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11471
11472         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11473
11474 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11475
11476         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11477         in comment.
11478
11479         [BZ #13851]
11480         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11481         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11482         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11483         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11484         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11485         infinite argument.
11486         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11487         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11488         != 0 for prec == 2.
11489         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11490         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11491         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11492         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11493         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11494         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11495         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11496         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11497         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11498         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11499         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11500         * math/libm-test.inc (cos_test): Add more tests and enable more
11501         tests for long double.
11502         (sin_test): Likewise.
11503         (sincos_test): Likewise.
11504         * sysdeps/i386/fpu/libm-test-ulps: Update.
11505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11506
11507 2012-03-16  David S. Miller  <davem@davemloft.net>
11508
11509         * sysdeps/sparc/fpu/math_private.h: New file.
11510
11511 2012-03-15  David S. Miller  <davem@davemloft.net>
11512
11513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11514         file.
11515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11517         file.
11518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11519         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11520         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11521         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11522         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11523         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11524         sysdep routines.
11525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11526
11527         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11528         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11529
11530         * sysdeps/sparc/sparc-ifunc.h: New file.
11531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11532         sparc-ifunc.h
11533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11535         Likewise.
11536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11537         Likewise.
11538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11542         Likewise.
11543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11548         Likewise.
11549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11550         Likewise.
11551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11555         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11556         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11557         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11558         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11559         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11560         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11561         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11562         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11563         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11564         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11565         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11566         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11567         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11568         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11569         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11570         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11571         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11572         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11573         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11574         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11575
11576 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11577
11578         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11579         scaling.
11580         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11581
11582 2012-03-15  Andreas Jaeger  <aj@suse.de>
11583
11584         [BZ #13852]
11585         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11586         ieee754/flt-32 implementation for sin, cos and sincos.
11587         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11588         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11589         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11590         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11591         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11592         ieee754/flt-32 implementation for tan.
11593
11594         * math/libm-test.inc (cos_test): Enable some large input tests for
11595         float as well
11596         (sin_test): Likewise.
11597         (sincos_test): Likewise.
11598         (tan_test): Add tests for large input.
11599
11600         * sysdeps/i386/fpu/libm-test-ulps: Update.
11601
11602 2012-03-15  Andreas Jaeger  <aj@suse.de>
11603
11604         [BZ #13658]
11605         * math/libm-test.inc (cos_test): Add more test cases.
11606         (sin_test): Likewise.
11607         (sincos_test): Likewise.
11608
11609 2012-03-15  Andreas Jaeger  <aj@suse.de>
11610
11611         [BZ #13837]
11612         * math/libm-test.inc (cos_test): Add a test case for large input
11613         value.
11614         (sin_test): Likewise.
11615         (sincos_test): Likewise.
11616
11617 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11618         Joseph Myers  <joseph@codesourcery.com>
11619
11620         [BZ #13658]
11621         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11622         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11623         * sysdeps/i386/fpu/branred.c: Likewise.
11624         * sysdeps/i386/fpu/dosincos.c: Likewise.
11625         * sysdeps/i386/fpu/mpa.c: Likewise.
11626         * sysdeps/i386/fpu/s_cos.S: Likewise.
11627         * sysdeps/i386/fpu/s_sin.S: Likewise.
11628         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11629         * sysdeps/i386/fpu/sincos32.c: Likewise.
11630
11631         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11632         Define.
11633         (libc_feupdateenv_53bit): Define.
11634         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11635         Define.
11636         (libc_feupdateenv_53bit): Define.
11637
11638         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11639         53 bit (without extend i386 double precision).
11640
11641         * math/libm-test.inc (sincos_test): Add tests for large input.
11642         (sin): Likewise.
11643         (cos): Likewise.
11644
11645         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11646
11647 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11648
11649         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11650
11651 2012-03-15  David S. Miller  <davem@davemloft.net>
11652
11653         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11654         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11655         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11656         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11657         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11658         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11659         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11660         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11661         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11662         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11663         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11664         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11665         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11666         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11667         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11669         file.
11670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11672         file.
11673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11675         file.
11676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11678         file.
11679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11680         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11681         fmin/fmax sysdep routines.
11682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11683
11684 2012-03-14  David S. Miller  <davem@davemloft.net>
11685
11686         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11687         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11688         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11689         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11690         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11691         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11692         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11693         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11694         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11695         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11696         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11697         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11698         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11699         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11700         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11701         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11702         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11703         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11704         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11705         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11706         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11707         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11708         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11709         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11710         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11711         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11712         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11713         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11714         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11715         routines.
11716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11717         file.
11718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11720         file.
11721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11723         file.
11724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11726         file.
11727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11729         file.
11730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11732         file.
11733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11734         file.
11735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11736         file.
11737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11738         file.
11739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11740         New file.
11741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11742         file.
11743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11744         file.
11745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11747         file.
11748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11750         file.
11751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11753         file.
11754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11756         VIS3 routines.
11757
11758         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11759         New file.
11760
11761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11762
11763         * sysdeps/sparc/configure.in: New file.
11764         * sysdeps/sparc/configure: Generate.
11765         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11766         * configure: Regenerate.
11767         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11768         * config.make.in (have-as-vis3): New.
11769         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11770         available use -Av9d instead of -Av9a.
11771         * sysdeps/sparc/sparc64/Makefile: Likewise.
11772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11774         New file.
11775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11776         file.
11777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11778         New file.
11779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11780         file.
11781         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11782         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11783         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11784         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11785         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11786
11787         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11788         fzeros/fnegs to load 0x80000000 into a float register instead of
11789         using the stack.
11790         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11791
11792 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11793
11794         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11795         bits/syscall.h.
11796         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11797         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11798         ($(inst_includedir)/bits/syscall.h): Remove rule.
11799         ($(objpfx)bits/syscall.d): Include instead of
11800         $(objpfx)syscall-list.d.
11801         (generated): Change syscall-list.h and syscall-list.d to
11802         bits/syscall.h and bits/syscall.d.
11803
11804 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11805
11806         [BZ #13846]
11807         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11808
11809 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11810
11811         [BZ #13841]
11812         * math/s_csqrt.c: Include <float.h>.
11813         (__csqrt): Scale large or subnormal inputs.
11814         * math/s_csqrtf.c: Likewise.
11815         * math/s_csqrtl.c: Likewise.
11816         * math/libm-test.inc (csqrt_test): Add more tests.
11817         * sysdeps/i386/fpu/libm-test-ulps: Update.
11818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11819
11820         [BZ #13840]
11821         * math/libm-test.inc (hypot_test): Add more tests.
11822
11823 2012-03-13  David S. Miller  <davem@davemloft.net>
11824
11825         [BZ #13840]
11826         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11827         double-precision for the calculation instead of scaling.
11828
11829 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11830
11831         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11832         manipulate bits before adding and subtracting TWO52[sx].
11833         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11834         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11835         Likewise.
11836         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11837
11838 2012-03-13  David S. Miller  <davem@davemloft.net>
11839
11840         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11841         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11842         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11843         rtld-global-offsets.h
11844         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11845
11846         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11847         large parameters.
11848
11849         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11850
11851         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11852         'err' in the ifdef scope in which it is actually used.
11853
11854         * nss/nss_db/db-init.c: Include string.h
11855
11856 2012-03-12  David S. Miller  <davem@davemloft.net>
11857
11858         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11859         masking out of the most significant byte of random value used.
11860         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11861         Fix coding style in previous change.
11862
11863         * sysdeps/unix/sysv/linux/kernel-features.h
11864         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11865         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11866         expression.
11867         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11868         later.
11869
11870 2012-03-11  David S. Miller  <davem@davemloft.net>
11871
11872         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11873         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11874         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11875         for 'resultvar' otherwise things get truncated on 64-bit.
11876
11877         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11878         Fix masking out of the most significant byte of random value used.
11879
11880         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11881
11882 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11883
11884         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11885
11886 2012-03-09  David S. Miller  <davem@davemloft.net>
11887
11888         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11889         variables with appropriate CPP guards.
11890         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11891         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11892         on resulting framesize and the management of the outregs buffer for pltexit.
11893         Preserve floating point return values across _dl_call_pltexit call.
11894         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11895         framesize and the management of the outregs buffer for pltexit.
11896         Preserve floating point return values across _dl_call_pltexit
11897         call.
11898         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11899         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11900         (print_exit): Fix format string for return register value.
11901
11902 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11903
11904         * sunrpc/Makefile (others): Add rpcgen.
11905         ($(objpfx)rpcgen): Remove special build rule and dependency on
11906         libc.
11907         * sunrpc/rpcgen.c: New file.
11908
11909 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11910
11911         [BZ #13673]
11912         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11913         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11914         * sysdeps/i386/crti.S: Likewise.
11915         * sysdeps/i386/crtn.S: Likewise.
11916         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11917         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11918         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11919         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11920         * sysdeps/sh/crti.S: Likewise.
11921         * sysdeps/sh/crtn.S: Likewise.
11922         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11923
11924         [BZ #13673]
11925         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11926         with URL.
11927         * locale/programs/locfile-kw.gperf: Likewise.
11928         * locale/programs/charmap-kw.h: Regenerated.
11929         * locale/programs/locfile-kw.h: Likewise.
11930
11931         [BZ #13673]
11932         * intl/plural.y: Replace FSF snail mail address with URL.
11933         * intl/plural.c: Regenerated.
11934
11935 2012-03-09  Richard Henderson  <rth@twiddle.net>
11936
11937         * include/math_private.h: Remove file.
11938         * math/math_private.h: Move file ...
11939         * sysdeps/generic/math_private.h: ... here.
11940
11941         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11942         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11943         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11944
11945         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11946         and <math_private.h>.
11947         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11948         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11949         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11950         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11951         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11952         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11953         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11954         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11955         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11956         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11957         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11958         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11959         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11960         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11961         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11962         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11963         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11964         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11965         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11966         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11967         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11968         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11969         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11970         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11971         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11972         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11973         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11974         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11975         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11976         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11977         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11978         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11979         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11980         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11981         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11982         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11983         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11984         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11985         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11986         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11987         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11988         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11989         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11990         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11991         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11992         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11993         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11994         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11995         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11996         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11997         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11998         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11999         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12000         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12001         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12002         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12003         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12004         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12005         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12006         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12007         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12008         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12009         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12010         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12011         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12012         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12013         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12014         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12015         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12016         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12017         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12018         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12019         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12020         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12021         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12022         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12023         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12024         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12025         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12026         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12027         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12028         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12029         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12030         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12031         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12032         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12033         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12034         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12035         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12036         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12037         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12038         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12039         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12040         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12041         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12042         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12043         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12044         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12045         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12046         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12047         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12048         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12049         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12050         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12051         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12052         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12053         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12054         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12055         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12056         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12057         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12058         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12059         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12060         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12061         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12062         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12063         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12064         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12065         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12066         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12067         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12068         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12069         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12070         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12071         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12072         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12073         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12074         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12075         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12076         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12077         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12078         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12079         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12080         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12081         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12082         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12083         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12084         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12085         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12086         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12087         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12088         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12089         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12090         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12091         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12092         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12093         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12094         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12095         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12096         * sysdeps/ieee754/k_standard.c: Likewise.
12097         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12098         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12099         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12100         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12101         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12102         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12103         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12104         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12105         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12106         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12107         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12108         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12109         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12110         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12111         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12112         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12113         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12114         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12115         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12116         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12117         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12118         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12119         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12120         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12121         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12122         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12123         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12124         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12125         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12126         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12127         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12128         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12129         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12130         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12131         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12132         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12133         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12134         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12135         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12136         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12137         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12138         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12139         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12140         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12141         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12142         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12143         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12144         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12145         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12146         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12147         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12148         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12149         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12150         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12151         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12152         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12153         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12154         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12155         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12156         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12157         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12158         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12159         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12160         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12161         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12162         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12163         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12164         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12165         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12166         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12167         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12168         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12169         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12170         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12171         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12173         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12177         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12178         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12179         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12180         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12181         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12182         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12183         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12184         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12185         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12186         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12187         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12188         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12189         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12190         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12191         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12192         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12193         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12194         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12195         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12196         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12197         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12198         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12199         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12200         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12201         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12202         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12203         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12204         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12205         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12206         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12207         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12208         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12209         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12210         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12211         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12212         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12213         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12214         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12215         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12216         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12217         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12218         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12219         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12220         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12221         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12222         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12223         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12224         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12225         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12226         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12227         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12228         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12229         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12230         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12231         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12232         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12233         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12234         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12235         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12236         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12237         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12238         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12239         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12240         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12241         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12242         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12243         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12244         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12245         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12246         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12247         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12248         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12249         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12250         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12251         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12252         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12253         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12254         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12255         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12256         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12257         * sysdeps/ieee754/s_lib_version.c: Likewise.
12258         * sysdeps/ieee754/s_matherr.c: Likewise.
12259         * sysdeps/ieee754/s_signgam.c: Likewise.
12260         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12261         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12262         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12263         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12264         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12265         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12266         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12267         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12268         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12269         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12270         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12271         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12272         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12273         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12274         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12275         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12276         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12277         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12278         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12279         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12280         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12281
12282 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12283
12284         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12285         * sunrpc/rpc_main.c: Likewise.
12286         * sunrpc/rpc_svcout.c: Likewise.
12287
12288 2012-03-09  David S. Miller  <davem@davemloft.net>
12289
12290         * include/math_private.h: New file.
12291
12292 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12293
12294         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12295         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12296         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12297         from <bits/socket_type.h>.
12298         (enum __socket_type): Don't define here.
12299         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12300         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12301         bits/socket_type.h.
12302
12303         [BZ #13566]
12304         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12305         checking __USE_GNU.
12306
12307         * Makerules ($(inst_includedir)/%.h): New rule.
12308         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12309         (install-others): Remove variable setting.
12310         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12311
12312 2012-03-08  Richard Henderson  <rth@twiddle.net>
12313
12314         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12315         from macro to inline function; merge with the
12316         !__LIBC_INTERNAL_MATH_INLINES version.
12317         (__ieee754_sqrtf): Likewise.
12318
12319         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12320         to inline function.
12321         (__rintf, __floor, __floorf): Likewise.
12322
12323         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12324         macro to inline function.
12325         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12326
12327         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12328         not <math/math_private.h>.
12329
12330 2012-03-08  David S. Miller  <davem@davemloft.net>
12331
12332         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12333         copyright year.
12334         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12335
12336 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12337
12338         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12339         normalization.
12340         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12341         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12342
12343 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12344
12345         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12346         be defined individually, they must be defined as a block.  Define
12347         S for printing a string instead of hidint the different by using a
12348         macro for adding the 'l'.
12349         * stdio-common/tst-fphex-wide.c: Adjust.
12350
12351 2012-03-07  Marek Polacek  <polacek@redhat.com>
12352
12353         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12354
12355 2012-03-08  Marek Polacek  <polacek@redhat.com>
12356
12357         [BZ #13806]
12358         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12359         * stdio-common/tst-fphex.c: Define a few macros to make the
12360         test reusable.  Use them.
12361         * stdio-common/tst-fphex-wide.c: New file.
12362
12363 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12364
12365         [BZ #6911]
12366         * manual/macros.texi (gnusystems): New macro.
12367         (nongnusystems): Likewise.
12368         (gnulinuxhurdsystems): Likewise.
12369         (gnuhurdsystems): Likewise..
12370         (gnulinuxsystems): Likewise.
12371         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12372         variants of the GNU system, not "GNU system".
12373         * manual/conf.texi: Likewise.
12374         * manual/errno.texi: Likewise.  Update example of errno macro
12375         expansion.
12376         * manual/filesys.texi: Likewise.
12377         (getumask): Document as specific to GNU/Hurd.
12378         * manual/install.texi: Likewise.  Reword some references to
12379         GNU/Linux.
12380         * manual/intro.texi: Likewise.
12381         * manual/io.texi: Likewise.
12382         (File Name Portability): Detail which constraints are inapplicable
12383         to all GNU systems and which are only inapplicable to GNU/Hurd.
12384         * manual/job.texi: Likewise.
12385         * manual/llio.texi: Likewise.
12386         (O_NOCTTY): Document as present on GNU/Linux.
12387         * manual/maint.texi: Likewise.
12388         * manual/memory.texi: Likewise.
12389         * manual/pattern.texi: Likewise.
12390         * manual/pipe.texi: Likewise.
12391         * manual/process.texi: Likewise.
12392         * manual/resource.texi: Likewise.
12393         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12394         child on GNU/Hurd.
12395         * manual/setjmp.texi: Likewise.
12396         * manual/signal.texi: Likewise.
12397         * manual/startup.texi: Likewise.
12398         * manual/stdio.texi: Likewise.
12399         * manual/terminal.texi: Likewise.
12400         (ONLCR): Document as POSIX.
12401         (OXTABS): Document availability on GNU/Linux as XTABS.
12402         (ONOEOT): Document availability separately from other bits.
12403         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12404         * manual/time.texi: Likewise.
12405         * manual/users.texi: Likewise.
12406         * INSTALL: Regenerated.
12407         * sysdeps/gnu/errlist.c: Regenerated.
12408
12409         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12410         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12411         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12412         puts.
12413         * configure: Regenerated.
12414
12415 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12416
12417         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12418         default includes instead of AC_HEADER_CHECK.
12419         * sysdeps/i386/configure: Regenerated.
12420
12421         [BZ #10716]
12422         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12423         * math/s_cacoshf.c (__cacoshf): Likewise.
12424         * math/s_cacoshl.c (__cacoshl): Likewise.
12425         * math/s_casinh.c (__casinh): Set signs of result from argument.
12426         * math/s_casinhf.c (__casinhf): Likewise.
12427         * math/s_casinhl.c (__casinhl): Likewise.
12428         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12429         (casinh_test): Add more tests.
12430         * sysdeps/i386/fpu/libm-test-ulps: Update.
12431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12432
12433 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12434
12435         * po/zh_TW.po: Update from translation team.
12436
12437         * login/Makefile (distribute): Remove variable.
12438         * catgets/Makefile: Likewise.
12439         * mach/Makefile: Likewise.
12440         * malloc/Makefile: Likewise.
12441         * misc/Makefile: Likewise.
12442         * iconv/Makefile: Likewise.
12443         * nscd/Makefile: Likewise.
12444         * hurd/Makefile: Likewise.
12445         * manual/Makefile: Likewise.
12446         * locale/Makefile: Likewise.
12447         * intl/Makefile: Likewise.
12448         * conform/Makefile: Likewise.
12449         * nss/Makefile: Likewise.
12450         * time/Makefile: Likewise.
12451         * soft-fp/Makefile: Likewise.
12452         * dirent/Makefile: Likewise.
12453         * gmon/Makefile: Likewise.
12454         * po/Makefile: Likewise.
12455         * rt/Makefile: Likewise.
12456         * socket/Makefile: Likewise.
12457         * math/Makefile: Likewise.
12458         * signal/Makefile: Likewise.
12459         * debug/Makefile: Likewise.
12460         * elf/Makefile: Likewise.
12461         * timezone/Makefile: Likewise.
12462         * stdlib/Makefile: Likewise.
12463         * iconvdata/Makefile: Likewise.
12464         * sunrpc/Makefile: Likewise.
12465         * io/Makefile: Likewise.
12466         * argp/Makefile: Likewise.
12467         * inet/Makefile: Likewise.
12468         * hesiod/Makefile: Likewise.
12469         * grp/Makefile: Likewise.
12470         * csu/Makefile: Likewise.
12471         * wctype/Makefile: Likewise.
12472         * crypt/Makefile: Likewise.
12473         * libio/Makefile: Likewise.
12474         * string/Makefile: Likewise.
12475         * nis/Makefile: Likewise.
12476         * resolv/Makefile: Likewise.
12477         * stdio-common/Makefile: Likewise.
12478         * wcsmbs/Makefile: Likewise.
12479         * dlfcn/Makefile: Likewise.
12480         * posix/Makefile: Likewise.
12481
12482         [BZ #6959]
12483         * timezone/Makefile: Don't install timezone files, just the programs
12484         and scripts.
12485
12486 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12487
12488         * nss/databases.def: Add missing gshadow entry.
12489
12490         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12491
12492 2012-03-06  Marek Polacek  <polacek@redhat.com>
12493
12494         [BZ #13726]
12495         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12496         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12497         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12498         * stdio-common/tst-long-dbl-fphex.c: New file.
12499
12500 2012-03-06  David S. Miller  <davem@davemloft.net>
12501
12502         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12503         (set_obp_int): New function.
12504         (get_obp_int): New function.
12505         (__get_clockfreq_via_dev_openprom): Likewise.
12506         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12507         Avoid unused variable warnings on 'val' and use builtin_expect.
12508         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12509         __builtin_expect.
12510         (INLINE_CLONE_SYSCALL): Likewise.
12511
12512 2012-03-05  David S. Miller  <davem@davemloft.net>
12513
12514         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12515
12516 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12517
12518         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12519
12520         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12521         only for |x| >= 40.
12522         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12523
12524 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12525
12526         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12527         Replace gettimeofday with __vdso_gettimeofday.
12528
12529         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12530         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12531         __vdso_clock_gettime and __vdso_getcpu.
12532
12533         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12534         time with __vdso_time.
12535
12536 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12537
12538         * manual/lang.texi (size_t): Note types to which size_t may be
12539         equivalent with the GNU C Library, but do not describe when
12540         differences between them are significant.
12541
12542 2012-03-05  Andreas Jaeger  <aj@suse.de>
12543
12544         * sysdeps/i386/fpu/libm-test-ulps: Update.
12545
12546 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12547
12548         [BZ #3976]
12549         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12550         (__ieee754_pow): Save and restore rounding mode and use
12551         round-to-nearest for main computations.
12552         * math/libm-test.inc (pow_test_tonearest): New function.
12553         (pow_test_towardzero): Likewise.
12554         (pow_test_downward): Likewise.
12555         (pow_test_upward): Likewise.
12556         (main): Call the new functions.
12557         * sysdeps/i386/fpu/libm-test-ulps: Update.
12558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12559
12560         [BZ #3976]
12561         * math/libm-test.inc (cosh_test_tonearest): New function.
12562         (cosh_test_towardzero): Likewise.
12563         (cosh_test_downward): Likewise.
12564         (cosh_test_upward): Likewise.
12565         (sinh_test_tonearest): Likewise.
12566         (sinh_test_towardzero): Likewise.
12567         (sinh_test_downward): Likewise.
12568         (sinh_test_upward): Likewise.
12569         (main): Call the new functions.
12570         * sysdeps/i386/fpu/libm-test-ulps: Update.
12571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12572
12573 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12574
12575         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12576         default stack guard is set in last bytes.
12577         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12578
12579 2012-03-05  Kees Cook  <keescook@chromium.org>
12580
12581         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12582
12583         [BZ #13656]
12584         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12585         possibly allocate from heap instead of stack.
12586         * stdio-common/bug-vfprintf-nargs.c: New file.
12587         * stdio-common/Makefile (tests): Add nargs overflow test.
12588
12589 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12590
12591         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12592
12593 2012-03-03  Marek Polacek  <polacek@redhat.com>
12594
12595         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12596         * math/math_private.h: Likewise.
12597         * stdlib/tst-strtod.c: Likewise.
12598         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12599         * sysdeps/x86_64/bits/atomic.h: Likewise.
12600
12601 2012-03-02  David S. Miller  <davem@davemloft.net>
12602
12603         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12604         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12605         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12607         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12608         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12609         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12610         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12611
12612 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12613
12614         [BZ #13792]
12615         * manual/examples/README: New file, says the example source files
12616         can be used under GPL>=2.
12617         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12618         line containing just "*/".
12619         * manual/examples/add.c: Add copyright header (GPL>=2).
12620         * manual/examples/argp-ex1.c: Likewise.
12621         * manual/examples/argp-ex2.c: Likewise.
12622         * manual/examples/argp-ex3.c: Likewise.
12623         * manual/examples/argp-ex4.c: Likewise.
12624         * manual/examples/atexit.c: Likewise.
12625         * manual/examples/db.c: Likewise.
12626         * manual/examples/dir.c: Likewise.
12627         * manual/examples/dir2.c: Likewise.
12628         * manual/examples/execinfo.c: Likewise.
12629         * manual/examples/filecli.c: Likewise.
12630         * manual/examples/filesrv.c: Likewise.
12631         * manual/examples/fmtmsgexpl.c: Likewise.
12632         * manual/examples/genpass.c: Likewise.
12633         * manual/examples/inetcli.c: Likewise.
12634         * manual/examples/inetsrv.c: Likewise.
12635         * manual/examples/isockad.c: Likewise.
12636         * manual/examples/longopt.c: Likewise.
12637         * manual/examples/memopen.c: Likewise.
12638         * manual/examples/memstrm.c: Likewise.
12639         * manual/examples/mkfsock.c: Likewise.
12640         * manual/examples/mkisock.c: Likewise.
12641         * manual/examples/mygetpass.c: Likewise.
12642         * manual/examples/pipe.c: Likewise.
12643         * manual/examples/popen.c: Likewise.
12644         * manual/examples/rprintf.c: Likewise.
12645         * manual/examples/search.c: Likewise.
12646         * manual/examples/select.c: Likewise.
12647         * manual/examples/setjmp.c: Likewise.
12648         * manual/examples/sigh1.c: Likewise.
12649         * manual/examples/sigusr.c: Likewise.
12650         * manual/examples/stpcpy.c: Likewise.
12651         * manual/examples/strdupa.c: Likewise.
12652         * manual/examples/strftim.c: Likewise.
12653         * manual/examples/strncat.c: Likewise.
12654         * manual/examples/subopt.c: Likewise.
12655         * manual/examples/swapcontext.c: Likewise.
12656         * manual/examples/termios.c: Likewise.
12657         * manual/examples/testopt.c: Likewise.
12658         * manual/examples/testpass.c: Likewise.
12659         * manual/examples/timeval_subtract.c: Likewise.
12660
12661         [BZ #13792]
12662         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12663         function to ...
12664         * manual/timeval_subtract.c.texi: ... here, new file.
12665
12666 2012-03-02  David S. Miller  <davem@davemloft.net>
12667
12668         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12669
12670 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12671
12672         [BZ #3976]
12673         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12674         (__sin): Save and restore rounding mode and use round-to-nearest
12675         for all computations.
12676         (__cos): Save and restore rounding mode and use round-to-nearest
12677         for all computations.
12678         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12679         <fenv.h>.
12680         (tan): Save and restore rounding mode and use round-to-nearest for
12681         all computations.
12682         * math/libm-test.inc (cos_test_tonearest): New function.
12683         (cos_test_towardzero): Likewise.
12684         (cos_test_downward): Likewise.
12685         (cos_test_upward): Likewise.
12686         (sin_test_tonearest): Likewise.
12687         (sin_test_towardzero): Likewise.
12688         (sin_test_downward): Likewise.
12689         (sin_test_upward): Likewise.
12690         (tan_test_tonearest): Likewise.
12691         (tan_test_towardzero): Likewise.
12692         (tan_test_downward): Likewise.
12693         (tan_test_upward): Likewise.
12694         (main): Call the new functions.
12695         * sysdeps/i386/fpu/libm-test-ulps: Update.
12696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12697
12698         [BZ #10135]
12699         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12700         small n, then large n, before computing and testing k+n.
12701         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12702         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12703         Likewise.
12704         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12705         Likewise.
12706         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12707         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12708         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12709         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12710         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12711         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12712         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12713         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12714         * math/libm-test.inc (scalbn_test): Add more tests.
12715         (scalbln_test): Likewise.
12716
12717         * manual/filesys.texi (mode_t): Describe constraints on size and
12718         signedness, not exact equivalence to a particular type.
12719         (ino_t): Likewise.
12720         (ino64_t): Likewise.
12721         (dev_t): Likewise.
12722         (nlink_t): Likewise.
12723         (blkcnt_t): Likewise.
12724         (blkcnt64_t): Likewise.
12725         * manual/llio.texi (off_t): Likewise.
12726
12727         [BZ #3976]
12728         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12729         (__ieee754_exp): Save and restore rounding mode and use
12730         round-to-nearest for all computations.
12731         * math/libm-test.inc (exp_test_tonearest): New function.
12732         (exp_test_towardzero): Likewise.
12733         (exp_test_downward): Likewise.
12734         (exp_test_upward): Likewise.
12735         (main): Call the new functions.
12736         * sysdeps/i386/fpu/libm-test-ulps: Update.
12737         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12738
12739 2012-03-01  Chris Demetriou  <cgd@google.com>
12740
12741         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12742         have predictable order.
12743
12744 2012-03-01  David S. Miller  <davem@davemloft.net>
12745
12746         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12747
12748         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12749         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12750         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12751         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12752
12753         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12754         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12755         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12756         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12757         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12758         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12759         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12760         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12761         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12762
12763         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12764
12765         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12766         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12767         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12768
12769         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12770         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12771         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12772         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12773         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12774         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12775         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12776         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12777         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12778         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12779         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12780         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12781         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12782         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12783         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12784         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12785         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12786         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12787         * sysdeps/sparc/elf/configure: Regenerated.
12788
12789 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12790
12791         * configure.in (AS, LD): Require binutils 2.20 or later.
12792         * configure: Regenerated.
12793         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12794         as required minimum version.
12795         * INSTALL: Regenerated.
12796
12797         [BZ #2541]
12798         [BZ #4108]
12799         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12800         before squaring exponent.
12801         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12802         bottom long double and 27 bits of top long double before squaring
12803         exponent.
12804         * math/libm-test.inc (erfc_test): Add more tests.
12805         * sysdeps/i386/fpu/libm-test-ulps: Update.
12806         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12808
12809 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12810
12811         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12812         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12813         containing bit-fields.
12814         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12815         * soft-fp/single.h (_FP_UNION_S): Likewise.
12816         * soft-fp/double.h (_FP_UNION_D): Likewise.
12817
12818 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12819
12820         [BZ #13786]
12821         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12822         not include ../strcmp.S.
12823         [USE_AS_STRNCASECMP_L]: Likewise.
12824         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12825         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12826         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12827         (__strncasecmp_l_ia32): Define as alias to
12828         __strncasecmp_l_nonascii.
12829
12830         [BZ #5794]
12831         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12832         * sysdeps/i386/fpu/libm-test-ulps: Update.
12833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12834
12835         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12837
12838 2012-02-29  Jeff Law  <law@redhat.com>
12839
12840         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12841         out of bounds read.
12842
12843 2012-02-29  Marek Polacek  <polacek@redhat.com>
12844
12845         [BZ #13706]
12846         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12847         * elf/Makefile: Add rules to run tst-unused-dep.out.
12848
12849 2012-02-28  David S. Miller  <davem@davemloft.net>
12850
12851         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12852         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12853         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12854         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12855         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12856         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12857
12858 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12859
12860         * math/libm-test.inc (llround_test): Move one test from
12861         lround_test.  Use TEST_f_L in moved test.
12862         (lround_test): Move misplaced test to llround_test.  Add testcase
12863         from bug 2561.
12864
12865 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12866
12867         * sysdeps/x86_64/fpu/e_expf.S: New file.
12868         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12869
12870 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12871
12872         [BZ #13637]
12873         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12874         of remain_len that may cause incomplete multi-byte character and
12875         false match.
12876         * posix/bug-regex33.c: New file.
12877         * posix/Makefile (tests): Add bug-regex33.
12878
12879 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12880
12881         * manual/macros.texi: New file.
12882         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12883         * manual/libc.texinfo: Include macros.texi.
12884         * manual/creatute.texi: Likewise.
12885         * manual/install.texi: Likewise.
12886         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12887         @glibcadj{} in references to the GNU C Library.
12888         * manual/charset.texi: Likewise.
12889         * manual/conf.texi: Likewise.
12890         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12891         when not using those macros.
12892         * manual/creature.texi: Likewise.
12893         * manual/crypt.texi: Likewise.
12894         * manual/errno.texi: Likewise.
12895         * manual/filesys.texi: Likewise.
12896         * manual/header.texi: Likewise.
12897         * manual/install.texi: Likewise.
12898         * manual/intro.texi: Likewise.
12899         * manual/io.texi: Likewise.
12900         * manual/job.texi: Likewise.
12901         * manual/lang.texi: Likewise.
12902         * manual/libc.texiinfo: Likewise.
12903         * manual/llio.texi: Likewise.
12904         * manual/locale.texi: Likewise.
12905         * manual/maint.texi: Likewise.
12906         * manual/math.texi: Likewise.
12907         * manual/memory.texi: Likewise.
12908         * manual/message.texi: Likewise.
12909         * manual/nss.texi: Likewise.
12910         * manual/pattern.texi: Likewise.
12911         * manual/process.texi: Likewise.
12912         * manual/resource.texi: Likewise.
12913         * manual/search.texi: Likewise.
12914         * manual/setjmp.texi: Likewise.
12915         * manual/signal.texi: Likewise.
12916         * manual/socket.texi: Likewise.
12917         * manual/startup.texi: Likewise.
12918         * manual/stdio.texi: Likewise.
12919         * manual/string.texi: Likewise.
12920         * manual/sysinfo.texi: Likewise.
12921         * manual/syslog.texi: Likewise.
12922         * manual/terminal.texi: Likewise.
12923         * manual/time.texi: Likewise.
12924         * manual/users.texi: Likewise.
12925         * INSTALL: Regenerated.
12926         * NOTES: Regenerated.
12927         * sysdeps/gnu/errlist.c: Regenerated.
12928
12929 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12930
12931         * include/dirent.h: Include <dirstream.h> before
12932         <dirent/dirent.h>.
12933
12934 2012-02-28  David S. Miller  <davem@davemloft.net>
12935
12936         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12937         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12938         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12939         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12940
12941 2012-02-27  David S. Miller  <davem@davemloft.net>
12942
12943         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12944         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12945         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12946         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12947
12948         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12949         frame pointer instead of stack pointer relative arg slot.
12950         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12951         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12952         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12953
12954 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12955
12956         [BZ #3992]
12957         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12958
12959 2012-02-27  David S. Miller  <davem@davemloft.net>
12960
12961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12965         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12966         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12967         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12968         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12969
12970 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12971
12972         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12973         later.  Allow versions 5-9.
12974         * configure: Regenerated.
12975         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12976         required minimum version and 4.6 as recommended version.  Do not
12977         mention bugs in GCC 2.7 and 2.8.
12978         * INSTALL: Regenerated.
12979
12980 2012-02-27  David S. Miller  <davem@davemloft.net>
12981
12982         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12984         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12985         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12986         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12987         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12988         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12989         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12990
12991         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12992         manipulate bits before adding and subtracting TWO112[sx].
12993         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12994
12995 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12996
12997         [BZ #13775]
12998         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12999         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13000         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13001         being in POSIX, because they are in 1003.1-2008.
13002
13003         * rt/tst-aio.c: Include <fcntl.h>.
13004         * rt/tst-aio7.c: Likewise.
13005         * rt/tst-aio64.c: Likewise.
13006
13007         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13008
13009 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13010
13011         * manual/install.texi (--with-headers): Describe headers as
13012         interface headers, not private headers.
13013         (Specific advice for GNU/Linux systems): Describe use of headers
13014         from "make headers_install", not private headers from older
13015         kernels.
13016         * INSTALL: Regenerated.
13017         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13018         Change to 2.6.19.
13019         * sysdeps/unix/sysv/linux/configure: Regenerated.
13020
13021         * manual/llio.texi (fclean): Remove documentation.
13022
13023         * manual/Makefile (libc-texi-generated): New variable.  Include
13024         version.texi.
13025         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13026         $(libc-texi-generated), not duplicated list of files.
13027         (version.texi, stamp-version): New rules.
13028         (realclean): Remove $(libc-texi-generated), not individual files
13029         from that list.  Do not remove dir-add.texinfo.
13030         * manual/libc.texinfo: Comment out uses of edition numbers and
13031         references to printed manual.  Remove last-updated dates.
13032         (EDITION): Comment out.
13033         (ISBN): Likewise.
13034         (VERSION, UPDATED): Remove.
13035         (version.texi): Include.
13036
13037 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13038
13039         * sysdeps/posix/spawni.c: Include <signal.h>.
13040         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13041         * sysdeps/pthread/aio_fsync.c: Likewise.
13042
13043 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13044
13045         * conform/Makefile (tests): Run only when not cross-compiling and
13046         when fast-check is not defined.
13047
13048         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13049         * conform/data/limits.h-data: Fixes for POSIX2008.
13050         * conform/run-conformtest.sh: Run all tests.
13051         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13052         headers.
13053         * include/bits/dlfcn.h: Likewise.
13054         * include/langinfo.h: Likewise.
13055         * include/monetary.h: Likewise.
13056         * include/sys/poll.h: Likewise.
13057
13058         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13059         for __USE_GNU.
13060         * posix/spawn.h: Define __need_sigset_t.
13061         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13062         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13063         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13064         to get sigevent_t only.
13065         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13066         only for __USE_GNU.
13067         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13068         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13069         process_vm_writev only for __USE_GNU.
13070         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13071
13072         * conform/Makefile: For now ignore errors from run-conformtest.
13073         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13074         POSIX to avoid namespace pollution.  Don't prepend headers.
13075         * conform/data/aio.h-data: Fixes for POSIX testing.
13076         * conform/data/fcntl.h-data: Likewise.
13077         * conform/data/glob.h-data: Likewise.
13078         * conform/data/grp.h-data: Likewise.
13079         * conform/data/pthread.h-data: Likewise.
13080         * conform/data/pwd.h-data: Likewise.
13081         * conform/data/signal.h-data: Likewise.
13082         * conform/data/spawn.h-data: Likewise.
13083         * conform/data/stdio.h-data: Likewise.
13084         * conform/data/stdlib.h-data: Likewise.
13085         * conform/data/stropts.h-data: Likewise.
13086         * conform/data/sys/mman.h-data: Likewise.
13087         * conform/data/sys/stat.h-data: Likewise.
13088         * conform/data/sys/types.h-data: Likewise.
13089         * conform/data/sys/wait.h-data: Likewise.
13090         * conform/data/time.h-data: Likewise.
13091         * conform/data/unistd.h-data: Likewise.
13092         * conform/data/utime.h-data: Likewise.
13093
13094         * io/sys/stat.h: fchmod was always in POSIX.
13095         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13096         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13097         * rt/aio.h: Define __need_timespec before including <time.h>.
13098         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13099         struct.  Add forward declaration of pthread_attr_t and use it in
13100         sigevent.
13101         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13102         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13103         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13104         always remove CLK_TCK definition.
13105
13106 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13107
13108         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13109
13110 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13111
13112         * conform/run-conformtest.sh: New file.
13113         * conform/Makefile: Run run-conformtest for tests.
13114         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13115         support.
13116
13117         * conform/data/uchar.h-data: New file.
13118         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13119         * conform/data/arpa/inet.h-data: Likewise.
13120         * conform/data/assert.h-data: Likewise.
13121         * conform/data/complex.h-data: Likewise.
13122         * conform/data/cpio.h-data: Likewise.
13123         * conform/data/ctype.h-data: Likewise.
13124         * conform/data/dirent.h-data: Likewise.
13125         * conform/data/dlfcn.h-data: Likewise.
13126         * conform/data/errno.h-data: Likewise.
13127         * conform/data/fcntl.h-data: Likewise.
13128         * conform/data/float.h-data: Likewise.
13129         * conform/data/fmtmsg.h-data: Likewise.
13130         * conform/data/fnmatch.h-data: Likewise.
13131         * conform/data/ftw.h-data: Likewise.
13132         * conform/data/glob.h-data: Likewise.
13133         * conform/data/grp.h-data: Likewise.
13134         * conform/data/iconv.h-data: Likewise.
13135         * conform/data/inttypes.h-data: Likewise.
13136         * conform/data/langinfo.h-data: Likewise.
13137         * conform/data/libgen.h-data: Likewise.
13138         * conform/data/limits.h-data: Likewise.
13139         * conform/data/locale.h-data: Likewise.
13140         * conform/data/math.h-data: Likewise.
13141         * conform/data/monetary.h-data: Likewise.
13142         * conform/data/mqueue.h-data: Likewise.
13143         * conform/data/ndbm.h-data: Likewise.
13144         * conform/data/net/if.h-data: Likewise.
13145         * conform/data/netdb.h-data: Likewise.
13146         * conform/data/netinet/in.h-data: Likewise.
13147         * conform/data/nl_types.h-data: Likewise.
13148         * conform/data/poll.h-data: Likewise.
13149         * conform/data/pthread.h-data: Likewise.
13150         * conform/data/pwd.h-data: Likewise.
13151         * conform/data/regex.h-data: Likewise.
13152         * conform/data/sched.h-data: Likewise.
13153         * conform/data/search.h-data: Likewise.
13154         * conform/data/semaphore.h-data: Likewise.
13155         * conform/data/setjmp.h-data: Likewise.
13156         * conform/data/signal.h-data: Likewise.
13157         * conform/data/spawn.h-data: Likewise.
13158         * conform/data/stdarg.h-data: Likewise.
13159         * conform/data/stdio.h-data: Likewise.
13160         * conform/data/stdlib.h-data: Likewise.
13161         * conform/data/string.h-data: Likewise.
13162         * conform/data/strings.h-data: Likewise.
13163         * conform/data/stropts.h-data: Likewise.
13164         * conform/data/sys/ipc.h-data: Likewise.
13165         * conform/data/sys/mman.h-data: Likewise.
13166         * conform/data/sys/msg.h-data: Likewise.
13167         * conform/data/sys/resource.h-data: Likewise.
13168         * conform/data/sys/select.h-data: Likewise.
13169         * conform/data/sys/sem.h-data: Likewise.
13170         * conform/data/sys/shm.h-data: Likewise.
13171         * conform/data/sys/socket.h-data: Likewise.
13172         * conform/data/sys/stat.h-data: Likewise.
13173         * conform/data/sys/statvfs.h-data: Likewise.
13174         * conform/data/sys/time.h-data: Likewise.
13175         * conform/data/sys/timeb.h-data: Likewise.
13176         * conform/data/sys/times.h-data: Likewise.
13177         * conform/data/sys/types.h-data: Likewise.
13178         * conform/data/sys/uio.h-data: Likewise.
13179         * conform/data/sys/un.h-data: Likewise.
13180         * conform/data/sys/utsname.h-data: Likewise.
13181         * conform/data/sys/wait.h-data: Likewise.
13182         * conform/data/syslog.h-data: Likewise.
13183         * conform/data/tar.h-data: Likewise.
13184         * conform/data/termios.h-data: Likewise.
13185         * conform/data/utime.h-data: Likewise.
13186         * conform/data/utmpx.h-data: Likewise.
13187         * conform/data/varargs.h-data: Likewise.
13188         * conform/data/wchar.h-data: Likewise.
13189         * conform/data/wctype.h-data: Likewise.
13190         * conform/data/wordexp.h-data: Likewise.
13191
13192         * include/stropts.h: New file.
13193         * include/uchar.h: New file.
13194         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13195         * include/assert.h: Likewise.
13196         * include/ctype.h: Likewise.
13197         * include/dirent.h: Likewise.
13198         * include/dlfcn.h: Likewise.
13199         * include/fcntl.h: Likewise.
13200         * include/fnmatch.h: Likewise.
13201         * include/glob.h: Likewise.
13202         * include/grp.h: Likewise.
13203         * include/libio.h: Likewise.
13204         * include/locale.h: Likewise.
13205         * include/math.h: Likewise.
13206         * include/net/if.h: Likewise.
13207         * include/netdb.h: Likewise.
13208         * include/netinet/in.h: Likewise.
13209         * include/pthread.h: Likewise.
13210         * include/pwd.h: Likewise.
13211         * include/regex.h: Likewise.
13212         * include/sched.h: Likewise.
13213         * include/search.h: Likewise.
13214         * include/setjmp.h: Likewise.
13215         * include/signal.h: Likewise.
13216         * include/stdio.h: Likewise.
13217         * include/stdlib.h: Likewise.
13218         * include/string.h: Likewise.
13219         * include/sys/cdefs.h: Likewise.
13220         * include/sys/mman.h: Likewise.
13221         * include/sys/msg.h: Likewise.
13222         * include/sys/resource.h: Likewise.
13223         * include/sys/select.h: Likewise.
13224         * include/sys/socket.h: Likewise.
13225         * include/sys/stat.h: Likewise.
13226         * include/sys/statvfs.h: Likewise.
13227         * include/sys/time.h: Likewise.
13228         * include/sys/times.h: Likewise.
13229         * include/sys/uio.h: Likewise.
13230         * include/sys/utsname.h: Likewise.
13231         * include/sys/wait.h: Likewise.
13232         * include/termios.h: Likewise.
13233         * include/time.h: Likewise.
13234         * include/ulimit.h: Likewise.
13235         * include/unistd.h: Likewise.
13236         * include/utime.h: Likewise.
13237         * include/wchar.h: Likewise.
13238         * include/wctype.h: Likewise.
13239         * include/wordexp.h: Likewise.
13240
13241         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13242
13243         * time/time.h: TIME_UTC must be a macro.
13244         Make timespec_get available for ISO C11 only as well.
13245
13246 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13247
13248         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13249         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13250
13251 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13252
13253         * configure.in: Use -o not -a in test for unsupported multi-arch.
13254
13255 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13256
13257         * manual/texinfo.tex: Update to version 2012-01-19.16.
13258
13259 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13260
13261         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13262
13263 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13264
13265         [BZ #13738]
13266         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13267         * manual/fdl-1.3.texi: New file.
13268         * manual/fdl-1.1.texi: File removed.
13269
13270         [BZ #13738]
13271         * manual/libc.texinfo (FDL_VERSION): New @set.
13272         Use it for mention of FDL in cover text.
13273         (Documentation License): Use it in @include file name.
13274
13275 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13276             Roland McGrath  <roland@hack.frob.com>
13277
13278         [BZ #5461]
13279         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13280         not LONG_LONG_MAX and LONG_LONG_MIN.
13281         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13282         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13283         name.
13284         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13285
13286 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13287
13288         [BZ #2547]
13289         [BZ #11365]
13290         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13291         manipulate bits before adding and subtracting TWO23[sx].
13292         * math/libm-test.inc (nearbyint_test): Add more tests.
13293
13294 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13295
13296         [BZ #2548]
13297         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13298         bits before adding and subtracting TWO23[sx].
13299         * math/libm-test.inc (rint_test): Add more tests.
13300         (rint_test_tonearest): Likewise.
13301         (rint_test_towardzero): Likewise.
13302         (rint_test_downward): Likewise.
13303         (rint_test_upward: Likewise.
13304
13305 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13306
13307         [BZ #10110]
13308         * include/stdc-predef.h: New file.  Extracted from features.h.
13309         * include/features.h: Include stdc-predef.h.
13310         * Makefile (headers): Add stdc-predef.h.
13311         * CONFORMANCE (Compiler limitations): Update.
13312
13313 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13314
13315         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13316
13317 2012-02-21  David S. Miller  <davem@davemloft.net>
13318
13319         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13320         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13321
13322 2012-02-20  David S. Miller  <davem@davemloft.net>
13323
13324         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13325         using a normal save/restore sequence, rather than allocating a
13326         dummy stack frame just to store a frame pointer and restore.
13327         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13328
13329 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13330
13331         * manual/install.texi: Fix stray word in line-wrapped comment.
13332
13333 2012-02-20  David S. Miller  <davem@davemloft.net>
13334
13335         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13336         both binutils and gcc support GOTDATA.
13337
13338         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13339         "rd %pc" in the PIC register setup sequences.
13340
13341         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13342         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13343         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13344         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13345         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13346         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13347         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13348         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13349         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13350         (SYSCALL_ERROR_HANDLER): Likewise.
13351         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13352         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13353         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13354         (SYSCALL_ERROR_HANDLER): Likewise.
13355
13356         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13357         (HAVE_GCC_GOTDATA): New.
13358         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13359         relocation support in both binutils and gcc.
13360         * sysdeps/sparc/elf/configure: Regenerate.
13361
13362         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13363         * sysdeps/sparc/sparc32/elf/configure: Delete.
13364         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13365         * sysdeps/sparc/sparc64/elf/configure: Delete.
13366         * sysdeps/sparc/elf/configure.in: New file.
13367         * sysdeps/sparc/elf/configure: Generate.
13368
13369         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13370         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13371         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13372         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13373         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13374
13375 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13376
13377         * manual/install.texi: Do not mention specific glibc version
13378         numbers.
13379         * manual/libc.texinfo (VERSION, UPDATED): Update.
13380         (@copying): Use @copyright{} and range of years.
13381
13382 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13383
13384         [BZ #13695]
13385         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13386         [crti.S not in sysdirs] (generated): Do not append.
13387         [crti.S not in sysdirs] (omit-deps): Likewise.
13388         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13389         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13390         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13391         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13392         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13393         Likewise.
13394         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13395         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13396         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13397         * csu/defs.awk: Remove file.
13398         * sysdeps/generic/initfini.c: Likewise.
13399         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13400         variable.
13401         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13402         Likewise.
13403
13404 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13405
13406         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13407         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13408         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13409         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13410         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13411         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13412         <bits/epoll.h>.
13413         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13414         (__EPOLL_PACKED): Define to empty if not defined by
13415         <bits/epoll.h>.
13416         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13417         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13418         bits/epoll.h.
13419
13420 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13421
13422         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13423         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13424         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13425         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13426         <bits/timerfd.h>.
13427         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13428         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13429         bits/timerfd.h.
13430
13431 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13432
13433         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13434         in C locale.
13435         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13436         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13437         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13439
13440 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13441
13442         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13443         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13444
13445 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13446
13447         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13448         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13449         defined.
13450         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13451         Likewise.
13452         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13453         entry for 2.16.
13454
13455 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13456
13457         * math/w_acos.c: Use non-signaling floating-point comparisons.
13458         * math/w_acosf.c: Likewise.
13459         * math/w_acosh.c: Likewise.
13460         * math/w_acoshf.c: Likewise.
13461         * math/w_acoshl.c: Likewise.
13462         * math/w_acosl.c: Likewise.
13463         * math/w_asin.c: Likewise.
13464         * math/w_asinf.c: Likewise.
13465         * math/w_asinl.c: Likewise.
13466         * math/w_atanh.c: Likewise.
13467         * math/w_atanhf.c: Likewise.
13468         * math/w_atanhl.c: Likewise.
13469         * math/w_exp2.c: Likewise.
13470         * math/w_exp2f.c: Likewise.
13471         * math/w_exp2l.c: Likewise.
13472         * math/w_j0.c: Likewise.
13473         * math/w_j0f.c: Likewise.
13474         * math/w_j0l.c: Likewise.
13475         * math/w_j1.c: Likewise.
13476         * math/w_j1f.c: Likewise.
13477         * math/w_j1l.c: Likewise.
13478         * math/w_jn.c: Likewise.
13479         * math/w_jnf.c: Likewise.
13480         * math/w_log.c: Likewise.
13481         * math/w_log10.c: Likewise.
13482         * math/w_log10f.c: Likewise.
13483         * math/w_log10l.c: Likewise.
13484         * math/w_log2.c: Likewise.
13485         * math/w_log2f.c: Likewise.
13486         * math/w_log2l.c: Likewise.
13487         * math/w_logf.c: Likewise.
13488         * math/w_logl.c: Likewise.
13489         * math/w_sqrt.c: Likewise.
13490         * math/w_sqrtf.c: Likewise.
13491         * math/w_sqrtl.c: Likewise.
13492         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13493         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13494         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13495         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13496         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13497
13498 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13499
13500         [BZ #9739]
13501         * manual/string.texi (strnlen): Use correct parameter name in
13502         equivalent expression.
13503
13504 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13505
13506         [BZ #11174]
13507         * manual/users.texi (seteuid): Consistently use neweuid for
13508         argument name.
13509
13510 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13511
13512         [BZ #13704]
13513         * manual/nss.texi (Services in the NSS configuration): Correct
13514         list of services in example configuration file.
13515
13516 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13517
13518         [BZ #11322]
13519         * manual/arith.texi: Remove statements about negative zero
13520         behaving identically to zero.
13521
13522 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13523
13524         [BZ #5993]
13525         * manual/install.texi: Do not document upgrading from libc5.
13526
13527 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13528
13529         [BZ #4596]
13530         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13531
13532 2012-02-18  David S. Miller  <davem@davemloft.net>
13533
13534         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13535         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13536         %o7 across the call.
13537         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13538         instead.
13539         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13540         SETUP_PIC_REG_LEAF.
13541         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13542         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13543         * sysdeps/sparc/crtn.S: Likewise.
13544
13545 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13546
13547         * aout/Makefile: Remove.
13548
13549 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13550
13551         [BZ #13058]
13552         * manual/examples/argp-ex1.c (main): Format definition in GNU
13553         style.
13554         * manual/examples/argp-ex2.c (main): Likewise.
13555         * manual/examples/argp-ex3.c (main): Likewise.
13556         * manual/examples/argp-ex4.c (main): Likewise.
13557         * manual/examples/longopt.c (main): Use new-style prototype
13558         definition.
13559         * manual/examples/strncat.c (main): Specify return type and use
13560         (void) for arguments.
13561         * manual/examples/subopt.c (main): Use char **argv argument.
13562
13563 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13564
13565         [BZ #5077]
13566         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13567         rounding modes.
13568
13569 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13570
13571         [BZ #6907]
13572         * manual/string.texi (strchr): Change when strchrnul is
13573         recommended.
13574
13575 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13576
13577         [BZ #174]
13578         * manual/locale.texi (setlocale): Document LOCPATH.
13579
13580 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13581
13582         [BZ #10210]
13583         * manual/process.texi (execle): Move @dots{} before last argument.
13584
13585 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13586
13587         [BZ #12047]
13588         * manual/charset.texi (Generic Charset Conversion): Fix typo
13589         (LC_TYPE -> LC_CTYPE).
13590
13591 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13592
13593         [BZ #5805]
13594         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13595         (scalbnf): Likewise.
13596         (scalbnl): Likewise.
13597         (scalbln): Likewise.
13598         (scalblnf): Likewise.
13599         (scalblnl): Likewise.
13600         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13601         (vwarnx): Likewise.
13602         (verr): Likewise.
13603         (verrx): Likewise.
13604         * manual/filesys.texi (telldir): Use braces around return type.
13605         * manual/llio.texi (mmap): Add space after comma.
13606         (mmap64): Likewise.
13607         * manual/math.texi (jn): Use @var{} on parameter names.
13608         (jnf): Likewise.
13609         (jnl): Likewise.
13610         (yn): Likewise.
13611         (ynf): Likewise.
13612         (ynl): Likewise.
13613         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13614         line.
13615         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13616         "...".
13617         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13618         (sched_get_priority_max): Likewise.
13619         * manual/signal.texi (sigvec): Add space after comma.
13620         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13621         names.
13622         (if_indextoname): Likewise.
13623         (if_freenameindex): Likewise.
13624         (sendto): Use ',' instead of '.' in prototype.
13625         * manual/startup.texi (syscall): Use @dots{} instead of literal
13626         "...".
13627         * manual/stdio.texi (__fpending): Separate initial words of
13628         paragraph from @deftypefun line.
13629         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13630         "...".
13631         (vsyslog): Use @var{} on parameter names.
13632         * manual/terminal.texi (stty): Use @var{} on parameter names.
13633         * manual/users.texi (getutmp): Use @var{} on parameter names.
13634         (getutmpx): Likewise.
13635
13636 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13637
13638         [BZ #6884]
13639         * manual/stdio.texi (fopen): Fix typos in description of
13640         ",ccs=STRING".
13641
13642 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13643
13644         [BZ #4026]
13645         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13646         get clock_id definition.
13647
13648 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13649
13650         [BZ #4822]
13651         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13652         (madvise): Cast every argument to void on its own.
13653
13654 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13655
13656         [BZ #9902]
13657         * manual/startup.texi (Exit Status): Fix typo.
13658
13659 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13660
13661         [BZ #10140]
13662         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13663         * manual/examples/argp-ex2.c: Likewise.
13664         * manual/examples/argp-ex3.c: Likewise.
13665
13666 2012-02-16  Richard Henderson  <rth@redhat.com>
13667
13668         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13669         * sysdeps/s390/s390-32/initfini.c: Remove.
13670         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13671         * sysdeps/s390/s390-64/initfini.c: Remove.
13672
13673 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13674
13675         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13676         compiler output for sysdeps/generic/initfini.c.
13677         * sysdeps/sh/elf/initfini.c: Remove file.
13678
13679 2012-02-16  David S. Miller  <davem@davemloft.net>
13680
13681         [BZ #11494]
13682         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13683
13684         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13685         * sysdeps/sparc/crti.S: New file.
13686         * sysdeps/sparc/crtn.S: New file.
13687         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13688         * sysdeps/sparc/sparc64/Makefile: Likewise.
13689
13690 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13691
13692         [BZ #3335]
13693         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13694
13695 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13696
13697         [BZ #4822]
13698         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13699
13700         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13701         (write, read, close): Likewise.
13702         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13703
13704 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13705
13706         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13707         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13708         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13709         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13710         <bits/signalfd.h>.
13711         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13712         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13713         bits/signalfd.h.
13714
13715 2012-02-14  Marek Polacek  <polacek@redhat.com>
13716
13717         * sysdeps/x86_64/crti.S: New file.
13718         * sysdeps/x86_64/crtn.S: New file.
13719         * sysdeps/x86_64/elf/initfini.c: Remove file.
13720
13721 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13722
13723         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13724         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13725         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13726         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13727         <bits/inotify.h>.
13728         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13729         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13730         bits/inotify.h.
13731
13732 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13733
13734         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13735         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13736         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13737         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13738         <bits/eventfd.h>.
13739         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13740         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13741         bits/eventfd.h.
13742
13743 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13744
13745         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13746         __feraiseexcept instead of feraiseexcept.
13747
13748         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13749         nanosleep invocations.
13750         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13751         strings, and add error checking for a nanosleep invocations.
13752
13753 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13754
13755         Replace FSF snail mail address with URLs, as per GNU coding standards.
13756         Most of the snail mail addresses were wrong anyway, and omitting
13757         them makes the source code easier to maintain.  Almost all of the
13758         changes are to license notices and to locale LC_IDENTIFICATION
13759         addresses, except for this one:
13760         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13761         not its snail mail address.
13762
13763 2012-02-09  Richard Henderson  <rth@twiddle.net>
13764
13765         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13766         of kernel-features.h.
13767
13768         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13769
13770 2012-02-08  Marek Polacek  <polacek@redhat.com>
13771
13772         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13773         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13774         * sysdeps/gnu/_G_config.h: Likewise.
13775         * sysdeps/generic/_G_config.h: Likewise.
13776
13777 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13778
13779         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13780         tests.
13781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13782
13783         * sysdeps/powerpc/powerpc32/crti.S: New file.
13784         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13785         * sysdeps/powerpc/powerpc64/crti.S: New file.
13786         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13787
13788         * Makeconfig (have-initfini): Don't set.
13789         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13790         * configure.in (nopic_initfini): Don't substitute.
13791         * config.h.in (HAVE_INITFINI): Don't #undef.
13792         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13793         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13794
13795 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13796
13797         Support crti.S and crtn.S provided directly by architectures.
13798         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13799         [crti.S in sysdirs] (omit-deps): Likewise.
13800         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13801         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13802         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13803         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13804         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13805         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13806         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13807         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13808         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13809         compiler output for sysdeps/generic/initfini.c.
13810         * sysdeps/i386/elf/Makefile: Remove file.
13811         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13812
13813 2012-02-07  Marek Polacek  <polacek@redhat.com>
13814
13815         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13816         * sysdeps/gnu/_G_config.h: Likewise.
13817         * sysdeps/mach/hurd/_G_config.h: Likewise.
13818
13819 2012-02-07  Marek Polacek  <polacek@redhat.com>
13820
13821         * math/Makefile (tests): Add tst-CMPLX2.
13822         * math/tst-CMPLX2.c: New file.
13823
13824 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13825
13826         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13827
13828         * math/libm-test.inc (jn_test): Add missing L suffix.
13829
13830 2012-02-06  Marek Polacek  <polacek@redhat.com>
13831
13832         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13833         * sysdeps/i386/fpu/e_powf.S: Likewise.
13834         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13835         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13836         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13837         * sysdeps/i386/fpu/e_pow.S: Likewise.
13838         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13839         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13840         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13841         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13842         * sysdeps/i386/fpu/e_log2.S: Likewise.
13843         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13844         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13845         * sysdeps/i386/fpu/e_powl.S: Likewise.
13846         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13847         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13848         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13849         * sysdeps/i386/fpu/e_logl.S: Likewise.
13850         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13851         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13852         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13853         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13854         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13855         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13856         * sysdeps/i386/fpu/e_log.S: Likewise.
13857         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13858         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13859         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13860         * sysdeps/i386/fpu/e_logf.S: Likewise.
13861         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13862         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13863         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13864         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13865         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13866         * sysdeps/i386/fpu/e_log10.S: Likewise.
13867         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13868         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13869         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13870         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13871         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13872         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13873         * sysdeps/i386/asm-syntax.h: Likewise.
13874         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13875         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13876         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13877         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13878         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13879         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13880         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13881         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13882         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13883         * sysdeps/powerpc/sysdep.h: Likewise.
13884         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13885         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13886
13887 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13888
13889         [BZ #411]
13890         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13891
13892 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13893
13894         * sysdeps/i386/sysdep.h: Include <features.h>.
13895         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13896         version.
13897
13898 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13899
13900         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13901         Define.
13902         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13903         LOAD_PIC_REG_STR.
13904
13905 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13906
13907         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13908         (SETUP_PIC_REG): Use GET_PC_THUNK.
13909         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13910         macro.
13911
13912 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13913
13914         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13915         for non-PIC compilation.
13916         (SETUP_PIC_REG): Add .p2align directive.
13917         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13918         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13919         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13920         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13921         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13922         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13923         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13924         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13925         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13926         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13927         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13928         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13929         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13930         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13931         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13932         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13933         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13934         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13935         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13936         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13937         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13938         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13939         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13940         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13941         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13942         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13943         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13944         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13945         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13946         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13947         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13948         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13949         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13950         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13951         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13952         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13953         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13954         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13955         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13956         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13957         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13958
13959 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13960
13961         * math/tst-CMPLX.c: Include <stdio.h>.
13962
13963 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13964
13965         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13966         float.
13967         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13968         * sysdeps/sparc/bits/mathdef.h: Likewise.
13969
13970 2012-01-31  Marek Polacek  <polacek@redhat.com>
13971
13972         * libio/libio.h: Don't define _PARAMS.
13973         * locale/programs/config.h: Don't define PARAMS.
13974         * stdlib/strtol_l.c: Likewise.
13975         (__strtol_l): Remove PARAMS from the prototype.
13976
13977 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13978
13979         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13980         names.  Just use the correct names.  Remove unnecessary wrapper
13981         functions.
13982         * malloc/arena.c: Likewise.
13983         * malloc/hooks.c: Likewise.
13984
13985         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13986         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13987         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13988
13989 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13990
13991         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13992         into tail calls.
13993         (update_get_addr): New function.
13994         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13995         GET_ADDR_MODULE parameter.
13996
13997 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13998
13999         * crypt/cert.c: Remove __STDC__ conditionals.
14000         * crypt/crypt-entry.c: Likewise.
14001         * crypt/crypt_util.c: Likewise.
14002         * libio/filedoalloc.c: Likewise.
14003         * libio/fileops.c: Likewise.
14004         * libio/genops.c: Likewise.
14005         * libio/iofclose.c: Likewise.
14006         * libio/iofdopen.c: Likewise.
14007         * libio/iofopen.c: Likewise.
14008         * libio/iofopen64.c: Likewise.
14009         * libio/iogetdelim.c: Likewise.
14010         * libio/iopopen.c: Likewise.
14011         * libio/obprintf.c: Likewise.
14012         * libio/oldfileops.c: Likewise.
14013         * libio/oldiofclose.c: Likewise.
14014         * libio/oldiofdopen.c: Likewise.
14015         * libio/oldiofopen.c: Likewise.
14016         * libio/oldiopopen.c: Likewise.
14017         * libio/wfiledoalloc.c: Likewise.
14018         * libio/wgenops.c: Likewise.
14019         * locale/programs/xmalloc.c: Likewise.
14020         * misc/syslog.c: Likewise.
14021         * stdio-common/xbug.c: Likewise.
14022         * string/memchr.c: Likewise.
14023         * string/memcmp.c: Likewise.
14024         * string/memrchr.c: Likewise.
14025         * string/rawmemchr.c: Likewise.
14026         * sysdeps/posix/getcwd.c: Likewise.
14027         * time/strftime_l.c: Likewise.
14028
14029 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14030
14031         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14032         * config.make.in (config-cflags-sse2avx): Define.
14033         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14034         Fix typo.
14035
14036 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14037
14038         * scripts/config.guess: Update from upstream config git repository.
14039         * scripts/config.sub: Likewise.
14040
14041 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14042
14043         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14044         (EM_NUM): Update.
14045         (R_TILEPRO_*, R_TILEGX_*): New macros.
14046
14047         * scripts/firstversions.awk: Fix bug in version range handling.
14048
14049         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14050
14051         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14052
14053         * include/sys/epoll.h: New file.
14054         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14055         libc_hidden_def.
14056
14057 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14058
14059         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14060         Avoid unnecessary __WORDSIZE == 64 test.
14061         (fmaxf): Use VEX format if possible.
14062         (fmax): Likewise.
14063         (fminf): Likewise.
14064         (fmin): Likewise.
14065
14066         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14067         * math/math_private.h: Remove libc_fegetround* and
14068         libc_fesetround*.
14069         * sysdeps/i386/configure.in: Check for -msse2avx.
14070         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14071         also if SSE2AVX is defined.
14072         Remove libc_fegetround* and libc_fesetround*.
14073         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14074         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14075         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14076         of HAS_YMM_USABLE.
14077         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14078         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14079         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14080         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14081         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14082
14083         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14084
14085 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14086
14087         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14088         size is not set.
14089         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14090
14091 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14092
14093         [BZ #13618]
14094         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14095         relocation.
14096         * Makeconfig (libm): Define.
14097         * elf/Makefile: Add rules to build and run tst-relsort1.
14098         * elf/tst-relsort1.c: New file.
14099         * elf/tst-relsort1mod1.c: New file.
14100         * elf/tst-relsort1mod2.c: New file.
14101
14102 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14103
14104         * math/s_ldexp.c: Remove __STDC__ conditionals.
14105         * math/s_ldexpf.c: Likewise.
14106         * math/s_ldexpl.c: Likewise.
14107         * math/s_nextafter.c: Likewise.
14108         * math/s_nexttowardf.c: Likewise.
14109         * math/s_significand.c: Likewise.
14110         * math/s_significandf.c: Likewise.
14111         * math/s_significandl.c: Likewise.
14112         * math/w_jnl.c: Likewise.
14113         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14114         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14115         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14116         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14117         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14118         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14119         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14120         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14121         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14122         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14123         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14124         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14125         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14126         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14127         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14128         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14129         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14130         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14131         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14132         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14133         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14134         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14135         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14136         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14137         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14138         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14139         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14140         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14141         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14142         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14143         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14144         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14145         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14146         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14147         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14148         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14149         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14150         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14151         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14152         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14153         * sysdeps/ieee754/k_standard.c: Likewise.
14154         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14155         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14156         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14157         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14158         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14159         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14160         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14161         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14162         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14163         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14164         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14165         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14166         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14167         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14168         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14169         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14170         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14171         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14172         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14173         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14174         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14175         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14176         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14177         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14178         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14179         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14180         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14181         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14182         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14183         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14184         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14185         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14186         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14187         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14188         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14189         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14190         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14191         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14192         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14193         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14194         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14195         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14196         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14197         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14198         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14199         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14200         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14201         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14202         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14203         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14204         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14205         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14206         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14207         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14208         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14209         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14210         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14211         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14212         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14213         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14214         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14215         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14216         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14217         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14218         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14219         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14220         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14221         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14222         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14223         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14224         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14225         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14226         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14227         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14228         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14229         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14230         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14231         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14232         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14233         * sysdeps/ieee754/s_matherr.c: Likewise.
14234         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14235         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14236         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14237         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14238
14239 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14240
14241         * crypt/md5.h: Remove __STDC__ conditionals.
14242         * libio/libioP.h: Likewise.
14243         * locale/programs/config.h: Likewise.
14244         * sysdeps/generic/sysdep.h: Likewise.
14245         * sysdeps/i386/asm-syntax.h: Likewise.
14246         * sysdeps/s390/asm-syntax.h: Likewise.
14247         * sysdeps/unix/sysdep.h: Likewise.
14248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14250
14251 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14252
14253         * libio/libio.h: Remove __STDC__ conditionals.
14254         * malloc/obstack.h: Likewise.
14255         * math/complex.h: Likewise.
14256         * math/math.h: Likewise.
14257         * sysdeps/generic/_G_config.h: Likewise.
14258         * sysdeps/gnu/_G_config.h: Likewise.
14259         * sysdeps/mach/hurd/_G_config.h: Likewise.
14260         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14261         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14262         * sysdeps/sparc/bits/mathdef.h: Likewise.
14263
14264 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14265
14266         [BZ #13583]
14267         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14268         Clean up HAS_* macros.
14269         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14270         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14271         possible.
14272         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14273         HAS_AVX.
14274         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14275         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14276         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14277         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14278         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14279
14280 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14281
14282         * elf/tst-unique3.cc (gets): Remove declaration.
14283         * elf/tst-unique3lib.cc (gets): Likewise.
14284         * elf/tst-unique3lib2.cc (gets): Likewise.
14285         * elf/tst-unique4.cc (gets): Likewise.
14286
14287 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14288
14289         * include/stdio.h: Add C++ protection.  Add gets declarations and
14290         definitions.
14291         * debug/tst-chk1.c: Don't declare gets here.
14292         * stdio-common/tst-gets.c: Likewise.
14293
14294 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14295
14296         * posix/glob: Remove directory.
14297
14298 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14299
14300         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14301
14302 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14303
14304         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14305         of the non-standard EPFNOSUPPORT.
14306
14307 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14308
14309         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14310         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14311         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14312
14313 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14314
14315         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14316
14317 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14318
14319         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14320         transient errors.
14321         * nscd/grpcache.c (cache_addgr): Likewise.
14322         * nscd/hstcache.c (cache_addhst): Likewise.
14323         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14324         * nscd/pwdcache.c (cache_addpw): Likewise.
14325         * nscd/servicescache.c (cache_addserv): Likewise.
14326
14327 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14328
14329         * malloc/malloc.c: Various cleanups.
14330         * malloc/hooks.c: Likewise.
14331
14332         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14333         * stdlib/bug-fmtmsg1.c: New file.
14334
14335         * stdlib/fmtmsg.c (init): Add missing unlock.
14336         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14337
14338 2012-01-12  Marek Polacek  <polacek@redhat.com>
14339
14340         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14341         and _GNU_SOURCE.
14342
14343 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14344
14345         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14346         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14347         macro to ensure uniqueness of label name.
14348         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14349         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14350
14351 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14352
14353         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14354
14355         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14356         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14357         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14358         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14359
14360 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14361
14362         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14363
14364         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14365         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14366         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14367
14368         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14369
14370         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14371         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14372         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14373         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14374
14375         * math/bits/math-finite.h: Add ldexp support.
14376
14377 2012-01-10  Marek Polacek  <polacek@redhat.com>
14378
14379         * locale/programs/localedef.h (show_archive_content): Add noreturn
14380         attribute.
14381
14382 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14383
14384         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14385
14386 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14387
14388         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14389
14390         * io/Makefile (headers): Add bits/poll2.h.
14391
14392 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14393
14394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14395         typo #include statement.
14396
14397 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14398
14399         * include/sys/cdefs.h: Define __attribute_alloc_size.
14400         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14401         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14402         * elf/pldd.c: Likewise.
14403         * iconv/iconv_charmap.c: Likewise.
14404         * iconv/iconvconfig.c: Likewise.
14405         * iconv/strtab.c: Likewise.
14406         * locale/programs/locale.c: Likewise.
14407         * locale/programs/localedef.h: Likewise.
14408         * locale/programs/simple-hash.c: Likewise.
14409         * nscd/nscd.h: Likewise.
14410         * nss/makedb.c: Likewise.
14411         * sysdeps/generic/ldconfig.h: Likewise.
14412         * locale/programs/localedef.c: Remove xmalloc prototype.
14413         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14414
14415 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14416
14417         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14418         appropriate.
14419
14420 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14421
14422         * math/Makefile (tests): Add tst-CMPLX.
14423         * math/tst-CMPLX.c: New file.
14424
14425         * math/complex.h (CMPLXL): Fix typo.
14426
14427         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14428         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14429         GLIBC_2.16.
14430         * debug/tst-chk1.c: Add poll and ppoll tests.
14431         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14432         * include/sys/poll.h: Add hidden proto for ppoll.
14433         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14434         * sysdeps/mach/hurd/ppoll.c: Likewise.
14435         * io/ppoll.c: Likewise.
14436         * debug/poll_chk.c: New file.
14437         * debug/ppoll_chk.c: New file.
14438         * include/bits/poll2.h: New file.
14439         * io/bits/poll2.h: New file.
14440
14441         [BZ #1350]
14442         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14443
14444         * configure.in: static is always set to yes.  Remove.
14445         * config.make.in: Don't set build-static.
14446         * Makeconfig: Remove use of build-static.
14447         * dlfcn/Makefile: Likewise.
14448         * elf/Makefile: Likewise.
14449         * math/Makefile: Likewise.
14450         * misc/Makefile: Likewise.
14451         * nptl/Makefile: Likewise.
14452         * sysdeps/mach/hurd/Makefile: Likewise.
14453
14454         * configure.in: PWD_P is not used anymore.
14455         * config.make.in: Remove PWD_P entry.
14456
14457         * configure.in: Remove last remnants of RANLIB.
14458         No need to check for signed size_t anymore.
14459         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14460         and IA-64.
14461         Remove __builtin_expect test because we require at least gcc 3.4.
14462         * aclocal.m4: Likewise.
14463
14464         * wcsmbs/mbrtoc16.c: Implement using towc function.
14465         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14466         * wcsmbs/wcsmbsload.c: Likewise.
14467         * iconv/gconv_simple.c: Likewise.
14468         * iconv/gconv_int.h: Likewise.
14469         * iconv/gconv_builtin.h: Likewise.
14470         * iconv/iconv_prog.c: Remove CHAR16 handling.
14471
14472         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14473
14474         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14475
14476         * configure.in: Remove --with-elf and --enable-bounded options.
14477         Dont set base_machine for ia64.  More non-ELF conditions removed.
14478         Remove testing and setting of leading underscore information.
14479         * config.make.in (build-bounded): Set to no.
14480         * config.h.in: Remove NO_UNDERSCORES entry.
14481         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14482         them.
14483         * csu/start.c: Remove !NO_UNDERSCORE code.
14484         * locale/localeinfo.h: Likewise.
14485         * sysdeps/generic/machine-gmon.h: Likewise.
14486         * sysdeps/generic/sysdep.h: Likewise.
14487         * sysdeps/i386/sysdep.h: Likewise.
14488         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14489         * sysdeps/mach/sysdep.h: Likewise.
14490         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14491         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14492         * sysdeps/sh/sysdep.h: Likewise.
14493         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14494         * sysdeps/unix/i386/sysdep.S: Likewise.
14495         * sysdeps/unix/sparc/start.c: Likewise.
14496         * sysdeps/unix/sparc/sysdep.S: Likewise.
14497         * sysdeps/unix/sparc/sysdep.h: Likewise.
14498         * sysdeps/unix/start.c: Likewise.
14499         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14500         * sysdeps/x86_64/sysdep.h: Likewise.
14501
14502 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14503
14504         [BZ #13553]
14505         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14506         for non-gcc.
14507         * argp/argp-fmtstream.h: Use const instead __const.
14508         * argp/argp.h: Likewise.
14509         * assert/assert.h: Likewise.
14510         * bits/fenv.h: Likewise.
14511         * bits/sched.h: Likewise.
14512         * bits/sigset.h: Likewise.
14513         * bits/sigthread.h: Likewise.
14514         * catgets/nl_types.h: Likewise.
14515         * conform/data/pthread.h-data: Likewise.
14516         * crypt/crypt-private.h: Likewise.
14517         * crypt/crypt.h: Likewise.
14518         * crypt/crypt_util.c: Likewise.
14519         * ctype/ctype.h: Likewise.
14520         * debug/execinfo.h: Likewise.
14521         * debug/mbsnrtowcs_chk.c: Likewise.
14522         * debug/mbsrtowcs_chk.c: Likewise.
14523         * debug/wcsnrtombs_chk.c: Likewise.
14524         * debug/wcsrtombs_chk.c: Likewise.
14525         * debug/wcstombs_chk.c: Likewise.
14526         * dirent/dirent.h: Likewise.
14527         * dlfcn/dlfcn.h: Likewise.
14528         * elf/neededtest4.c: Likewise.
14529         * grp/grp.h: Likewise.
14530         * gshadow/gshadow.h: Likewise.
14531         * iconv/gconv.h: Likewise.
14532         * iconv/gconv_int.h: Likewise.
14533         * iconv/gconv_simple.c: Likewise.
14534         * iconv/iconv.h: Likewise.
14535         * iconv/loop.c: Likewise.
14536         * iconv/skeleton.c: Likewise.
14537         * include/aio.h: Likewise.
14538         * include/aliases.h: Likewise.
14539         * include/argz.h: Likewise.
14540         * include/arpa/inet.h: Likewise.
14541         * include/assert.h: Likewise.
14542         * include/dirent.h: Likewise.
14543         * include/dlfcn.h: Likewise.
14544         * include/execinfo.h: Likewise.
14545         * include/fcntl.h: Likewise.
14546         * include/fenv.h: Likewise.
14547         * include/glob.h: Likewise.
14548         * include/grp.h: Likewise.
14549         * include/libintl.h: Likewise.
14550         * include/mntent.h: Likewise.
14551         * include/netdb.h: Likewise.
14552         * include/pwd.h: Likewise.
14553         * include/rpc/netdb.h: Likewise.
14554         * include/sched.h: Likewise.
14555         * include/search.h: Likewise.
14556         * include/shadow.h: Likewise.
14557         * include/signal.h: Likewise.
14558         * include/stdio.h: Likewise.
14559         * include/stdlib.h: Likewise.
14560         * include/string.h: Likewise.
14561         * include/sys/socket.h: Likewise.
14562         * include/sys/stat.h: Likewise.
14563         * include/sys/statfs.h: Likewise.
14564         * include/sys/statvfs.h: Likewise.
14565         * include/sys/syslog.h: Likewise.
14566         * include/sys/time.h: Likewise.
14567         * include/sys/uio.h: Likewise.
14568         * include/time.h: Likewise.
14569         * include/unistd.h: Likewise.
14570         * include/utmp.h: Likewise.
14571         * include/wchar.h: Likewise.
14572         * include/wctype.h: Likewise.
14573         * inet/aliases.h: Likewise.
14574         * inet/arpa/inet.h: Likewise.
14575         * inet/netinet/ether.h: Likewise.
14576         * inet/netinet/in.h: Likewise.
14577         * intl/libintl.h: Likewise.
14578         * io/bits/fcntl2.h: Likewise.
14579         * io/fcntl.h: Likewise.
14580         * io/ftw.h: Likewise.
14581         * io/sys/poll.h: Likewise.
14582         * io/sys/stat.h: Likewise.
14583         * io/sys/statfs.h: Likewise.
14584         * io/sys/statvfs.h: Likewise.
14585         * io/utime.h: Likewise.
14586         * libio/bits/stdio.h: Likewise.
14587         * libio/bits/stdio2.h: Likewise.
14588         * libio/libio.h: Likewise.
14589         * libio/libioP.h: Likewise.
14590         * libio/stdio.h: Likewise.
14591         * locale/lc-ctype.c: Likewise.
14592         * locale/locale.h: Likewise.
14593         * login/utmp.h: Likewise.
14594         * malloc/arena.c: Likewise.
14595         * malloc/malloc.c: Likewise.
14596         * malloc/malloc.h: Likewise.
14597         * malloc/mcheck.c: Likewise.
14598         * malloc/mtrace.c: Likewise.
14599         * math/bits/mathcalls.h: Likewise.
14600         * math/fenv.h: Likewise.
14601         * math/math_private.h: Likewise.
14602         * misc/bits/error.h: Likewise.
14603         * misc/bits/syslog.h: Likewise.
14604         * misc/err.h: Likewise.
14605         * misc/error.h: Likewise.
14606         * misc/fstab.h: Likewise.
14607         * misc/mntent.h: Likewise.
14608         * misc/regexp.h: Likewise.
14609         * misc/search.h: Likewise.
14610         * misc/sgtty.h: Likewise.
14611         * misc/sys/mman.h: Likewise.
14612         * misc/sys/syslog.h: Likewise.
14613         * misc/sys/uio.h: Likewise.
14614         * misc/sys/xattr.h: Likewise.
14615         * misc/ttyent.h: Likewise.
14616         * nis/rpcsvc/ypclnt.h: Likewise.
14617         * nss/nss.h: Likewise.
14618         * posix/bits/unistd.h: Likewise.
14619         * posix/fnmatch.h: Likewise.
14620         * posix/glob.h: Likewise.
14621         * posix/sched.h: Likewise.
14622         * posix/spawn.h: Likewise.
14623         * posix/sys/wait.h: Likewise.
14624         * posix/unistd.h: Likewise.
14625         * posix/wordexp.h: Likewise.
14626         * pwd/pwd.h: Likewise.
14627         * resolv/netdb.h: Likewise.
14628         * resource/sys/resource.h: Likewise.
14629         * rt/aio.h: Likewise.
14630         * rt/bits/mqueue2.h: Likewise.
14631         * rt/mqueue.h: Likewise.
14632         * shadow/shadow.h: Likewise.
14633         * signal/signal.h: Likewise.
14634         * socket/send.c: Likewise.
14635         * socket/sendto.c: Likewise.
14636         * socket/sys/socket.h: Likewise.
14637         * stdio-common/printf.h: Likewise.
14638         * stdlib/bits/stdlib.h: Likewise.
14639         * stdlib/fmtmsg.h: Likewise.
14640         * stdlib/monetary.h: Likewise.
14641         * stdlib/stdlib.h: Likewise.
14642         * stdlib/ucontext.h: Likewise.
14643         * streams/stropts.h: Likewise.
14644         * string/argz.h: Likewise.
14645         * string/bits/string2.h: Likewise.
14646         * string/string.h: Likewise.
14647         * string/strings.h: Likewise.
14648         * sunrpc/rpc/auth.h: Likewise.
14649         * sunrpc/rpc/auth_des.h: Likewise.
14650         * sunrpc/rpc/clnt.h: Likewise.
14651         * sunrpc/rpc/netdb.h: Likewise.
14652         * sunrpc/rpc/pmap_clnt.h: Likewise.
14653         * sunrpc/rpc/xdr.h: Likewise.
14654         * sysdeps/generic/inttypes.h: Likewise.
14655         * sysdeps/generic/net/if.h: Likewise.
14656         * sysdeps/generic/sys/swap.h: Likewise.
14657         * sysdeps/gnu/net/if.h: Likewise.
14658         * sysdeps/gnu/utmpx.h: Likewise.
14659         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14660         * sysdeps/i386/i486/bits/string.h: Likewise.
14661         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14662         * sysdeps/s390/bits/string.h: Likewise.
14663         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14664         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14665         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14666         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14667         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14668         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14669         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14670         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14671         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14672         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14673         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14674         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14675         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14676         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14677         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14678         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14679         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14680         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14681         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14682         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14683         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14684         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14685         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14686         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14687         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14688         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14689         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14690         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14691         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14692         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14693         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14694         * sysvipc/sys/ipc.h: Likewise.
14695         * sysvipc/sys/msg.h: Likewise.
14696         * sysvipc/sys/sem.h: Likewise.
14697         * sysvipc/sys/shm.h: Likewise.
14698         * termios/termios.h: Likewise.
14699         * time/sys/time.h: Likewise.
14700         * time/time.h: Likewise.
14701         * wcsmbs/bits/wchar2.h: Likewise.
14702         * wcsmbs/uchar.h: Likewise.
14703         * wcsmbs/wchar.h: Likewise.
14704         * wctype/wctype.h: Likewise.
14705
14706         [BZ #13551]
14707         * Makeconfig: Remove all but ELF support including AIX support.
14708         * Makerules: Likewise.
14709         * config.h.in: Likewise.
14710         * config.make.in: Likewise.
14711         * configure: Likewise.
14712         * configure.in: Likewise.
14713         * csu/Makefile: Likewise.
14714         * csu/version.c: Likewise.
14715         * debug/Makefile: Likewise.
14716         * dlfcn/Makefile: Likewise.
14717         * elf/Makefile: Likewise.
14718         * extra-lib.mk: Likewise.
14719         * iconv/Makefile: Likewise.
14720         * include/libc-symbols.h: Likewise.
14721         * include/shlib-compat.h: Likewise.
14722         * resolv/Makefile: Likewise.
14723         * resolv/res_libc.c: Likewise.
14724         * rt/Makefile: Likewise.
14725         * sysdeps/i386/asm-syntax.h: Likewise.
14726         * sysdeps/i386/sysdep.h: Likewise.
14727         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14728         * sysdeps/mach/sysdep.h: Likewise.
14729         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14730         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14731         * sysdeps/s390/asm-syntax.h: Likewise.
14732         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14733         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14734         * sysdeps/sh/sysdep.h: Likewise.
14735         * sysdeps/unix/sparc/sysdep.h: Likewise.
14736         * sysdeps/wordsize-32/divdi3.c: Likewise.
14737         * sysdeps/x86_64/sysdep.h: Likewise.
14738
14739         * argp/Versions: Remove _argp_unlock_xxx.
14740
14741         [BZ #13559]
14742         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14743         * abilist/libBrokenLocale.abilist: Likewise.
14744         * abilist/libanl.abilist: Likewise.
14745         * abilist/libc.abilist: Likewise.
14746         * abilist/libcrypt.abilist: Likewise.
14747         * abilist/libdl.abilist: Likewise.
14748         * abilist/libm.abilist: Likewise.
14749         * abilist/libnsl.abilist: Likewise.
14750         * abilist/libpthread.abilist: Likewise.
14751         * abilist/libresolv.abilist: Likewise.
14752         * abilist/librt.abilist: Likewise.
14753         * abilist/libthread_db.abilist: Likewise.
14754         * abilist/libutil.abilist: Likewise.
14755         * abilist/libnss_db.abilist: New file.
14756
14757         * scripts/abilist.awk: Add support for indirect functions.
14758
14759         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14760
14761         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14762
14763         * shlib-versions: Remove entries for ports architectures.
14764
14765         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14766         files in ports.
14767         * elf/stackguard-macros.h: Remove support for IA-64.
14768         * elf/tst-auditmod1.c: Likewise.
14769         * sysdeps/generic/ldsodefs.h: Likewise.
14770
14771         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14772         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14773         configure files.
14774
14775         [BZ #13552]
14776         * configure.in: Remove --enable-omitfp support.
14777         * FAQ.in: Adjust.
14778         * config.make.in: Likewise.
14779         * Makeconfig: Likewise.
14780         * manual/install.texi: Likewise.
14781
14782         In case anyone cares, the IA-64 architecture could move to ports.
14783         * sysdeps/ia64/*: Removed.
14784         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14785         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14786
14787         [BZ #13555]
14788         * configure.in: Remove entries for unsupported architectures.
14789
14790         [BZ #13533]
14791         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14792         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14793         routines.
14794         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14795         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14796         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14797         fall back to using wcrtomb.
14798         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14799         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14800         renaming.
14801         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14802         * wcsmbs/tst-c16c32-1.c: New file.
14803
14804         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14805         local variable.
14806
14807         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14808
14809         * elf/tst-unique3.cc: Add explicit declaration of gets.
14810         * elf/tst-unique3lib.cc: Likewise.
14811         * elf/tst-unique3lib2.cc: Likewise.
14812         * elf/tst-unique4.cc: Likewise.
14813
14814         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14815
14816 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14817
14818         [BZ #13566]
14819         * assert/assert.h (static_assert): Don't define for C++.
14820         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14821         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14822
14823 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14824
14825         * iconv/loop.c (single loop): Fix assertion in storing of
14826         remaining bytes.
14827
14828         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14829
14830 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14831
14832         * posix/getconf.c: Update copyright year.
14833         * nss/getent.c: Likewise.
14834         * nss/makedb.c: Likewise.
14835         * iconv/iconvconfig.c: Likewise.
14836         * iconv/iconv_prog.c: Likewise.
14837         * elf/ldconfig.c: Likewise.
14838         * elf/pldd.c: Likewise.
14839         * elf/sotruss.ksh: Likewise.
14840         * catgets/gencat.c: Likewise.
14841         * csu/version.c: Likewise.
14842         * elf/ldd.bash.in: Likewise.
14843         * elf/sprof.c (print_version): Likewise.
14844         * locale/programs/locale.c: Likewise.
14845         * locale/programs/localedef.c: Likewise.
14846         * login/programs/pt_chown.c: Likewise.
14847         * nscd/nscd.c (print_version): Likewise.
14848         * debug/xtrace.sh: Likewise.
14849         * malloc/memusage.sh: Likewise.
14850         * malloc/mtrace.pl: Likewise.
14851         * debug/catchsegv.sh: Likewise.
14852
14853 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14854
14855         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14856         pure attribute.
14857
14858 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14859
14860         [BZ #13533]
14861         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14862         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14863         transformations.
14864         * iconv/gconv_int.h: Likewise.
14865         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14866         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14867         from libc for GLIBC_2.16.
14868         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14869         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14870         * wcsmbs/uchar.h: Really define mbstate_t.
14871         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14872         * wcsmbs/c16rtomb.c: New file.
14873         * wcsmbs/mbrtoc16.c: New file.
14874         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14875         for C/POSIX locale.
14876         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14877         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14878
14879         * wcsmbs/wchar.h: Add missing __restrict.
14880
14881 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14882
14883         [BZ #13532]
14884         * time/Makefile (routines): Add timespec_get.
14885         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14886         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14887         timespec for ISO C11.
14888         * time/timespec_get.c: New file.
14889         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14890         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14891
14892         [BZ #13531]
14893         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14894         * stdlib/stdlib.h: Declare aligned_alloc.
14895         * Versions.def: Add GLIBC_2.16 for libc.
14896         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14897
14898         [BZ 13527]
14899         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14900         ISO C11.
14901
14902         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14903         code.
14904
14905         [BZ #13528]
14906         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14907
14908         [BZ #13529]
14909         * assert/assert.h (static_assert): Define.
14910
14911         * version.h: Update for 2.16 development version.
14912
14913         [BZ #13526]
14914         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14915         _ISOC11_SOURCE.
14916
14917         * version.h (RELEASE): Bump for 2.15 release.
14918         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14919
14920         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14921         Patch by Marek Polacek <mpolacek@redhat.com>.
14922
14923         * bits/byteswap.h: Protect long long constants with __extension__.
14924         * sysdeps/i386/bits/byteswap.h: Likewise.
14925         * sysdeps/ia64/bits/byteswap.h: Likewise.
14926         * sysdeps/s390/bits/byteswap.h: Likewise.
14927         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14928
14929 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14930
14931         [BZ #13540]
14932         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14933         destination buffer.
14934         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14935
14936 2011-12-23  Marek Polacek  <polacek@redhat.com>
14937
14938         * elf/dl-addr.c (determine_info): Add inline keyword.
14939         * elf/tst-auditmod4b.c (check_avx): Likewise.
14940         * elf/tst-auditmod6b.c (check_avx): Likewise.
14941         * elf/tst-auditmod6c.c (check_avx): Likewise.
14942         * elf/tst-auditmod7b.c (check_avx): Likewise.
14943
14944 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14945
14946         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14947         !__SSE_MATH__.
14948
14949 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14950
14951         [BZ #13540]
14952         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14953         processing for last bytes.
14954
14955 2011-08-06  Bruno Haible  <bruno@clisp.org>
14956
14957         [BZ #13061]
14958         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14959         U+0385, not to U+1FEE.
14960
14961         [BZ #13062]
14962         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14963         entry for U+00A5 U+0301.
14964
14965 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14966
14967         [BZ #13166]
14968         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14969         buffer for the output is too small.
14970
14971         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14972         optimization.
14973
14974         [BZ #13185]
14975         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14976         SSE flags if possible.
14977
14978 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14979
14980         [BZ #13540]
14981         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14982         processing for last bytes.
14983
14984 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14985
14986         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14987         (syscall-list-default-options, syscall-list-default-condition)
14988         (syscall-list-includes): Define.
14989         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14990         list of ABIs and options and #if conditions for each ABI.  Do not
14991         handle common syscalls between ABIs specially.
14992         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14993         Remove.
14994         (syscall-list-variants, syscall-list-32bit-options)
14995         (syscall-list-32bit-condition, syscall-list-64bit-options)
14996         (syscall-list-64bit-condition): Define.
14997         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14998         (syscall-list-variants, syscall-list-32bit-options)
14999         (syscall-list-32bit-condition, syscall-list-64bit-options)
15000         (syscall-list-64bit-condition): Define.
15001         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15002         Remove.
15003         (syscall-list-variants, syscall-list-32bit-options)
15004         (syscall-list-32bit-condition, syscall-list-64bit-options)
15005         (syscall-list-64bit-condition): Define.
15006         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15007         Remove.
15008         (syscall-list-variants, syscall-list-32bit-options)
15009         (syscall-list-32bit-condition, syscall-list-64bit-options)
15010         (syscall-list-64bit-condition): Define.
15011
15012 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15013
15014         * locale/iso-639.def: Add brx entry.
15015
15016         [BZ #13328]
15017         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15018         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15019
15020         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15021         __feraiseexcept_renamed.
15022
15023 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15024
15025         [BZ #13538]
15026         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15027         EPOLLET with unsigned values.
15028         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15029         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15030
15031         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15032         to large cancellation.
15033         * math/s_cacoshf.c: Likewise.
15034         * math/s_cacoshl.c: Likewise.
15035
15036 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15037
15038         [BZ #13305]
15039         [BZ #12786]
15040         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15041         * math/s_cacoshf.c: Likewise.
15042         * math/s_cacoshl.c: Likewise.
15043
15044 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15045
15046         [BZ #13439]
15047         * iconv/gconv.h: Define __GCONV_SWAP.
15048         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15049         * iconvdata/utf-16.c: Likewise.
15050         * iconvdata/utf-32.c: Likewise.
15051
15052 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15053
15054         [BZ #13524]
15055         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15056         numerator after shifting it by one limb.
15057
15058 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15059
15060         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15061         under [__USE_EXTERN_INLINES].
15062
15063 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15064
15065         [BZ #13446]
15066         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15067
15068 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15069
15070         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15071         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15072         optimized code.
15073         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15074         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15075         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15076         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15077         for strncasecmp/strncasecmp_l compilation.
15078         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15079         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15080
15081 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15082
15083         [BZ #13484]
15084         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15085         of __asm__.
15086
15087 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15088
15089         [BZ #13506]
15090         * time/tzfile.c (__tzfile_read): Check values from file header.
15091
15092 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15093
15094         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15095         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15096         * powerpc/powerpc32/dl-start.S: Likewise.
15097         * powerpc/powerpc32/elf/start.S: Likewise.
15098         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15099         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15100         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15101         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15102         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15103         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15104         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15105         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15106         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15107         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15108         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15109         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15110         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15111         * powerpc/powerpc32/memset.S: Likewise.
15112         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15113         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15114         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15115         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15116         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15117         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15118         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15119         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15120         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15121         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15122         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15123         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15124         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15125
15126 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15127
15128         * math/libm-test.inc: Added more nearbyint tests.
15129         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15130         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15131         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15132         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15133
15134 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15135
15136         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15137         FD_CLOEXEC.
15138
15139 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15140
15141         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15142         Add wcscpy-ssse3 wcscpy-c.
15143         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15144         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15145         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15146         * sysdeps/x86_64/wcschr.S: New file.
15147         * sysdeps/x86_64/wcsrchr.S: New file.
15148         * string/test-strcmp.c: Remove checking of wcscmp function for
15149         wrong alignments.
15150         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15151         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15152         wcsrchr-sse2 wcsrchr-c.
15153         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15154         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15155         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15156         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15157         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15158         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15159         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15160         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15161         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15162         * wcsmbc/wcschr.c (WCSCHR): New macro.
15163
15164 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15165
15166         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15167         * wcsmbs/test-wcsrchr.c: New file.
15168         * string/test-strrchr.c: Add wcsrchr support.
15169         (WIDE): New macro.
15170         * wcsmbs/test-wcscpy.c: New file.
15171         * string/test-strcpy.c: Add wcscpy support.
15172         (WIDE): New macro.
15173
15174 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15175
15176         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15177         the inner loop.
15178
15179 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15180
15181         [BZ #13472]
15182         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15183
15184 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15185
15186         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15187         Minor optimizations.
15188
15189         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15190         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15191         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15192
15193 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15194
15195         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15196         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15197         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15198         for gcc to avoid warnings.
15199         * inet/Makefile (tests): Add tst-checks.
15200         * inet/tst-checks.c: New file.
15201
15202         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15203         warning.
15204
15205         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15206         __wmemcmp_sse2.
15207
15208         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15209         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15210
15211         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15212
15213 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15214
15215         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15216         problem.
15217
15218         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15219
15220 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15221
15222         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15223         conditional on GCC version.
15224         (__arch_compare_and_exchange_val_8_acq)
15225         (__arch_compare_and_exchange_val_16_acq)
15226         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15227         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15228         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15229
15230 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15231
15232         * sysdeps/sh/backtrace.c: New file.
15233
15234 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15235
15236         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15237         parenthesis.
15238
15239 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15240
15241         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15242         falling back to utime.
15243
15244 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15245
15246         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15247         expectations for float.
15248
15249 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15250
15251         * locale/weight.h (findidx): Add parameter len.
15252         * locale/weightwc.h (findidx): Likewise.
15253         * posix/fnmatch_loop.c (FCT): Adjust caller.
15254         * posix/regcomp.c (build_equiv_class): Likewise.
15255         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15256         * posix/regexec.c (check_node_accept_bytes): Likewise.
15257         * string/strcoll_l.c (STRCOLL): Likewise.
15258         * string/strxfrm_l.c (STRXFRM): Likewise.
15259
15260 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15261
15262         * Makefile.in: Remove CVSOPT handling.
15263         * configure.in: Remove use of AC_REVISION.
15264         * iconvdata/Makefile (distribute): No need to filter out CVS.
15265         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15266         handling.
15267
15268 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15269
15270         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15271         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15272         [USE_AS_STRNCASECMP_L]: Likewise.
15273         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15274         NO_TLS_DIRECT_SEG_REFS.
15275         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15276         Fix argument offsets for non-PIC.
15277         [USE_AS_STRNCASECMP_L]: Likewise.
15278         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15279         NO_TLS_DIRECT_SEG_REFS.
15280
15281 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15282
15283         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15284         O_CLOEXEC.
15285         * locale/loadlocale.c (_nl_load_locale): Likewise.
15286
15287 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15288
15289         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15290         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15291         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15292         (SYSCALL_GETTIME): Set errno on error.
15293
15294         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15295         count references to noai6ai_cached.
15296
15297 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15298
15299         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15300
15301         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15302         FD_CLOEXEC for /proc/self/maps.
15303
15304         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15305         FD_CLOEXEC for /proc/meminfo.
15306
15307         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15308         gai.conf.
15309
15310         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15311         FD_CLOEXEC for given file.
15312
15313         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15314
15315         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15316         FD_CLOEXEC for /etc/hosts.
15317         (_gethtent): Likewise.
15318
15319         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15320
15321         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15322         cancellation and set FD_CLOEXEC for /etc/netgroup.
15323
15324         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15325         reading /etc/publickey.
15326
15327         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15328         allow cancellation when reading /etc/group.
15329
15330         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15331         cancellation.
15332         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15333
15334         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15335         when using data file.
15336
15337         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15338
15339         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15340         (write_nis_obj): Use "c" and "e" in fopen.
15341
15342         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15343
15344         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15345
15346         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15347
15348         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15349
15350         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15351         locale.alias.
15352
15353         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15354
15355         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15356
15357         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15358
15359         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15360         file parsing and set FD_CLOEXEC.
15361
15362 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15363
15364         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15365
15366 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15367
15368         * malloc/arena.c (arena_get2): Don't call reused_arena when
15369         _int_new_arena failed.
15370
15371 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15372
15373         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15374         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15375         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15376         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15377         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15378         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15379         to compile strcasecmp and strncasecmp.
15380         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15381         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15382
15383         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15384
15385 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15386
15387         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15388         locale-defines.sym to gen-as-const-headers.
15389         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15390         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15391         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15392         to compile strcasecmp and strncasecmp.
15393         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15394         strcasecmp_l and strncasecmp_l.
15395         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15396         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15397         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15398         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15399         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15400         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15401         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15402         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15403         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15404         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15405         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15406
15407 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15408
15409         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15410         result of SYSDEP_GETTIME_CPU to retval.
15411         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15412         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15413
15414         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15415         variable.
15416
15417         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15418         mantissa words.
15419         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15420
15421         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15422         from unused variable.
15423
15424         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15425         DWARF definitions.
15426         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15427         for assembling.
15428
15429         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15430         over namespaces.
15431
15432         * sunrpc/rpc_prot.c (rejected): Fix case value.
15433
15434         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15435         unsigned long long int to avoid warnings in shift.
15436
15437         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15438         of use of trans.
15439         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15440         variable tmp.
15441
15442         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15443         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15444         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15445
15446         * nis/nis_table.c (nis_list): Use variable of correct type for
15447         result of __follow_path call.
15448
15449 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15450
15451         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15452         of math functions ceil, trunc, floor, round, and sqrt, when
15453         avaliable on the platform.
15454         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15455         name clash.
15456         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15457         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15458         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15459
15460 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15461
15462         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15463         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15464
15465 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15466
15467         * include/unistd.h: Fix __readlink return type.
15468         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15469
15470 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15471
15472         * stdlib/ucontext.h: Undo last change for makecontext.
15473
15474 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15475
15476         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15477
15478         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15479         * setjmp/setjmp.h: Mark functions as non-leaf.
15480         * setjmp/bits/setjmp2.h: Likewise.
15481         * stdlib/ucontext.h: Likewise.
15482
15483 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15484
15485         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15486         (reused_arena): Don't check arena limit.
15487         (arena_get2): Atomically check arena limit.
15488
15489 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15490
15491         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15492         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15493
15494         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15495         instructions.
15496
15497 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15498
15499         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15500         handler when locking.
15501
15502         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15503         Fix size of allocated buffer.
15504
15505 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15506
15507         [BZ #10103]
15508         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15509         declarations for long double functions.
15510         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15511
15512         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15513
15514 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15515
15516         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15517         installed.
15518
15519         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15520         is disabled.
15521
15522 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15523
15524         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15525
15526 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15527
15528         * include/alloca.h (stackinfo_alloca_round): Define.
15529         (extend_alloca): Use it.
15530         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15531         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15532         here.
15533
15534         * scripts/check-local-headers.sh: Ignore libaudit.h.
15535
15536         * nscd/Makefile (extra-objs): Make recursively expanded.
15537
15538 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15539
15540         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15541         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15542
15543         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15544         * posix/tst-rfc3484-2.c: Likewise.
15545         * posix/tst-rfc3484-3.c: Likewise.
15546
15547         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15548         process_vm_writev.
15549         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15550         process_vm_writev.
15551         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15552         process_vm_writev from libc using GLIBC_2.15 version.
15553
15554         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15555
15556 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15557
15558         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15559         stack usage.
15560
15561 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15562
15563         [BZ #13367]
15564         * nss/getent.c (initgroups_keys): Show error message in case no group
15565         names are given.
15566
15567         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15568         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15569         __bump_nl_timestamp.
15570         * nscd/connections (nscd_init): When host database is served open
15571         netlink socket and request notification about configuration changes.
15572         (main_loop_poll): Track netlink file descriptor and bump timestamp
15573         in case data becomes available.
15574         (main_loop_epoll): Likewise.
15575         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15576         (database_pers_head): Add extra_data fileds.
15577         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15578         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15579         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15580         Adjust caller.
15581         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15582         in6ai data, call __free_in6ai.
15583         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15584         Add -DHAVE_NETLINK.
15585         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15586         interface information.  Reuse previous data if netlink timestamp
15587         is not changed.
15588         (__bump_nl_timestamp): New function.
15589         (__free_in6ai): New function.
15590
15591 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15592
15593         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15594         close_not_cancel_no_status here.
15595         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15596
15597 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15598
15599         [BZ #13276]
15600         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15601         return value.
15602
15603         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15604         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15605         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15606
15607 2011-07-03  Andreas Jaeger  <aj@suse.de>
15608
15609         [BZ #10709]
15610         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15611         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15612         * math/libm-test.inc (sin_test): Add test case.
15613
15614 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15615
15616         [BZ #13337]
15617         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15618         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15619
15620         * elf/chroot_canon.c (chroot_canon): Cleanups.
15621
15622         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15623
15624         [BZ #13335]
15625         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15626         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15627
15628         * string/test-strchr.c: Make usable for strchrnul testing.
15629         * string/test-strchrnul.c: New file.
15630         * string/Makefile (strop-tests): Add strchrnul.
15631
15632         * po/it.po: Update from translation team.
15633         * po/es.po: Likewise.
15634
15635 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15636
15637         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15638         the three constants needed as parameters.  Drop the others.
15639         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15640         __m128i_strloadu_tolower.
15641         Create and initialize variable zero and use it in all the places
15642         where _mm_setzero_si128 was used.
15643
15644         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15645         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15646         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15647         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15648         anymore.
15649         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15650         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15651         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15652         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15653         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15654         __mpranred, __mptan.
15655         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15656         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15657         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15658         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15659         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15660         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15661         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15662         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15663         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15664
15665 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15666
15667         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15668         redefine if SHARED.
15669         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15670
15671         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15672         wide char related routines to wcsmbs subdir.
15673
15674 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15675
15676         [BZ #13344]
15677         * misc/sys/cdefs.h (__THROWNL): Define.
15678         * posix/unistd.h: Use __THREADNL instead of __THREAD
15679         for memory synchronization functions.
15680
15681 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15682
15683         [BZ #13349]
15684         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15685         doesn't exist.
15686         * manual/stdio.texi (Obstack Streams): Node removed.
15687
15688 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15689
15690         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15691         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15692         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15693
15694         * math/math_private.h (math_force_eval): Allow non-addressable
15695         arguments.
15696         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15697
15698 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15699
15700         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15701         file is not needed.
15702
15703         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15704         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15705         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15706         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15707         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15708         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15709         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15710         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15711         Add AVX variants.
15712         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15713         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15714         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15715         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15716         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15717         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15718         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15719         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15720         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15721         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15722         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15723         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15724         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15725         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15726         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15727         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15728         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15729         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15730         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15731
15732         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15733         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15734
15735         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15736         place.  Use VEX encoding when compiling for AVX.
15737
15738 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15739
15740         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15741         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15742
15743         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15744
15745 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15746
15747         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15748         useless if() expression.
15749         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15750         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15751         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15752         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15753         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15754         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15755         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15756         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15757         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15758         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15759         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15760         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15761         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15762         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15763         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15764         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15765         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15766         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15767         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15768
15769         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15770
15771 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15772
15773         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15774         condition.
15775         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15776
15777 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15778
15779         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15780         .text section.  Avoid duplicate constants.
15781         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15782         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15783         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15784         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15785         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15786         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15787         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15788         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15789         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15790         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15791         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15792         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15793         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15794         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15795         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15796         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15797         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15798         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15799         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15800         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15801         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15802         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15803         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15804         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15805         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15806         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15807         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15808         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15809         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15810         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15811         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15812         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15813         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15814         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15815         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15816         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15817         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15818         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15819         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15820         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15821         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15822         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15823         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15824         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15825         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15826
15827 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15828
15829         * sysdeps/x86_64/dla.h: Move to ...
15830         * sysdeps/x86_64/fpu/dla.h: ...here.
15831         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15832         situations.  Use __builtin_fma only for gcc 4.6 and up.
15833
15834         * config.make.in: Add have-mfma4 entry.
15835         * configure.in: Substitute libc_cv_cc_fma4.
15836         * math/Makefile (dbl-only-routines): Add sincostab.
15837         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15838         Use __sincostab not sincos.
15839         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15840         name is a macro.
15841         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15842         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15843         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15844         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15845         using __copysign.
15846         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15847         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15848         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15849         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15850         and __inv.
15851         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15852         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15853         __copysign.
15854         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15855         define aliases when function name is a macro.
15856         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15857         sysdeps/ieee754/dbl-64/sincos.tbl.
15858         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15859         fma4-enabled routines.
15860         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15861         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15862         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15863         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15864         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15865         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15866         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15867         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15868         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15869         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15870         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15871         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15872         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15873         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15874         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15875         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15876         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15877         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15878         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15879         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15880         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15881         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15882         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15883         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15884         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15885         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15886         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15887         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15888         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15889         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15890
15891         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15892         rename.
15893         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15894         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15895         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15896         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15897         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15898         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15899         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15900         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15901
15902 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15903
15904         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15905
15906 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15907
15908         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15909
15910         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15911         prediction.
15912         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15913
15914         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15915         Remove unused variable magic_bits.
15916         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15917
15918         * string/strnlen.c: Define and use STRNLEN macro.
15919         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15920         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15921         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15922         * wcsmbs/wcslen.c: Define and use WCSLEN.
15923         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15924         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15925         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15926         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15927         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15928         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15929         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15930
15931 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15932
15933         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15934         strnlen-sse2-no-bsf.
15935         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15936         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15937         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15938         Add strnlen support.
15939         (USE_AS_STRNLEN): New macro.
15940         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15941         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15942         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15943         * sysdeps/x86_64/wcslen.S: New file.
15944
15945 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15946
15947         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15948         XMM-moves are used for copying on small sizes.
15949
15950 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15951
15952         * wcsmbs/Makefile (strop-tests): Add wcschr.
15953         * wcsmbs/test-wcschr.c: New file.
15954         * string/test-strchr.c: Update.
15955         Add wcschr support.
15956         (WIDE): New macro.
15957
15958 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15959
15960         * wcsmbs/Makefile (strop-tests): Add wcslen.
15961         * wcsmbs/test-wcslen.c: New file.
15962         * string/test-strlen.c: Update.
15963         Add wcslen support.
15964         (WIDE): New macro.
15965
15966 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15967
15968         * po/it.po: Update from translation team.
15969
15970 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15971
15972         * sysdeps/x86_64/wcscmp.S: Update.
15973         Fix wrong comparison semantics.
15974         wcscmp shall use signed comparison not unsigned.
15975         Don't use substraction to avoid overflow bug.
15976         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15977         * wcsmbc/wcscmp.c: Likewise.
15978         * string/test-strcmp.c: Likewise.
15979         Add new tests to check cases with negative values.
15980
15981 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15982
15983         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15984         * sysdeps/x86_64/dla.h: ...here.  New file.
15985         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15986         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15987         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15988         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15989         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15990         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15991         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15992         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15993         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15994
15995 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15996
15997         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15998         __ynl_finite aliases.
15999
16000 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16001
16002         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16003
16004         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16005         define DLA_FMA.
16006         [DLA_FMA] (EMULV): Use DLA_FMA.
16007         [DLA_FMA] (MUL12): Use EMULV.
16008         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16009         that are not needed.
16010         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16011         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16012         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16013         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16014         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16015         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16016         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16017
16018 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16019
16020         * math/s_nan.c: Undef __nan.
16021         * math/s_nanf.c: Undef __nanf.
16022         * math/s_nanl.c: Undef __nanl.
16023         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16024         "math_private.h".
16025
16026 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16027
16028         * math/s_catan.c: Add branch predictions.
16029         * math/s_catanf.c: Likewise.
16030         * math/s_catanh.c: Likewise.
16031         * math/s_catanhf.c: Likewise.
16032         * math/s_catanhl.c: Likewise.
16033         * math/s_catanl.c: Likewise.
16034         * math/s_cexp.c: Likewise.
16035         * math/s_cexpf.c: Likewise.
16036         * math/s_cexpl.c: Likewise.
16037         * math/s_clog.c: Likewise.
16038         * math/s_clog10.c: Likewise.
16039         * math/s_clog10f.c: Likewise.
16040         * math/s_clog10l.c: Likewise.
16041         * math/s_clogf.c: Likewise.
16042         * math/s_clogl.c: Likewise.
16043         * math/s_csqrt.c: Likewise.
16044         * math/s_csqrtf.c: Likewise.
16045         * math/s_csqrtl.c: Likewise.
16046         * math/s_ctanf.c: Likewise.
16047         * math/s_ctanh.c: Likewise.
16048         * math/s_ctanhf.c: Likewise.
16049         * math/s_ctanhl.c: Likewise.
16050         * math/s_ctanl.c: Likewise.
16051
16052         * math/math_private.h: Define __nan, __nanf, __nanl.
16053         * math/s_cacosh.c: Include <math_private.h>.
16054         * math/s_cacoshl.c: Likewise.
16055         * math/s_casinh.c: Likewise.
16056         * math/s_casinhf.c: Likewise.
16057         * math/s_casinhl.c: Likewise.
16058         * math/s_ccos.c: Rely entire on ccosh.
16059         * math/s_ccosf.c: Rely entire on ccoshf.
16060         * math/s_ccosl.c: Rely entirely on ccoshl.
16061         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16062         Remove tests for FE_INVALID.
16063         * math/s_ccoshf.c: Likewise.
16064         * math/s_ccoshl.c: Likewise.
16065         * math/s_csin.c: Likewise.
16066         * math/s_csinf.c: Likewise.
16067         * math/s_csinh.c Likewise.
16068         * math/s_csinhf.c: Likewise.
16069         * math/s_csinhl.c: Likewise.
16070         * math/s_csinl.c: Likewise.
16071         * math/s_ctan.c: Likewise.
16072         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16073         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16074         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16075
16076 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16077
16078         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16079         compilation problems.
16080
16081         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16082         __builtin_expect.
16083
16084 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16085
16086         * sysdeps/i386/configure.in: Test for -mfma4 option.
16087         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16088         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16089         COMMON_CPUID_INDEX_80000001.
16090         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16091         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16092         use it if FMA3 is not supported.
16093         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16094
16095         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16096         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16097
16098 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16099
16100         [BZ #12892]
16101         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16102         it would create a cycle with a link time dependency.
16103
16104 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16105
16106         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16107         instruction.
16108         * string/Makefile (strop-tests): Add rawmemchr.
16109         * string/test-rawmemchr.c: New file.
16110
16111         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16112         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16113         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16114         when compiling str{,n}casecmp and when AVX is available.  Hook up
16115         new optimized code in initializers.
16116
16117 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16118
16119         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16120         __feraiseexcept instead of feraiseexcept.
16121
16122 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16123
16124         * math/math_private.h: Define defaults for libc_fetestexcept and
16125         libc_feupdateenv.
16126         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16127         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16128         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16129         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16130         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16131         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16132         libc_fetestexcept and libc_feupdateenv.
16133
16134         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16135         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16136         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16137         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16138         libc_feholdexcept_setround.
16139
16140         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16141         Add s_nearbyint-c and s_nearbyintf-c.
16142         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16143         nearbyintf inlines.
16144         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16145         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16146         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16147         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16148
16149         * math/math_private.h: Define defaults for libc_fegetround,
16150         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16151         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16152         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16153         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16154         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16155         standard functions.
16156         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16157         Remove comments and hacks for old compiler versions.
16158         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16159         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16160         libc_feholdexceptl.
16161
16162 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16163
16164         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16165         (__feraiseexcept_renamed): Add __NTH.
16166         (feraiseexcept): Add __NTH.  Rename local variables to fix
16167         namespace violations.
16168
16169 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16170
16171         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16172
16173         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16174
16175         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16176         recently added interfaces.
16177         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16178
16179         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16180         about macro parameter expansion.
16181
16182         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16183         __NO_MATH_INLINES is defined.  Cleanups.
16184
16185         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16186         and __floorf is target has SSE4.1.
16187         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16188         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16189         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16190         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16191
16192         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16193         name.
16194         (floorf): Likewise.
16195
16196         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16197
16198 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16199
16200         * misc/sys/cdefs.h: Fix last change.
16201
16202         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16203         database lookup.
16204
16205 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16206
16207         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16208
16209         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16210         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16211         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16212         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16213         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16214         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16215         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16216         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16217         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16218         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16219         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16220         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16221         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16222         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16223         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16224         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16225         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16226         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16227         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16228         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16229         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16230         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16231
16232         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16233         ceil, ceilf, floor, floorf.
16234
16235         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16236         Perform IRELATIVE relocations last.
16237
16238         * elf/do-rel.h: Add another parameter nrelative, replacing the
16239         local variable with the same name.  Change name of the function
16240         to end in Rel or Rela (uppercase).
16241         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16242         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16243         elf_dynamic_do_##reloc function.
16244
16245 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16246
16247         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16248         is sufficient, at least on modern CPUs.
16249
16250         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16251
16252         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16253         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16254
16255         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16256         __expl_finite.
16257         * math/bits/math-finite.h: Add entries for exp.
16258         * math/e_expl.c: Add __*_finite alias.
16259         * sysdeps/i386/fpu/e_exp.S: Likewise.
16260         * sysdeps/i386/fpu/e_expf.S: Likewise.
16261         * sysdeps/i386/fpu/e_expl.c: Likewise.
16262         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16263         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16264         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16265         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16266         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16267         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16268         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16269
16270         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16271         is sufficient, at least on modern CPUs.
16272
16273         * ctype/ctype-info.c (__ctype_init): Define.
16274         * include/ctype.h (__ctype_init): Declare.
16275         (__ctype_b_loc): The variable is always initialized.
16276         (__ctype_toupper_loc): Likewise.
16277         (__ctype_tolower_loc): Likewise.
16278         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16279         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16280
16281 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16282
16283         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16284
16285         * configure.in: Also look in $cxxmachine/include for C++ system
16286         headers.
16287
16288 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16289
16290         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16291         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16292         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16293         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16294         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16295         (USE_AS_WMEMCMP): New macro.
16296         Fixing indents.
16297         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16298         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16299         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16300         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16301         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16302         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16303         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16304         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16305         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16306         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16307         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16308         (USE_AS_WMEMCMP): New macro.
16309         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16310         * sysdeps/string/test-memcmp.c: Update.
16311         Fix simple_wmemcmp.
16312         Add new tests.
16313         * wcsmbs/wmemcmp.c: Update.
16314         (WMEMCMP): New macro.
16315         Fix overflow bug.
16316
16317 2011-10-12  Andreas Jaeger  <aj@suse.de>
16318
16319         [BZ #13268]
16320         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16321
16322 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16323
16324         * libio/iofwide.c (do_length): Avoid warning.
16325
16326         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16327
16328 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16329
16330         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16331
16332         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16333         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16334         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16335         * sysdeps/i386/i686/fpu/e_log.S: New file.
16336         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16337         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16338
16339         * ctype/ctype.h: Add support for inlined isXXX functions when
16340         compiling C++ code.
16341
16342 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16343
16344         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16345
16346         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16347
16348 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16349
16350         [BZ #13291]
16351         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16352
16353 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16354
16355         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16356         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16357         feraiseexcept.
16358
16359         * sysdeps/x86_64/memrchr.S: Check for zero size.
16360
16361         * string/stratcliff.c: Add memrchr tests.
16362
16363 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16364
16365         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16366         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16367         rawmemchr-sse2 rawmemchr-sse2-bsf.
16368         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16369         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16370         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16371         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16372         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16373         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16374         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16375         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16376         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16377         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16378         * string/memrchr.c (MEMRCHR): New macro.
16379
16380 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16381
16382         Add integration with gcc's -ffinite-math-only and optimize wrapper
16383         functions in libm.
16384         * Versions.def: Define GLIBC_2.15 version for libm.
16385         * math/Makefile (headers): Add bits/math-finite.h.
16386         * math/bits/math-finite.h: New file.
16387         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16388         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16389         * math/e_acoshl.c: Add __*_finite alias.
16390         * math/e_acosl.c: Likewise.
16391         * math/e_asinl.c: Likewise.
16392         * math/e_atan2l.c: Likewise.
16393         * math/e_atanhl.c: Likewise.
16394         * math/e_coshl.c: Likewise.
16395         * math/e_exp10.c: Likewise.
16396         * math/e_exp10f.c: Likewise.
16397         * math/e_exp10l.c: Likewise.
16398         * math/e_exp2l.c: Likewise.
16399         * math/e_fmodl.c: Likewise.
16400         * math/e_gammal_r.c: Likewise.
16401         * math/e_hypotl.c: Likewise.
16402         * math/e_j0l.c: Likewise.
16403         * math/e_j1l.c: Likewise.
16404         * math/e_jnl.c: Likewise.
16405         * math/e_lgammal_r.c: Likewise.
16406         * math/e_log10l.c: Likewise.
16407         * math/e_log2l.c: Likewise.
16408         * math/e_logl.c: Likewise.
16409         * math/e_powl.c: Likewise.
16410         * math/e_sinhl.c: Likewise.
16411         * math/e_sqrtl.c: Likewise.
16412         * math/e_scalb.c: Completely rewritten and optimized.
16413         * math/e_scalbf.c: Likewise.
16414         * math/e_scalbl.c: Likewise.
16415         * math/w_acos.c: Likewise.
16416         * math/w_acosf.c: Likewise.
16417         * math/w_acosl.c: Likewise.
16418         * math/w_acosh.c: Likewise.
16419         * math/w_acoshf.c: Likewise.
16420         * math/w_acoshl.c: Likewise.
16421         * math/w_asin.c: Likewise.
16422         * math/w_asinf.c: Likewise.
16423         * math/w_asinl.c: Likewise.
16424         * math/w_atan2.c: Likewise.
16425         * math/w_atan2f.c: Likewise.
16426         * math/w_atan2l.c: Likewise.
16427         * math/w_atanh.c: Likewise.
16428         * math/w_atanhf.c: Likewise.
16429         * math/w_atanhl.c: Likewise.
16430         * math/w_exp10.c: Likewise.
16431         * math/w_exp10f.c: Likewise.
16432         * math/w_exp10l.c: Likewise.
16433         * math/w_fmod.c: Likewise.
16434         * math/w_fmodf.c: Likewise.
16435         * math/w_fmodl.c: Likewise.
16436         * math/w_j0.c: Likewise.
16437         * math/w_j0f.c: Likewise.
16438         * math/w_j0l.c: Likewise.
16439         * math/w_j1.c: Likewise.
16440         * math/w_j1f.c: Likewise.
16441         * math/w_j1l.c: Likewise.
16442         * math/w_jn.c: Likewise.
16443         * math/w_jnf.c: Likewise.
16444         * math/w_log.c: Likewise.
16445         * math/w_logf.c: Likewise.
16446         * math/w_logl.c: Likewise.
16447         * math/w_log10.c: Likewise.
16448         * math/w_log10f.c: Likewise.
16449         * math/w_log10l.c: Likewise.
16450         * math/w_log2.c: Likewise.
16451         * math/w_log2f.c: Likewise.
16452         * math/w_log2l.c: Likewise.
16453         * math/w_pow.c: Likewise.
16454         * math/w_powf.c: Likewise.
16455         * math/w_powl.c: Likewise.
16456         * math/w_remainder.c: Likewise.
16457         * math/w_remainderf.c: Likewise.
16458         * math/w_remainderl.c: Likewise.
16459         * math/w_scalb.c: Likewise.
16460         * math/w_scalbf.c: Likewise.
16461         * math/w_scalbl.c: Likewise.
16462         * math/w_sqrt.c: Likewise.
16463         * math/w_sqrtf.c: Likewise.
16464         * math/w_sqrtl.c: Likewise.
16465         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16466         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16467         used.
16468         * math/math_private.h: Declare __kernel_standard_f.
16469         * math/w_cosh.c: Remove cruft and optimize a bit.
16470         * math/w_coshf.c: Likewise.
16471         * math/w_coshl.c: Likewise.
16472         * math/w_exp2.c: Likewise.
16473         * math/w_exp2f.c: Likewise.
16474         * math/w_exp2l.c: Likewise.
16475         * math/w_hypot.c: Likewise.
16476         * math/w_hypotf.c: Likewise.
16477         * math/w_hypotl.c: Likewise.
16478         * math/w_lgamma.c: Likewise.
16479         * math/w_lgamma_r.c: Likewise.
16480         * math/w_lgammaf.c: Likewise.
16481         * math/w_lgammaf_r.c: Likewise.
16482         * math/w_lgammal.c: Likewise.
16483         * math/w_lgammal_r.c: Likewise.
16484         * math/w_sinh.c: Likewise.
16485         * math/w_sinhf.c: Likewise.
16486         * math/w_sinhl.c: Likewise.
16487         * math/w_tgamma.c: Likewise.
16488         * math/w_tgammaf.c: Likewise.
16489         * math/w_tgammal.c: Likewise.
16490         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16491         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16492         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16493         Minor optimizations.  Pretty printing.  Remove cruft.
16494         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16495         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16496         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16497         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16498         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16499         * sysdeps/i386/fpu/e_asin.S: Likewise.
16500         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16501         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16502         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16503         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16504         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16505         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16506         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16507         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16508         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16509         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16510         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16511         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16512         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16513         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16514         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16515         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16516         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16517         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16518         * sysdeps/i386/fpu/e_log.S: Likewise.
16519         * sysdeps/i386/fpu/e_log10.S: Likewise.
16520         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16521         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16522         * sysdeps/i386/fpu/e_log2.S: Likewise.
16523         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16524         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16525         * sysdeps/i386/fpu/e_logf.S: Likewise.
16526         * sysdeps/i386/fpu/e_logl.S: Likewise.
16527         * sysdeps/i386/fpu/e_pow.S: Likewise.
16528         * sysdeps/i386/fpu/e_powf.S: Likewise.
16529         * sysdeps/i386/fpu/e_powl.S: Likewise.
16530         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16531         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16532         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16533         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16534         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16535         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16536         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16537         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16538         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16539         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16540         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16541         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16542         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16543         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16544         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16545         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16546         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16547         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16548         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16549         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16550         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16551         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16552         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16553         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16554         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16555         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16556         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16557         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16558         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16559         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16560         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16561         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16562         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16563         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16564         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16565         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16566         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16567         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16568         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16569         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16570         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16571         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16572         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16573         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16574         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16575         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16576         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16577         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16578         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16579         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16580         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16581         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16582         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16583         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16584         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16585         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16586         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16587         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16588         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16589         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16590         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16591         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16592         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16593         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16594         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16595         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16596         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16597         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16598         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16599         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16600         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16601         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16602         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16603         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16604         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16605         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16606         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16607         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16608         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16609         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16610         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16611         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16612         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16613         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16614         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16615         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16616         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16617         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16618         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16619         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16620         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16621         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16622         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16623         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16624         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16625         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16626         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16627         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16628         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16629         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16630         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16631         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16632         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16633         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16634         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16635         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16636         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16637         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16638         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16639         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16640         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16641         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16642         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16643         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16644         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16645         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16646         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16647         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16648         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16649         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16650         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16651         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16652         (__isnanf): Likewise.
16653         (__isinf_ns): Likewise.
16654         (__isinf_nsf): Likewise.
16655         (__finite): Likewise.
16656         (__finitef): Likewise.
16657         (__ieee754_sqrt): Define as macro.
16658         (__ieee754_sqrtf): Define as macro.
16659         (__ieee754_sqrtl): Define as macro.
16660         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16661         inlined copy.
16662         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16663         __FINITE_MATH_ONLY__ consistent.
16664         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16665
16666 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16667
16668         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16669         of rawmemchr.
16670
16671         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16672
16673 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16674
16675         * po/ja.po: Update from translation team.
16676
16677 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16678
16679         * locale/programs/locarchive.c (prepare_address_space): New function.
16680         (create_archive, enlarge_archive, open_archive): Use it.
16681
16682         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16683         inside [SHARED], where it is used.
16684
16685         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16686
16687         * nss/getent.c (netgroup_keys): Remove unused variable.
16688         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16689
16690 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16691
16692         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16693         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16694         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16695         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16696         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16697         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16698         * math/Makefile (libm-calls): Add s_isinf_ns.
16699         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16700         * math/multc3.c: Likewise.
16701         * math/s_casin.c: Likewise.
16702         * math/s_casinf.c: Likewise.
16703         * math/s_casinl.c: Likewise.
16704         * math/s_ccos.c: Likewise.
16705         * math/s_ccosf.c: Likewise.
16706         * math/s_ccosl.c: Likewise.
16707         * math/s_ctan.c: Likewise.
16708         * math/s_ctanf.c: Likewise.
16709         * math/s_ctanh.c: Likewise.
16710         * math/s_ctanhf.c: Likewise.
16711         * math/s_ctanhl.c: Likewise.
16712         * math/s_ctanl.c: Likewise.
16713         * math/w_fmod.c: Likewise.
16714         * math/w_fmodf.c: Likewise.
16715         * math/w_fmodl.c: Likewise.
16716         * math/w_remainder.c: Likewise.
16717         * math/w_remainderf.c: Likewise.
16718         * math/w_remainderl.c: Likewise.
16719         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16720         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16721         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16722         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16723         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16724         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16725         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16726         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16727
16728         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16729         of the number.
16730         * stdio-common/printf_fphex.c: Likewise.
16731         * stdio-common/printf_size.c: Likewise.
16732
16733         * math/e_exp10.c: Include math_private.h using <...> not "...".
16734         * math/e_exp10f.c: Likewise.
16735         * math/e_exp10l.c: Likewise.
16736         * math/e_exp2l.c: Likewise.
16737         * math/e_j0l.c: Likewise.
16738         * math/e_j1l.c: Likewise.
16739         * math/e_jnl.c: Likewise.
16740         * math/e_lgammal_r.c: Likewise.
16741         * math/e_rem_pio2l.c: Likewise.
16742         * math/e_scalb.c: Likewise.
16743         * math/e_scalbf.c: Likewise.
16744         * math/e_scalbl.c: Likewise.
16745         * math/k_cosl.c: Likewise.
16746         * math/k_sinl.c: Likewise.
16747         * math/k_tanl.c: Likewise.
16748         * math/s_cacoshf.c: Likewise.
16749         * math/s_catan.c: Likewise.
16750         * math/s_catanf.c: Likewise.
16751         * math/s_catanh.c: Likewise.
16752         * math/s_catanhf.c: Likewise.
16753         * math/s_catanhl.c: Likewise.
16754         * math/s_catanl.c: Likewise.
16755         * math/s_ccosh.c: Likewise.
16756         * math/s_ccoshf.c: Likewise.
16757         * math/s_ccoshl.c: Likewise.
16758         * math/s_cexp.c: Likewise.
16759         * math/s_cexpf.c: Likewise.
16760         * math/s_cexpl.c: Likewise.
16761         * math/s_clog.c: Likewise.
16762         * math/s_clog10.c: Likewise.
16763         * math/s_clog10f.c: Likewise.
16764         * math/s_clog10l.c: Likewise.
16765         * math/s_clogf.c: Likewise.
16766         * math/s_clogl.c: Likewise.
16767         * math/s_csin.c: Likewise.
16768         * math/s_csinf.c: Likewise.
16769         * math/s_csinh.c: Likewise.
16770         * math/s_csinhf.c: Likewise.
16771         * math/s_csinhl.c: Likewise.
16772         * math/s_csinl.c: Likewise.
16773         * math/s_csqrt.c: Likewise.
16774         * math/s_csqrtf.c: Likewise.
16775         * math/s_csqrtl.c: Likewise.
16776         * math/s_ctan.c: Likewise.
16777         * math/s_ctanf.c: Likewise.
16778         * math/s_ctanh.c: Likewise.
16779         * math/s_ctanhf.c: Likewise.
16780         * math/s_ctanhl.c: Likewise.
16781         * math/s_ctanl.c: Likewise.
16782         * math/s_ldexp.c: Likewise.
16783         * math/s_ldexpf.c: Likewise.
16784         * math/s_ldexpl.c: Likewise.
16785         * math/s_significand.c: Likewise.
16786         * math/s_significandf.c: Likewise.
16787         * math/s_significandl.c: Likewise.
16788         * math/w_acos.c: Likewise.
16789         * math/w_acosf.c: Likewise.
16790         * math/w_acosh.c: Likewise.
16791         * math/w_acoshf.c: Likewise.
16792         * math/w_acoshl.c: Likewise.
16793         * math/w_acosl.c: Likewise.
16794         * math/w_asin.c: Likewise.
16795         * math/w_asinf.c: Likewise.
16796         * math/w_asinl.c: Likewise.
16797         * math/w_atan2.c: Likewise.
16798         * math/w_atan2f.c: Likewise.
16799         * math/w_atan2l.c: Likewise.
16800         * math/w_atanh.c: Likewise.
16801         * math/w_atanhf.c: Likewise.
16802         * math/w_atanhl.c: Likewise.
16803         * math/w_cosh.c: Likewise.
16804         * math/w_coshf.c: Likewise.
16805         * math/w_coshl.c: Likewise.
16806         * math/w_dremf.c: Likewise.
16807         * math/w_exp10.c: Likewise.
16808         * math/w_exp10f.c: Likewise.
16809         * math/w_exp10l.c: Likewise.
16810         * math/w_exp2.c: Likewise.
16811         * math/w_exp2f.c: Likewise.
16812         * math/w_fmod.c: Likewise.
16813         * math/w_fmodf.c: Likewise.
16814         * math/w_fmodl.c: Likewise.
16815         * math/w_hypot.c: Likewise.
16816         * math/w_hypotf.c: Likewise.
16817         * math/w_hypotl.c: Likewise.
16818         * math/w_j0.c: Likewise.
16819         * math/w_j0f.c: Likewise.
16820         * math/w_j0l.c: Likewise.
16821         * math/w_j1.c: Likewise.
16822         * math/w_j1f.c: Likewise.
16823         * math/w_j1l.c: Likewise.
16824         * math/w_jn.c: Likewise.
16825         * math/w_jnf.c: Likewise.
16826         * math/w_jnl.c: Likewise.
16827         * math/w_lgamma.c: Likewise.
16828         * math/w_lgamma_r.c: Likewise.
16829         * math/w_lgammaf.c: Likewise.
16830         * math/w_lgammaf_r.c: Likewise.
16831         * math/w_lgammal.c: Likewise.
16832         * math/w_lgammal_r.c: Likewise.
16833         * math/w_log.c: Likewise.
16834         * math/w_log10.c: Likewise.
16835         * math/w_log10f.c: Likewise.
16836         * math/w_log10l.c: Likewise.
16837         * math/w_log2.c: Likewise.
16838         * math/w_log2f.c: Likewise.
16839         * math/w_log2l.c: Likewise.
16840         * math/w_logf.c: Likewise.
16841         * math/w_logl.c: Likewise.
16842         * math/w_pow.c: Likewise.
16843         * math/w_powf.c: Likewise.
16844         * math/w_powl.c: Likewise.
16845         * math/w_remainder.c: Likewise.
16846         * math/w_remainderf.c: Likewise.
16847         * math/w_remainderl.c: Likewise.
16848         * math/w_scalb.c: Likewise.
16849         * math/w_scalbf.c: Likewise.
16850         * math/w_scalbl.c: Likewise.
16851         * math/w_sinh.c: Likewise.
16852         * math/w_sinhf.c: Likewise.
16853         * math/w_sinhl.c: Likewise.
16854         * math/w_sqrt.c: Likewise.
16855         * math/w_sqrtf.c: Likewise.
16856         * math/w_sqrtl.c: Likewise.
16857         * math/w_tgamma.c: Likewise.
16858         * math/w_tgammaf.c: Likewise.
16859         * math/w_tgammal.c: Likewise.
16860
16861         * po/ja.po: Update from translation team.
16862
16863 2011-09-29  Andreas Jaeger  <aj@suse.de>
16864
16865         [BZ #13179]
16866         * sunrpc/netname.c (netname2host): Fix logic.
16867
16868         [BZ #6779]
16869         [BZ #6783]
16870         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16871         correctly.
16872         * math/w_remainder.c (__remainder): Likewise.
16873         * math/w_remainderf.c (__remainderf): Likewise.
16874         * math/libm-test.inc (remainder_test): Add test cases.
16875
16876 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16877
16878         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16879         sdiv_qrnnd.
16880
16881 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16882
16883         * string/test-memcmp.c: Avoid unncessary #defines.
16884         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16885
16886 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16887
16888         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16889         Use new sse2 version for core i3 - i7 as it's faster
16890         than sse42 version.
16891         (bit_Prefer_PMINUB_for_stringop): New.
16892         * sysdeps/x86_64/rawmemchr.S: Update.
16893         Replace with faster SSE2 version.
16894         * sysdeps/x86_64/memrchr.S: New file.
16895         * sysdeps/x86_64/memchr.S: Update.
16896         Replace with faster SSE2 version.
16897
16898 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16899
16900         * elf/dl-load.c (lose): Add cast to avoid warning.
16901
16902 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16903
16904         * po/ca.po: Update from translation team.
16905
16906         * inet/getnetgrent_r.c: Hook up nscd.
16907         * nscd/Makefile (routines): Add nscd_netgroup.
16908         (nscd-modules): Add netgroupcache.
16909         (CFLAGS-netgroupcache.c): Define.
16910         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16911         (cache_search): Add const to second parameter.
16912         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16913         INNETGR.
16914         (dbs): Add netgrdb entry.
16915         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16916         (verify_persistent_db): Handle netgrdb.
16917         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16918         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16919         GETFDNETGR.
16920         (netgroup_response_header): Define.
16921         (innetgroup_response_header): Define.
16922         (datahead): Add netgroup_response_header and innetgroup_response_header
16923         elements.
16924         * nscd/nscd.conf: Add entries for netgroup cache.
16925         * nscd/nscd.h (dbtype): Add netgrdb.
16926         (_PATH_NSCD_NETGROUP_DB): Define.
16927         (netgroup_iov_disabled): Declare.
16928         (xmalloc, xcalloc, xrealloc): Move declarations here.
16929         (cache_search): Adjust prototype.
16930         Add netgroup-related prototypes.
16931         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16932         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16933         (__nscd_innetgr): Declare.
16934         * nscd/selinux.c (perms): Use access_vector_t as element type and
16935         add netgroup-related initializers.
16936         * nscd/netgroupcache.c: New file.
16937         * nscd/nscd_netgroup.c: New file.
16938         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16939         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16940         For four parameters use innetgr.
16941         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16942         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16943         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16944         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16945
16946         * nscd/connections.c (register_traced_file): Don't register file
16947         for disabled databases.
16948
16949 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16950
16951         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16952
16953         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16954         from tree and freeing node.
16955
16956 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16957
16958         * nss/nsswitch.c (__nss_database_lookup): Handle
16959         nss_parse_service_list out of memory case.
16960
16961 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16962
16963         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16964         out of memory case.
16965
16966 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16967
16968         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16969         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16970         pass it down.
16971         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16972         elf_machine_rela, elf_machine_lazy_rel.
16973         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16974         (ELF_DYNAMIC_DO_REL): Likewise.
16975         (ELF_DYNAMIC_DO_RELA): Likewise.
16976         (ELF_DYNAMIC_RELOCATE): Likewise.
16977         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16978         to ELF_DYNAMIC_DO_REL.
16979         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16980         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16981         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16982         elf_machine_rela.
16983         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16984         skip_ifunc, don't call ifunc function if non-zero.
16985         (elf_machine_rela): Likewise.
16986         (elf_machine_lazy_rel): Likewise.
16987         (elf_machine_lazy_rela): Likewise.
16988         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16989         (elf_machine_lazy_rel): Likewise.
16990         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16991         Likewise.
16992         (elf_machine_lazy_rel): Likewise.
16993         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16994         Likewise.
16995         (elf_machine_lazy_rel): Likewise.
16996         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16997         (elf_machine_lazy_rel): Likewise.
16998         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16999         (elf_machine_lazy_rel): Likewise.
17000         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17001         (elf_machine_lazy_rel): Likewise.
17002         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17003         (elf_machine_lazy_rel): Likewise.
17004         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17005         (elf_machine_lazy_rel): Likewise.
17006         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17007         (elf_machine_lazy_rel): Likewise.
17008
17009 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17010
17011         * nss/nss_files/files-init.c (_nss_files_init): Use static
17012         initialization for all the *_traced_file variables.
17013
17014 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17015
17016         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17017
17018 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17019
17020         [BZ #13226]
17021         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17022
17023 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17024
17025         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17026         Reread the line before reparsing it.
17027
17028 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17029
17030         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17031
17032 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17033             Maxim Kuvyrkov  <maxim@codesourcery.com>
17034             Joseph Myers  <joseph@codesourcery.com>
17035
17036         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17037         if needed for __stack_chk_guard.
17038
17039 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17040
17041         * sysdeps/posix/spawni.c (script_execute): Always define it.
17042         It will be optimized away if unused.
17043         (maybe_script_execute): New function.
17044         (__spawni): Call it.
17045
17046         * Makerules: Don't include tls.make.
17047         (config-tls): Always set to thread.
17048         * tls.make.c: File removed.
17049
17050 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17051
17052         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17053         * config.make.in (CPPFLAGS-config): New substituted variable.
17054
17055 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17056
17057         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17058
17059         [BZ #13192]
17060         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17061         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17062
17063 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17064
17065         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17066         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17067         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17068         (CALL_FAIL): Likewise.
17069         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17070         (CALL_FAIL): Macro removed.
17071         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17072
17073 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17074
17075         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17076         for __FINITE_MATH_ONLY__ == 1.
17077
17078 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17079
17080         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17081         __ieee754_sqrt instead of sqrt.
17082         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17083         __ieee754_sqrtf instead of sqrtf.
17084         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17085         __floorf instead of floorf.
17086         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17087         __floorf, __truncf instead of floorf, truncf.
17088
17089 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17090
17091         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17092
17093         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17094         __extern_always_inline.
17095         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17096         32-bit.
17097
17098 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17099
17100         * elf/rtld.c (dl_main): Also relocate in dependency order when
17101         doing symbol dependency testing.
17102
17103 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17104
17105         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17106         Always define `refsym'.
17107
17108 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17109
17110         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17111         (__FD_ELT): Renamed from __FDELT.
17112         * misc/bits/select2.h (__FD_ELT): Likewise.
17113         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17114         __FD_MASK instead of __FDELT, __FDMASK.
17115         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17116         Likewise.
17117         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17118         Likewise.
17119
17120         * elf/Makefile (gen-ldd): Fix pattern.
17121
17122         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17123         (init_tls): Likewise.
17124
17125 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17126
17127         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17128
17129 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17130
17131         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17132         `struct cmsghdr *' instead of `void *'.
17133         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17134         Likewise.
17135
17136 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17137
17138         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17139         if non-absolute.
17140         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17141         ldd_rewrite_script.
17142
17143 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17144
17145         * configure.in: Remove --with-tls option.
17146         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17147         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17148         out in case it is missing.
17149         * sysdeps/ia64/elf/configure.in: Likewise.
17150         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17151         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17152         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17153         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17154         * sysdeps/sh/elf/configure.in: Likewise.
17155         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17156         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17157         * sysdeps/x86_64/elf/configure.in: Likewise.
17158         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17159         * sysdeps/mach/hurd/tls.h: Likewise.
17160
17161         [BZ #13067]
17162         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17163
17164         [BZ #13090]
17165         * configure.in: Fix use of AC_INIT.
17166
17167         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17168
17169 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17170
17171         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17172         __set_errno.
17173         * malloc/hooks.c: Likewise.
17174
17175         [BZ #11929]
17176         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17177         variables statically.
17178         (narenas): Initialize.
17179         (list_lock): Initialize.
17180         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17181         initializtion of main_arena and list_lock.  Small cleanups.
17182         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17183         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17184         Add initializers to main_arena and mp_.
17185         (malloc_state): Remove pagesize member.  Change all users to use
17186         GLRO(dl_pagesize).
17187
17188         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17189         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17190         is always initialized.
17191
17192         * malloc/malloc.c: Removed unused configurations and dead code.
17193         * malloc/arena.c: Likewise.
17194         * malloc/hooks.c: Likewise.
17195         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17196
17197         * include/tls.h: Removed.  USE___THREAD must always be defined.
17198         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17199         * elf/dl-libc.c: Likewise.
17200         * elf/dl-tsd.c: Likewise.
17201         * include/errno.h: Likewise.
17202         * include/netdb.h: Likewise.
17203         * include/resolv.h: Likewise.
17204         * inet/herrno-loc.c: Likewise.
17205         * inet/herrno.c: Likewise.
17206         * malloc/arena.c: Likewise.
17207         * malloc/hooks.c: Likewise.
17208         * malloc/malloc.c: Likewise.
17209         * resolv/res-state.c: Likewise.
17210         * resolv/res_libc.c: Likewise.
17211         * sysdeps/i386/dl-machine.h: Likewise.
17212         * sysdeps/ia64/dl-machine.h: Likewise.
17213         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17214         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17215         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17216         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17217         * sysdeps/sh/dl-machine.h: Likewise.
17218         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17219         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17220         * sysdeps/unix/i386/sysdep.S: Likewise.
17221         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17222         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17223         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17224         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17225         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17226         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17227         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17228         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17229         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17230         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17231         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17232         * sysdeps/x86_64/dl-machine.h: Likewise.
17233         * tls.make.c: Likewise.
17234
17235         * configure.in: Remove --with-__thread option.  Make tests for
17236         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17237         tls_model attribute fail if no support is available.  Remove
17238         USE_IN_LIBIO.
17239         * Makeconfig: Adjust for dropped configure option.  All features are
17240         now mandatory.
17241         * Makerules: Likewise.
17242         * Versions.def: Likewise.
17243         * argp/argp-fmtstream.c: Likewise.
17244         * argp/argp-fmtstream.h: Likewise.
17245         * argp/argp-help.c: Likewise.
17246         * assert/assert.c: Likewise.
17247         * config.h.in: Likewise.
17248         * config.make.in: Likewise.
17249         * configure: Likewise.
17250         * configure.in: Likewise.
17251         * csu/Versions: Likewise.
17252         * csu/init.c: Likewise.
17253         * elf/tst-audit2.c: Likewise.
17254         * elf/tst-tls10.c: Likewise.
17255         * elf/tst-tls10.h: Likewise.
17256         * elf/tst-tls11.c: Likewise.
17257         * elf/tst-tls12.c: Likewise.
17258         * elf/tst-tls14.c: Likewise.
17259         * elf/tst-tlsmod11.c: Likewise.
17260         * elf/tst-tlsmod12.c: Likewise.
17261         * elf/tst-tlsmod13.c: Likewise.
17262         * elf/tst-tlsmod13a.c: Likewise.
17263         * elf/tst-tlsmod14a.c: Likewise.
17264         * elf/tst-tlsmod15b.c: Likewise.
17265         * elf/tst-tlsmod16a.c: Likewise.
17266         * elf/tst-tlsmod16b.c: Likewise.
17267         * elf/tst-tlsmod7.c: Likewise.
17268         * elf/tst-tlsmod8.c: Likewise.
17269         * elf/tst-tlsmod9.c: Likewise.
17270         * gmon/gmon.c: Likewise.
17271         * grp/fgetgrent_r.c: Likewise.
17272         * grp/putgrent.c: Likewise.
17273         * hurd/fopenport.c: Likewise.
17274         * include/libc-symbols.h: Likewise.
17275         * include/tls.h: Likewise.
17276         * intl/gettextP.h: Likewise.
17277         * intl/loadinfo.h: Likewise.
17278         * locale/global-locale.c: Likewise.
17279         * locale/localeinfo.h: Likewise.
17280         * mach/devstream.c: Likewise.
17281         * malloc/arena.c: Likewise.
17282         * malloc/set-freeres.c: Likewise.
17283         * misc/err.c: Likewise.
17284         * misc/getttyent.c: Likewise.
17285         * misc/mntent_r.c: Likewise.
17286         * posix/getopt.c: Likewise.
17287         * posix/wordexp.c: Likewise.
17288         * pwd/fgetpwent_r.c: Likewise.
17289         * resolv/Versions: Likewise.
17290         * resolv/res_hconf.c: Likewise.
17291         * shadow/fgetspent_r.c: Likewise.
17292         * shadow/putspent.c: Likewise.
17293         * stdio-common/printf_fphex.c: Likewise.
17294         * stdio-common/tmpfile.c: Likewise.
17295         * stdlib/abort.c: Likewise.
17296         * stdlib/fmtmsg.c: Likewise.
17297         * sunrpc/auth_unix.c: Likewise.
17298         * sunrpc/clnt_perr.c: Likewise.
17299         * sunrpc/clnt_tcp.c: Likewise.
17300         * sunrpc/clnt_udp.c: Likewise.
17301         * sunrpc/clnt_unix.c: Likewise.
17302         * sunrpc/openchild.c: Likewise.
17303         * sunrpc/svc_simple.c: Likewise.
17304         * sunrpc/svc_tcp.c: Likewise.
17305         * sunrpc/svc_udp.c: Likewise.
17306         * sunrpc/svc_unix.c: Likewise.
17307         * sunrpc/xdr.c: Likewise.
17308         * sunrpc/xdr_array.c: Likewise.
17309         * sunrpc/xdr_rec.c: Likewise.
17310         * sunrpc/xdr_ref.c: Likewise.
17311         * sunrpc/xdr_stdio.c: Likewise.
17312
17313 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17314
17315         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17316
17317 2011-07-03  Andreas Jaeger  <aj@suse.de>
17318
17319         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17320         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17321         regenerate with gen-libm-tests.pl.
17322
17323 2010-05-12  Petr Baudis  <pasky@suse.cz>
17324
17325         [BZ #11589]
17326         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17327         around j0() zero points by switching to j1().
17328         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17329         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17330         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17331         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17332
17333 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17334
17335         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17336         instead of 0.
17337         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17338         instead of 0.                              .
17339         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17340         Patch in part by Pavel Roskin <proski@gnu.org>.
17341
17342         [BZ #13138]
17343         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17344         realloc.
17345         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17346         Free memory block if necessary.
17347
17348         [BZ #12847]
17349         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17350         be NULL.  Don't lock in this case.
17351
17352 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17353
17354         * elf/elf.h (ELFOSABI_GNU): New macro.
17355         (ELFOSABI_LINUX): Define to that.
17356
17357 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17358
17359         * string/strncat.c (strncat): Undef the symbol in case it has been
17360         defined in bits/string.h.
17361
17362 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17363
17364         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17365
17366         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17367         link map.
17368
17369 2011-08-17  Andreas Jaeger  <aj@suse.de>
17370
17371         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17372
17373 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17374             Ian Lance Taylor  <iant@google.com>
17375
17376         * math/libm-test.inc (lround_test): New testcase.
17377         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17378
17379 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17380
17381         * Makefile: Remove support for automatic cvs check-ins.
17382         * Makerules: Likewise.
17383         * config.make.in: Likewise.
17384         * configure.in: Likewise.
17385         * intl/Makefile: Likewise.
17386         * locale/Makefile: Likewise.
17387         * po/Makefile: Likewise.
17388         * posix/Makefile: Likewise.
17389         * sysdeps/gnu/Makefile: Likewise.
17390         * sysdeps/mach/hurd/Makefile: Likewise.
17391         * sysdeps/sparc/sparc32/Makefile: Likewise.
17392
17393         [BZ #13118]
17394         * posix/Makefile (bug-regex32-ENV): Define.
17395         Patch by John Stanley <jpsinthemix@verizon.net>.
17396
17397         * misc/Makefile (headers): Add bits/select2.h.
17398         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17399         * misc/bits/select2.h: New file.
17400         * include/bits/select2.h: New file.
17401         * debug/Makefile (routines): Add fdelt_chk.
17402         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17403         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17404         FD_ISSET.
17405         * debug/fdelt_chk.c: New file.
17406
17407         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17408         * wcsmbs/test-wmemcmp.c: Likewise.
17409         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17410         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17411
17412 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17413
17414         * string/Makefile (strop-tests): Add memcmp.
17415         * string/test-wmemcmp.c: New file.
17416         * string/test-memcmp.c: Add wmemcmp support.
17417
17418 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17419
17420         [BZ #13153]
17421         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17422         2011-07-19 change.
17423
17424         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17425         garbage value in a __mach_port_mod_refs call in the cases of the
17426         task-self and thread-self ports.
17427
17428 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17429
17430         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17431
17432 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17433
17434         * elf/dl-load.c (lose): Check for non-null L.
17435
17436 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17437
17438         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17439
17440         * elf/dl-libc.c (dlerror_run): Pass back error code from
17441         dl_catch_error.
17442
17443         [BZ #13123]
17444         * elf/dl-load.c (lose): Free l_origin if it is valid.
17445
17446         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17447         names.
17448         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17449         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17450         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17451         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17452         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17453         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17454
17455 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17456
17457         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17458         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17459         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17460         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17461         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17462         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17463         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17464         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17465         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17466         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17467
17468 2011-08-15  Alan Modra  <amodra@gmail.com>
17469
17470         [BZ #13092]
17471         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17472         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17473         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17474         ppc_mcount to static-only-routines.
17475         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17476         __mcount_internal.
17477         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17478         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17479
17480 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17481
17482         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17483         for finite and infinity parameters.
17484
17485 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17486
17487         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17488         and add nop instructions for throughput optimization.
17489         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17490
17491 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17492
17493         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17494         aligned copy for power7 with vector-scalar instructions.
17495         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17496
17497 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17498
17499         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17500         AVX check.
17501
17502 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17503
17504         [BZ #13144]
17505         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17506         last change.
17507
17508 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17509
17510         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17511         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17512         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17513         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17514         clock_gettime.
17515
17516 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17517
17518         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17519         Forgot to demangle the pointer.
17520
17521         * sysdeps/i386/sysdep.h: Define atom_text_section.
17522         * sysdeps/x86_64/sysdep.h: Likewise.
17523         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17524         section with atom_text_section.
17525         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17526         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17527         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17528         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17529         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17530
17531         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17532         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17533         already be defined.  Change to take two parameters and don't assign
17534         result to variable.  Adjust all users.
17535         Define INTERNAL_GETTIME if not already defined.
17536         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17537         call.
17538         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17539         HAVE_CLOCK_GETTIME_VSYSCALL.
17540         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17541
17542         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17543         gettimeofday vsyscall, just use time.
17544
17545 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17546
17547         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17548         <errno.h>.
17549
17550 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17551
17552         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17553         syscall on x86-64.
17554         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17555         syscall.
17556         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17557         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17558         syscall if possible.
17559
17560 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17561
17562         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17563         e_ident.  Don't pass to find_mapsXX.
17564         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17565
17566 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17567
17568         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17569         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17570         * sysdeps/x86_64/multiarch/strchr.S: Update.
17571         Check bit_slow_BSF bit.
17572         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17573         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17574         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17575
17576 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17577
17578         [BZ #13134]
17579         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17580         before glibc 2.15.
17581         (tryshell): Define.
17582         (__spawni): Change last parameter to be flag.  Test
17583         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17584         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17585         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17586         * posix/spawni.c: Likewise.
17587         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17588         * posix/spawnp.c: Likewise.  Change normal version to use
17589         SPAWN_XFLAGS_USE_PATH.
17590         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17591         SPAWN_XFLAGS_TRY_SHELL.
17592
17593         [BZ #13150]
17594         * posix/glob.h: Remove gcc 1.x support.
17595
17596         [BZ #13068]
17597         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17598
17599 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17600
17601         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17602         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17603         strrchr-sse2-bsf
17604         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17605         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17606         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17607         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17608         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17609         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17610
17611 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17612
17613         * sysdeps/x86_64/wcscmp.S: New file.
17614
17615         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17616         wcscmp-c wcscmp-sse2
17617         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17618         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17619         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17620         * wcsmbs/wcscmp.c: Allow renaming.
17621
17622 2011-09-05  David S. Miller  <davem@davemloft.net>
17623
17624         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17625         stack slot, rather than the struct return pointer slot.
17626         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17627         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17628         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17629         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17630
17631 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17632
17633         * po/ja.po: Update from translation team.
17634
17635         [BZ #13144]
17636         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17637         kernel in 64-bit binaries.
17638
17639 2011-09-01  David S. Miller  <davem@davemloft.net>
17640
17641         * elf/elf.h (HWCAP_SPARC_*): Move to..
17642         * sysdeps/sparc/sysdep.h: this new file and add new values.
17643         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17644         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17645         _DL_HWCAP_COUNT to 24.
17646         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17647         entries.
17648         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17649         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17650         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17651         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17652         instead of magic constants.
17653         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17654
17655 2011-08-31  David S. Miller  <davem@davemloft.net>
17656
17657         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17658         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17659         Reimplement to do errno handling inline.
17660         (SYSCALL_ERROR_HANDLER): New macro.
17661         (__SYSCALL_STRING): Do not do errno handling in asm.
17662         (__CLONE_SYSCALL_STRING): Delete.
17663         (__INTERNAL_SYSCALL_STRING): Delete.
17664         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17665         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17666         (PSEUDO): Reimplement to do errno handling inline.
17667         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17668         (SYSCALL_ERROR_HANDLER): New macro.
17669         (__SYSCALL_STRING): Do not do errno handling in asm.
17670         (__CLONE_SYSCALL_STRING): Delete.
17671         (__INTERNAL_SYSCALL_STRING): Delete.
17672         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17673         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17674         i386.
17675         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17676         (inline_syscall*): Add 'err' argument.
17677         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17678         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17679         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17680         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17681
17682         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17683         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17684
17685 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17686
17687         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17688
17689 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17690
17691         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17692         directive.
17693
17694 2011-08-24  David S. Miller  <davem@davemloft.net>
17695
17696         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17697
17698 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17699
17700         * elf/Makefile: Add rules to build and run unload8 test.
17701         * elf/unload8.c: New file.
17702         * elf/unload8mod1.c: New file.
17703         * elf/unload8mod1x.c: New file.
17704         * elf/unload8mod2.c: New file.
17705         * elf/unload8mod3.c: New file.
17706
17707         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17708         it wasn't used.
17709
17710 2011-08-23  David S. Miller  <davem@davemloft.net>
17711
17712         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17713         subtract stack bias.
17714         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17715         %sp not %fp in calculations.
17716         (_JMPBUF_UNWINDS_ADJ): Likewise.
17717
17718         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17719         (aio_suspend): Call it to force an exception region around the
17720         AIO_MISC_WAIT() invocation.
17721
17722 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17723
17724         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17725         backslash.
17726
17727 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17728
17729         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17730         protection macro.
17731         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17732         and <dl-machine.h>.
17733         (Elf64_FuncDesc): Remove.
17734
17735 2011-08-22  David S. Miller  <davem@davemloft.net>
17736
17737         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17738         sigaltstack check, add missing cfi directives.
17739         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17740         missing cfi directives, and sigaltstack handling.
17741
17742 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17743
17744         [BZ #11724]
17745         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17746         object is seen twice.
17747         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17748
17749         * elf/Makefile (distribute): Add tst-initorder2.c.
17750         (tests): Add tst-initorder2.
17751         (modules-names): Add tst-initorder2a tst-initorder2b
17752         tst-initorder2c tst-initorder2d.  Add rules to build them.
17753         ($(objpfx)tst-initorder2.out): New rule.
17754         * elf/tst-initorder2.c: New file.
17755         * elf/tst-initorder2.exp: New file.
17756
17757 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17758
17759         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17760
17761         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17762         dependencies back to end of function.
17763
17764         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17765         $(elfobjdir)/ld.so.
17766
17767 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17768
17769         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17770         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17771         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17772         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17773         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17774         of __vdso_gettimeofday.
17775         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17776         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17777         attribute_hidden.
17778         (_libc_vdso_platform_setup): Remove initialization of
17779         __vdso_gettimeofday and __vdso_time.
17780
17781 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17782
17783         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17784         and fgetc_unlocked.
17785         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17786         getc_unlocked.
17787
17788         * elf/dl-open.c (add_to_global): Report additions to the global scope
17789         for LD_DEBUG=scopes.
17790         (dl_open_worker): Also print scope of newly loaded dependencies.
17791         (_dl_show_scope): Indicate if there is no scope.
17792
17793         [BZ #13114]
17794         * stdio-common/Makefile (tests): Add bug24.
17795         * stdio-common/bug24.c: New file.
17796
17797 2011-08-19  Andreas Jaeger  <aj@suse.de>
17798
17799         [BZ #13114]
17800         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17801         non-existant file when using close-on-exec mode.
17802
17803 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17804
17805         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17806         the very first instruction.
17807
17808         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17809         the CFI state in the end.
17810         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17811         inclusion of dl-trampoline.h.
17812         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17813
17814 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17815
17816         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17817         expectations for long double.
17818
17819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17820         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17821
17822 2011-08-14  David S. Miller  <davem@davemloft.net>
17823
17824         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17825         artificual limit depends upon the system page size.
17826
17827 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17828
17829         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17830         * resolv/Makefile: Define CFLAGS-libresolv.
17831
17832 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17833
17834         * nss/makedb.c (compute_tables): Make variables used in nested
17835         function static.
17836
17837 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17838
17839         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17840         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17841         if buffer was too small.
17842
17843         * elf/pldd.c (main): Attach to all threads in the process.
17844         Rewrite /proc handling to use *at functions.
17845
17846 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17847
17848         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17849         specifies first scope to show.
17850         (dl_open_worker): Update callers.  Move printing scope of new
17851         object to before the relocation.
17852         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17853         * sysdeps/generic/ldsodefs.h: Update declaration.
17854
17855         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17856         string for the scope number.
17857
17858 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17859
17860         * nscd/servicescache.c (cache_addserv): Make sure written is always
17861         initialized.
17862
17863 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17864
17865         * sysdeps/i386/i486/bits/atomic.h
17866         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17867         statement expression, so as to suppress "set but not used" warning.
17868         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17869
17870         * string/strncat.c (STRNCAT): Use prototype definition.
17871
17872         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17873         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17874         -Iprograms here.
17875         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17876         (localedef-modules): Add localedef.
17877         (locale-modules): Add locale.
17878
17879         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17880         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17881         to avoid a warning.
17882
17883 2011-08-14  David S. Miller  <davem@davemloft.net>
17884
17885         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17886         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17887
17888 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17889
17890         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17891         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17892         * elf/rtld.c (dl_main): Set l_name of vDSO.
17893         Call _dl_show_scope when DL_DEBUG_SCOPES.
17894         (process_dl_debug): Recognize scopes flag and also set it for all.
17895         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17896         Declare _dl_show_scope.
17897
17898         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17899         (do_dlopen): Pass caller_dlopen to dl_open.
17900         (__libc_dlopen_mode): Initialize caller_dlopen.
17901
17902         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17903         of libc.  Make tolower call locale-independent.  Optimize a bit by
17904         using isdigit instead of isalnum.
17905         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17906
17907 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17908
17909         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17910         was a dependency or dynamically loaded.
17911
17912 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17913
17914         * intl/l10nflist.c: Allow architecture-specific pop function.
17915         * sysdeps/x86_64/l10nflist.c: New file.
17916
17917         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17918         classification.
17919
17920 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17921
17922         * include/dirent.h: Add libc_hidden_proto for scandirat and
17923         scandirat64.  Don't declare __scandirat64.
17924         * dirent/scandirat.c: Add libc_hidden_def.
17925         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17926         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17927
17928 2011-08-10  David S. Miller  <davem@davemloft.net>
17929
17930         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17931         enum.
17932         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17933         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17934         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17935
17936 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17937
17938         * Versions.def [libc]: Add GLIBC_2.15.
17939         * dirent/Makefile (routines): Add scandirat and scandirat64.
17940         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17941         GLIBC_2.15.
17942         * dirent/dirent.h: Declare scandirat and scandirat64.
17943         * dirent/scandirat.c: New file.
17944         * dirent/scandirat64.c: New file.
17945         * sysdeps/wordsize-64/scandirat.c: New file.
17946         * sysdeps/wordsize-64/scandirat64.c: New file.
17947         * dirent/opendir.c: Define opendirat.
17948         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17949         using scandirat.
17950         * dirent/scandir64.c: Adjust for scandir.c change.
17951         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17952         __scandirat64, and __scandir_cancel_handler.
17953         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17954         additional parameter and use openat instead of open (outside of ld.so).
17955         Add new __opendir as wrapper around __opendirat.
17956         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17957         here without requiring old scandirat implementation.
17958
17959 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17960
17961         * dirent/scandir.c (cancel_handler): Renamed to
17962         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17963         defined.  Adjust users.
17964         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17965         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17966
17967 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17968
17969         * string/test-string.h (IMPL): Use __STRING to expand name and then
17970         stringify it.
17971
17972         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17973         of cleanups.
17974
17975 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17976
17977         * string/Makefile: Update.
17978         (strop-tests): Append strncat.
17979         * string/test-wcscmp.c: New file.
17980         New comprehensive test for wcscmp.
17981         * string/test-strcmp.c: Update.
17982         (WIDE): New define.
17983
17984 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17985
17986         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17987         line.
17988
17989 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17990
17991         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17992         encoding to ACE if AI_IDN.
17993
17994 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17995
17996         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17997         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17998
17999 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18000
18001         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18002         Fix overflow bug in strncat.
18003         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18004
18005         * string/test-strncat.c: Update.
18006         Add new tests for checking overflow bugs.
18007
18008 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18009
18010         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18011         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18012         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18013         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18014         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18015         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18016         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18017         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18018         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18019
18020         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18021         (USE_AS_STRCAT): Define.
18022         Add strcat and strncat support.
18023         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18024
18025 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18026
18027         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18028         __n bigger than INT_MAX+1.
18029         (__strncmp_g): Likewise.
18030
18031 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18032
18033         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18034         * libio/stido.h: Likewise.
18035
18036         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18037         (AF_NFC): Define.
18038         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18039         (AF_NFC): Define.
18040
18041         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18042         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18043         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18044         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18045         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18046
18047         [BZ #13021]
18048         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18049         installed.
18050
18051         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18052         typo.
18053         (_dl_x86_64_save_sse): Likewise.
18054
18055 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18056
18057         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18058         OSXSAVE.
18059         (_dl_x86_64_save_sse): Likewise.
18060
18061         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18062
18063         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18064
18065 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18066
18067         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18068         change.
18069         (_dl_x86_64_save_sse): Use correct AVX check.
18070
18071 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18072
18073         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18074         bug in strncpy/strncat.
18075         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18076
18077 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18078
18079         * string/tester.c (test_strcat): Add tests for different alignments
18080         of source and destination.
18081         (test_strncat): Likewise.
18082
18083 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18084
18085         [BZ #12852]
18086         * posix/glob.c (glob): Check passed in values before using them in
18087         expressions to avoid some overflows.
18088         (glob_in_dir): Likewise.
18089
18090         [BZ #13007]
18091         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18092         check for AVX enablement so that we don't crash with old kernels and
18093         new hardware.
18094         * elf/tst-audit4.c: Add same checks here.
18095         * elf/tst-audit6.c: Likewise.
18096
18097         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18098
18099 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18100
18101         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18102
18103 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18104
18105         * po/cs.po: Update from translation team.
18106         * po/bg.po: Likewise.
18107
18108 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18109
18110         * misc/sys/cdefs.h: Add support for const attribute.
18111         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18112         to gnu_dev_{major,minor,makedev} functions.
18113
18114 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18115
18116         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18117
18118 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18119
18120         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18121         strlen results.
18122
18123 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18124
18125         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18126         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18127         register in order to avoid conflicts with the soft frame pointer
18128         being held in r11 when necessary.
18129         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18130         (INTERNAL_VSYSCALL_NCS): Likewise.
18131
18132 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18133
18134         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18135         * elf/dl-fini.c (_dl_fini): Adjust caller.
18136         * elf/dl-close.c (_dl_close_worker): Likewise.
18137         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18138
18139 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18140
18141         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18142         "aux_cache->nlibs < 0".
18143
18144         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18145         in the reload-count case.
18146
18147 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18148
18149         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18150         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18151         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18152         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18153         * sysdeps/x86_64/multiarch/strcat.S: New file.
18154         * sysdeps/x86_64/multiarch/strncat.S: New file.
18155         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18156         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18157         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18158         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18159         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18160         (USE_AS_STRCAT): Define.
18161         Add strcat and strncat support.
18162         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18163         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18164         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18165         * string/strncat.c: Update.
18166         (USE_AS_STRNCAT): Define.
18167         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18168         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18169         and i7.
18170         * sysdeps/x86_64/multiarch/init-arch.h
18171         (bit_Prefer_PMINUB_for_stringop): New.
18172         (index_Prefer_PMINUB_for_stringop): Likewise.
18173         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18174         bit_Prefer_PMINUB_for_stringop.
18175
18176 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18177
18178         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18179         buffer64.
18180         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18181         of casting of buffer.
18182         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18183         buffer32 and buffer64.
18184         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18185         writes instead of casting of buffer.
18186         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18187         buffer32.
18188         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18189         casting of buffer.
18190
18191 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18192
18193         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18194
18195 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18196
18197         * nscd/nscd.c (termination_handler): Don't do anything for a database
18198         if it has not yet been initialized.
18199
18200 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18201
18202         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18203
18204 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18205
18206         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18207
18208 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18209
18210         * po/nl.po: Update from translation team.
18211         * po/sv.po: Likewise.
18212
18213 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18214
18215         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18216         now disallowed by GCC.
18217
18218         * configure.in (use-default-link): Default to yes if a test -shared
18219         link meets our qualifications.
18220         * configure: Regenerated.
18221
18222         * config.make.in (output-format): New variable.
18223         * configure.in: Check for ld --print-output-format support.
18224         * configure: Regenerated.
18225         * Makerules ($(common-objpfx)format.lds)
18226         [$(output-format) != unknown]: Just use $(output-format),
18227         instead of the linker-script munging.
18228
18229 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18230
18231         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18232         of $(common-objpfx)shlib.lds.
18233         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18234
18235         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18236         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18237
18238         * configure.in (-z relro check): Adjust test code to add a large
18239         writable data section after it.
18240         * configure: Regenerated.
18241
18242 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18243
18244         * configure.in (-z relro check): Fix test code to make the variable
18245         truly const.
18246         * configure: Regenerated.
18247
18248 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18249
18250         * nscd/nscd.h (struct traced_file): Define.
18251         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18252         elements.  Add traced_files.
18253         (inotify_fd): Declare.
18254         (register_traced_file): Declare.
18255         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18256         (inotify_fd): Export.
18257         (resolv_conf_descr): Remove.
18258         (nscd_init): Move inotify descriptor creation to main.
18259         Don't register files for notification here.
18260         (register_traced_file): New function.
18261         (invalidate_cache): Don't use reset_res to determine whether to call
18262         res_init, go through the list of registered files.
18263         (main_loop_poll): The inotify descriptors are now stored in the
18264         structures for the traced files.
18265         (main_loop_epoll): Likewise
18266         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18267         to __nss_disable_nscd.
18268         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18269         for a database anymore.  Check the records for all the registered
18270         files instead.
18271         * nss/Makefile (libnss_files-routines): Add files-init.
18272         (libnss_db-routines): Add db-init.
18273         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18274         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18275         * nss/nss_db/db-init.c: New file.
18276         * nss/nss_files/files-init.c: New file.
18277         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18278         __nss_lookup_function.
18279         (__nss_lookup_function): Call nss_load_library.
18280         (nss_load_all_libraries): New function.
18281         (__nss_disable_nscd): Take parameter with callback function for files
18282         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18283         used for the cached services.
18284         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18285         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18286         options for features to all the files in nscd.
18287
18288         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18289
18290 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18291
18292         * csu/elf-init.c (__libc_csu_init): Comment typo.
18293
18294 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18295
18296         * po/pl.po: Update from translation team.
18297         * po/ja.po: Likewise.
18298         * po/ru.po: Likewise.
18299         * po/ko.po: Likewise.
18300         * po/fr.po: Likewise.
18301
18302 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18303
18304         * configure.in (.ctors/.dtors header and trailer check):
18305         Use an empirical test on a built program.
18306         * configure: Regenerated.
18307
18308         * configure.in (-z relro check): Use an empirical test on a built DSO.
18309         Detect, but do not require, on ia64.
18310         * configure: Regenerated.
18311
18312         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18313         Update tests that use readelf to use $READELF instead.
18314         * configure: Regenerated.
18315
18316 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18317
18318         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18319         if the result is not used.
18320
18321 2011-07-05  Andreas Jaeger  <aj@suse.de>
18322
18323         [BZ#9696]
18324         * stdlib/tst-strtod.c: Add testcase.
18325
18326 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18327
18328         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18329         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18330         The latter has a higher limit.  Take additional parameter to pass to
18331         the new function.
18332         (__pathconf): Pass file to __statfs_link_max.
18333         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18334         __statfs_link_max.
18335         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18336         __statfs_link_max.
18337
18338         [BZ #12868]
18339         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18340         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18341         Handle Lustre.
18342         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18343         (__statfs_filesize_max): Likewise.
18344         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18345
18346 2011-07-05  Andreas Jaeger  <aj@suse.de>
18347
18348         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18349
18350 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18351
18352         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18353         `status' variable.
18354         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18355         Likewise.
18356
18357 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18358
18359         * Makefile (strop-tests): Add strncat.
18360         * string/test-strncat.c: New file.
18361
18362 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18363
18364         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18365
18366 2011-06-21  Andreas Jaeger  <aj@suse.de>
18367
18368         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18369         Copy rule from iconvdata/Makefile.
18370
18371 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18372
18373         [BZ #12922]
18374         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18375         but no long options are defined, just return 'W'.
18376
18377 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18378
18379         [BZ #9696]
18380         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18381
18382 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18383
18384         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18385         netgroups to read.
18386         (innetgr): Likewise.
18387
18388 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18389
18390         * config.make.in (install_root): Default to $(DESTDIR).
18391
18392 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18393
18394         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18395
18396 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18397
18398         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18399
18400         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18401         containing directory rather than embedding absolute directory names.
18402
18403         * scripts/check-local-headers.sh: Rewritten using awk.
18404         Match by word, not by line.  Print error messages for matches.
18405         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18406
18407         * Makerules [shlib-lds-flags empty]:
18408         ($(common-objpfx)libc_pic.opts): New target.
18409         ($(common-objpfx)libc_pic.os.clean): New target.
18410         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18411
18412         * config.make.in (OBJCOPY): New variable.
18413         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18414         * configure: Regenerated.
18415
18416         * config.make.in (use-default-link): New variable.
18417         * configure.in (use_default_link): Grok --with-default-link to set it.
18418         * configure: Regenerated.
18419         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18420         (shlib-lds, shlib-lds-flags): Define to empty.
18421
18422         * Makerules (shlib-lds): New variable.
18423         (shlib-lds-flags): New variable.
18424         (build-shlib, build-moduile, build-module-asneeded): Use it.
18425         ($(common-objpfx)libc.so): Use $(shlib-lds).
18426         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18427         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18428
18429         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18430         DT_FLAGS/DT_FLAGS_1 with zero flags.
18431
18432         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18433         linker script munging.
18434
18435 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18436
18437         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18438         as 128-bit value.
18439         * crypt/sha512.c (sha512_process_block): Perform total addition using
18440         128-bit if possible.
18441         (__sha512_finish_ctx): Likewise.
18442         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18443         as 64-bit value.
18444         * crypt/sha256.c (SWAP64): Define.
18445         (sha256_process_block): Perform total addition using 64-bit if
18446         possible.
18447         (__sha256_finish_ctx): Likewise.
18448
18449 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18450
18451         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18452         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18453         * nscd/hstcache.c (cache_addhst): Likewise.
18454         * nscd/grpcache.c (cache_addgr): Likewise.
18455         * nscd/aicache.c (addhstaiX): Likewise
18456         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18457
18458 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18459
18460         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18461         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18462         * nscd/hstcache.c (cache_addhst): Likewise.
18463         * nscd/grpcache.c (cache_addgr): Likewise.
18464         * nscd/aicache.c (addhstaiX): Likewise
18465
18466 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18467
18468         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18469         domain only when needed.
18470
18471 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18472
18473         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18474         is always restored.
18475
18476 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18477
18478         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18479         are re-adding the entry.
18480         * nscd/servicescache.c (cache_addserv): Likewise.
18481
18482 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18483
18484         * sysdeps/generic/dl-irel.h: fix protection against multiple
18485         inclusions.
18486         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18487
18488 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18489
18490         [BZ #12935]
18491         * malloc/memusage.sh: Fix quoting in message.
18492         * debug/xtrace.sh: Likewise.
18493
18494         * configure.in: Remove support for --experimental-malloc option, make
18495         it the default.
18496         * config.make.in: Likewise.
18497         * malloc/Makefile: Likewise.
18498
18499 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18500
18501         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18502         two-byte characters.
18503
18504 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18505
18506         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18507         AC_CACHE_CHECK invocation.
18508         * configure: Regenerated.
18509
18510         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18511
18512 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18513
18514         [BZ #12350]
18515         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18516         bit from old_res_options.
18517
18518         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18519
18520         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18521         value type for setfct.
18522
18523 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18524
18525         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18526         __gettimeofday instead of gettimeofday.
18527
18528 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18529
18530         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18531
18532 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18533
18534         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18535
18536         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18537         info.
18538
18539 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18540
18541         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18542         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18543         strcpy-sse2-unaligned strncpy-sse2-unaligned
18544         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18545         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18546         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18547         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18548         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18549         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18550         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18551         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18552         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18553         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18554         (STRCPY): Support SSE2 and SSSE3 versions.
18555
18556 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18557
18558         [BZ #12874]
18559         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18560         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18561         kernels which artificially limit size of requests.
18562
18563 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18564
18565         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18566         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18567         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18568         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18569         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18570         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18571         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18572         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18573         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18574         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18575         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18576         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18577         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18578         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18579         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18580         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18581         Enable unaligned load optimization for Intel Core i3, i5 and i7
18582         processors.
18583         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18584         Define.
18585         (index_Fast_Unaligned_Load): Define.
18586         (HAS_FAST_UNALIGNED_LOAD): Define.
18587
18588 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18589
18590         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18591
18592 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18593
18594         [BZ #12907]
18595         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18596         until it is clear that the information is realy needed.
18597         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18598
18599 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18600
18601         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18602
18603 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18604
18605         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18606         /sys/devices/system/cpu/online if it is usable.
18607
18608         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18609         reading the information from the /proc filesystem to once a second.
18610
18611 2011-06-21  Andreas Jaeger  <aj@suse.de>
18612
18613         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18614         NULL after inclusion of kernel headers.
18615
18616 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18617
18618         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18619         calls to internal_setent.
18620
18621         [BZ #12885]
18622         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18623         addresses using gethostbyname4_r ignore IPv4 addresses.
18624
18625         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18626         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18627
18628         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18629
18630 2011-06-20  David S. Miller  <davem@davemloft.net>
18631
18632         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18633         inclusions.
18634         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18635
18636         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18637         (elf_irel): Use it.
18638         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18639         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18640         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18641         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18642         * sysdeps/x86_64/dl-irel.h: Likewise.
18643
18644         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18645         * elf/dl-sym.c: Likewise.
18646
18647 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18648
18649         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18650         need to dereference resplen2.
18651
18652 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18653
18654         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18655
18656 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18657
18658         * Makeconfig: Define vardbdir and inst_vardbdir.
18659         * nss/Makefile: Add rules to install db-Makefile.
18660
18661         * nss/nss_db/db-XXX.c: Cleanup.
18662
18663         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18664         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18665         GLIBC_PRIVATE.
18666         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18667         * nss/makedb.c: Implement -g option to specify that value strings
18668         are generated and should not be added to table iterated over for
18669         get*ent calls.
18670         * nss/nss_db/db-initgroups.c: New file.
18671
18672         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18673         interface.
18674
18675         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18676         (internal_getgrouplist): Adjust to name change.
18677         Update use_initgroups_entry if this is not the first call.
18678         * nss/databases.def: Add initgroups entry.
18679
18680         * nss/makedb.c (compute_tables): Check result of multiple hash table
18681         sizes to minimize maximum chain length.
18682
18683 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18684
18685         * Versions.def: Add entry for libnss_db.
18686         * shlib-versions: Likewise.
18687         * nss/Makefile: Add rules to build libnss_db.
18688         * nss/Versions: Add libnss_db information.  Organize libnss_files
18689         entries better.
18690         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18691         makedb progra.  Some minor improvements to generate smaller files.
18692         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18693         here from...
18694         * nss/makedb.c: ...here.
18695         Improve database format to be smaller and require less memory at
18696         runtime.
18697         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18698         db anymore.
18699         * nss/nss_db/db-netgrp.c: Likewise.
18700         * nss/nss_db/db-open.c: Likewise.
18701         * nss/nss_files/flies-XXX.x: Adjust comments.
18702         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18703         * nss/nss_files/files-grp.c: Likewise.
18704         * nss/nss_files/files-hosts.c: Likewise.
18705         * nss/nss_files/files-network.c: Likewise.
18706         * nss/nss_files/files-proto.c: Likewise.
18707         * nss/nss_files/files-pwd.c: Likewise.
18708         * nss/nss_files/files-rpc.c: Likewise.
18709         * nss/nss_files/files-service.c: Likewise.
18710         * nss/nss_files/files-sgrp.c: Likewise.
18711         * nss/nss_files/files-spwd.c: Likewise.
18712         * nss/nss_db/db-alias.c: Removed.
18713         * nss/nss_db/dummy-db.h: Removed.
18714
18715 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18716
18717         * nss/makedb.c: Rewritten to not use database library.
18718         * nss/Makefile: Update to build new makedb program.
18719
18720 2011-06-14  Andreas Jaeger  <aj@suse.de>
18721
18722         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18723         memset declaration.
18724
18725 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18726
18727         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18728         tmpbuf.
18729
18730 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18731
18732         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18733         * elf/Makefile ($(objpfx)ld.so): Likewise.
18734
18735         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18736         Don't list ld.so twice in dependencies.
18737
18738         * posix/bug-regex31.c: Include <stdlib.h>.
18739
18740         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18741
18742         * nis/nss_compat/compat-spwd.c
18743         (getspent_next_nss_netgr): Remove unused variable.
18744         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18745
18746         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18747         nonmembers" output to use the right array.
18748
18749         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18750
18751         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18752
18753         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18754         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18755         * catgets/gencat.c (read_input_file): Likewise.
18756         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18757
18758         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18759         variable definition inside #if's controlling its use.
18760
18761         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18762
18763         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18764
18765         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18766
18767         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18768         unreachable code.
18769
18770         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18771
18772         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18773         * configure: Regenerated.
18774
18775         * Makerules: Revert last change.
18776         * elf/Makefile: Likewise.
18777
18778 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18779
18780         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18781         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18782         (reloc-link): Likewise.
18783
18784 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18785
18786         * elf/Makefile: Add rules to build pldd.
18787         * elf/pldd.c: New file.
18788         * elf/pldd-xx.c: New file.
18789
18790 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18791
18792         * version.h: Update for 2.15 development version.
18793
18794 2011-06-07  David S. Miller  <davem@davemloft.net>
18795
18796         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18797         ifuncs.
18798         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18799         elf_machine_lazy_rel): Likewise.
18800         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18801         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18802         elf_machine_lazy_rel): Likewise.
18803         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18804         dl_hwcap via passed in argument.
18805         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18806         Likewise.
18807
18808 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18809
18810         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18811
18812 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18813
18814         [BZ #12849]
18815         * manual/fdl-1.1.texi: New file, verbatim from:
18816         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18817         * manual/lgpl-2.1.texi: New file, verbatim from:
18818         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18819         * manual/Makefile (licenses): New variable, list those new file names.
18820         (texis): Use it.
18821         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18822
18823         * manual/fdl.texi: File removed.
18824         * manual/lesser.texi: File removed.
18825         * manual/libc.texinfo (Copying, Documentation License):
18826         Use new @include file names, put @appendix directive before @include.
18827
18828 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18829
18830         [BZ #12841]
18831         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18832         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18833         (mq_open): Add __NTH.
18834
18835 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18836
18837         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18838         Assume Intel Core i3/i5/i7 processor if AVX is available.
18839
18840 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18841
18842         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18843         typo.
18844
18845 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18846
18847         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18848         memory.  Use alloca_account.  Fix memory leak when retrying.
18849
18850 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18851
18852         * version.h (RELEASE): Bump for 2.14 release.
18853         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18854
18855         * config.make.in (RANLIB): Remove entry.
18856
18857 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18858
18859         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18860         (libc.pot): Work around missing support for .ksh extension in xgettext.
18861
18862         [BZ #12684]
18863         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18864         if both request failed.
18865         (send_dg): In case of server errors clear resplen or *resplen2.
18866
18867         [BZ #12454]
18868         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18869         when there are multiple maps.
18870         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18871         (_dl_fini): Remove test here.
18872
18873         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18874
18875 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18876
18877         [BZ #12350]
18878         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18879         bit from old_res_options.
18880         (gaih_inet): Likewise.
18881
18882         [BZ #11099]
18883         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18884         as signed.
18885
18886         * resolv/res_init.c (res_setoptions): Make the code more compact.
18887
18888         [BZ #11558]
18889         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18890         set RES_USEVC.
18891
18892         [BZ #11634]
18893         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18894
18895         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18896
18897         [BZ #11781]
18898         * malloc/malloc.h: Declare malloc hook variables as volatile.
18899
18900         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18901         in last patch.
18902
18903         [BZ #11799]
18904         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18905         raise in the comment.
18906         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18907         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18908         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18909
18910 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18911
18912         [BZ #12811]
18913         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18914         grow the buffers more if it already has to be sufficient.
18915         (build_wcs_upper_buffer): Likewise.
18916         * posix/regexec.c (check_matching): Likewise.
18917         (clean_state_log_if_needed): Likewise.
18918         (extend_buffers): Don't enlarge buffers beyond size of the input
18919         buffer.
18920         Patches mostly by Emil Wojak <emil@wojak.eu>.
18921         * posix/bug-regex32.c: New file.
18922         * posix/Makefile (tests): Add bug-regex32.
18923
18924         * locale/findlocale.c (_nl_find_locale): Return right away if
18925         _nl_explode_name failed.
18926         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18927
18928         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18929
18930         * debug/xtrace.sh: Unify messages.
18931         * malloc/memusage.sh: Likewise.
18932
18933         [BZ #12813]
18934         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18935         time symbol from vDSO.  Substitute with vsyscall if not available.
18936         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18937         __vdso_time.
18938
18939         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18940         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18941         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18942         Add sendmmsg and internal_sendmmsg.
18943         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18944         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18945         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18946
18947         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18948         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18949         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18950
18951 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18952
18953         [BZ #12813]
18954         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18955         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18956         available.
18957         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18958         __vdso_getcpu.
18959
18960         [BZ #12814]
18961         * iconvdata/Makefile (tests): Add bug-iconv9.
18962         * iconvdata/bug-iconv9.c: New file.
18963
18964 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18965
18966         [BZ #12814]
18967         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18968
18969 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18970
18971         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18972         (struct user_regs_struct): Change intcs field back to cs.
18973
18974 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18975
18976         * po/ja.po: Update from translation team.
18977
18978 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18979
18980         [BZ #12795]
18981         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18982         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18983
18984 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18985
18986         * stdlib/longlong.h: Update from GCC.
18987
18988 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18989
18990         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18991         parameter name.
18992         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18993         Add parameter name.
18994         (__sysconf): Pass it down.
18995
18996 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18997
18998         [BZ #12671]
18999         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19000         some situations.
19001         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19002         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19003         add in in __libc_use_alloca calls.  Adjust callers.
19004         (glob): Use malloc in some situations.
19005
19006         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19007         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19008         pltexit.
19009
19010 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19011
19012         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19013         and CLOCK_BOOTTIME_ALARM.
19014
19015         [BZ #12782]
19016         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19017         is returned.
19018
19019         * string/_strerror.c (__strerror_r): Print negative errors as signed
19020         numbers.
19021
19022         [BZ #12777]
19023         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19024         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19025         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19026
19027         * configure.in: Fix typo in redirection and correct removal of test
19028         files in two cases.
19029
19030         [BZ #12788]
19031         * locale/setlocale.c (new_composite_name): Fix test to check for
19032         identical name of all categories.
19033
19034         [BZ #12792]
19035         * libio/filedoalloc.c (local_isatty): New function.
19036         (_IO_file_doallocate): Use local_isatty.
19037         * stdio-common/perror.c (perror): In case a new stream is used
19038         forward the stream error.
19039         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19040         error flag.
19041
19042 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19043
19044         [BZ #11869]
19045         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19046         alloca.
19047         * include/alloca.h (extend_alloca_account): Define.
19048
19049         [BZ #11857]
19050         * posix/regex.h: Fix comments with documentation of user-accessible
19051         fields after compilation and describe correct free'ing of pattern
19052         after re_compile_pattern.
19053         Patch by Reuben Thomas <rrt@sc3d.org>.
19054
19055 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19056
19057         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19058         and -mno-altivec to prevent the compiler from using Altivec and/or
19059         VSX instructions when the corresponding registers are not available.
19060
19061 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19062
19063         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19064
19065 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19066
19067         * libio/freopen.c (freopen): Use __dup2, not dup2.
19068         * libio/freopen64.c (freopen64): Likewise.
19069
19070 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19071
19072         [BZ #12775]
19073         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19074         * math/Makefile (tests): Add test-powl.
19075         (CFLAGS-test-powl.c): Define.
19076         * math/test-powl.c: New file.
19077
19078 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19079
19080         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19081
19082 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19083
19084         [BZ #11837]
19085         * iconvdata/gb18030.c: Update to GB18020-2005.
19086
19087 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19088
19089         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19090         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19091         Patch by Aharon Robbins <arnold@skeeve.com>.
19092
19093         [BZ #11892]
19094         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19095         on the stack.
19096
19097         [BZ #11895]
19098         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19099         through underflows.
19100
19101         [BZ #12766]
19102         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19103         point to strings before performing equality test for error_one_per_line
19104         mode.
19105
19106         [BZ #11697]
19107         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19108
19109         [BZ #11820]
19110         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19111         (struct user_fpregs_struct): Avoid __uint*_t types.
19112
19113         [BZ #6420]
19114         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19115         symbol info.  Use it instead of calling _dl_addr locally.
19116         (lock_and_info): New function.
19117         (tr_freehook): Call lock_and_info and pass symbol info as additional
19118         parameter to tr_where.
19119         (tr_mallochook): Likewise.
19120         (tr_reallochook): Likewise.
19121         (tr_memalignhook): Likewise.
19122
19123         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19124         used and couldn't be at all thread-safe.
19125
19126 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19127
19128         * libio/freopen.c (freopen): Don't close old file descriptor
19129         before the new one is opened.  Instead dup the new file descriptor
19130         to the old one after the new stream is created.
19131         * libio/freopen64.c (freopen64): Likewise.
19132         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19133         * libio/fileops.c (_IO_new_file_close_it): Handle new
19134         _IO_FLAGS2_NOCLOSE flag.
19135         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19136         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19137         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19138         _IO_FLAGS2_NOCLOSE flag.
19139         * include/unistd.h: Add hidden_proto for dup3.
19140         Define __have_dup3.
19141         * io/dup3.c: Define hidden symbol.
19142         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19143
19144         [BZ #7101]
19145         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19146         when an incomplete long option is used.
19147         * posix/tst-getopt_long1.c: New file.
19148         * posix/Makefile (tests): Add tst-getopt_long1.
19149
19150         [BZ #10138]
19151         * scripts/config.guess: Update from autoconf-2.68.
19152         * scripts/config.sub: Likewise.
19153
19154         [BZ #10157]
19155         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19156         tests into ...
19157         (has_cpuclock): ...this.  New function.
19158         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19159         macro here based on has_cpuclock code.
19160
19161         [BZ #10149]
19162         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19163         First byte (not low byte) is now always NUL.
19164         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19165
19166         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19167         Use non-cancelable interfaces.
19168
19169         [BZ #9809]
19170         * locale/iso-639.def: Add entry for Sorani.
19171
19172         [BZ #11901]
19173         * include/stdlib.h: Move include protection to the right place.
19174         Define abort_msg_s.  Declare __abort_msg with it.
19175         * stdlib/abort.c (__abort_msg): Adjust type.
19176         * assert/assert.c (__assert_fail_base): New function.  Majority
19177         of code from __assert_fail.  Allocate memory for __abort_msg with
19178         mmap.
19179         (__assert_fail): Now call __assert_fail_base.
19180         * assert/assert-perr.c: Remove bulk of implementation.  Use
19181         __assert_fail_base.
19182         * include/assert.hL Declare __assert_fail_base.
19183         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19184         mmap.
19185         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19186
19187 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19188
19189         [BZ #11952]
19190         [BZ #12453]
19191         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19192         until all modules are registered in the DTV.
19193         * elf/Makefile: Add rules to build and run tst-tls19.
19194         * elf/tst-tls19.c: New file.
19195         * elf/tst-tls19mod1.c: New file.
19196         * elf/tst-tls19mod2.c: New file.
19197         * elf/tst-tls19mod3.c: New file.
19198         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19199
19200         [BZ #12083]
19201         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19202         correctly.
19203
19204         [BZ #12601]
19205         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19206         two-byte sequence errors.
19207         * iconvdata/Makefile (tests): Add bug-iconv8.
19208         * iconvdata/bug-iconv8.c: New file.
19209
19210         [BZ #12626]
19211         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19212         buf2 definition.
19213
19214         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19215
19216         [BZ #12432]
19217         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19218         (dummy_getcfa): New function.
19219         (init): Get _Unwind_GetCFA address, use dummy if not found.
19220         (backtrace_helper): In recursion check, also check whether CFA changes.
19221         (__backtrace): Completely initialize arg.
19222
19223         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19224         storing incomplete byte sequence in state object.  Avoid testing for
19225         guaranteed too small input if we know there is enough data available.
19226
19227 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19228
19229         * Makeconfig (+link-pie): Indent.
19230         * Rules (binaries-pie): Define if $(have-fpie) and
19231         $(build-shared).
19232         (binaries-shared): Also filter out $(binaries-pie).
19233         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19234         * nscd/Makefile (others-pie): Add nscd.
19235         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19236         ($(objpfx)nscd): Remove command override.
19237         * login/Makefile (others-pie): Add pt_chown.
19238         ($(objpfx)pt_chown): Remove command override.
19239         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19240         remove command overrides.
19241
19242 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19243
19244         * libio/tst_putwc.c: Fix error messages.
19245
19246         [BZ #12724]
19247         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19248         currently writing and seek to current position when not.
19249         * libio/Makefile (tests): Add bug-fclose1.
19250         * libio/bug-fclose1.c: New file.
19251
19252 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19253
19254         [BZ #12511]
19255         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19256         don't set DF_1_NODELETE here.
19257         (do_lookup_x): When entering new entry test for copy relocation
19258         and if necessary set DF_1_NODELETE flag.
19259         * elf/tst-unique4.cc: New file.
19260         * elf/tst-unique4.h: New file.
19261         * elf/tst-unique4lib.cc: New file.
19262         * elf/Makefile: Add rules to build and run tst-unique4.
19263         Patch by Piotr Bury <pbury@goahead.com>.
19264
19265 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19266
19267         [BZ #12052]
19268         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19269
19270         [BZ #12625]
19271         * misc/mntent_r.c (addmntent): Flush the stream after the output
19272
19273         [BZ #12393]
19274         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19275         (is_trusted_path_normalize): Skip initial colon.  Append slash
19276         to empty buffer.  Duplicate is_trusted_path code but allow
19277         constructed patch to be prefix.
19278         (is_dst): Allow $ORIGIN followed by /.
19279         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19280         Correct testing of result of is_trusted_path_normalize
19281         (decompose_rpath): Fix warning.
19282
19283 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19284
19285         [BZ #11257]
19286         * grp/initgroups.c (internal_getgrouplist): When we found the service
19287         list through the initgroups entry in nsswitch.conf do not always
19288         continue on a successful lookup.  Don't always use the
19289         __nss_group_database value if it is set.
19290         * nss/nsswitch.conf (initgroups): Change action for successful db
19291         lookup to continue for compatibility.
19292
19293 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19294
19295         [BZ #11532]
19296         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19297         and CP774 modules.
19298         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19299         and CP774 modules.
19300         * iconvdata/tst-tables.sh: Likewise.
19301         * iconvdata/cp770.c: New file.
19302         * iconvdata/cp771.c: New file.
19303         * iconvdata/cp772.c: New file.
19304         * iconvdata/cp773.c: New file.
19305         * iconvdata/cp774.c: New file.
19306         * iconvdata/testdata/CP770: New file.
19307         * iconvdata/testdata/CP770..UTF8: New file.
19308         * iconvdata/testdata/CP771: New file.
19309         * iconvdata/testdata/CP771..UTF8: New file.
19310         * iconvdata/testdata/CP772: New file.
19311         * iconvdata/testdata/CP772..UTF8: New file.
19312         * iconvdata/testdata/CP773: New file.
19313         * iconvdata/testdata/CP773..UTF8: New file.
19314         * iconvdata/testdata/CP774: New file.
19315         * iconvdata/testdata/CP774..UTF8: New file.
19316
19317         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19318         END CHARMAP line.
19319         * iconvdata/gen-8bit-gap.sh: Likewise.
19320         * iconvdata/gen-8bit.sh: Likewise.
19321
19322         * locale/iso-639.def: Add ary entry.
19323
19324         [BZ #11258]
19325         * locale/C-translit.h.in: Add U20A1 transliteration.
19326
19327         [BZ #12178]
19328         * locale/iso-639.def: Add wae entry.
19329         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19330
19331         [BZ #12545]
19332         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19333         for n.
19334
19335         [BZ #12711]
19336         * locale/C-translit.h.in: Add entry for U20B9.
19337         Patch by pravin.d.s@gmail.com.
19338
19339 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19340
19341         [BZ #12713]
19342         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19343         ENAMETOOLONG use generic getcwd.
19344         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19345         in rtld.  Use *stat64.
19346         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19347         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19348         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19349         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19350         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19351         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19352         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19353         __fstatat64 macros.
19354         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19355         * dirent/rewinddir.c: Add libc_hidden_def.
19356         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19357         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19358
19359         * include/dirent.h (__alloc_dir): Add flags parameter.
19360         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19361         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19362         __alloc_dir.
19363         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19364         from fdopendir if O_CLOEXEC is already set.
19365
19366 2011-03-15  Alan Modra  <amodra@gmail.com>
19367
19368         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19369         l_tls_firstbyte_offset non-zero.  Save padding offset in
19370         l_tls_firstbyte_offset for later use.
19371         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19372         freeing static tls block.
19373
19374 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19375
19376         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19377         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19378         being defined by the kernel headers.
19379
19380 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19381
19382         [BZ #12734]
19383         * resolv/resolv.h: Define RES_NOTLDQUERY.
19384         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19385         no-tld-query and set RES_NOTLDQUERY.
19386         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19387         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19388         modern BIND to search name as TLD unless forbidden.
19389
19390 2011-05-07  Petr Baudis  <pasky@suse.cz>
19391             Ulrich Drepper  <drepper@gmail.com>
19392
19393         [BZ #12393]
19394         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19395         (is_trusted_path): ...to here.
19396         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19397         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19398         using is_trusted_path_normalize() in setuid scripts.
19399
19400 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19401
19402         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19403         __BEGIN/__END_DECLS.
19404
19405 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19406
19407         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19408         NSS_STATUS_NOTFOUND if no record was found.
19409
19410 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19411
19412         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19413         (headers-not-in-tirpc): Remove rpc/netdb.h
19414         * resolv/netdb.h: Revert last change.
19415
19416 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19417
19418         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19419         circular dependency between libgcc.a and libc.a.
19420
19421 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19422
19423         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19424         * nis/Makefile: Don't install rpcsvc/*.
19425         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19426         instead of <rpc/types.h>.
19427         (MAXHOSTNAMELEN): Define.
19428
19429 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19430
19431         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19432
19433 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19434
19435         [BZ #12714]
19436         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19437         gethostbyname4_r when IPv6 results are possible.
19438
19439 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19440
19441         [BZ #12723]
19442         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19443         _PC_PIPE_BUF handling.
19444
19445 2011-04-30  Bruno Haible  <bruno@clisp.org>
19446
19447         [BZ #12717]
19448         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19449         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19450         to 'int'.
19451         * inet/getnameinfo.c (getnameinfo): Likewise.
19452
19453 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19454
19455         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19456         to groups setting in database lookup.
19457         * nss/nsswitch.conf: Add initgroups entry.
19458
19459 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19460
19461         [BZ #12685]
19462         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19463         mode string.
19464         Patch by Eric Blake <eblake@redhat.com>.
19465
19466 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19467
19468         * sunrpc/Makefile (need-export-routines): Add svc_run.
19469         (routines): Remove svc_run.
19470         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19471         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19472         * sunrpc/svc_run.c (svc_run): Likewise.
19473         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19474
19475 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19476
19477         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19478         problem in reallocation in last patch.
19479
19480 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19481
19482         * sunrpc/Makefile: Move inclusion of Rules.
19483
19484 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19485
19486         * nss/nss_files/files-initgroups.c: New file.
19487         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19488         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19489         _nss_files_initgroups_dyn.
19490
19491 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19492
19493         * elf/elf.h (R_ARM_IRELATIVE): Define.
19494
19495 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19496
19497         * po/ru.po: Update from translation team.
19498
19499 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19500
19501         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19502         dependencies.
19503
19504 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19505
19506         [BZ #12653]
19507         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19508         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19509         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19510         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19511         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19512
19513 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19514
19515         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19516         differing bytes.
19517         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19518         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19519         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19520
19521 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19522
19523         [BZ #12420]
19524         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19525         storing it.
19526         * stdlib/bug-getcontext.c: New file.
19527         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19528
19529 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19530
19531         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19532         instructions into .machine "z9-109".
19533         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19534         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19535
19536 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19537
19538         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19539         between environment variables and auxiliary vector.
19540
19541 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19542
19543         * Makefile: Add rules to build linkobj/libc.so.
19544         * include/libc-symbols.h: Define libc_hidden_nolink.
19545         * include/rpc/auth.h: Mark functions which are to be hidden.
19546         * include/rpc/auth_des.h: Likewise.
19547         * include/rpc/auth_unix.h: Likewise.
19548         * include/rpc/clnt.h: Likewise.
19549         * include/rpc/des_crypt.h: Likewise.
19550         * include/rpc/key_prot.h: Likewise.
19551         * include/rpc/pmap_clnt.h: Likewise.
19552         * include/rpc/pmap_prot.h: Likewise.
19553         * include/rpc/pmap_rmt.h: Likewise.
19554         * include/rpc/rpc_msg.h: Likewise.
19555         * include/rpc/svc.h: Likewise.
19556         * include/rpc/svc_auth.h: Likewise.
19557         * include/rpc/xdr.h: Likewise.
19558         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19559         * nss/Makefile: Likewise.
19560         * sunrpc/Makefile: Don't install headers.  Build library with normal
19561         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19562         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19563         for the compat linking library.  Remove use of INTDEF/INTUSE.
19564         * sunrpc/auth_none.c: Likewise.
19565         * sunrpc/auth_unix.c: Likewise.
19566         * sunrpc/authdes_prot.c: Likewise.
19567         * sunrpc/authuxprot.c: Likewise.
19568         * sunrpc/clnt_gen.c: Likewise.
19569         * sunrpc/clnt_perr.c: Likewise.
19570         * sunrpc/clnt_raw.c: Likewise.
19571         * sunrpc/clnt_simp.c: Likewise.
19572         * sunrpc/clnt_tcp.c: Likewise.
19573         * sunrpc/clnt_udp.c: Likewise.
19574         * sunrpc/clnt_unix.c: Likewise.
19575         * sunrpc/des_crypt.c: Likewise.
19576         * sunrpc/des_soft.c: Likewise.
19577         * sunrpc/get_myaddr.c: Likewise.
19578         * sunrpc/key_call.c: Likewise.
19579         * sunrpc/key_prot.c: Likewise.
19580         * sunrpc/netname.c: Likewise.
19581         * sunrpc/pm_getmaps.c: Likewise.
19582         * sunrpc/pm_getport.c: Likewise.
19583         * sunrpc/pmap_clnt.c: Likewise.
19584         * sunrpc/pmap_prot.c: Likewise.
19585         * sunrpc/pmap_prot2.c: Likewise.
19586         * sunrpc/pmap_rmt.c: Likewise.
19587         * sunrpc/publickey.c: Likewise.
19588         * sunrpc/rpc_cmsg.c: Likewise.
19589         * sunrpc/rpc_common.c: Likewise.
19590         * sunrpc/rpc_dtable.c: Likewise.
19591         * sunrpc/rpc_prot.c: Likewise.
19592         * sunrpc/rpc_thread.c: Likewise.
19593         * sunrpc/rtime.c: Likewise.
19594         * sunrpc/svc.c: Likewise.
19595         * sunrpc/svc_auth.c: Likewise.
19596         * sunrpc/svc_authux.c: Likewise.
19597         * sunrpc/svc_raw.c: Likewise.
19598         * sunrpc/svc_run.c: Likewise.
19599         * sunrpc/svc_simple.c: Likewise.
19600         * sunrpc/svc_tcp.c: Likewise.
19601         * sunrpc/svc_udp.c: Likewise.
19602         * sunrpc/svc_unix.c: Likewise.
19603         * sunrpc/svcauth_des.c: Likewise.
19604         * sunrpc/xcrypt.c: Likewise.
19605         * sunrpc/xdr.c: Likewise.
19606         * sunrpc/xdr_array.c: Likewise.
19607         * sunrpc/xdr_float.c: Likewise.
19608         * sunrpc/xdr_intXX_t.c: Likewise.
19609         * sunrpc/xdr_mem.c: Likewise.
19610         * sunrpc/xdr_rec.c: Likewise.
19611         * sunrpc/xdr_ref.c: Likewise.
19612         * sunrpc/xdr_sizeof.c: Likewise.
19613         * sunrpc/xdr_stdio.c: Likewise.
19614
19615 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19616
19617         [BZ #12650]
19618         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19619         * sysdeps/ia64/dl-tls.h: Likewise.
19620         * sysdeps/powerpc/dl-tls.h: Likewise.
19621         * sysdeps/s390/dl-tls.h: Likewise.
19622         * sysdeps/sh/dl-tls.h: Likewise.
19623         * sysdeps/sparc/dl-tls.h: Likewise.
19624         * sysdeps/x86_64/dl-tls.h: Likewise.
19625         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19626
19627 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19628
19629         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19630         rpath element also skip the following colon.
19631         (expand_dynamic_string_token): Add is_path parameter and pass
19632         down to DL_DST_REQUIRED and _dl_dst_substitute.
19633         (decompose_rpath): Call expand_dynamic_string_token with
19634         non-zero is_path.  Ignore empty rpaths.
19635         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19636         with zero is_path.
19637
19638 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19639
19640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19641         Make cancelable.
19642
19643 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19644
19645         [BZ #12655]
19646         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19647         Patch by Filipe David Manana <fdmanana@apache.org>.
19648
19649 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19650
19651         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19652         Maintain aligned stack.
19653         (CHECK_RSP): Remove unused macro.
19654
19655 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19656
19657         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19658         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19659
19660 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19661
19662         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19663
19664         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19665
19666 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19667
19668         [BZ #12518]
19669         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19670         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19671         * sysdeps/x86_64/memmove.c: New file.
19672         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19673         (memcpy): Renamed to ...
19674         (__new_memcpy): This.
19675         (memcpy): Provide GLIBC_2_14 memcpy.
19676         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19677         (memcpy): Provide GLIBC_2_2_5 memcpy.
19678
19679 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19680
19681         [BZ #12631]
19682         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19683
19684 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19685
19686         * misc/syncfs.c: New file.
19687         * misc/Makefile (routines): Add syncfs.
19688         * posix/unistd.h: Declare syncfs.
19689         * sysdeps/unix/syscalls.list: Add syncfs.
19690
19691 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19692
19693         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19694         open_by_handle_at.
19695         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19696         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19697         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19698         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19699         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19700         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19701         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19702
19703 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19704
19705         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19706         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19707         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19708         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19709         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19710         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19711         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19712
19713         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19714         sync_file_range.c with -fexceptions.
19715         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19716         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19717         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19718         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19719         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19720         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19721         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19722         sync_file_range as cancellation point
19723         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19724         now a wrapper around __call_sync_file_range with cancellation handling.
19725         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19726         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19727         function name to __call_sync_file_range.
19728         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19729         Add call_sync_file_range.
19730
19731 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19732
19733         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19734         bits/timex.h.
19735
19736 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19737
19738         * iconv/iconv.h: Fix typo in comment.
19739         * io/fcntl.h: Likewise.
19740         * libio/stdio.h: Likewise.
19741         * posix/spawn.h: Likewise.
19742         * posix/unistd.h: Likewise.
19743         * stdlib/stdlib.h: Likewise.
19744         * time/time.h: Likewise.
19745         * wcsmbs/wchar.h: Likewise.
19746
19747         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19748         open_by_handle): Add.
19749         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19750         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19751         Augment a few comments.
19752         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19753         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19754         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19755         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19756         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19757         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19758         open_by_handle.
19759
19760         * io/fcntl.h (AT_EMPTY_PATH): Define.
19761
19762 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19763
19764         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19765         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19766         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19767         to...
19768         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19769         * Versions.def: Add GLIBC_2.14.
19770         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19771         Export.
19772
19773 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19774
19775         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19776         round counter.
19777         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19778
19779 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19780
19781         [BZ #12597]
19782         * string/test-strncmp.c (do_page_test): New function.
19783         (check2): Likewise.
19784         (test_main): Call check2.
19785         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19786
19787 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19788
19789         [BZ #12587]
19790         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19791         Handle cache information in CPU leaf 4.
19792         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19793
19794 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19795
19796         [BZ #12583]
19797         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19798         character representation.
19799         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19800
19801 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19802
19803         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19804         END(__isnan) to END(__isnanf) to match function entry point/label
19805         EALIGN(__isnanf,...).
19806
19807 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19808
19809         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19810
19811 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19812
19813         [BZ #12510]
19814         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19815         copy from the symbol referenced in the relocation to initialize the
19816         used variable.
19817         Patch by Piotr Bury <pbury@goahead.com>.
19818         * elf/Makefile: Add rules to build and tst-unique3.
19819         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19820         * elf/tst-unique3.cc: New file.
19821         * elf/tst-unique3.h: New file.
19822         * elf/tst-unique3lib.cc: New file.
19823         * elf/tst-unique3lib2.cc: New file.
19824
19825         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19826
19827 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19828
19829         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19830         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19831         to _start.
19832
19833 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19834
19835         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19836         to-be-loaded object along a path to loader is ld.so.
19837
19838 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19839             Ulrich Drepper  <drepper@gmail.com>
19840
19841         * sysdeps/x86_64/memset.S: After aligning destination, code
19842         branches to different locations depending on the value of
19843         misalignment, when multiarch is enabled. Fix this.
19844
19845 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19846
19847         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19848         Set _x86_64_preferred_memory_instruction for AMD processsors.
19849         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19850         Set bit_Prefer_SSE_for_memop for AMD processors.
19851
19852 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19853
19854         * libio/fmemopen.c (fmemopen): Optimize a bit.
19855
19856 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19857
19858         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19859
19860 2011-03-03  Roland McGrath  <roland@redhat.com>
19861
19862         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19863
19864 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19865
19866         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19867         __bzero_ultra1 instead of __memset_ultra1.
19868
19869 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19870             Ulrich Drepper  <drepper@gmail.com>
19871
19872         [BZ #12509]
19873         * include/link.h (struct link_map): Add l_orig_initfini.
19874         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19875         returning unsuccessfully.
19876         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19877         close of a file loaded at startup, restore the original l_initfini
19878         list.
19879         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19880         list, store the pointer.
19881         * elf/Makefile ($(objpfx)noload-mem): New rule.
19882         (noload-ENV): Define.
19883         (tests): Add $(objpfx)noload-mem.
19884         * elf/noload.c: Include <memcheck.h>.
19885         (main): Call mtrace.  Close all opened handles.
19886
19887 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19888
19889         [BZ #12454]
19890         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19891         dependencies are missing.
19892
19893 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19894
19895         Fix __if_freereq crash: Unlike the generic version which uses free,
19896         Hurd needs munmap.
19897         * sysdeps/mach/hurd/ifreq.h: New file.
19898
19899 2011-01-27  Petr Baudis  <pasky@suse.cz>
19900             Ulrich Drepper  <drepper@gmail.com>
19901
19902         [BZ 12445]#
19903         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19904         to extend_alloca().
19905         * stdio-common/bug23.c: New file.
19906         * stdio-common/Makefile (tests): Add bug23.
19907
19908 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19909             Ulrich Drepper  <drepper@gmail.com>
19910
19911         [BZ #12489]
19912         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19913         before performing relro protection.  At old place add assertion
19914         to make sure nothing changed.
19915
19916 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19917             Glauber de Oliveira Costa  <glommer@gmail.com>
19918
19919         * elf/elf.h: Add new ARM TLS relocs.
19920
19921 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19922
19923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19924         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19925         cast from r3.
19926         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19927         'tests' variable.
19928         * sysdeps/wordsize-64/tst-writev.c: New file.
19929
19930 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19931
19932         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19933         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19934         insns in _dl_start to prevent a TOC reference before relocs are
19935         resolved.
19936
19937 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19938
19939         [BZ #12469]
19940         * Makeconfig: Remove RANLIB definition.
19941         * Makerules: Don't use RANLIB.
19942         * aclocal.m4: Remove ranlib test.
19943         * configure.in: No need to check for ranlib.
19944         * elf/rtld-Rules: Don't use RANLIB.
19945
19946 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19947
19948         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19949         protection macro.
19950         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19951         inclusion protection macro.
19952
19953         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19954         SIGRTMIN and SIGRTMAX and print information in that case only when
19955         SIGRTMIN is defined.
19956
19957 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19958
19959         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19960         arginfo fn returning -1.
19961
19962         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19963         and thousands string is zero terminated.
19964
19965 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19966
19967         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19968         sysdeps/unix/sysv/linux/bits/socket.h.
19969
19970 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19971
19972         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19973         (__CPU_COUNT): Remove old macros.
19974         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19975         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19976         (__CPU_ALLOC, __CPU_FREE): Add macros.
19977         (__sched_cpualloc, __sched_cpufree): Add declarations.
19978
19979 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19980
19981         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19982         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19983         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19984         (readdhstai): Return value of addhstaiX call.
19985         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19986         (addgrbyX): Return value returned by cache_addgr.
19987         (readdgrbyname): Return value returned by addgrbyX.
19988         (readdgrbygid): Likewise.
19989         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19990         (addpwbyX): Return value returned by cache_addpw.
19991         (readdpwbyname): Return value returned by addhstbyX.
19992         (readdpwbyuid): Likewise.
19993         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19994         (addservbyX): Return value returned by cache_addserv.
19995         (readdservbyname): Return value returned by addservbyX:
19996         (readdservbyport): Likewise.
19997         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19998         (addhstbyX): Return value returned by cache_addhst.
19999         (readdhstbyname): Return value returned by addhstbyX.
20000         (readdhstbyaddr): Likewise.
20001         (readdhstbynamev6): Likewise.
20002         (readdhstbyaddrv6): Likewise.
20003         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20004         (readdinitgroups): Return value returned by addinitgroupsX.
20005         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20006         (prune_cache): Keep track of timeout value of re-added entries.
20007         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20008         * nscd/nscd.h: Adjust prototypes of readd* functions.
20009
20010 2011-02-04  Roland McGrath  <roland@redhat.com>
20011
20012         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20013         (nis_stats): Likewise.
20014         * nis/nis_modify.c (nis_modify): Likewise.
20015         * nis/nis_remove.c (nis_remove): Likewise.
20016         * nis/nis_add.c (nis_add): Likewise.
20017
20018         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20019
20020         * posix/fnmatch_loop.c: Add some consts.
20021
20022         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20023
20024 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20025
20026         [BZ #12460]
20027         * config.make.in (config-cflags-novzeroupper): Define.
20028         * configure.in: Substitute libc_cv_cc_novzeroupper.
20029         * elf/Makefile (AVX-CFLAGS): Define.
20030         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20031         (CFLAGS-tst-auditmod4a.c): Likewise.
20032         (CFLAGS-tst-auditmod4b.c): Likewise.
20033         (CFLAGS-tst-auditmod6b.c): Likewise.
20034         (CFLAGS-tst-auditmod6c.c): Likewise.
20035         (CFLAGS-tst-auditmod7b.c): Likewise.
20036         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20037
20038 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20039
20040         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20041         function to the callback.
20042         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20043
20044 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20045
20046         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20047         of errno.
20048
20049 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20050
20051         [BZ #11724]
20052         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20053         of constructors.
20054         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20055         of destructors.
20056         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20057
20058         [BZ #11724]
20059         * elf/Makefile: Add rules to build and run new test.
20060         * elf/tst-initorder.c: New file.
20061         * elf/tst-initorder.exp: New file.
20062         * elf/tst-initordera1.c: New file.
20063         * elf/tst-initordera2.c: New file.
20064         * elf/tst-initordera3.c: New file.
20065         * elf/tst-initordera4.c: New file.
20066         * elf/tst-initorderb1.c: New file.
20067         * elf/tst-initorderb2.c: New file.
20068         * elf/tst-order-a1.c: New file.
20069         * elf/tst-order-a2.c: New file.
20070         * elf/tst-order-a3.c: New file.
20071         * elf/tst-order-a4.c: New file.
20072         * elf/tst-order-b1.c: New file.
20073         * elf/tst-order-b2.c: New file.
20074         * elf/tst-order-main.c: New file.
20075         New test case by George Gensure <werkt0@gmail.com>.
20076
20077 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20078
20079         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20080         decoding ACE if AI_CANONIDN.
20081
20082 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20083
20084         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20085
20086 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20087
20088         * version.h (RELEASE): Bump for 2.13 release.
20089         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20090
20091         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20092
20093         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20094         MADV_NOHUGEPAGE.
20095         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20096         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20097         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20098         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20099         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20100         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20101
20102         * posix/getconf.c: Update copyright year.
20103         * catgets/gencat.c: Likewise.
20104         * csu/version.c: Likewise.
20105         * debug/catchsegv.sh: Likewise.
20106         * debug/xtrace.sh: Likewise.
20107         * elf/ldconfig.c: Likewise.
20108         * elf/ldd.bash.in: Likewise.
20109         * elf/sprof.c (print_version): Likewise.
20110         * iconv/iconv_prog.c: Likewise.
20111         * iconv/iconvconfig.c: Likewise.
20112         * locale/programs/locale.c: Likewise.
20113         * locale/programs/localedef.c: Likewise.
20114         * malloc/memusage.sh: Likewise.
20115         * malloc/mtrace.pl: Likewise.
20116         * nscd/nscd.c (print_version): Likewise.
20117         * nss/getent.c: Likewise.
20118
20119         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20120         PF_CAIF, and PF_ALG.
20121         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20122
20123 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20124
20125         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20126         (modules-names): Use them.
20127         (ifunc-test-modules, ifunc-pie-tests): Define.
20128         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20129         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20130         (test-extras): Likewise.
20131         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20132         $(compile-command.c).
20133         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20134         (all-built-dso): Define.
20135         (check-textrel.out, check-execstack.out): Depend on it.
20136
20137         * configure.in: Don't override --enable-multi-arch.
20138
20139 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20140
20141         [BZ #6812]
20142         * nscd/hstcache.c (tryagain): Define.
20143         (cache_addhst): Return tryagain not notfound for temporary errors.
20144         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20145         failed.
20146
20147 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20148
20149         [BZ #10563]
20150         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20151         to make the syscall.
20152         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20153
20154         [BZ #12378]
20155         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20156         and fall back to matching as normal character if the string ends before
20157         the matching ']' is found.  This is what POSIX requires.
20158         * posix/testfnm.c: Adjust test result.
20159         * posix/globtest.sh: Adjust test result.  Add new test.
20160         * posix/tst-fnmatch.input: Likewise.
20161         * posix/tst-fnmatch2.c: Add new test.
20162
20163 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20164
20165         * elf/Makefile (check-execstack): Revert last change.  Depend on
20166         check-execstack.h.
20167         (check-execstack.h): New target.
20168         (generated): Add check-execstack.h.
20169         * elf/check-execstack.c: Include "check-execstack.h".
20170         (main): Revert last change.
20171         (handle_file): Return zero if GNU_STACK is absent and
20172         DEFAULT_STACK_PERMS doesn't include PF_X.
20173
20174 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20175
20176         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20177         in child fails because the descriptor is already closed.
20178         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20179         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20180         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20181
20182         [BZ #12397]
20183         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20184         syscall.
20185
20186         [BZ #10484]
20187         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20188         temporary buffer used to handle multi lookups locally.
20189         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20190
20191 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20192
20193         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20194         loader is ld.so.
20195
20196 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20197
20198         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20199         alignment for SSE2.
20200
20201 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20202
20203         [BZ #12394]
20204         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20205         characters.  When rounding increased number of integer digits recompute
20206         number of groups.
20207         * stdio-common/tst-grouping.c: New file.
20208         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20209
20210 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20211
20212         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20213         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20214
20215         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20216         void.
20217         * bits/select.h: Likewise.
20218
20219 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20220
20221         * po/ja.po: Update from translation team.
20222
20223 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20224
20225         [BZ #11155]
20226         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20227         implementation just like for lxstat, fxstatat, et al.
20228
20229 2010-12-27  Jim Meyering  <meyering@redhat.com>
20230
20231         [BZ #12348]
20232         * posix/regexec.c (build_trtable): Return failure indication upon
20233         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20234
20235 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20236
20237         [BZ #12201]
20238         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20239         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20240         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20241         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20242
20243         [BZ #12207]
20244         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20245
20246         [BZ #12204]
20247         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20248         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20249
20250 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20251
20252         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20253         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20254         script has SORT_BY_INIT_PRIORITY.
20255         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20256         NO_CTORS_DTORS_SECTIONS is defined.
20257         * elf/soinit.c: Likewise.
20258         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20259         NO_CTORS_DTORS_SECTIONS is defined.
20260         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20261         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20262         * sysdeps/sh/init-first.c: Likewise.
20263         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20264
20265 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20266
20267         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20268         always use the slow path.
20269
20270 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20271
20272         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20273         similar rule which adds the sysdep directories to the header search in
20274         order to pick up the correct platform stackinfo.h.
20275         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20276         perform test if it is, otherwise return successfully without testing.
20277         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20278         DEFAULT_STACK_PERMS define in stackinfo.h.
20279         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20280         defined in stackinfo.h.
20281         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20282         DEFAULT_STACK_PERMS defined in stackinfo.h.
20283         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20284         * sysdeps/ia64/stackinfo.h: Likewise.
20285         * sysdeps/s390/stackinfo.h: Likewise.
20286         * sysdeps/sh/stackinfo.h: Likewise.
20287         * sysdeps/sparc/stackinfo.h: Likewise.
20288         * sysdeps/x86_64/stackinfo.h: Likewise.
20289         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20290         PF_X for powerpc64.  Retain PF_X for powerpc32.
20291
20292 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20293
20294         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20295         accurately.
20296         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20297         GETDENTS_64BIT_ALIGNED.
20298
20299 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20300
20301         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20302
20303 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20304
20305         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20306         _GNU_SOURCE.
20307
20308         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20309         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20310         Remove __restrict.
20311         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20312         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20313
20314 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20315
20316         [BZ #11655]
20317         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20318         are initialized.
20319
20320 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20321
20322         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20323
20324 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20325
20326         * po/it.po: Update from translation team.
20327
20328 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20329
20330         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20331         unused codes.
20332
20333 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20334
20335         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20336
20337 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20338
20339         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20340         specially.
20341         (gaih_getanswer_slice): Likewise.
20342
20343 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20344
20345         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20346
20347 2010-05-31  Petr Baudis  <pasky@suse.cz>
20348
20349         [BZ #11149]
20350         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20351         silently even in the chroot mode.
20352
20353 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20354
20355         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20356         last patch a bit.  Pretty printing
20357
20358 2010-05-31  Petr Baudis <pasky@suse.cz>
20359
20360         [BZ #10085]
20361         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20362         initialization of skip_initgroups_dyn.
20363
20364 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20365
20366         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20367         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20368
20369 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20370
20371         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20372
20373 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20374
20375         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20376         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20377         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20378         ($(objpfx)tst-fnmatch-mem): New rule.
20379         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20380         * posix/tst-fnmatch.c (main): Call mtrace.
20381
20382 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20383
20384         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20385         Support Intel processor model 6 and model 0x2c.
20386
20387 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20388
20389         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20390           signed comparison.
20391
20392 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20393
20394         [BZ #12205]
20395         * string/test-strncasecmp.c (check_result): New function.
20396         (do_one_test): Use it.
20397         (check1): New function.
20398         (test_main): Use it.
20399         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20400         Support strcasecmp and strncasecmp.
20401
20402 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20403
20404         [BZ #12194]
20405         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20406         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20407
20408 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20409
20410         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20411         IFUNC support.
20412         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20413         memset-x86-64.
20414         * sysdeps/x86_64/multiarch/bzero.S: New file.
20415         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20416         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20417         * sysdeps/x86_64/multiarch/memset.S: New file.
20418         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20419         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20420         Set bit_Prefer_SSE_for_memop for Intel processors.
20421         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20422         Define.
20423         (index_Prefer_SSE_for_memop): Define.
20424         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20425
20426 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20427
20428         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20429         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20430
20431 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20432
20433         [BZ #12191]
20434         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20435         (__x86_64_raw_data_cache_size_half): Likewise.
20436         (__x86_64_raw_shared_cache_size): Likewise.
20437         (__x86_64_raw_shared_cache_size_half): Likewise.
20438
20439         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20440         (__x86_64_raw_data_cache_size_half): Likewise.
20441         (__x86_64_raw_shared_cache_size): Likewise.
20442         (__x86_64_raw_shared_cache_size_half): Likewise.
20443         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20444         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20445         and __x86_64_raw_shared_cache_size_half.  Round
20446         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20447         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20448         to multiple of 256 bytes.
20449
20450 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20451
20452         [BZ #12167]
20453         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20454         of inacessible symlinks.  Verify result of symlink before returning it.
20455         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20456         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20457
20458 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20459
20460         * math/math.h (isinf): Fix typo in comment.
20461
20462 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20463
20464         * po/da.po: Update from translation team.
20465
20466 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20467
20468         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20469         is added to the list.
20470
20471 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20472             Ulrich Drepper  <drepper@gmail.com>
20473
20474         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20475         the global list here.  Move code to...
20476         (_dl_add_to_namespace_list): ...here.  New function.
20477         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20478         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20479         * elf/dl-load.c (lose): Don't remove the element from the list.
20480         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20481         (_dl_map_object): Likewise.
20482
20483 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20484
20485         [BZ #12159]
20486         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20487         into all bytes of SSE register.
20488         Patch by Richard Li <richardpku@gmail.com>.
20489
20490 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20491
20492         [BZ #12140]
20493         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20494         perturbing.
20495
20496 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20497
20498         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20499         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20500         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20501         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20503         submachine.
20504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20505
20506 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20507
20508         * include/dlfcn.h (__RTLD_SECURE): Define.
20509         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20510         mode & __RTLD_SECURE instead.
20511         (open_path): Rename preloaded parameter to secure.
20512         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20513         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20514         * elf/dl-deps.c (openaux): Likewise.
20515         * elf/rtld.c (struct map_args): Remove is_preloaded.
20516         (map_doit): Don't use it.
20517         (dl_main): Likewise.
20518         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20519         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20520
20521 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20522
20523         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20524         (sysd-rules-targets): Remove duplicates.
20525         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20526         rtld-%.$o dependency.
20527
20528 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20529
20530         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20531         _dl_map_object do it.
20532
20533 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20534
20535         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20536         fast fma builtins, define the macros in the C99 standard.
20537         (FP_FAST_FMAF): Likewise.
20538         (FP_FAST_FMAL): Likewise.
20539         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20540
20541         * bits/mathdef.h: Update copyright year.
20542         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20543
20544 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20545
20546         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20547         builtins, define the macros in the C99 standard.
20548         (FP_FAST_FMAF): Likewise.
20549         (FP_FAST_FMAL): Likewise.
20550         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20551         multiply/add.
20552         (FP_FAST_FMAF): Likewise.
20553
20554 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20555
20556         [BZ #3268]
20557         * math/libm-test.inc (fma_test): Some new testcases.
20558         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20559         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20560         y and infinite z.  Do multiplication by C already in long double.
20561         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20562         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20563         y and infinite z.  Do bitwise or of inexact bit into u.d.
20564         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20565         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20566         * sysdeps/i386/fpu/s_fma.S: Removed.
20567         * sysdeps/i386/fpu/s_fmal.S: Removed.
20568
20569 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20570
20571         [BZ #3268]
20572         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20573         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20574         computation is not scheduled after fetestexcept.  Fix value
20575         of minimum denormal long double.
20576
20577 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20578
20579         [BZ #3268]
20580         * math/libm-test.inc (fma_test): Add some more tests.
20581         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20582         correctly.
20583
20584 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20585
20586         * scripts/data/localplt-s390-linux-gnu.data: New file.
20587         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20588
20589 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20590
20591         [BZ #3268]
20592         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20593         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20594         instead of dbl-64.
20595         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20596         inlines.
20597         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20598         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20599         if one of x and y is very large and the other is subnormal.
20600         * sysdeps/s390/fpu/s_fmaf.c: New file.
20601         * sysdeps/s390/fpu/s_fma.c: New file.
20602         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20603         * sysdeps/powerpc/fpu/s_fma.S: New file.
20604         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20605         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20606         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20607
20608 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20609
20610         [BZ #3268]
20611         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20612         fma tests.
20613         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20614         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20615         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20616         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20617         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20618         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20619         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20620
20621 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20622
20623         [BZ #12078]
20624         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20625         * posix/bug-regex31.input: Add test case.
20626
20627 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20628
20629         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20630         * posix/bug-regex31.input: New file.
20631
20632         [BZ #12078]
20633         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20634         (parse_sub_exp): Fix last change, use postorder.
20635
20636         * posix/bug-regex31.c: New file.
20637         * posix/Makefile: Add rules to build and run bug-regex31.
20638
20639         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20640
20641         [BZ #12078]
20642         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20643
20644         [BZ #12108]
20645         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20646         to have entries in sys_siglist.
20647
20648         [BZ #12093]
20649         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20650         be NULL.
20651
20652 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20653
20654         [BZ #3268]
20655         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20656         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20657         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20658         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20659         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20660         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20661         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20662         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20663         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20664         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20665         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20666         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20667         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20668         * math/ftestexcept.c (fetestexcept): Likewise.
20669         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20670         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20671         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20672         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20673         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20674         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20675         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20676
20677 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20678
20679         [BZ #12107]
20680         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20681         newline.
20682
20683 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20684
20685         * string/bug-strstr1.c: New file.
20686         * string/Makefile: Add rules to build and run bug-strstr1.
20687
20688 2010-10-05  Eric Blake  <eblake@redhat.com>
20689
20690         [BZ #12092]
20691         * string/str-two-way.h (two_way_long_needle): Always clear memory
20692         when skipping input due to the shift table.
20693
20694 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20695
20696         [BZ #12005]
20697         * malloc/mcheck.c: Handle large requests.
20698
20699         [BZ #12077]
20700         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20701         for strncmp and strncasecmp.
20702         * string/stratcliff.c: Add tests for strcmp and strncmp.
20703         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20704
20705 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20706
20707         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20708         __set_fpscr.
20709
20710 2010-09-30  Andreas Jaeger  <aj@suse.de>
20711
20712         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20713         (CGROUP_SUPER_MAGIC): Define.
20714         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20715         Handle btrfs and cgroup file systems.
20716         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20717         Likewise.
20718
20719 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20720
20721         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20722         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20723
20724 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20725
20726         [BZ #12067]
20727         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20728         trying to locate the ELF header.
20729
20730 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20731
20732         [BZ #11611]
20733         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20734         Mask out sign-bit copies when constructing f_fsid.
20735
20736 2010-09-24  Petr Baudis <pasky@suse.cz>
20737
20738         * debug/stack_chk_fail_local.c: Add missing licence exception.
20739         * debug/warning-nop.c: Likewise.
20740
20741 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20742
20743         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20744         implementing getdents64 using getdents syscall, set d_type if
20745         __ASSUME_GETDENTS32_D_TYPE.
20746
20747 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20748
20749         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20750         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20751
20752 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20753
20754         [BZ #12037]
20755         * posix/unistd.h: Undo change of feature selection for ftruncate from
20756         2010-01-11.
20757
20758 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20759
20760         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20761         detection.
20762
20763 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20764
20765         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20766         fanotify_mark.
20767         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20768
20769 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20770
20771         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20772         variables after CHECK_SP call.
20773         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20774
20775 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20776             Ulrich Drepper  <drepper@redhat.com>
20777
20778         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20779         re-relocationg ld.so.
20780         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20781         _dl_init_paths call.
20782         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20783         here anymore.
20784
20785 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20786
20787         * resolv/res_init.c (__res_vinit): Count the default server we added.
20788
20789 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20790             Ulrich Drepper  <drepper@redhat.com>
20791
20792         [BZ #11968]
20793         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20794         (____longjmp_chk): Use %ebx for saving value across system call.
20795         Add unwind info.
20796
20797 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20798
20799         * manual/Makefile: Don't mix pattern rules with normal rules.
20800
20801 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20802
20803         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20804         operation.
20805         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20806         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20807         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20808         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20809         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20810         Likewise.
20811
20812 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20813
20814         [BZ #11979]
20815         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20816         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20817
20818 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20819
20820         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20821         * sysdeps/x86_64/addmul_1.S: Likewise.
20822         * sysdeps/x86_64/lshift.S: Likewise.
20823         * sysdeps/x86_64/mul_1.S: Likewise.
20824         * sysdeps/x86_64/rshift.S: Likewise.
20825         * sysdeps/x86_64/sub_n.S: Likewise.
20826         * sysdeps/x86_64/submul_1.S: Likewise.
20827
20828 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20829
20830         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20831         Define __sched_param instead of SCHED_* and sched_param when
20832         <bits/sched.h> is included with __need_schedparam defined.
20833         * bits/sched.h [__need_schedparam]
20834         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20835         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20836         (__defined_schedparam): Define to 1.
20837         (__sched_param): New structure, identical to sched_param.
20838         (__need_schedparam): Undefine.
20839
20840 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20841
20842         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20843         (epoll_create1): Declare.
20844
20845         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20846
20847 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20848
20849         [BZ #7066]
20850         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20851         shifting retval into place.
20852
20853 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20854
20855         * nis/rpcsvc/nis.h: Update copyright notice.
20856         * nis/rpcsvc/nis.x: Likewise.
20857         * nis/rpcsvc/nis_callback.h: Likewise.
20858         * nis/rpcsvc/nis_callback.x: Likewise.
20859         * nis/rpcsvc/nis_object.x: Likewise.
20860         * nis/rpcsvc/nis_tags.h: Likewise.
20861         * nis/rpcsvc/yp.h: Likewise.
20862         * nis/rpcsvc/yp.x: Likewise.
20863         * nis/rpcsvc/ypupd.h: Likewise.
20864         * nis/yp_xdr.c: Likewise.
20865         * nis/ypupdate_xdr.c: Likewise.
20866
20867         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20868         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20869         (pmap_getport): Use __libc_rpc_getport.
20870         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20871         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20872         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20873
20874 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20875
20876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20877         fanotify_mark.
20878
20879 2010-08-27  Roland McGrath  <roland@redhat.com>
20880
20881         * sysdeps/i386/i686/multiarch/Makefile
20882         (CFLAGS-varshift.c): New variable.
20883
20884 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20885
20886         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20887         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20888
20889         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20890
20891         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20892
20893 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20894
20895         * sysdeps/x86_64/strlen.S: Unroll the loop.
20896         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20897         strlen-sse2 strlen-sse2-bsf.
20898         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20899         __strlen_no_bsf if bit_Slow_BSF is set.
20900         (__strlen_sse42): Removed.
20901         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20902         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20903
20904 2010-08-25  Roland McGrath  <roland@redhat.com>
20905
20906         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20907         * sysdeps/x86_64/multiarch/varshift.c: New file.
20908         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20909         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20910         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20911         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20912
20913 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20914
20915         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20916         strlen-sse2 strlen-sse2-bsf.
20917         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20918         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20919         (__strlen_sse2): Removed.
20920         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20921         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20922         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20923         bit_Slow_BSF for Atom.
20924         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20925         (index_Slow_BSF): Define.
20926         (HAS_SLOW_BSF): Define.
20927
20928 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20929
20930         [BZ #10851]
20931         * resolv/res_init.c (__res_vinit): When no server address at all
20932         is given default to loopback.
20933
20934 2010-08-24  Roland McGrath  <roland@redhat.com>
20935
20936         * configure.in: Remove config-name.h generation.
20937         * configure: Regenerated.
20938         * config-name.in: File removed.
20939         * scripts/config-uname.sh: New file.
20940         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20941         ($(objdir)config-name.h): New target.
20942
20943         * sunrpc/rpc_parse.h: Avoid nested comment.
20944
20945 2010-08-24  Richard Henderson  <rth@redhat.com>
20946             Ulrich Drepper  <drepper@redhat.com>
20947             H.J. Lu  <hongjiu.lu@intel.com>
20948
20949         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20950         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20951         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20952         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20953         _mm_alignr_epi8 with _mm_loadu_si128.
20954         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20955         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20956         (__m128i_shift_right): Removed.
20957         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20958         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20959         * sysdeps/x86_64/multiarch/varshift.h: New file.
20960         * sysdeps/x86_64/multiarch/varshift.S: New file.
20961
20962 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20963
20964         * configure.in: Move assembler checks to before sysdep dir checking.
20965
20966 2010-08-20  Petr Baudis  <pasky@suse.cz>
20967
20968         * LICENSES: Sync the sunrpc license.
20969
20970 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20971
20972         * sunrpc/auth_des.c: Update copyright notice once again.
20973         * sunrpc/auth_none.c: Likewise.
20974         * sunrpc/auth_unix.c: Likewise.
20975         * sunrpc/authdes_prot.c: Likewise.
20976         * sunrpc/authuxprot.c: Likewise.
20977         * sunrpc/bindrsvprt.c: Likewise.
20978         * sunrpc/clnt_gen.c: Likewise.
20979         * sunrpc/clnt_perr.c: Likewise.
20980         * sunrpc/clnt_raw.c: Likewise.
20981         * sunrpc/clnt_simp.c: Likewise.
20982         * sunrpc/clnt_tcp.c: Likewise.
20983         * sunrpc/clnt_udp.c: Likewise.
20984         * sunrpc/clnt_unix.c: Likewise.
20985         * sunrpc/des_crypt.c: Likewise.
20986         * sunrpc/des_soft.c: Likewise.
20987         * sunrpc/get_myaddr.c: Likewise.
20988         * sunrpc/getrpcport.c: Likewise.
20989         * sunrpc/key_call.c: Likewise.
20990         * sunrpc/key_prot.c: Likewise.
20991         * sunrpc/openchild.c: Likewise.
20992         * sunrpc/pm_getmaps.c: Likewise.
20993         * sunrpc/pm_getport.c: Likewise.
20994         * sunrpc/pmap_clnt.c: Likewise.
20995         * sunrpc/pmap_prot.c: Likewise.
20996         * sunrpc/pmap_prot2.c: Likewise.
20997         * sunrpc/pmap_rmt.c: Likewise.
20998         * sunrpc/rpc/auth.h: Likewise.
20999         * sunrpc/rpc/auth_unix.h: Likewise.
21000         * sunrpc/rpc/clnt.h: Likewise.
21001         * sunrpc/rpc/des_crypt.h: Likewise.
21002         * sunrpc/rpc/key_prot.h: Likewise.
21003         * sunrpc/rpc/netdb.h: Likewise.
21004         * sunrpc/rpc/pmap_clnt.h: Likewise.
21005         * sunrpc/rpc/pmap_prot.h: Likewise.
21006         * sunrpc/rpc/pmap_rmt.h: Likewise.
21007         * sunrpc/rpc/rpc.h: Likewise.
21008         * sunrpc/rpc/rpc_des.h: Likewise.
21009         * sunrpc/rpc/rpc_msg.h: Likewise.
21010         * sunrpc/rpc/svc.h: Likewise.
21011         * sunrpc/rpc/svc_auth.h: Likewise.
21012         * sunrpc/rpc/types.h: Likewise.
21013         * sunrpc/rpc/xdr.h: Likewise.
21014         * sunrpc/rpc_clntout.c: Likewise.
21015         * sunrpc/rpc_cmsg.c: Likewise.
21016         * sunrpc/rpc_common.c: Likewise.
21017         * sunrpc/rpc_cout.c: Likewise.
21018         * sunrpc/rpc_dtable.c: Likewise.
21019         * sunrpc/rpc_hout.c: Likewise.
21020         * sunrpc/rpc_main.c: Likewise.
21021         * sunrpc/rpc_parse.c: Likewise.
21022         * sunrpc/rpc_parse.h: Likewise.
21023         * sunrpc/rpc_prot.c: Likewise.
21024         * sunrpc/rpc_sample.c: Likewise.
21025         * sunrpc/rpc_scan.c: Likewise.
21026         * sunrpc/rpc_scan.h: Likewise.
21027         * sunrpc/rpc_svcout.c: Likewise.
21028         * sunrpc/rpc_tblout.c: Likewise.
21029         * sunrpc/rpc_util.c: Likewise.
21030         * sunrpc/rpc_util.h: Likewise.
21031         * sunrpc/rpcinfo.c: Likewise.
21032         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21033         * sunrpc/rpcsvc/key_prot.x: Likewise.
21034         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21035         * sunrpc/rpcsvc/mount.x: Likewise.
21036         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21037         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21038         * sunrpc/rpcsvc/rex.x: Likewise.
21039         * sunrpc/rpcsvc/rstat.x: Likewise.
21040         * sunrpc/rpcsvc/rusers.x: Likewise.
21041         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21042         * sunrpc/rpcsvc/spray.x: Likewise.
21043         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21044         * sunrpc/rtime.c: Likewise.
21045         * sunrpc/svc.c: Likewise.
21046         * sunrpc/svc_auth.c: Likewise.
21047         * sunrpc/svc_authux.c: Likewise.
21048         * sunrpc/svc_raw.c: Likewise.
21049         * sunrpc/svc_run.c: Likewise.
21050         * sunrpc/svc_simple.c: Likewise.
21051         * sunrpc/svc_tcp.c: Likewise.
21052         * sunrpc/svc_udp.c: Likewise.
21053         * sunrpc/svc_unix.c: Likewise.
21054         * sunrpc/svcauth_des.c: Likewise.
21055         * sunrpc/xcrypt.c: Likewise.
21056         * sunrpc/xdr.c: Likewise.
21057         * sunrpc/xdr_array.c: Likewise.
21058         * sunrpc/xdr_float.c: Likewise.
21059         * sunrpc/xdr_mem.c: Likewise.
21060         * sunrpc/xdr_rec.c: Likewise.
21061         * sunrpc/xdr_ref.c: Likewise.
21062         * sunrpc/xdr_sizeof.c: Likewise.
21063         * sunrpc/xdr_stdio.c: Likewise.
21064
21065         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21066         handling.
21067
21068 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21069
21070         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21071
21072 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21073
21074         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21075         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21076         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21077         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21078         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21079         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21080         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21081         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21082         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21083         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21084         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21085         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21086         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21087         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21088
21089 2010-07-26  Anton Blanchard  <anton@samba.org>
21090
21091         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21092         * malloc/arena.c (heap_trim): Likewise.
21093
21094 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21095
21096         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21097         here.  Not...
21098         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21099         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21100
21101 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21102
21103         * sysdeps/i386/elf/Makefile: New file.
21104
21105 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21106
21107         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21108         from fanotify_init.
21109         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21110         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21111
21112 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21113
21114         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21115         of strncasecmp_l.
21116         * sysdeps/multiarch/strcmp.S: Likewise.
21117
21118 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21119
21120         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21121         strncase_l-nonascii.
21122         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21123         Add strncase_l-ssse3.
21124         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21125         * sysdeps/x86_64/strcmp.S: Likewise.
21126         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21127         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21128         * sysdeps/x86_64/strncase.S: New file.
21129         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21130         * sysdeps/x86_64/strncase_l.S: New file.
21131         * string/Makefile (strop-tests): Add strncasecmp.
21132         * string/test-strncasecmp.c: New file.
21133
21134         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21135         warning.
21136
21137         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21138         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21139
21140 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21141
21142         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21143
21144 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21145
21146         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21147         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21148         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21149
21150 2010-05-01  Alan Modra  <amodra@gmail.com>
21151
21152         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21153         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21154         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21155         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21156         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21157         tidying.  Don't tail-call __sigjmp_save for static lib.
21158         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21159         save location.
21160         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21161         (CALL_MCOUNT): Add eh info, and nop after bl.
21162         (TAIL_CALL_SYSCALL_ERROR): New macro.
21163         (PSEUDO_RET): Use it.
21164         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21165         Correct save location of integer regs and cr.
21166         (_dl_profile_resolve): Correct cr save location.  Delete nops
21167         after bl when SHARED.  Reduce cfi size a little by better
21168         placement of cfi directives.
21169         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21170         make a stack frame.  Instead use parm save area as a temp.
21171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21172         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21174         Don't make a stack frame for parent, use parm save area.
21175         Increase child stack frame to 112 bytes.  Don't save unused reg,
21176         and adjust reg usage.  Set up cfi on error recovery and
21177         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21179         (__makecontext): Add dummy nop after jump to exit.
21180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21181         Use correct parm save area and cr save, reduce stack frame.
21182         Correct cfi for possible PSEUDO_RET frame setup.
21183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21184         Branch to local label emitted by PSEUDO_RET rather than
21185         __syscall_error.
21186
21187 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21188
21189         [BZ #11904]
21190         * locale/programs/locale.c (print_assignment): New function.
21191         (show_locale_vars): Use it.
21192
21193 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21194
21195         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21196         field.
21197         (struct statfs64): Likewise.
21198         (_STATFS_F_FLAGS): Define.
21199         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21200         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21201         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21202         (ST_VALID): Define locally.
21203         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21204         __statvfs_getflags, use the provided value.
21205         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21206         __ASSUME_STATFS_F_FLAGS.
21207
21208         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21209
21210         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21211         Add sys/fanotify.h.
21212         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21213         fanotify_mask for GLIBC_2.13.
21214         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21215         fanotify_init and fanotify_mark.
21216         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21217         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21218
21219         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21220         Add prlimit.
21221         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21222         prlimit64 for GLIBC_2.13.
21223         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21224         prlimit64.
21225         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21226         syscall.
21227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21228         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21229         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21230         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21231         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21232         add prlimit alias.
21233         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21234
21235         [BZ #11903]
21236         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21237         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21238
21239         * nss/Makefile: Add rules to build and run tst-nss-test1.
21240         * shlib-versions: Add entry for libnss_test1.
21241         * nss/nss_test1.c: New file.
21242         * nss/tst-nss-test1.c: New file.
21243
21244         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21245         (__nss_configure_lookup): Set appropriate entry in
21246         __nss_configure_lookup to true.
21247         * nss/nsswitch.h: Define enum with indeces of databases in
21248         databases and __nss_database_custom arrays.  Declare
21249         __nss_database_custom.
21250         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21251         to avoid using nscd when custom rules are installed.
21252         * nss/getXXbyYY_r.c: Likewise.
21253         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21254
21255         * nss/nss_files/files-parse.c: Whitespace fixes.
21256
21257 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21258
21259         [BZ #11883]
21260         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21261         * posix/fnmatch_loop.c: Likewise.
21262
21263 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21264
21265         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21266         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21267         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21268         * Versions.def [GLIBC_2.13]: Add.
21269
21270 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21271
21272         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21273         Also fail if tpwd after pwuid call is NULL.
21274
21275 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21276
21277         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21278         when converting to ms.
21279
21280 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21281
21282         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21283         EOPNOTSUPP errors with ENOTTY.
21284         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21285         EOPNOTSUPP errors with ENOTTY.
21286
21287 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21288
21289         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21290         Add strcasecmp_l-ssse3.
21291         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21292         strcasecmp.
21293         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21294         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21295         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21296
21297 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21298
21299         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21300
21301         * string/Makefile (strop-tests): Add strcasecmp.
21302         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21303         strcasecmp_l-nonascii.
21304         (gen-as-const-headers): Add locale-defines.sym.
21305         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21306         * sysdeps/x86_64/strcasecmp.S: New file.
21307         * sysdeps/x86_64/strcasecmp_l.S: New file.
21308         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21309         * sysdeps/x86_64/locale-defines.sym: New file.
21310         * string/test-strcasecmp.c: New file.
21311
21312         * string/test-strcasestr.c: Test both ends of the range of characters.
21313         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21314
21315 2010-07-29  Roland McGrath  <roland@redhat.com>
21316
21317         [BZ #11856]
21318         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21319
21320 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21321
21322         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21323         for ld.so.
21324
21325 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21326
21327         * manual/memory.texi (Malloc Tunable Parameters): Document
21328         M_PERTURB.
21329
21330 2010-07-26  Roland McGrath  <roland@redhat.com>
21331
21332         [BZ #11840]
21333         * configure.in (-fgnu89-inline check): Set and substitute
21334         gnu89_inline, not libc_cv_gnu89_inline.
21335         * configure: Regenerated.
21336         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21337
21338 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21339
21340         * string/test-strnlen.c: New file.
21341         * string/Makefile (strop-tests): Add strnlen.
21342         * string/tester.c (test_strnlen): Add a few more test cases.
21343         * string/tst-strlen.c: Better error reporting.
21344
21345         * sysdeps/x86_64/strnlen.S: New file.
21346
21347 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21348
21349         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21350         lower-latency instructions.
21351
21352 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21353
21354         * string/test-strcasestr.c: New file.
21355         * string/test-strstr.c: New file.
21356         * string/Makefile (strop-tests): Add strstr and strcasestr.
21357         * string/str-two-way.h: Don't undefine MAX.
21358         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21359
21360 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21361
21362         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21363         strcasestr-nonascii.
21364         (CFLAGS-strcasestr-nonascii.c): Define.
21365         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21366         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21367         Remove unused attribute.
21368
21369 2010-07-20  Roland McGrath  <roland@redhat.com>
21370
21371         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21372         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21373         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21374         like LD_HWCAP_MASK can disable hwcaps.
21375
21376 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21377
21378         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21379
21380 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21381
21382         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21383         call in strcasestr.
21384         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21385         __strcasestr_sse42_nonascii.
21386         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21387         strcasestr-nonascii.c.
21388         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21389
21390 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21391
21392         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21393         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21394         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21395         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21396
21397 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21398
21399         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21400         fcntl.
21401
21402 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21403
21404         [BZ #11577]
21405         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21406         dl_signal_cerror.
21407
21408 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21409
21410         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21411         _PC_PIPE_BUF using F_GETPIPE_SZ.
21412
21413 2010-07-05  Roland McGrath  <roland@redhat.com>
21414
21415         * manual/arith.texi (Rounding Functions): Fix rint description
21416         implicit in round description.
21417
21418 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21419
21420         * elf/Makefile: Fix linking for a few tests to make recent linker
21421         happy.
21422
21423 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21424
21425         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21426         $(common-objpfx)libc_nonshared.a.
21427
21428 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21429
21430         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21431         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21432         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21433         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21434         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21435         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21436         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21437         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21452         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21453         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21454         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21455         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21456         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21457         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21458         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21459         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21460         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21461         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21462         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21463         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21478
21479 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21480
21481         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21482         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21483         * string/memmove.c (memmove): Renamed to ...
21484         (MEMMOVE): ...this.  Default to memmove.
21485         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21486         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21487         (END_CHK): Define.
21488         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21489         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21490         mempcpy-ssse3-back memmove-ssse3-back.
21491         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21492         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21493         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21494         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21495         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21496         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21497         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21498         * sysdeps/x86_64/multiarch/memmove.c: New file.
21499         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21500         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21501         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21502         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21503         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21504         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21505         Define.
21506         (index_Fast_Copy_Backward): Define.
21507         (HAS_ARCH_FEATURE): Define.
21508         (HAS_FAST_REP_STRING): Define.
21509         (HAS_FAST_COPY_BACKWARD): Define.
21510
21511 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21512
21513         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21514         Restore proper fallback handling.
21515
21516 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21517
21518         [BZ #11701]
21519         * posix/group_member.c (__group_member): Correct checking loop.
21520
21521         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21522         OOM in getpwuid_r correctly.  Return error number when the caller
21523         should return, otherwise -1.
21524         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21525         call returning > 0 value.
21526         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21527
21528 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21529
21530         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21531         libc_nonshared.a from targets in modules-names.
21532
21533 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21534
21535         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21536         requires it.
21537
21538 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21539
21540         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21541         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21542         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21543         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21544
21545 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21546
21547         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21548
21549 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21550
21551         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21552         and F_GETPIPE_SZ.
21553         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21554         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21555         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21556         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21557         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21558         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21559
21560 2010-06-14  Roland McGrath  <roland@redhat.com>
21561
21562         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21563
21564 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21565
21566         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21567         __REDIRECT followed by __THROW.
21568         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21569         * posix/getopt.h (getopt): Likewise.
21570
21571 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21572
21573         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21574         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21575         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21576         in AT_FLAGS.
21577         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21578         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21579
21580 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21581
21582         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21583
21584 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21585
21586         [BZ #11640]
21587         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21588         Properly check family and model.
21589
21590 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21591
21592         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21593
21594 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21595
21596         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21597
21598 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21599
21600         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21601         symbol reference.
21602
21603 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21604
21605         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21606         symbol reference.
21607
21608 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21609
21610         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21611         and internal_recvmmsg.
21612         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21613         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21614         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21615         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21616
21617         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21618         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21619         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21620
21621 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21622
21623         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21624
21625 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21626
21627         POWER7 optimizations.
21628         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21629         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21630
21631 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21632
21633         * version.h: Update for 2.13 development version.
21634
21635 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21636
21637         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21638         exceptions.  Return 0.
21639
21640 2010-05-07  Roland McGrath  <roland@redhat.com>
21641
21642         * elf/ldconfig.c (main): Add a const.
21643
21644 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21645
21646         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21647         (args_options): Add no-idn option.
21648         (ahosts_keys_int): Add idn_flags to ai_flags.
21649         (parse_option): Handle 'i' option to clear idn_flags.
21650
21651         * malloc/malloc.c (_int_free): Possible race in the most recently
21652         added check.  Only act on the data if no current modification
21653         happened.
21654
21655 See ChangeLog.17 for earlier changes.