Fix fma overflow results outside round-to-nearest mode (bug 14797).
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #14797]
4         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
5         definitely overflow as x * y not x * y + z.
6         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8         * math/libm-test.inc (fma_test): Add more tests.
9         (fma_test_towardzero): Likewise.
10         (fma_test_downward): Likewise.
11         (fma_test_upward): Likewise.
12
13 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
14
15         [BZ #157]
16
17         * include/stub-tag.h: Remove file.
18         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
19         '#include' of it.
20         * manual/maint.texi (Porting): Don't reference it.
21         * Makerules ($(objpfx)stubs): Likewise.
22         * dirent/closedir.c: Don't include <stub-tag.h>.
23         * dirent/dirfd.c: Likewise.
24         * dirent/fdopendir.c: Likewise.
25         * dirent/getdents.c: Likewise.
26         * dirent/getdents64.c: Likewise.
27         * dirent/opendir.c: Likewise.
28         * dirent/readdir.c: Likewise.
29         * dirent/readdir64.c: Likewise.
30         * dirent/readdir64_r.c: Likewise.
31         * dirent/readdir_r.c: Likewise.
32         * dirent/rewinddir.c: Likewise.
33         * dirent/seekdir.c: Likewise.
34         * dirent/telldir.c: Likewise.
35         * gmon/profil.c: Likewise.
36         * grp/setgroups.c: Likewise.
37         * inet/if_index.c: Likewise.
38         * io/access.c: Likewise.
39         * io/chdir.c: Likewise.
40         * io/chmod.c: Likewise.
41         * io/chown.c: Likewise.
42         * io/close.c: Likewise.
43         * io/dup.c: Likewise.
44         * io/dup2.c: Likewise.
45         * io/dup3.c: Likewise.
46         * io/euidaccess.c: Likewise.
47         * io/faccessat.c: Likewise.
48         * io/fchdir.c: Likewise.
49         * io/fchmod.c: Likewise.
50         * io/fchmodat.c: Likewise.
51         * io/fchown.c: Likewise.
52         * io/fchownat.c: Likewise.
53         * io/fcntl.c: Likewise.
54         * io/flock.c: Likewise.
55         * io/fstatfs.c: Likewise.
56         * io/fstatfs64.c: Likewise.
57         * io/fstatvfs.c: Likewise.
58         * io/fstatvfs64.c: Likewise.
59         * io/futimens.c: Likewise.
60         * io/fxstat.c: Likewise.
61         * io/fxstat64.c: Likewise.
62         * io/fxstatat.c: Likewise.
63         * io/fxstatat64.c: Likewise.
64         * io/getcwd.c: Likewise.
65         * io/isatty.c: Likewise.
66         * io/lchmod.c: Likewise.
67         * io/lchown.c: Likewise.
68         * io/link.c: Likewise.
69         * io/linkat.c: Likewise.
70         * io/lseek.c: Likewise.
71         * io/lseek64.c: Likewise.
72         * io/lxstat64.c: Likewise.
73         * io/mkdir.c: Likewise.
74         * io/mkdirat.c: Likewise.
75         * io/mkfifo.c: Likewise.
76         * io/mkfifoat.c: Likewise.
77         * io/open.c: Likewise.
78         * io/open64.c: Likewise.
79         * io/openat.c: Likewise.
80         * io/openat64.c: Likewise.
81         * io/pipe.c: Likewise.
82         * io/pipe2.c: Likewise.
83         * io/poll.c: Likewise.
84         * io/posix_fadvise.c: Likewise.
85         * io/posix_fadvise64.c: Likewise.
86         * io/posix_fallocate.c: Likewise.
87         * io/posix_fallocate64.c: Likewise.
88         * io/read.c: Likewise.
89         * io/readlink.c: Likewise.
90         * io/readlinkat.c: Likewise.
91         * io/rmdir.c: Likewise.
92         * io/sendfile.c: Likewise.
93         * io/sendfile64.c: Likewise.
94         * io/statfs.c: Likewise.
95         * io/statfs64.c: Likewise.
96         * io/statvfs.c: Likewise.
97         * io/statvfs64.c: Likewise.
98         * io/symlink.c: Likewise.
99         * io/symlinkat.c: Likewise.
100         * io/ttyname.c: Likewise.
101         * io/ttyname_r.c: Likewise.
102         * io/umask.c: Likewise.
103         * io/unlink.c: Likewise.
104         * io/unlinkat.c: Likewise.
105         * io/utime.c: Likewise.
106         * io/utimensat.c: Likewise.
107         * io/write.c: Likewise.
108         * io/xmknod.c: Likewise.
109         * io/xmknodat.c: Likewise.
110         * io/xstat.c: Likewise.
111         * io/xstat64.c: Likewise.
112         * login/getpt.c: Likewise.
113         * login/grantpt.c: Likewise.
114         * login/unlockpt.c: Likewise.
115         * math/e_acoshl.c: Likewise.
116         * math/e_acosl.c: Likewise.
117         * math/e_asinl.c: Likewise.
118         * math/e_atan2l.c: Likewise.
119         * math/e_atanhl.c: Likewise.
120         * math/e_coshl.c: Likewise.
121         * math/e_expl.c: Likewise.
122         * math/e_fmodl.c: Likewise.
123         * math/e_gammal_r.c: Likewise.
124         * math/e_hypotl.c: Likewise.
125         * math/e_j0l.c: Likewise.
126         * math/e_j1l.c: Likewise.
127         * math/e_jnl.c: Likewise.
128         * math/e_lgammal_r.c: Likewise.
129         * math/e_log10l.c: Likewise.
130         * math/e_log2l.c: Likewise.
131         * math/e_logl.c: Likewise.
132         * math/e_powl.c: Likewise.
133         * math/e_rem_pio2l.c: Likewise.
134         * math/e_sinhl.c: Likewise.
135         * math/e_sqrtl.c: Likewise.
136         * math/fclrexcpt.c: Likewise.
137         * math/fedisblxcpt.c: Likewise.
138         * math/feenablxcpt.c: Likewise.
139         * math/fegetenv.c: Likewise.
140         * math/fegetexcept.c: Likewise.
141         * math/fegetround.c: Likewise.
142         * math/feholdexcpt.c: Likewise.
143         * math/fesetenv.c: Likewise.
144         * math/fesetround.c: Likewise.
145         * math/feupdateenv.c: Likewise.
146         * math/fgetexcptflg.c: Likewise.
147         * math/fraiseexcpt.c: Likewise.
148         * math/fsetexcptflg.c: Likewise.
149         * math/ftestexcept.c: Likewise.
150         * math/k_cosl.c: Likewise.
151         * math/k_rem_pio2l.c: Likewise.
152         * math/k_sinl.c: Likewise.
153         * math/k_tanl.c: Likewise.
154         * math/s_asinhl.c: Likewise.
155         * math/s_atanl.c: Likewise.
156         * math/s_cbrtl.c: Likewise.
157         * math/s_erfl.c: Likewise.
158         * math/s_expm1l.c: Likewise.
159         * math/s_log1pl.c: Likewise.
160         * math/s_tanhl.c: Likewise.
161         * misc/acct.c: Likewise.
162         * misc/brk.c: Likewise.
163         * misc/chflags.c: Likewise.
164         * misc/chroot.c: Likewise.
165         * misc/fchflags.c: Likewise.
166         * misc/fgetxattr.c: Likewise.
167         * misc/flistxattr.c: Likewise.
168         * misc/fremovexattr.c: Likewise.
169         * misc/fsetxattr.c: Likewise.
170         * misc/fsync.c: Likewise.
171         * misc/ftruncate.c: Likewise.
172         * misc/futimes.c: Likewise.
173         * misc/futimesat.c: Likewise.
174         * misc/getdomain.c: Likewise.
175         * misc/getdtsz.c: Likewise.
176         * misc/gethostid.c: Likewise.
177         * misc/gethostname.c: Likewise.
178         * misc/getloadavg.c: Likewise.
179         * misc/getpagesize.c: Likewise.
180         * misc/getsysstats.c: Likewise.
181         * misc/getxattr.c: Likewise.
182         * misc/gtty.c: Likewise.
183         * misc/ioctl.c: Likewise.
184         * misc/lgetxattr.c: Likewise.
185         * misc/listxattr.c: Likewise.
186         * misc/llistxattr.c: Likewise.
187         * misc/lremovexattr.c: Likewise.
188         * misc/lsetxattr.c: Likewise.
189         * misc/lutimes.c: Likewise.
190         * misc/madvise.c: Likewise.
191         * misc/mincore.c: Likewise.
192         * misc/mlock.c: Likewise.
193         * misc/mlockall.c: Likewise.
194         * misc/mmap.c: Likewise.
195         * misc/mprotect.c: Likewise.
196         * misc/msync.c: Likewise.
197         * misc/munlock.c: Likewise.
198         * misc/munlockall.c: Likewise.
199         * misc/munmap.c: Likewise.
200         * misc/preadv.c: Likewise.
201         * misc/preadv64.c: Likewise.
202         * misc/ptrace.c: Likewise.
203         * misc/pwritev.c: Likewise.
204         * misc/pwritev64.c: Likewise.
205         * misc/readv.c: Likewise.
206         * misc/reboot.c: Likewise.
207         * misc/remap_file_pages.c: Likewise.
208         * misc/removexattr.c: Likewise.
209         * misc/revoke.c: Likewise.
210         * misc/select.c: Likewise.
211         * misc/setdomain.c: Likewise.
212         * misc/setegid.c: Likewise.
213         * misc/seteuid.c: Likewise.
214         * misc/sethostid.c: Likewise.
215         * misc/sethostname.c: Likewise.
216         * misc/setregid.c: Likewise.
217         * misc/setreuid.c: Likewise.
218         * misc/setxattr.c: Likewise.
219         * misc/sstk.c: Likewise.
220         * misc/stty.c: Likewise.
221         * misc/swapoff.c: Likewise.
222         * misc/swapon.c: Likewise.
223         * misc/sync.c: Likewise.
224         * misc/syncfs.c: Likewise.
225         * misc/syscall.c: Likewise.
226         * misc/truncate.c: Likewise.
227         * misc/ualarm.c: Likewise.
228         * misc/usleep.c: Likewise.
229         * misc/ustat.c: Likewise.
230         * misc/utimes.c: Likewise.
231         * misc/vhangup.c: Likewise.
232         * misc/writev.c: Likewise.
233         * posix/_exit.c: Likewise.
234         * posix/alarm.c: Likewise.
235         * posix/execve.c: Likewise.
236         * posix/fexecve.c: Likewise.
237         * posix/fork.c: Likewise.
238         * posix/fpathconf.c: Likewise.
239         * posix/getaddrinfo.c: Likewise.
240         * posix/getegid.c: Likewise.
241         * posix/geteuid.c: Likewise.
242         * posix/getgid.c: Likewise.
243         * posix/getgroups.c: Likewise.
244         * posix/getlogin.c: Likewise.
245         * posix/getlogin_r.c: Likewise.
246         * posix/getpgid.c: Likewise.
247         * posix/getpid.c: Likewise.
248         * posix/getppid.c: Likewise.
249         * posix/getresgid.c: Likewise.
250         * posix/getresuid.c: Likewise.
251         * posix/getsid.c: Likewise.
252         * posix/getuid.c: Likewise.
253         * posix/glob64.c: Likewise.
254         * posix/nanosleep.c: Likewise.
255         * posix/pathconf.c: Likewise.
256         * posix/pause.c: Likewise.
257         * posix/posix_madvise.c: Likewise.
258         * posix/pread.c: Likewise.
259         * posix/pread64.c: Likewise.
260         * posix/pwrite.c: Likewise.
261         * posix/pwrite64.c: Likewise.
262         * posix/sched_getaffinity.c: Likewise.
263         * posix/sched_getp.c: Likewise.
264         * posix/sched_gets.c: Likewise.
265         * posix/sched_primax.c: Likewise.
266         * posix/sched_primin.c: Likewise.
267         * posix/sched_rr_gi.c: Likewise.
268         * posix/sched_setaffinity.c: Likewise.
269         * posix/sched_setp.c: Likewise.
270         * posix/sched_sets.c: Likewise.
271         * posix/sched_yield.c: Likewise.
272         * posix/setgid.c: Likewise.
273         * posix/setlogin.c: Likewise.
274         * posix/setpgid.c: Likewise.
275         * posix/setresgid.c: Likewise.
276         * posix/setresuid.c: Likewise.
277         * posix/setsid.c: Likewise.
278         * posix/setuid.c: Likewise.
279         * posix/sleep.c: Likewise.
280         * posix/spawni.c: Likewise.
281         * posix/sysconf.c: Likewise.
282         * posix/times.c: Likewise.
283         * posix/wait.c: Likewise.
284         * posix/wait3.c: Likewise.
285         * posix/wait4.c: Likewise.
286         * posix/waitpid.c: Likewise.
287         * resolv/gai_sigqueue.c: Likewise.
288         * resource/getpriority.c: Likewise.
289         * resource/getrlimit.c: Likewise.
290         * resource/getrusage.c: Likewise.
291         * resource/nice.c: Likewise.
292         * resource/setpriority.c: Likewise.
293         * resource/setrlimit.c: Likewise.
294         * resource/ulimit.c: Likewise.
295         * rt/aio_cancel.c: Likewise.
296         * rt/aio_fsync.c: Likewise.
297         * rt/aio_read.c: Likewise.
298         * rt/aio_sigqueue.c: Likewise.
299         * rt/aio_suspend.c: Likewise.
300         * rt/aio_write.c: Likewise.
301         * rt/clock_getres.c: Likewise.
302         * rt/clock_gettime.c: Likewise.
303         * rt/clock_nanosleep.c: Likewise.
304         * rt/clock_settime.c: Likewise.
305         * rt/lio_listio.c: Likewise.
306         * rt/mq_close.c: Likewise.
307         * rt/mq_getattr.c: Likewise.
308         * rt/mq_notify.c: Likewise.
309         * rt/mq_open.c: Likewise.
310         * rt/mq_receive.c: Likewise.
311         * rt/mq_send.c: Likewise.
312         * rt/mq_setattr.c: Likewise.
313         * rt/mq_timedreceive.c: Likewise.
314         * rt/mq_timedsend.c: Likewise.
315         * rt/mq_unlink.c: Likewise.
316         * rt/shm_open.c: Likewise.
317         * rt/shm_unlink.c: Likewise.
318         * rt/timer_create.c: Likewise.
319         * rt/timer_delete.c: Likewise.
320         * rt/timer_getoverr.c: Likewise.
321         * rt/timer_gettime.c: Likewise.
322         * rt/timer_settime.c: Likewise.
323         * setjmp/__longjmp.c: Likewise.
324         * setjmp/setjmp.c: Likewise.
325         * signal/kill.c: Likewise.
326         * signal/killpg.c: Likewise.
327         * signal/raise.c: Likewise.
328         * signal/sigaction.c: Likewise.
329         * signal/sigaltstack.c: Likewise.
330         * signal/sigblock.c: Likewise.
331         * signal/sigignore.c: Likewise.
332         * signal/sigintr.c: Likewise.
333         * signal/signal.c: Likewise.
334         * signal/sigpause.c: Likewise.
335         * signal/sigpending.c: Likewise.
336         * signal/sigqueue.c: Likewise.
337         * signal/sigreturn.c: Likewise.
338         * signal/sigset.c: Likewise.
339         * signal/sigsetmask.c: Likewise.
340         * signal/sigstack.c: Likewise.
341         * signal/sigsuspend.c: Likewise.
342         * signal/sigtimedwait.c: Likewise.
343         * signal/sigvec.c: Likewise.
344         * signal/sigwait.c: Likewise.
345         * signal/sigwaitinfo.c: Likewise.
346         * signal/sysv_signal.c: Likewise.
347         * socket/accept.c: Likewise.
348         * socket/accept4.c: Likewise.
349         * socket/bind.c: Likewise.
350         * socket/connect.c: Likewise.
351         * socket/getpeername.c: Likewise.
352         * socket/getsockname.c: Likewise.
353         * socket/getsockopt.c: Likewise.
354         * socket/isfdtype.c: Likewise.
355         * socket/listen.c: Likewise.
356         * socket/recv.c: Likewise.
357         * socket/recvfrom.c: Likewise.
358         * socket/recvmsg.c: Likewise.
359         * socket/send.c: Likewise.
360         * socket/sendmsg.c: Likewise.
361         * socket/sendto.c: Likewise.
362         * socket/setsockopt.c: Likewise.
363         * socket/shutdown.c: Likewise.
364         * socket/sockatmark.c: Likewise.
365         * socket/socket.c: Likewise.
366         * socket/socketpair.c: Likewise.
367         * stdio-common/ctermid.c: Likewise.
368         * stdio-common/cuserid.c: Likewise.
369         * stdio-common/remove.c: Likewise.
370         * stdio-common/rename.c: Likewise.
371         * stdio-common/renameat.c: Likewise.
372         * stdio-common/tempname.c: Likewise.
373         * stdlib/getcontext.c: Likewise.
374         * stdlib/makecontext.c: Likewise.
375         * stdlib/setcontext.c: Likewise.
376         * stdlib/swapcontext.c: Likewise.
377         * stdlib/system.c: Likewise.
378         * streams/fattach.c: Likewise.
379         * streams/fdetach.c: Likewise.
380         * streams/getmsg.c: Likewise.
381         * streams/getpmsg.c: Likewise.
382         * streams/putmsg.c: Likewise.
383         * streams/putpmsg.c: Likewise.
384         * sysdeps/unix/bsd/getpt.c: Likewise.
385         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
386         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
387         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
389         Likewise.
390         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
391         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
392         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
393         * sysvipc/msgctl.c: Likewise.
394         * sysvipc/msgget.c: Likewise.
395         * sysvipc/msgrcv.c: Likewise.
396         * sysvipc/msgsnd.c: Likewise.
397         * sysvipc/semctl.c: Likewise.
398         * sysvipc/semget.c: Likewise.
399         * sysvipc/semop.c: Likewise.
400         * sysvipc/semtimedop.c: Likewise.
401         * sysvipc/shmat.c: Likewise.
402         * sysvipc/shmctl.c: Likewise.
403         * sysvipc/shmdt.c: Likewise.
404         * sysvipc/shmget.c: Likewise.
405         * termios/tcdrain.c: Likewise.
406         * termios/tcflow.c: Likewise.
407         * termios/tcflush.c: Likewise.
408         * termios/tcgetattr.c: Likewise.
409         * termios/tcgetpgrp.c: Likewise.
410         * termios/tcsendbrk.c: Likewise.
411         * termios/tcsetattr.c: Likewise.
412         * termios/tcsetpgrp.c: Likewise.
413         * time/adjtime.c: Likewise.
414         * time/clock.c: Likewise.
415         * time/getitimer.c: Likewise.
416         * time/gettimeofday.c: Likewise.
417         * time/setitimer.c: Likewise.
418         * time/settimeofday.c: Likewise.
419         * time/stime.c: Likewise.
420         * time/time.c: Likewise.
421
422 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
423
424         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
425         /usr/old/bin.
426
427         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
428         instead of spaces.
429         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
430
431 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
432
433         [BZ #14796]
434         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
435         FE_TONEAREST before applying Dekker multiplication and Knuth
436         addition.  Clear inexact exceptions and check for exact zero
437         results afterwards.
438         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
439         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
440         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
441         * math/libm-test.inc (fma_test): Add more tests.
442         (fma_test_towardzero): Likewise.
443         (fma_test_downward): Likewise.
444         (fma_test_upward): Likewise.
445         * sysdeps/generic/math_private.h (default_libc_fesetround): New
446         function.
447         (libc_fesetround): New macro.
448         (libc_fesetroundf): Likewise.
449         (libc_fesetroundl): Likewise.
450         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
451         function.
452         (libc_fesetround_387): Likewise.
453         (libc_fesetroundf): New macro.
454         (libc_fesetround): Likewise.
455         (libc_fesetroundl): Likewise.
456         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
457         function.
458         (libc_fesetroundf): New macro.
459         (libc_fesetround): Likewise.
460         (libc_fesetroundl): Likewise.
461         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
462         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
463         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
464         libm_hidden_ver.
465         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
466         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
467         libm_hidden_def.
468         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
469         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
470         libm_hidden_ver.
471         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
472         libm_hidden_def.
473
474         [BZ #3439]
475         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
476         integer constant usable in #if and use that to give value to enum
477         constant.
478         (FE_DIVBYZERO): Likewise.
479         (FE_UNDERFLOW): Likewise.
480         (FE_OVERFLOW): Likewise.
481         (FE_INVALID): Likewise.
482         (FE_INVALID_SNAN): Likewise.
483         (FE_INVALID_ISI): Likewise.
484         (FE_INVALID_IDI): Likewise.
485         (FE_INVALID_ZDZ): Likewise.
486         (FE_INVALID_IMZ): Likewise.
487         (FE_INVALID_COMPARE): Likewise.
488         (FE_INVALID_SOFTWARE): Likewise.
489         (FE_INVALID_SQRT): Likewise.
490         (FE_INVALID_INTEGER_CONVERSION): Likewise.
491         (FE_TONEAREST): Likewise.
492         (FE_TOWARDZERO): Likewise.
493         (FE_UPWARD): Likewise.
494         (FE_DOWNWARD): Likewise.
495         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
496         (FE_DIVBYZERO): Likewise.
497         (FE_OVERFLOW): Likewise.
498         (FE_UNDERFLOW): Likewise.
499         (FE_INEXACT): Likewise.
500         (FE_TONEAREST): Likewise.
501         (FE_DOWNWARD): Likewise.
502         (FE_UPWARD): Likewise.
503         (FE_TOWARDZERO): Likewise.
504         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
505         (FE_UNDERFLOW): Likewise.
506         (FE_OVERFLOW): Likewise.
507         (FE_DIVBYZERO): Likewise.
508         (FE_INVALID): Likewise.
509         (FE_TONEAREST): Likewise.
510         (FE_TOWARDZERO): Likewise.
511         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
512         (FE_OVERFLOW): Likewise.
513         (FE_UNDERFLOW): Likewise.
514         (FE_DIVBYZERO): Likewise.
515         (FE_INEXACT): Likewise.
516         (FE_TONEAREST): Likewise.
517         (FE_TOWARDZERO): Likewise.
518         (FE_UPWARD): Likewise.
519         (FE_DOWNWARD): Likewise.
520         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
521         (FE_DIVBYZERO): Likewise.
522         (FE_OVERFLOW): Likewise.
523         (FE_UNDERFLOW): Likewise.
524         (FE_INEXACT): Likewise.
525         (FE_TONEAREST): Likewise.
526         (FE_DOWNWARD): Likewise.
527         (FE_UPWARD): Likewise.
528         (FE_TOWARDZERO): Likewise.
529
530 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
531
532         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
533
534 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
535
536         * scripts/cross-test-ssh.sh (command): Use newlines to separate
537         commands.  Quote $PWD.
538         (blacklist_exports): Don't use remove_newlines.  Replace "declare
539         -x" by "export".
540         (remove_newlines): Remove.
541
542 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
543
544         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
545         * stdlib/stdlib.h (atof): Moved to ...
546         * include/bits/stdlib-float.h: Here.  New file.
547         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
548         * stdlib/bits/stdlib-float.h: New file.
549         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
550         -mno-sse -mno-mmx.
551         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
552         <xmmintrin.h>.
553
554 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
555
556         * conform/conformtest.pl (@headers): Add fenv.h.
557         * conform/data/fenv.h-data: New file.
558         * include/fenv.h [_ISOMAC]: Disable all contents of file except
559         include of <math/fenv.h>.
560
561         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
562         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
563         && !UNIX98].  Enables tests for XOPEN2K8.
564         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
565         POSIX2008]: Likewise.
566
567         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
568         (struct rusage): Do not expect type or its members.
569
570         [BZ #3439]
571         * math/math.h (FP_NAN): Define macro to integer constant usable in
572         #if and use that to give value to enum constant.
573         (FP_INFINITE): Likewise.
574         (FP_ZERO): Likewise.
575         (FP_SUBNORMAL): Likewise.
576         (FP_NORMAL): Likewise.
577
578 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
579
580         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
581         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
582         arguments.
583
584 2012-11-02  Roland McGrath  <roland@hack.frob.com>
585
586         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
587         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
588         autoconf-time if not.
589         * configure.in: Remove AC_PREREQ.
590
591 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
592
593         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
594         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
595         of the internal implementation.
596
597 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
598
599         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
600         except include of <misc/sys/syslog.h>.
601
602 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
603
604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
605         function returns with a NULL context exit with zero.
606
607 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
608
609         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
610
611 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
612
613         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
614         (run_program_cmd): This.
615         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
616         (tst_langinfo): New variable.  Use it.
617
618 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
619
620         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
621         floating point opcodes.
622
623 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
624
625         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
626         variable.
627
628         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
629
630         * sysdeps/mach/hurd/powerpc: Remove directory.
631         * sysdeps/mach/powerpc: Likewise.
632
633 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
634
635         * scripts/check-local-headers.sh: Ignore c++ headers.
636
637 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
638
639         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
640         __libc_cleanup_region_start argument.
641
642 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
643
644         [BZ #14784]
645         [BZ #14785]
646         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
647         x * y using scaling, not as x * y + z.
648         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
649         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
650         * math/libm-test.inc (fma_test): Add more tests.
651         (fma_test_towardzero): Likewise.
652         (fma_test_downward): Likewise.
653         (fma_test_upward): Likewise.
654
655 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
656
657         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
658
659 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
660
661         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
662         New variable.
663
664 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
665
666         * rt/tst-shm.c (worker): Correct checking for mmap failure.
667
668 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
669
670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
671         Fix sort order.
672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
673         Likewise.
674
675 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
676
677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
678         Fix the order of the list for glibc 2.17.
679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
680         Likewise.
681
682 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
683
684         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
685
686 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
687
688         [BZ #14610]
689         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
690         for low part of x being zero before using __atanl (y).
691         * math/libm-test.inc (atan2_test): Add another test.
692
693         * manual/install.texi (Configuring and compiling): Document
694         general use of test-wrapper and test-wrapper-env.
695         * INSTALL: Regenerated.
696
697         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
698         (__fma): Do not extract and scale down low bits on after-rounding
699         systems when result rounded to normal precision would have normal
700         exponent.
701         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
702         (__fmal): Do not extract and scale down low bits on after-rounding
703         systems when result rounded to normal precision would have normal
704         exponent.
705         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
706         (__fmal): Do not extract and scale down low bits on after-rounding
707         systems when result rounded to normal precision would have normal
708         exponent.
709         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
710         macro.
711         (fma_test): Add more tests.
712         (fma_test_towardzero): Likewise.
713         (fma_test_downward): Likewise.
714         (fma_test_upward): Likewise.
715
716 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
717
718         * sysdeps/i386/tininess.h: Renamed to ...
719         * sysdeps/x86/tininess.h: This.
720         * sysdeps/x86_64/tininess.h: Removed.
721
722 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
723
724         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
725         input.  Use $(build-program-cmd).
726         ($(objpfx)tst-array1-static.out): Likewise.
727         ($(objpfx)tst-array2.out): Likewise.
728         ($(objpfx)tst-array3.out): Likewise.
729         ($(objpfx)tst-array4.out): Likewise.
730         ($(objpfx)tst-array5.out): Likewise.
731         ($(objpfx)tst-array5-static.out): Likewise.
732
733 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
734
735         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
736         if defined.
737
738         * nss/nsswitch.h (nss_interface_function): Provide new
739         macro for use with NSS functions.
740         * grp/initgroups.c: Use new macro.
741         * nss/getXXbyYY.c: Likewise.
742         * nss/getXXbyYY_r.c: Likewise.
743         * nss/getXXent.c: Likewise.
744         * nss/getXXent_r.c: Likewise.
745         * sysdeps/posix/getaddrinfo.c: Likewise.
746
747 2012-10-30  Andreas Jaeger  <aj@suse.de>
748
749         * po/ru.po: Update Russion translation from translation project.
750
751 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
752
753         [BZ #14152]
754         [BZ #14783]
755         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
756         result and shift together with sticky bit instead of replicating
757         round-to-nearest rounding.
758         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
759         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
760         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
761         missing underflow exceptions.
762         (fma_test_towardzero): Add more tests.
763         (fma_test_downward): Likewise.
764         (fma_test_upward): Likewise.
765
766         [BZ #14047]
767         * sysdeps/generic/tininess.h: New file.
768         * sysdeps/i386/tininess.h: Likewise.
769         * sysdeps/sh/tininess.h: Likewise.
770         * sysdeps/x86_64/tininess.h: Likewise.
771         * stdlib/tst-strtod-underflow.c: Likewise.
772         * stdlib/tst-tininess.c: Likewise.
773         * stdlib/strtod_l.c: Include <tininess.h>.
774         (round_and_return): Do not set errno for exact underflow cases.
775         Force an underflow exception when setting errno for underflow.
776         Determine underflow based on rounding to normal precision if
777         TININESS_AFTER_ROUNDING.
778         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
779         ERANGE for exact underflow cases.
780         * stdlib/Makefile (tests): Add tst-tininess and
781         tst-strtod-underflow.
782         ($(objpfx)tst-tininess): Use $(link-libm).
783         ($(objpfx)tst-strtod-underflow): Likewise.
784
785 2012-10-30  Andreas Jaeger  <aj@suse.de>
786
787         [BZ#14767]
788         * elf/Makefile (tests): Remove conditional for have-initfini-array
789         since this is now always required and the variable does not exist
790         anymore.
791         (tests-static): Likewise.
792         (modules-names): Likewise.
793
794         * po/eo.po: Add Esperanto translation from translation project.
795
796         * elf/tst-array1.c (fini_array): Make writeable so that it can be
797         merged with constructor/destructor.
798         (init_array): Likewise.
799         * elf/tst-array2dep.c (fini_array): Likewise.
800         (init_array): Likewise.
801
802 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
803
804         * manual/message.texi: Delete @cartouche tags.
805
806 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
807
808         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
809         EOPNOTSUPP.
810         * sysdeps/mach/hurd/fsync.c: Likewise.
811
812         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
813         [_POSIX_REALTIME_SIGNALS]: Change condition to
814         [_POSIX_REALTIME_SIGNALS > 0].
815
816 2012-10-27  Andreas Jaeger  <aj@suse.de>
817
818         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
819         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
820         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
821         [__WORDSIZE != 64]: Likewise.
822
823 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
824
825         *  iconvdata/tst-table.sh: Remove ${SHELL}.
826         *  iconvdata/tst-tables.sh: Likewise.
827
828 2012-10-25  David S. Miller  <davem@davemloft.net>
829
830         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
831         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
832         of strtoull.
833
834         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
835         ifunc-impl-list.c
836         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
837         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
838         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
839         file.
840
841 2012-10-25  Roland McGrath  <roland@hack.frob.com>
842
843         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
844         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
845         __getdirentries.
846
847 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
848             Jim Blandy  <jimb@codesourcery.com>
849
850         * scripts/cross-test-ssh.sh: New file.
851         * manual/install.texi (Configuring and compiling): Document use of
852         cross-test-ssh.sh.
853         * INSTALL: Regenerated.
854
855 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
856
857         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
858         EOPNOTSUPP.
859
860 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
861
862         * Makeconfig (run-program-prefix): Fix comment.
863
864 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
865             Jim Blandy  <jimb@codesourcery.com>
866
867         * Makeconfig (test-wrapper): New variable,
868         (test-wrapper-env): Likewise.
869         [$(cross-compiling) = yes && $(test-wrapper) != ""]
870         (run-built-tests): Define to yes.
871         (run-program-prefix): Use $(test-wrapper).
872         (built-program-cmd): Likewise.
873         * Rules (make-test-out): Use $(test-wrapper-env) and
874         $(host-built-program-cmd).
875         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
876         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
877         tst-pathopt.sh.
878         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
879         $(test-wrapper-env) to tst-rtld-load-self.sh.
880         ($(objpfx)order2.out): Use $(test-wrapper).
881         ($(objpfx)tst-initorder.out): Likewise.
882         ($(objpfx)tst-initorder2.out): Likewise.
883         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
884         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
885         (test_wrapper_env): New variable.  Use it to run ld.so.
886         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
887         Use it to run ld.so.
888         (test_wrapper_env): Likewise.
889         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
890         $(test-wrapper) to run-iconv-test.sh.
891         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
892         (ICONV): Use $test_wrapper.
893         * posix/Makefile ($(objpfx)globtest.out): Pass
894         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
895         globtest.sh, not $(run-program-prefix).
896         * posix/globtest.sh (run_via_rtld_prefix): New variable.
897         (test_wrapper): Likewise.
898         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
899         set together with run_via_rtld_prefix.
900         (run_program_prefix): Define in terms of test_wrapper and
901         run_via_rtld_prefix.
902
903 2012-10-24  Roland McGrath  <roland@hack.frob.com>
904
905         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
906         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
907         Targets removed.
908
909         [BZ #14743]
910         * include/time.h: Remove librt_hidden_proto (clock_gettime).
911         Declare __clock_getres, __clock_gettime, __clock_settime,
912         __clock_nanosleep, and __clock_getcpuclockid.
913         * rt/clock_gettime.c: Define __clock_gettime as an alias.
914         Remove librt_hidden_def (clock_gettime).
915         * sysdeps/unix/clock_gettime.c: Likewise.
916         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
917         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
918         * rt/clock_getres.c: Define __clock_getres as an alias.
919         * sysdeps/posix/clock_getres.c: Likewise.
920         * rt/clock_settime.c: Define __clock_settime as an alias.
921         * sysdeps/unix/clock_settime.c: Likewise.
922         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
923         * sysdeps/unix/clock_nanosleep.c: Likewise.
924         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
925         * rt/clock-compat.c: New file.
926         * rt/Makefile (librt-routines): Add clock-compat and move
927         $(clock-routines) to ...
928         (routines): ... here, new variable.
929         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
930         Don't add get_clockfreq here.
931         * rt/Versions (libc: GLIBC_2.17): New version set.
932         Add clock_* symbols here.
933         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
934         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
935         (GLIBC_2.17): Add clock_* symbols.
936         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
937         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
938         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
940         Likewise.
941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
942         Likewise.
943         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
944         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
945         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
946         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
947         * NEWS: Mention the move.
948
949         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
950         Use __open, __read, __close rather than their public counterparts.
951         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
952         (__get_clockfreq_via_cpuinfo): Likewise.
953         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
954         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
955
956         * config.h.in (HAVE_IFUNC): New #undef.
957         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
958         was successful.
959         * configure: Regenerated.
960
961 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
962
963         * configure.in: Move READELF check to start of file.
964         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
965         libc_cv_asm_gnu_indirect_function in the process.
966         * configure: Regenerated.
967
968 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
969
970         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
971         send the output to /dev/null.
972         (libc_cv_cc_with_libunwind): Likewise.
973         (libc_cv_as_noexecstack): Likewise.
974         * configure: Regenerate.
975
976 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
977
978         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
979
980         * posix/globtest.sh (TMPDIR): Do not set.
981         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
982         (testout): Likewise.
983
984 2012-10-24  Andreas Jaeger  <aj@suse.de>
985
986         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
987         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
988         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
989         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
990         posix_fadvise64, posix_fallocate64.
991
992         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
993         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
994         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
995         Likewise.
996         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
997         Likewise.
998         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
999
1000         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1001         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1002         <bits/fcntl-linux.h>.
1003         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1004
1005         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1006         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1007         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1008         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1009         [__WORDSIZE != 64]: Likewise.
1010
1011 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1012
1013         * Makeconfig (run-built-tests): New variable.
1014         * Rules [$(cross-compiling) = yes]: Change condition to
1015         [$(run-built-tests) = no].
1016         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1017         to [$(run-built-tests) = yes].
1018         * elf/Makefile [$(cross-compiling) = no]: Likewise
1019         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1020         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1021         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1022         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1023         * io/Makefile [$(cross-compiling) = no]: Likewise.
1024         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1025         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1026         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1027         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1028         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1029         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1030         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1031         * string/Makefile [$(cross-compiling) = no]: Likewise.
1032
1033         * posix/Makefile ($(objpfx)globtest.out): Pass
1034         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1035         $(rtld-installed-name).
1036         * posix/globtest.sh (elf_objpfx): Remove variable.
1037         (rtld_installed_name): Likewise.
1038         (library_path): Likewise.
1039         (run_program_prefix): New variable.  Use for running globtest
1040         binary.
1041
1042 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1043             Joseph Myers  <joseph@codesourcery.com>
1044
1045         * Makeconfig (host-built-program-cmd): New variable.
1046         * elf/Makefile (tst-stackguard1-ARGS): Use
1047         $(host-built-program-cmd).
1048         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1049         (tst-spawn-ARGS): Likewise.
1050         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1051
1052 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1053             Jim Blandy  <jimb@codesourcery.com>
1054
1055         * Makeconfig (run-via-rtld-prefix): New variable.
1056         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1057         (built-program-cmd): Likewise.
1058
1059 2012-10-22  Andreas Jaeger  <aj@suse.de>
1060
1061         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1062         __O_RSYNC if it exists, otherwise to O_SYNC.
1063
1064 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1065             Joseph Myers  <joseph@codesourcery.com>
1066
1067         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1068         /dev/null.
1069         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1070         from /dev/null
1071         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1072         /dev/null.
1073
1074 2012-10-22  Andreas Jaeger  <aj@suse.de>
1075
1076         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1077         Define always.
1078         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1079
1080         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1081         bits/fcntl-linux.h.
1082
1083         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1084         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1085
1086         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1087         to __O_LARGEFILE.
1088         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1089         to __O_LARGEFILE.
1090
1091 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1092             Joseph Myers  <joseph@codesourcery.com>
1093
1094         * config.make.in (NM): New variable.
1095
1096 2012-10-21  Andreas Jaeger  <aj@suse.de>
1097
1098         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1099         definitions and declarations that are provided by
1100         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1101
1102 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1103
1104         [BZ #14683]
1105         * elf/Makefile (tests-static): Add tst-leaks1-static.
1106         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1107         ($(objpfx)tst-leaks1-static): New rule.
1108         ($(objpfx)tst-leaks1-static-mem): Likewise.
1109         (tst-leaks1-static-ENV): New macro.
1110         * elf/dl-open.c (dl_open_worker): Check the main application
1111         only if SHARED is defined.
1112         * elf/tst-leaks1-static.c: New file.
1113
1114 2012-10-20  Andreas Jaeger  <aj@suse.de>
1115
1116         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1117         generic values for Linux.
1118         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1119         and declarations that are provided by <bits/fcntl-linux.h> and
1120         include <bits/fcntl-linux.h>.
1121         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1122         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1123
1124 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1125
1126         * io/fcntl.h: Move include of <bits/types.h> to the top and
1127         include it unconditionally.
1128
1129 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1130
1131         * wcsmbs/Makefile (tests-ifunc): New variable.
1132         (tests): Add $(tests-ifunc).
1133         * wcsmbs/test-wcschr-ifunc.c: New file.
1134         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1135         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1136         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1137         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1138         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1139
1140         * string/Makefile (tests-ifunc): New variable.
1141         (tests): Add $(tests-ifunc).
1142         * string/test-memccpy.c (TEST_NAME): New macro.
1143         * string/test-memchr.c (TEST_NAME): Likewise.
1144         * string/test-memcmp.c (TEST_NAME): Likewise.
1145         * string/test-memcpy.c (TEST_NAME): Likewise.
1146         * string/test-memmem.c (TEST_NAME): Likewise.
1147         * string/test-memmove.c (TEST_NAME): Likewise.
1148         * string/test-memset.c (TEST_NAME): Likewise.
1149         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1150         * string/test-stpcpy.c (TEST_NAME): Likewise.
1151         * string/test-stpncpy.c (TEST_NAME): Likewise.
1152         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1153         * string/test-strcasestr.c (TEST_NAME): Likewise.
1154         * string/test-strcat.c (TEST_NAME): Likewise.
1155         * string/test-strchr.c (TEST_NAME): Likewise.
1156         * string/test-strcmp.c(TEST_NAME): Likewise.
1157         * string/test-strcpy.c (TEST_NAME): Likewise.
1158         * string/test-strcspn.c (TEST_NAME): Likewise.
1159         * string/test-strlen.c (TEST_NAME): Likewise.
1160         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1161         * string/test-strncmp.c (TEST_NAME): Likewise.
1162         * string/test-strncpy.c (TEST_NAME): Likewise.
1163         * string/test-strnlen.c (TEST_NAME): Likewise.
1164         * string/test-strpbrk.c (TEST_NAME): Likewise.
1165         * string/test-strrchr.c (TEST_NAME): Likewise.
1166         * string/test-strspn.c (TEST_NAME): Likewise.
1167         * string/test-strstr.c (TEST_NAME): Likewise.
1168         * string/test-bcopy-ifunc.c: New file.
1169         * string/test-bzero-ifunc.c: Likewise.
1170         * string/test-memccpy-ifunc.c: Likewise.
1171         * string/test-memchr-ifunc.c: Likewise.
1172         * string/test-memcmp-ifunc.c: Likewise.
1173         * string/test-memcpy-ifunc.c: Likewise.
1174         * string/test-memmem-ifunc.c: Likewise.
1175         * string/test-memmove-ifunc.c: Likewise.
1176         * string/test-mempcpy-ifunc.c: Likewise.
1177         * string/test-memset-ifunc.c: Likewise.
1178         * string/test-rawmemchr-ifunc.c: Likewise.
1179         * string/test-stpcpy-ifunc.c: Likewise.
1180         * string/test-stpncpy-ifunc.c: Likewise.
1181         * string/test-strcasecmp-ifunc.c: Likewise.
1182         * string/test-strcasestr-ifunc.c: Likewise.
1183         * string/test-strcat-ifunc.c: Likewise.
1184         * string/test-strchr-ifunc.c: Likewise.
1185         * string/test-strchrnul-ifunc.c: Likewise.
1186         * string/test-strcmp-ifunc.c: Likewise.
1187         * string/test-strcpy-ifunc.c: Likewise.
1188         * string/test-strcspn-ifunc.c: Likewise.
1189         * string/test-strlen-ifunc.c: Likewise.
1190         * string/test-strncasecmp-ifunc.c: Likewise.
1191         * string/test-strncat-ifunc.c: Likewise.
1192         * string/test-strncmp-ifunc.c: Likewise.
1193         * string/test-strncpy-ifunc.c: Likewise.
1194         * string/test-strnlen-ifunc.c: Likewise.
1195         * string/test-strpbrk-ifunc.c: Likewise.
1196         * string/test-strrchr-ifunc.c: Likewise.
1197         * string/test-strspn-ifunc.c: Likewise.
1198         * string/test-strstr-ifunc.c: Likewise.
1199
1200         * debug/Makefile (tests-ifunc): New variable.
1201         (tests): Add $(tests-ifunc).
1202         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1203         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1204         * debug/test-stpcpy_chk-ifunc.c: New file.
1205         * debug/test-strcpy_chk-ifunc.c: Likewise.
1206
1207 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1208
1209         [BZ #13601]
1210         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1211         header is not read in.
1212
1213 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1214
1215         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1216         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1217         directly.  Pass built executable to script as
1218         $(built-program-cmd).
1219         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1220         $testprogram without using LD_LIBRARY_PATH and $ldso.
1221
1222         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1223         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1224         $(rtld-installed-name).
1225         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1226         (rtld_installed_name): Likewise.
1227         (library_path): Likewise.
1228         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1229         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1230         $(run-program-prefix) to tst-tables.sh.
1231         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1232         it to run tst-table-from and tst-table-to.
1233         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1234         Pass it to tst-table.sh.
1235         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1236         $(run-program-prefix) to tst-gettext.sh.
1237         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1238         tst-translit.sh.
1239         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1240         tst-gettext2.sh.
1241         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1242         to run tst-gettext.
1243         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1244         to run tst-gettext2.
1245         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1246         to run tst-translit.
1247         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1248         $(run-program-prefix) to tst-mtrace.sh.
1249         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1250         to run tst-mtrace.
1251         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1252         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1253         $(rtld-installed-name).
1254         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1255         (rtld_installed_name): Likewise.
1256         (run_program_prefix): New variable.  Use it to run wordexp-test.
1257
1258         * Makeconfig (ARCH): Remove all definitions.
1259         (machine): Likewise.
1260         [ARCH]: Remove conditional code.
1261         [!objdir]: Give error.
1262         [!objdir] (objpfx): Remove.
1263         [!objdir] (common-objpfx): Likewise.
1264         [!objdir] (common-objdir): Likewise.
1265         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1266         AC_CONFIG_FILES call.
1267         * configure: Regenerated.
1268
1269         [BZ #13888]
1270         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1271         or TMPDIR.
1272         (testout): Likewise.
1273
1274         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1275         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1276         $(rtld-installed-name).
1277         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1278         (rtld_installed_name): Likwise.
1279         (runit): Remove function.
1280         (run_getconf): New variable,  Use it for running getconf binary.
1281
1282 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1283
1284         [BZ #14716]
1285         * string/test-memmem.c (check_result): New function.
1286         (do_one_test): Use it.
1287         (check1): New function.
1288         (test_main): Use it.
1289
1290 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1291
1292         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1293
1294 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1295
1296         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1297         (_G_LSEEK64): Likewise.
1298         (_G_MMAP64): Likewise.
1299         (_G_FSTAT64): Likewise.
1300         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1301         (_G_LSEEK64): Likewise.
1302         (_G_MMAP64): Likewise.
1303         (_G_FSTAT64): Likewise.
1304         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1305         unconditional.  Call __mmap64 directly.
1306         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1307         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1308         __lseek64 directly.
1309         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1310         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1311         __mmap64 directly.
1312         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1313         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1314         __lseek64 directly.
1315         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1316         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1317         __lseek64 directly.
1318         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1319         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1320         __lseek64 directly.
1321         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1322         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1323         __fxstat64 directly.
1324         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1325         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1326         unconditional.
1327         (freopen64) [!_G_OPEN64]: Remove conditional code.
1328         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1329         unconditional.
1330         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1331         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1332         unconditional.
1333         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1334         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1335         unconditional.
1336         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1337         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1338         unconditional.
1339         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1340         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1341         unconditional.
1342         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1343         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1344         unconditional.
1345         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1346         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1347         unconditional.
1348         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1349
1350 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1351
1352         [BZ #12140]
1353         * manual/memory.texi (Malloc Tunable Parameters): Add note
1354         about free list pointers overwriting some perturb bytes.
1355         Wording suggested by Roland McGrath.
1356
1357 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
1358
1359         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
1360         (lgamma_test): Likewise.
1361         (tgamma_test): Likewise.
1362
1363 2012-10-16  Florian Weimer  <fweimer@redhat.com>
1364
1365         [BZ #14700]
1366         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
1367         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
1368
1369 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
1370
1371         * NEWS: Mention BZ #14716.
1372         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
1373         when removing AVAILABLE1_USES_J macro.
1374
1375 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1376
1377         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
1378         (__bswap_64): __uint64_t for unsigned 64-bit int.
1379
1380 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
1381
1382         * include/string.h (memmem): Declare libc hidden alias.
1383         * string/memmem.c (memmem): Define libc hidden alias.
1384         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
1385         __read, __close instead of open, read, close.
1386
1387 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1388
1389         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
1390         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
1391         global and hidden.
1392         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
1393         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
1394         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
1395         Likewise.
1396         (__rawmemchr_sse2): Likewise.
1397         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
1398         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
1399         (__strchr_sse2): Likewise.
1400         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
1401         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
1402         (__strcasecmp_sse2): Likewise.
1403         (__strncasecmp_sse2): Likewise.
1404         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
1405         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
1406         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
1407         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
1408         (__strrchr_sse2): Likewise.
1409         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
1410         ifunc-impl-list.c.
1411         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1412         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1413         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1414         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1415         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1416         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1417         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1418         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1419         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
1420         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
1421         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
1422         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
1423         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
1424         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1425         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1426         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1427         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1428         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1429         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
1430         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
1431         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
1432         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
1433         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
1434         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
1435         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
1436         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1437         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1438         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1439         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1440         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1441
1442         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
1443         global and hidden.
1444         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
1445         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
1446         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
1447         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
1448         Likewise.
1449         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
1450         Likewise.
1451         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
1452         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
1453         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
1454         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
1455         ifunc-impl-list.c.
1456         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
1457         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
1458         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
1459         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
1460         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
1461         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
1462         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
1463         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
1464         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
1465         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
1466         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
1467         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
1468         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
1469         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
1470         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
1471         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
1472         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
1473         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
1474         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
1475         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
1476         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
1477         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
1478         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
1479         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
1480         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
1481         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
1482         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
1483         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
1484         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
1485         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
1486         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
1487         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
1488         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
1489         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
1490         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
1491         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
1492         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
1493         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
1494         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
1495         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
1496         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
1497
1498         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
1499         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
1500         * include/ifunc-impl-list.h: New file.
1501         * misc/ifunc-impl-list.c: Likewise.
1502         * misc/Makefile (routines): Add ifunc-impl-list.
1503         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
1504         * string/test-string.h: Include <ifunc-impl-list.h>.
1505         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
1506         impl_array): New variables.
1507         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
1508         are defined.
1509         (test_init): Call __libc_ifunc_impl_list to initialize
1510         func_list if TEST_IFUNC and TEST_NAME are defined.
1511
1512         * string/Makefile (strop-tests): Add bcopy and bzero.
1513         * string/test-bcopy.c: New file.
1514         * string/test-bzero.c: Likewise.
1515         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
1516         defined.
1517         * string/test-memset.c: Support bzero test if TEST_BZERO is
1518         defined.
1519         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
1520         __libc_memmove.
1521         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
1522         __libc_memset.
1523         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
1524         of memset.
1525
1526 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
1527
1528         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1529         * configure: Regenerated.
1530
1531         * Makeconfig (+link-static-before-libc): Don't include
1532         $(link-static-libc).
1533
1534         * libio/libio.h (_IO_pos_t): Remove.
1535
1536 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1537
1538         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1539         McGrath.
1540
1541 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1542
1543         * crypt/crypt-entry.c: Include fips-private.h.
1544         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1545         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1546         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1547         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1548
1549 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1550
1551         * crypt/crypt-private.h: Include stdbool.h.
1552         (_ufc_setup_salt_r): Return bool.
1553         * crypt/crypt-entry.c: Include errno.h.
1554         (__crypt_r): Return NULL with EINVAL for bad salt.
1555         * crypt/crypt_util.c (bad_for_salt): New.
1556         (_ufc_setup_salt_r): Check that salt is long enough and within
1557         the specified alphabet.
1558         * crypt/badsalttest.c: New file.
1559         * crypt/Makefile (tests): Add it.
1560         ($(objpfx)badsalttest): New.
1561
1562 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1563
1564         * NEWS: Add entry for BZ #14602.
1565
1566 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1567
1568         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1569         type-generic.
1570         * math/libm-test.inc: Update comment listing what functions and
1571         macros are tested.
1572         (isgreater_test): New function.
1573         (isgreaterequal_test): Likewise.
1574         (isless_test): Likewise.
1575         (islessequal_test): Likewise.
1576         (islessgreater_test): Likewise.
1577         (isunordered_test): Likewise.
1578         (main): Call the new functions.
1579
1580 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1581
1582         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1583         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1584         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1585         * sysdeps/i386/configure: Regenerated.
1586         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1587         * sysdeps/mach/configure: Regenerated.
1588         * sysdeps/mach/hurd/configure: Regenerated.
1589         * sysdeps/powerpc/configure: Regenerated.
1590         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1591         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1592         * sysdeps/s390/s390-32/configure: Regenerated.
1593         * sysdeps/s390/s390-64/configure: Regenerated.
1594         * sysdeps/sh/configure: Regenerated.
1595         * sysdeps/sparc/configure: Regenerated.
1596         * sysdeps/unix/sysv/linux/configure: Regenerated.
1597         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1598         * sysdeps/x86_64/configure: Regenerated.
1599
1600         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1601         defined.  Don't check if MAP is NULL.
1602
1603 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1604
1605         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1606         (_G_stat64): Likewise.
1607         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1608         (_G_stat64): Likewise.
1609         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1610         instead of struct _G_stat64.
1611         * libio/fileops.c (mmap_remap_check): Likewise.
1612         (decide_maybe_mmap): Likewise.
1613         (_IO_new_file_seekoff): Likewise.
1614         (_IO_file_stat): Likewise.
1615         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1616         _G_off64_t.
1617         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1618         instead of struct _G_stat64.
1619         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1620
1621 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1622
1623         [BZ #14602]
1624         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1625         Replace with ...
1626         (CHECK_EOL): New macro.
1627         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1628         CHECK_EOL.
1629         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1630         Replace with CHECK_EOL.
1631         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1632         Replace with CHECK_EOL.
1633
1634 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1635
1636         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1637         type-generic.
1638         * math/libm-test.inc: Update comment listing what functions and
1639         macros are tested.
1640         (finite_test): New function.
1641         (isinf_test): Likewise.
1642         (isnan_test): Likewise.
1643         (fpclassify_test): Test subnormal input.
1644         (isfinite_test): Likewise.
1645         (isnormal_test): Likewise.
1646         (main): Call the new functions.
1647
1648 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1649
1650         [BZ #14660]
1651         * Makerules (%.dynsym): Force C locale when running
1652         $(OBJDUMP) --dynamic-syms.
1653
1654 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1655
1656         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1657         <stdint.h>.
1658
1659 2012-10-06  David S. Miller  <davem@davemloft.net>
1660
1661         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1662         upper 32-bits of the length value in %o2 since we use branch-on-register
1663         tests which consider the entire 64-bit register.
1664
1665 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1666
1667         * string/test-strstr.c (check2): Add a test for page boundary.
1668
1669 2012-10-05  David S. Miller  <davem@davemloft.net>
1670
1671         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1672         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1673         file.
1674         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1675         sysdep_routines.
1676         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1677         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1678         and bzero when HWCAP_SPARC_CRYPTO is present.
1679
1680 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1681
1682         [BZ #14602]
1683         * string/test-strstr.c (check2): New function.
1684         (test_main): Call check2.
1685
1686         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1687         and bug-strchr1.
1688         * string/bug-strcasestr1.c (do_test): Moved to ...
1689         * string/test-strcasestr.c (check1): Here.  New function.
1690         (do_one_test): Break out result checking code into ...
1691         (check_result): This.  New function.
1692         (do_one_test): Call check_result.
1693         (test_main): Call check1.
1694         * string/bug-strchr1.c (do_test): Moved to ...
1695         * string/test-strchr.c (check1): Here.  New function.
1696         (do_one_test): Break out result checking code into ...
1697         (check_result): This.  New function.
1698         (do_one_test): Call check_result.
1699         (test_main): Call check1.
1700         * string/bug-strstr1.c (main): Moved to ...
1701         * string/test-strchr.c (check1): Here.  New function.
1702         (do_one_test): Break out result checking code into ...
1703         (check_result): This.  New function.
1704         (do_one_test): Call check_result.
1705         (test_main): Call check1.
1706         * string/bug-strcasestr1.c: Removed.
1707         * string/bug-strchr1.c: Likewise.
1708         * string/bug-strstr1.c: Likewise.
1709
1710         * elf/Makefile (dl-routines): Add hwcaps.
1711         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1712         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1713         (_dl_important_hwcaps): Moved to ...
1714         * elf/dl-hwcaps.c: Here.  New file.
1715         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1716
1717         [BZ #14557]
1718         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1719         if IS_IN_rtld isn't defined.
1720
1721         * elf/dl-support.c (_dl_sysinfo_map): New.
1722         Include "get-dynamic-info.h" and "setup-vdso.h".
1723         (_dl_non_dynamic_init): Call setup_vdso.
1724         * elf/dynamic-link.h: Don't include <assert.h>.
1725         (elf_get_dynamic_info): Moved to ...
1726         * elf/get-dynamic-info.h: Here.  New file.
1727         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1728         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1729         * elf/setup-vdso.h: Here.  New file.
1730         * elf/rtld.c: Include "setup-vdso.h".
1731         (dl_main): Call setup_vdso.
1732
1733 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1734
1735         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1736         creal in comment listing functions tested.  List finite, isinf,
1737         isnan, isless, islessequal, isgreater, isgreaterequal,
1738         islessgreater, isunordered, lgamma_r and pow10 as functions and
1739         macros not tested.  Mention which functions not tested are aliases
1740         for other functions.  Fix typo.  Note that signs of NaNs are not
1741         tested.
1742
1743         * scripts/config.guess: Update from config.git.
1744         * scripts/config.sub: Likewise.
1745
1746 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1747
1748         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1749         * misc/madvise.c (madvise): Renamed to __madvise.
1750         Make madvise a weak alias.
1751         * include/sys/mman.h: Declare __madvise.
1752         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1753         * sysdeps/unix/syscalls.list
1754         (madvise): Make __madvise the strong name, and madvise a weak alias.
1755         * sysdeps/unix/sysv/linux/syscalls.list
1756         (madvise, mmap): Remove redundant entries.
1757         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1758         * malloc/malloc.c (mtrim): Likewise.
1759         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1760
1761 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1762
1763         * sysdeps/mach/hurd/dl-cache.c: File removed.
1764         * config.h.in (USE_LDCONFIG): New #undef.
1765         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1766         * configure: Regenerated.
1767         * elf/Makefile (dl-routines): Add dl-cache only under
1768         [$(use-ldconfig) = yes].
1769         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1770         cache on [USE_LDCONFIG].
1771         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1772         [USE_LDCONFIG].
1773         * elf/rtld.c (dl_main): Likewise.
1774
1775 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1776
1777         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1778         _SC_LEVEL4_CACHE_LINESIZE.
1779
1780 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1781
1782         * sysdeps/unix/bsd/confstr.h: File removed.
1783
1784 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1785
1786         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1787         sys/sdt-config.h.
1788
1789 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1790
1791         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1792         Make 'mapoff' field ElfW(Off) rather than off_t.
1793
1794 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1795
1796         * nscd/Makefile: Remove nscd-cflags and all its users.
1797         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1798         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1799
1800         [BZ #10631]
1801         * malloc.c (malloc_printerr): Clarify error message.
1802
1803 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1804
1805         [BZ #14648]
1806         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1807         Set bit_FMA_Usable if FMA is supported.
1808         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1809         macro.
1810         (bit_FMA4_Usable): Updated.
1811         (index_FMA_Usable): New macro.
1812         (CPUID_FMA): Likewise
1813         (HAS_FMA): Defined with bit_FMA_Usable.
1814
1815 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1816
1817         * bits/types.h (__swblk_t): Type removed.
1818         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1819         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1820         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1821         (__SWBLK_T_TYPE): Likewise.
1822         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1823         (__SWBLK_T_TYPE): Likewise.
1824         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1825         (__SWBLK_T_TYPE): Likewise.
1826         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1827         (__SWBLK_T_TYPE): Likewise.
1828
1829 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1830             Honza Horak <hhorak@redhat.com>
1831
1832         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1833         (xdr_mapname): Use YPMAXMAP as maxsize.
1834         (xdr_peername): Use YPMAXPEER as maxsize.
1835         (xdr_keydat): Use YPAXRECORD as maxsize.
1836         (xdr_valdat): Use YPMAXRECORD as maxsize.
1837
1838 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1839
1840         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1841
1842         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1843         * csu/init-first.c: ... here.
1844         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1845         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1846         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1847         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1848         * sysdeps/i386/init-first.c: File removed.
1849         * sysdeps/sh/init-first.c: File removed.
1850
1851 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1852
1853         [BZ #14645]
1854         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1855         if x * y might underflow to zero and z is zero.
1856         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1857         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1858         * math/libm-test.inc (min_subnorm_value): New variable.
1859         (fma_test): Add more tests.
1860         (fma_test_towardzero): Likewise.
1861         (fma_test_downward): Likewise
1862         (fma_test_upward): Likewise.
1863         (initialize): Set min_subnorm_value.
1864
1865 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1866
1867         [BZ #14638]
1868         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1869         0 + 0.
1870         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1871         mode for addition resulting in exact zero.
1872         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1873         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1874         exact 0 + 0.
1875         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1876         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1877         * math/libm-test.inc (fma_test): Add more tests.
1878         (fma_test_towardzero): New function.
1879         (fma_test_downward): Likewise.
1880         (fma_test_upward): Likewise.
1881         (main): Call the new functions.
1882
1883 2012-09-28  David S. Miller  <davem@davemloft.net>
1884
1885         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1886
1887 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1888
1889         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1890         instead of SIGALRM.
1891
1892         * sysdeps/gnu/_G_config.h: Moved to ...
1893         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1894         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1895         * sysdeps/generic/_G_config.h: ... here.
1896
1897         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1898
1899         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1900
1901         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1902         Conditionalize target on [libnss_test1.so-version].
1903
1904         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1905
1906         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1907         (elfobjdir): Move out of conditionals.
1908
1909         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1910         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1911         (__nss_lookup_function): Conditionalize label remove_from_tree on
1912         [!DO_STATIC_NSS || SHARED], matching its only use.
1913
1914 2012-09-28  David S. Miller  <davem@davemloft.net>
1915
1916         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1917         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1918         file.
1919         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1920         sysdep_routines.
1921         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1922         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1923         when HWCAP_SPARC_CRYPTO is present.
1924
1925 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1926
1927         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1928
1929 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1930
1931         [BZ #6530]
1932         * stdio-common/vfprintf.c (process_string_arg): Revert
1933         2000-07-22 change.
1934
1935 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1936
1937         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1938         for testcase.
1939         * stdio-common/tst-sprintf.c: Include <locale.h>
1940         (main): Test sprintf's handling of incomplete multibyte
1941         characters.
1942
1943 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1944
1945         * elf/dl-runtime.c (VERSYMIDX): Removed.
1946         * elf/dl-version.c (VERSYMIDX): Likewise.
1947         * elf/do-rel.h (VERSYMIDX): Likewise.
1948         (VALIDX): Likewise.
1949         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1950         * elf/rtld.c (VALIDX): Likewise.
1951         (ADDRIDX): Likewise.
1952         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1953         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1954         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1955         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1956         (VALIDX): Likewise.
1957         (ADDRIDX): Likewise.
1958
1959 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1960
1961         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1962
1963 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1964
1965         [BZ #11438]
1966         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1967         to global scope.
1968         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1969         addresses are in the same scope as 192.0.2/24.
1970         * posix/gai.conf: Document new scope table defaults.
1971
1972 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1973
1974         [BZ #5298]
1975         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1976         for ftell.  Compute offsets from write pointers instead.
1977         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1978
1979 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1980
1981         [BZ #14543]
1982         * libio/Makefile (tests): New test case tst-fseek.
1983         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1984         combination works in wide mode.
1985         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1986         state when the external buffer state changes.
1987
1988 2012-09-27  David S. Miller  <davem@davemloft.net>
1989
1990         [BZ #14376]
1991         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1992         pass reloc->r_addend in as the 'high' argument to
1993         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1994
1995         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1996
1997 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1998
1999         * rt/tst-aio2.c: Include <pthread.h>.
2000         * rt/tst-aio3.c: Likewise.
2001
2002 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2003
2004         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2005
2006 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2007
2008         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2009         contents on [SHARED].
2010
2011 2012-09-26  Marek Polacek  <polacek@redhat.com>
2012
2013         [BZ #14530]
2014         [BZ #13741]
2015         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2016         for C++ and GCC <4.3 as well as for non GCC compilers.
2017
2018 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2019
2020         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2021
2022 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2023
2024         * Makefile.in (all, install): Declare with .PHONY.
2025         Reported by Michael Hope <michael.hope@linaro.org>.
2026
2027 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2028
2029         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2030         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2031         system header.
2032         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2033         Likewise.
2034         (sydep_routines): Add the new and the internal functions.
2035         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2036         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2038         (GLIBC_2.17): Add the new function.
2039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2040         (GLIBC_2.17): Likewise.
2041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2042         (GLIBC_2.17): Likewise.
2043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2044         (GLIBC_2.17): Likewise.
2045         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2046
2047 2012-09-25  Alan Modra  <amodra@gmail.com>
2048
2049         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2050         Add release barrier before setting once_control to say
2051         initialisation is done.  Add hints on lwarx.  Use macro in
2052         place of isync.
2053         (clear_once_control): Add release barrier.
2054
2055 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2056
2057         [BZ #13629]
2058         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2059         specially.
2060         * math/s_clog10.c (__clog10): Likewise.
2061         * math/s_clog10f.c (__clog10f): Likewise.
2062         * math/s_clog10l.c (__clog10l): Likewise.
2063         * math/s_clogf.c (__clogf): Likewise.
2064         * math/s_clogl.c (__clogl): Likewise.
2065         * math/Makefile (libm-calls): Add x2y2m1.
2066         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2067         (__x2y2m1): Likewise.
2068         (__x2y2m1l): Likewise.
2069         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2070         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2071         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2072         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2073         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2074         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2075         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2076         * sysdeps/i386/fpu/libm-test-ulps: Update.
2077         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2078
2079         [BZ #14621]
2080         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2081         int as type of variable DEPTH.
2082         (glob): Use size_t instead of int as type of variables NEWCOUNT
2083         and OLD_PATHC.
2084
2085 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2086
2087         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2088         Add s_sincosf-sse2.
2089         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2090         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2091         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2092         macros for using routine as __sincosf_ia32.
2093         Use macro for function declaration and weak_alias.
2094         * sysdeps/i386/fpu/libm-test-ulps: Update.
2095
2096         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2097         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2098
2099         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2100         subnormal argument.
2101         * math/s_cexpf.c (__cexpf): Likewise.
2102         * math/s_csinf.c (__csinf): Likewise.
2103         * math/s_csinhf.c (__csinhf): Likewise.
2104         * math/s_ctanf.c (__ctanf): Likewise.
2105         * math/s_ctanhf.c (__ctanhf): Likewise.
2106         * math/s_ccosh.c (__ccoshf): Likewise.
2107         * math/s_cexp.c (__cexpl): Likewise.
2108         * math/s_csin.c (__csin): Likewise.
2109         * math/s_csinh.c (__csinh): Likewise.
2110         * math/s_ctan.c (__ctan): Likewise.
2111         * math/s_ctanh.c (ctanh): Likewise.
2112         * math/s_ccoshl.c (__ccoshl): Likewise.
2113         * math/s_cexpl.c (__cexpl): Likewise.
2114         * math/s_csinl.c (__csinl): Likewise.
2115         * math/s_csinhl.c (__csinhl): Likewise.
2116         * math/s_ctanl.c (__ctanl): Likewise.
2117         * math/s_ctanhl.c (__ctanhl): Likewise.
2118
2119 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2120
2121         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2122         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2123         (_IO_off_t): Define to __off_t, not _G_off_t.
2124         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2125         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2126         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2127         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2128         type of __dummy and __dummy2 fields.
2129         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2130         (_G_ssize_t): Likewise.
2131         (_G_off_t): Likewise.
2132         (_G_pid_t): Likewise.
2133         (_G_uid_t): Likewise.
2134         (_G_wchar_t): Likewise.
2135         (_G_wint_t): Likewise.
2136         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2137         (_G_ssize_t): Likewise.
2138         (_G_off_t): Likewise.
2139         (_G_pid_t): Likewise.
2140         (_G_uid_t): Likewise.
2141         (_G_wchar_t): Likewise.
2142         (_G_wint_t): Likewise.
2143         * sysdeps/mach/hurd/_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
2151 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2152
2153         * malloc/arena.c: Include malloc-sysdep.h.
2154         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2155         is sufficient to shrink the heap or an unmap is needed.
2156         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2157         new function check_may_shrink_heap.
2158         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2159         new function check_may_shrink_heap.
2160
2161 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2162
2163         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2164         comments.
2165
2166 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2167
2168         * catgets/test-gencat.sh: Add "set -e".
2169         * elf/tst-pathopt.sh: Likewise.
2170         * grp/tst_fgetgrent.sh: Likewise.
2171         * iconvdata/run-iconv-test.sh: Likewise.
2172         * intl/tst-gettext.sh: Likewise.
2173         * intl/tst-gettext2.sh: Likewise.
2174         * intl/tst-gettext4.sh: Likewise.
2175         * intl/tst-gettext6.sh: Likewise.
2176         * intl/tst-translit.sh: Likewise.
2177         * io/ftwtest-sh: Likewise.
2178         * libio/test-freopen.sh: Likewise.
2179         * malloc/tst-mtrace.sh: Likewise.
2180         * posix/globtest.sh: Likewise.
2181         * posix/tst-getconf.sh: Likewise.
2182         * posix/wordexp-tst.sh: Likewise.
2183         * stdio-common/tst-printf.sh: Likewise.
2184         * stdio-common/tst-unbputc.sh: Likewise.
2185         * stdlib/tst-fmtmsg.sh: Likewise.
2186         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2187         * catgets/Makefile: Do not specify -e option when running
2188         testsuite shell scripts.
2189         * elf/Makefile: Likewise.
2190         * grp/Makefile: Likewise.
2191         * iconvdata/Makefile: Likewise.
2192         * intl/Makefile: Likewise.
2193         * io/Makefile: Likewise.
2194         * libio/Makefile: Likewise.
2195         * malloc/Makefile: Likewise.
2196         * posix/Makefile: Likewise.
2197         * stdio-common/Makefile: Likewise.
2198         * stdlib/Makefile: Likewise.
2199         * sysdeps/x86_64/Makefile: Likewise.
2200
2201         * io/ftwtest-sh: Add copyright header.
2202         * posix/globtest.sh: Likewise.
2203         * posix/tst-getconf.sh: Likewise.
2204         * posix/wordexp-tst.sh: Likewise.
2205         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2206
2207 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2208
2209         [BZ #13679]
2210         * Makeconfig (+link): Defined as $(+link-static) if
2211         $(build-shared) isn't yes.
2212         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2213         isn't yes.
2214         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2215
2216         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2217
2218         [BZ #14562]
2219         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2220         new chunk size with MALLOC_ALIGN_MASK.
2221
2222 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2223
2224         [BZ #5044]
2225         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2226         <rounding-mode.h>.
2227         (__printf_fphex): Determine rounding using get_rounding_mode and
2228         round_away.
2229         * stdio-common/tst-printf-round.c (struct hex_test): New
2230         structure.
2231         (hex_tests): New variable.
2232         (test_hex_in_one_mode): New function.
2233         (do_test): Also run tests for hex float output.
2234
2235 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2236
2237         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2238         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2239         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2240         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2241         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2242         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2243         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2244         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2245
2246 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2247
2248         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2249         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2250         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2251         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2252
2253 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2254
2255         [BZ #14579]
2256         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2257         mode only.
2258         * elf/tst-rtld-load-self.sh: New test.
2259         * elf/Makefile: Run it.
2260
2261 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2262
2263         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2264         (tst-writev-ENV): Remove.
2265         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2266
2267 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2268
2269         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2270
2271 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2272
2273         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2274         unconditional.
2275         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2276         Likewise.
2277         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2278         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2279         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2280         Likewise.
2281
2282 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2283
2284         [BZ #14587]
2285         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2286         * config.make.in (have-cpp-asm-debuginfo): Removed.
2287         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2288         * configure: Regenerated.
2289
2290 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2291
2292         [BZ #5044]
2293         * stdio-common/printf_fp.c: Include <stdbool.h> and
2294         <rounding-mode.h>.
2295         (___printf_fp): Determine rounding using get_rounding_mode and
2296         round_away.
2297         * stdio-common/tst-printf-round.c: New file.
2298         * stdio-common/Makefile (tests): Add tst-printf-round.
2299         (link-libm): New variable.
2300         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2301
2302 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2303
2304         [BZ #14576]
2305         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2306         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2307         Likewise.
2308         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2309         Likewise.
2310
2311 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2312
2313         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2314         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2315         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2316         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2317
2318 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2319
2320         [BZ #14518]
2321         * include/rounding-mode.h: New file.
2322         * sysdeps/generic/get-rounding-mode.h: Likewise.
2323         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2324         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2325         (MAX_VALUE): New macro.
2326         (MIN_VALUE): Likewise.
2327         (overflow_value): New function.
2328         (underflow_value): Likewise.
2329         (round_and_return): Use overflow_value and underflow_value to
2330         determine return values in overflow and underflow cases.  Use
2331         round_away to determine rounding depending on rounding mode.
2332         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2333         determine return values in overflow and underflow cases.
2334         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2335         (struct test_results): New structure.
2336         (struct test): Use struct test_results to store expected results
2337         for all rounding modes.
2338         (TEST): Include expected results for all rounding modes.
2339         (test_in_one_mode): New function.
2340         (do_test): Use test_in_one_mode to compute and check results.
2341         Check results for all rounding modes.
2342         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2343         $(link-libm).
2344
2345 2012-12-09  Allan McRae  <allan@archlinux.org>
2346
2347         * sysdeps/i386/fpu/libm-test-ulps: Update
2348
2349 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2350
2351         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
2352         (_G_int32_t): Likewise.
2353         (_G_uint16_t): Likewise.
2354         (_G_uint32_t): Likewise.
2355         (_G_HAVE_BOOL): Likewise.
2356         (_G_HAVE_ATEXIT): Likewise.
2357         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2358         (_G_HAVE_IO_FILE_OPEN): Likewise.
2359         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
2360         (_G_int32_t): Likewise.
2361         (_G_uint16_t): Likewise.
2362         (_G_uint32_t): Likewise.
2363         (_G_HAVE_BOOL): Likewise.
2364         (_G_HAVE_ATEXIT): Likewise.
2365         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2366         (_G_HAVE_IO_FILE_OPEN): Likewise.
2367         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
2368         (_G_int32_t): Likewise.
2369         (_G_uint16_t): Likewise.
2370         (_G_uint32_t): Likewise.
2371         (_G_HAVE_BOOL): Likewise.
2372         (_G_HAVE_ATEXIT): Likewise.
2373         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
2374         (_G_HAVE_IO_FILE_OPEN): Likewise.
2375
2376 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
2377
2378         * csu/libc-tls.c: Update copyright years.
2379
2380 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
2381
2382         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
2383         [!_G_USING_THUNKS]: Remove conditional code.
2384         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
2385         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
2386
2387         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
2388         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
2389         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2390         (_G_VTABLE_LABEL_PREFIX): Likewise.
2391         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2392         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2393         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2394         (_G_VTABLE_LABEL_PREFIX): Likewise.
2395         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2396         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
2397         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
2398         (_G_VTABLE_LABEL_PREFIX): Likewise.
2399         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
2400
2401 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2402
2403         * libio/Makefile: Include ../Makeconfig before tests.
2404         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
2405         only if $(build-shared) is yes.
2406
2407         * iconv/gconv_db.c: Update copyright years.
2408
2409 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2410
2411         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
2412         unwind info if defined PIC. Fix special cases description.
2413         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
2414
2415         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
2416         DP_HI_MASK entry.
2417         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
2418
2419 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2420
2421         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
2422
2423         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
2424         is NULL.
2425
2426         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
2427         (LDLIBS-tst-chk4): This.
2428         (LDFLAGS-tst-chk5): Renamed to ...
2429         (LDLIBS-tst-chk5): This.
2430         (LDFLAGS-tst-chk6): Renamed to ...
2431         (LDLIBS-tst-chk6): This.
2432         (LDFLAGS-tst-lfschk4): Renamed to ...
2433         (LDLIBS-tst-lfschk4): This.
2434         (LDFLAGS-tst-lfschk5): Renamed to ...
2435         (LDLIBS-tst-lfschk5): This.
2436         (LDFLAGS-tst-lfschk6): Renamed to ...
2437         (LDLIBS-tst-lfschk6): This.
2438
2439         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
2440         on $(common-objpfx)soversions.mk.
2441
2442 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
2443
2444         [BZ #10014]
2445         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
2446         example host name.
2447
2448 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2449
2450         * malloc/arena.c (arena_get_retry): New function that gets
2451         another arena for the caller to try its request on.
2452         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
2453         current arena cannot fulfill the request.
2454         (__libc_memalign): Likewise.
2455         (__libc_memalign): Likewise.
2456         (__libc_pvalloc): Likewise.
2457         (__libc_calloc): Likewise.
2458
2459 2012-09-05  John Tobey  <john.tobey@gmail.com>
2460
2461         [BZ #13542]
2462         * manual/arith.texi (Operations on Complex): Fix description
2463         of carg branch cut.
2464
2465 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2466
2467         [BZ #10014]
2468         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
2469         host name.
2470
2471         [BZ #10038]
2472         * manual/memory.texi (Memory): Make order of menu items match
2473         order of sections.
2474
2475 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2476
2477         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
2478         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
2479         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
2480
2481 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2482
2483         * csu/libc-tls.c (static_dtv): Renamed to ...
2484         (_dl_static_dtv): This.  Make it global.
2485         (_dl_initial_dtv): Removed.
2486         (__libc_setup_tls): Updated.
2487         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
2488         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
2489         DL_INITIAL_DTV.
2490
2491 2012-09-06  Petr Machata  <pmachata@redhat.com>
2492
2493         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
2494         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
2495         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
2496         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
2497
2498 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2499
2500         [BZ #14545]
2501         * csu/libc-tls.c (_dl_initial_dtv): New variable.
2502         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
2503         freeing dtv[-1].
2504
2505 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2506
2507         [BZ #14544]
2508         * Makeconfig (link-static-before-libc): Replace $(+prector)
2509         with $(+prectorT).
2510         (link-static-after-libc): Replace $(+postctor) with
2511         $(+postctorT).
2512         (link-bounded): Replace $(+prector)/$(+postctor) with
2513         $(+prectorT)/$(+postctorT).
2514         (+prectorT): New macro.
2515         (+postctorT): Likewise.
2516
2517 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
2518
2519         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
2520         (round_str): Handle values above the maximum for IBM long double
2521         as inexact.
2522         * stdlib/tst-strtod-round.c (tests): Regenerated.
2523
2524 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2525
2526         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
2527         assembler flag.
2528         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2529         zarch_nohighgprs around the zarch optimized routines.
2530         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2531         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2532         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2533         for zarch.
2534
2535 2012-09-05  David S. Miller  <davem@davemloft.net>
2536
2537         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2538
2539         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2540         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2541         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2542         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2543         entries.
2544
2545 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2546
2547         * malloc/arena.c: Fold copyright years.
2548         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2549
2550 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2551
2552         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2553
2554 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2555
2556         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2557
2558 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2559
2560         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2561         change internal state upon failure.
2562
2563 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2564
2565         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2566         * malloc/memusage.c (mmap): Likewise.
2567         (mmap64, mremap): Likewise.  Adjust name in comment.
2568
2569 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2570
2571         * libio/fileops.c: Fix typos in comments.
2572         * libio/oldfileops.c: Likewise.
2573         * libio/wfileops.c: Likewise.
2574
2575 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2576
2577         [BZ #1349]
2578         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2579         (tst-malloc-usable-ENV): Set environment for test case.
2580         * malloc/hooks.c (malloc_check_get_size): New function to get
2581         requested size.
2582         * malloc/malloc.c (musable): Use malloc_check_get_size.
2583         * malloc/tst-malloc-usable.c: New test case.
2584
2585 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2586
2587         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2588
2589 2012-09-05  Allan McRae  <allan@archlinux.org>
2590
2591         [BZ #13966]
2592         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2593         determine header location.
2594         * configure: Regenerated.
2595
2596 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2597
2598         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2599         float format.
2600         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2601         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2602         format.
2603         (test): Regenerate.
2604
2605 2012-09-04  David S. Miller  <davem@davemloft.net>
2606
2607         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2608         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2609         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2610
2611 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2612
2613         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2614         failures.
2615
2616         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2617
2618 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2619
2620         [BZ #9914]
2621         * libio/iogetdelim.c: Include <limits.h>.
2622         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2623         + len + 1 would overflow.
2624
2625 2012-09-03  Andreas Jaeger  <aj@suse.de>
2626
2627         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2628         * sysdeps/i386/fpu/libm-test-ulps: Update.
2629
2630 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2631
2632         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2633         Add s_sinf-sse2, s_conf-sse2.
2634
2635         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2636         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2637         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2638         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2639
2640         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2641         for using routine as __sinf_ia32.
2642         Use macro for function declaration and weak_alias.
2643         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2644         for using routine as __cosf_ia32.
2645         Use macro for function declaration and weak_alias.
2646
2647         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2648         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2649
2650         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2651         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2652         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2653
2654         * math/libm-test.inc (cos_test): Add more test cases.
2655         (sin_test): Likewise.
2656         (sincos_test): Likewise.
2657
2658 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2659
2660         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2661         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2662         hidden.
2663         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2664
2665 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2666
2667         [BZ #14538]
2668         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2669         first element of the GOT.
2670         (elf_machine_load_address): Return the difference between
2671         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2672
2673 2012-09-01  Allan McRae  <allan@archlinux.org>
2674
2675         [BZ #13412]
2676         * configure.in (AWK): Require gawk version 3.0 or later.
2677         * configure: Regenerated.
2678
2679 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2680
2681         * sysdeps/unix/sysv/linux/kernel-features.h
2682         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2683         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2684         [__NR_clock_getres]: Make code unconditional.
2685         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2686         (clock_getcpuclockid): Remove code left unreachable by removal of
2687         conditionals.
2688         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2689         code unconditional.
2690         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2691         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2692         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2693         Make code unconditional.
2694         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2695         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2696         * sysdeps/unix/sysv/linux/clock_settime.c
2697         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2698         conditional code.
2699         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2700         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2701
2702 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2703
2704         [BZ #14476]
2705         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2706         scripts/test-installation.pl.
2707
2708         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2709         and $ld_so_version if it is set.
2710
2711 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2712
2713         [BZ #14516]
2714         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2715         failure if reading from procfs failed.
2716         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2717
2718 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2719
2720         * sysdeps/unix/sysv/linux/kernel-features.h
2721         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2722         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2723         Remove conditional code.
2724         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2725         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2726         Remove conditional code.
2727         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2728         * sysdeps/unix/sysv/linux/i386/fxstat.c
2729         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2730         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2731         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2732         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2733         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2734         * sysdeps/unix/sysv/linux/i386/lxstat.c
2735         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2736         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2737         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2738         Remove conditional code.
2739         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2740         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2741         Remove conditional code.
2742         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2743         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2744         <kernel-features.h>.
2745         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2746         Remove.
2747         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2748         Remove conditional code.
2749         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2750         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2751         Remove conditional.
2752
2753 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2754
2755         [BZ #5400]
2756         * NEWS: Add fixed bug number.
2757
2758 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2759
2760         [BZ #14519]
2761         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2762         underflowing exponent in case of negative sign.
2763         * stdlib/tst-strtod-round-data: Add more tests.
2764         * stdlib/tst-strtod-round.c (tests): Regenerated.
2765
2766         [BZ #3479]
2767         * stdlib/strtod_l.c (NDIG): Remove.
2768         (HEXNDIG): Likewise.
2769         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2770         smallest representable value.
2771         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2772         lie within an exact representation of 1/2 ulp of the result.
2773         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2774         unconditionally.
2775         (TENS_P9_IDX): Define unconditionally.
2776         (TENS_P9_SIZE): Likewise.
2777         (TENS_P10_IDX): Likewise.
2778         (TENS_P10_SIZE): Likewise.
2779         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2780         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2781         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2782         entries for 10^2^13 and 10^2^14.
2783         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2784         (TENS_P13_IDX): Define.
2785         (TENS_P13_SIZE): Likewise.
2786         (TENS_P14_IDX): Likewise.
2787         (TENS_P14_SIZE): Likewise.
2788         (_fpioconst_pow10): Change array size to
2789         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2790         unconditional.
2791         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2792         1024]: Add entries for 10^2^13 and 10^2^14.
2793         [LAST_POW10 > _LAST_POW10]: Remove #error.
2794         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2795         (_fpioconst_pow10): Change array size to
2796         FPIOCONST_POW10_ARRAY_SIZE.
2797         * stdlib/gen-fpioconst.c: New file.
2798         * stdlib/gen-tst-strtod-round.c: Likewise.
2799         * stdlib/tst-strtod-round-data: Likewise.
2800         * stdlib/tst-strtod-round.c: Likewise.
2801         * stdlib/Makefile (tests): Add tst-strtod-round.
2802
2803         [BZ #14459]
2804         * stdlib/strtod_l.c: Include <stdint.h>.
2805         (NDEBUG): Do not define.
2806         (round_and_return): Change EXPONENT parameter to type intmax_t.
2807         Rearrange calculations to avoid internal overflow possibilities.
2808         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2809         Rearrange calculations to avoid internal overflow possibilities.
2810         Assert that number fits inside MPNSIZE limbs.
2811         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2812         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2813         calculations and add assertions to avoid internal overflow
2814         possibilities.  Add casts to avoid signed/unsigned operations.
2815         * stdlib/tst-strtod-overflow.c: New file.
2816         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2817
2818 2012-08-25  Marek Polacek  <polacek@redhat.com>
2819
2820         * time/time.h: Fix some typos in comments.
2821
2822 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2823
2824         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2825         * posix/tst-rfc3484-2.c: Likewise.
2826         * posix/tst-rfc3484-3.c: Likewise.
2827
2828 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2829
2830         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2831         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2832
2833 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2834
2835         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2836         #include of fxstatat64.c.
2837
2838 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2839
2840         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2841         * shadow/getspent_r.c: Likewise.
2842         * shadow/getspnam.c: Likewise.
2843         * shadow/getspnam_r.c: Likewise.
2844         * gshadow/getsgent.c: Likewise.
2845         * gshadow/getsgent_r.c: Likewise.
2846         * gshadow/getsgnam.c: Likewise.
2847         * gshadow/getsgnam_r.c: Likewise.
2848         * inet/getnetbyad.c: Likewise.
2849         * inet/getnetbyad_r.c: Likewise.
2850         * inet/getnetbynm.c: Likewise.
2851         * inet/getnetbynm_r.c: Likewise.
2852         * inet/getnetent.c: Likewise.
2853         * inet/getnetent_r.c: Likewise.
2854         * inet/getproto.c: Likewise.
2855         * inet/getproto_r.c: Likewise.
2856         * inet/getprtent.c: Likewise.
2857         * inet/getprtent_r.c: Likewise.
2858         * inet/getprtname.c: Likewise.
2859         * inet/getprtname_r.c: Likewise.
2860         * inet/getrpcbyname.c: Likewise.
2861         * inet/getrpcbyname_r.c: Likewise.
2862         * inet/getrpcbynumber.c: Likewise.
2863         * inet/getrpcbynumber_r.c: Likewise.
2864         * inet/getrpcent.c: Likewise.
2865         * inet/getrpcent_r.c: Likewise.
2866         * inet/getaliasent.c: Likewise.
2867         * inet/getaliasent_r.c: Likewise.
2868         * inet/getaliasname.c: Likewise.
2869         * inet/getaliasname_r.c: Likewise.
2870         * nscd/getgrgid_r.c: Likewise.
2871         * nscd/getgrnam_r.c: Likewise.
2872         * nscd/gethstbyad_r.c: Likewise.
2873         * nscd/gethstbynm3_r.c: Likewise.
2874         * nscd/getpwnam_r.c: Likewise.
2875         * nscd/getpwuid_r.c: Likewise.
2876         * nscd/getsrvbynm_r.c: Likewise.
2877         * nscd/getsrvbypt_r.c: Likewise.
2878         * nscd/gai.c: Likewise.
2879
2880         * configure.in (build_nscd): New substituted variable, set
2881         by --disable-build-nscd and defaults to $use_nscd.
2882         * configure: Regenerated.
2883         * config.make.in (build-nscd): New substituted variable.
2884         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2885         Change conditional to require [$(build-nscd) = yes] as well.
2886         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2887
2888         [BZ# 13696]
2889         * configure.in (use_nscd): New substituted variable, set by
2890         --disable-nscd.  If enabled, define USE_NSCD.
2891         * configure: Regenerated.
2892         * config.h.in: Add USE_NSCD.
2893         * config.make.in (use-nscd): New substituted variable.
2894         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2895         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2896         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2897         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2898         (CFLAGS-getgrnam_r.c): Likewise.
2899         (CFLAGS-initgroups.c): Likewise.
2900         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2901         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2902         Variables removed.
2903         * inet/getnetgrent_r.c
2904         (nscd_setnetgrent): New function, broken out of ...
2905         (setnetgrent): ... here.  Call it.
2906         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2907         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2908         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2909         * nscd/Makefile (routines, aux): Move definitions after include of
2910         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2911         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2912         Conditionalize on [USE_NSCD].
2913         (is_nscd, nscd_init_cb): Likewise.
2914         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2915         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2916         * nss/nss_db/db-init.c: Likewise.
2917         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2918         [USE_NSCD].
2919         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2920         (make_request): Use it.
2921         (cache_valid_p): New function.
2922         (__check_pf): Use it.
2923         * NEWS: Add item for --disable-nscd.
2924
2925 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2926
2927         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2928         to support sed >= 4.2.1-20-ga9bf076.
2929         * configure: Regenerated.
2930
2931 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2932
2933         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2934         Conditionalize whole body on [IREL].
2935
2936 2012-08-22  Jeff Law <law@redhat.com>
2937
2938         [BZ #14505]
2939         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2940         if the family is PF_UNSPEC.
2941
2942 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2943
2944         * Makerules (lib-version): Rename from V.
2945         (install-lib-nosubdir): Change V to lib-version.
2946
2947 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2948
2949         [BZ #14252]
2950         * powerpc32/power6/wcschr.c: New file.
2951         * powerpc32/power6/wcscpy.c: New file.
2952         * powerpc32/power6/wcsrchr.c: New file.
2953         * powerpc64/power6/wcschr.c: New file.
2954         * powerpc64/power6/wcscpy.c: New file.
2955         * powerpc64/power6/wcsrchr.c: New file.
2956
2957 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2958
2959         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2960         (two_way_short_needle): Use it.
2961         * string/strstr.c (AVAILABLE1_USES_J): Define.
2962         * string/strcasestr.c: Likewise.
2963
2964         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2965         array references.
2966         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2967
2968         [BZ #11607]
2969         * NEWS: Add an entry.
2970         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2971         define their defaults.
2972         (two_way_short_needle): Detect end-of-string on-the-fly.
2973         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2974         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2975         * string/bug-strcasestr1.c: New test.
2976         * string/Makefile: Run it.
2977
2978 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2979
2980         [BZ #11607]
2981         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2982         the first character.
2983
2984 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2985
2986         * csu/elf-init.c (__libc_csu_irel): Function removed.
2987         * csu/libc-start.c (apply_irel): New function.
2988         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2989
2990 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2991
2992         * sysdeps/unix/sysv/linux/kernel-features.h
2993         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2994         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2995         <kernel-features.h>.
2996         [__NR_fadvise64_64]: Make code unconditional.
2997         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2998         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2999         !__NR_fadvise64_64)]: Likewise.
3000         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3001         !__NR_fadvise64_64))]: Likewise.
3002         [__NR_fadvise64]: Make code unconditional.
3003         [!__NR_fadvise64]: Remove conditional code.
3004         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3005         <kernel-features.h>.
3006         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3007         unconditional.
3008         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3009         conditional code.
3010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3011         not include <kernel-features.h>.
3012         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3013         unconditional.
3014         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3015         conditional code.
3016         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3017         include <kernel-features.h>.
3018         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3019         unconditional.
3020         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3021         conditional code.
3022
3023 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3024
3025         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3026         slight instruction rearrangements per scrollpipe analysis.
3027         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3028
3029 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3030
3031         * manual/syslog.texi (syslog; vsyslog, closelog):
3032         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3033         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3034
3035         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3036         DSOCAPS to match condition on defining it.
3037
3038 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3039
3040         * sysdeps/unix/sysv/linux/kernel-features.h
3041         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3043         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3044         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3046         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3047         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3049         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3050         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3051
3052         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3053         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3054
3055         * sysdeps/unix/sysv/linux/kernel-features.h
3056         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3057         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3058         unconditional.
3059         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3060         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3061         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3062         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3063         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3064         Make code unconditional.
3065         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3066         (__mmap64) [!__NR_mmap2]: Likewise.
3067         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3068         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3069         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3070         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3071         [__NR_mmap2]: Make code unconditional.
3072         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3073         (__mmap64) [!__NR_mmap2]: Likewise.
3074
3075 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3076
3077         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3078
3079 2012-08-18  Andreas Jaeger  <aj@suse.de>
3080
3081         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3082
3083 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3084
3085         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3086         * include/unistd.h (__have_sock_cloexec): Likewise.
3087         (__have_pipe2): Likewise.
3088         (__have_dup3): Likewise.
3089
3090 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3091
3092         [BZ #9685]
3093         * include/unistd.h (__have_pipe2): Change define into an extern int.
3094         (__have_dup3): Likewise.
3095         * socket/have_sock_cloexec.c: Include fcntl.h.
3096         (__have_pipe2): New variable.
3097         (__have_dup3): Likewise.
3098
3099 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3100
3101         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3102
3103 2012-08-17  Marek Polacek  <polacek@redhat.com>
3104
3105         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3106         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3107
3108 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3109
3110         * configure.in: Add AC_SUBST for sysheaders.
3111         * configure: Regenerated.
3112         * config.make.in (sysheaders): New substituted variable.
3113
3114         * sysdeps/unix/mkfifo.c: Moved ...
3115         * sysdeps/posix/mkfifo.c: ... here.
3116         * sysdeps/unix/mkfifoat.c: Moved ...
3117         * sysdeps/posix/mkfifoat.c: ... here.
3118
3119         * sysdeps/unix/utime.c: Moved ...
3120         * sysdeps/posix/utime.c: ... here.
3121
3122         * sysdeps/unix/time.c: Moved ...
3123         * sysdeps/posix/time.c: ... here.
3124         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3125         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3126
3127         * sysdeps/unix/nice.c: Moved ...
3128         * sysdeps/posix/nice.c: ... here.
3129
3130         * sysdeps/unix/alarm.c: Moved ...
3131         * sysdeps/posix/alarm.c: ... here.
3132
3133         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3134
3135 2012-08-17  Jeff Law <law@redhat.com>
3136
3137         * intl/Makefile (codeset_mo): New variable.
3138         ($(codeset_mo)): New target.
3139         (tst-codeset.out): Depend on that.  Remove explicit rule.
3140         (tst-gettext3.out, tst-gettext5.out): Likewise.
3141         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3142         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3143         * intl/tst-codeset.sh: Remove.
3144         * intl/tst-gettext3.sh: Likewise.
3145         * intl/tst-gettext5.sh: Likewise.
3146
3147 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3148
3149         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3150         * sysdeps/unix/syscalls.list: ... here.
3151
3152         * sysdeps/posix/getaddrinfo.c
3153         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3154         (gaiconf_init, gaiconf_reload): Use them.
3155         [!_STATBUF_ST_NSEC]
3156         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3157         Define using time_t rather than struct timespec.
3158
3159         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3160         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3161         Macros removed.
3162         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3163         [!NO_THREADS].
3164         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3165         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3166         Likewise.
3167
3168         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3169         __libc_cleanup_push argument.
3170
3171         * bits/param.h: New file.
3172         * misc/sys/param.h: New file.
3173         * include/sys/param.h: New file.
3174         * misc/Makefile (headers): Add bits/param.h.
3175         * sysdeps/generic/sys/param.h: File removed.
3176         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3177         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3178         * sysdeps/mach/hurd/bits/param.h: New file.
3179         * sysdeps/mach/hurd/sys/param.h: File removed.
3180
3181         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3182         last change.
3183
3184         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3185         [_IO_MTSAFE_IO].
3186         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3187         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3188         New macros.
3189
3190         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3191         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3192         rather than -D_IO_MTSAFE_IO conditionally.
3193         * stdio-common/Makefile (CPPFLAGS): Likewise.
3194         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3195         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3196         Use $(libio-mtsafe).
3197         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3198         of -D_IO_MTSAFE_IO.
3199         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3200         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3201         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3202         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3203         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3204         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3205         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3206         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3207         (CFLAGS-fread_u_chk.c): Likewise.
3208         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3209         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3210         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3211         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3212         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3213         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3214         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3215         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3216         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3217
3218         * libio/Makefile: Test [$(libc-reentrant) = yes]
3219         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3220
3221         * Makeconfig
3222         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3223         * sysdeps/pthread/configure: File removed.
3224         * sysdeps/pthread/Makeconfig: New file.
3225         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3226         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3227
3228 2012-08-16  Gary Benson  <gbenson@redhat.com>
3229
3230         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3231         unmapping the first object in a namespace.
3232
3233 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3234
3235         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3236         (__internal_setnetgrent): ... this.  Add internal_function to
3237         definition.  Add libc_hidden_def.
3238         (setnetgrent): Update caller.
3239         (internal_endnetgrent): Renamed to ...
3240         (__internal_endnetgrent): ... this.  Add internal_function to
3241         definition.  Add libc_hidden_def.
3242         (endnetgrent): Update caller.
3243         (internal_getnetgrent_r): Renamed to ...
3244         (__internal_getnetgrent_r): ... this.  Add internal_function to
3245         definition.  Add libc_hidden_def.
3246         (__getnetgrent_r): Update caller.
3247         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3248
3249 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3250
3251         * stdlib/longlong.h: Update from GCC.
3252
3253 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3254
3255         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3256         on _QL, which is set by umul_ppmm but never used.
3257         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3258         variables, which are set by GMP macros but never used.
3259         * stdio-common/_itowa.c (_itowa): Likewise.
3260         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3261         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3262
3263 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3264
3265         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3266         struct La_sh_regs is not constant.
3267         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3268         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3269         and struct La_sparc64_regs are not constant.
3270
3271 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3272
3273         * sysdeps/unix/sysv/linux/kernel-features.h
3274         (__ASSUME_POSIX_TIMERS): Remove.
3275         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3276         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3277         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3278         Make code unconditional.
3279         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3280         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3281         Make code unconditional.
3282         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3283         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3284         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3285         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3286         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3287         Make code unconditional.
3288         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3289         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3290         (__libc_missing_posix_timers): Remove.
3291
3292 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3293
3294         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3295         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3296
3297         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3298
3299         * elf/dl-sym.c: Include <stdlib.h>.
3300
3301         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3302         constants, which avoids warnings in 32-bit builds.
3303
3304         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3305         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3306
3307         * misc/lseek.c: File moved to ...
3308         * io/lseek.c: ... here.
3309
3310         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3311
3312         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3313         shifting LEN more than 31 bits at once.
3314
3315 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3316
3317         [BZ #14195]
3318         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3319         segmentation fault for a case of two empty input strings.
3320         * string/test-strncasecmp.c (check1): Renamed to...
3321         (bz12205): ...this.
3322         (bz14195): Add new testcase for two empty input strings and N > 0.
3323         (test_main): Call new testcase, adapt for renamed function.
3324
3325 2012-08-15  Andreas Jaeger  <aj@suse.de>
3326
3327         [BZ #14090]
3328         * crypt/md5test2.c: New test, based on test supplied by Serge
3329         Belyshev <belyshev@depni.sinp.msu.ru>.
3330         * crypt/Makefile (xtests): Add md5test-giant..
3331         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3332
3333 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3334
3335         [BZ #14090]
3336         * crypt/md5.c (md5_process_block): Don't assume the buffer
3337         length is less than 2**32.
3338         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3339         length is less than 2**64.
3340
3341 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3342
3343         * string/str-two-way.h: Include <sys/param.h>.
3344         (MAX): Macro removed.
3345
3346         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3347         Move #define and #undef of memmove to just before and after
3348         including <string.h>.
3349
3350         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
3351         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
3352         and after including <string.h>.  Move declarations of
3353         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
3354         to before #include "string/memmove.c".
3355
3356         * include/dirent.h: Declare __getdirentries.
3357
3358         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
3359         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
3360
3361 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3362
3363         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
3364         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
3365         * sysdeps/i386/configure: Regenerated.
3366         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
3367         STABS_CURRENT_FILE, and STABS_FUN.
3368         (END): Remove call to STABS_FUN_END.
3369         (STABS_CURRENT_FILE1): Delete.
3370         (STABS_CURRENT_FILE): Likewise.
3371         (STABS_FUN): Likewise.
3372         (STABS_FUN_END): Likewise.
3373         (STABS_FUN2): Likewise.
3374         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
3375         * sysdeps/x86_64/configure: Regenerated.
3376
3377 2012-08-14  Roland McGrath  <roland@hack.frob.com>
3378
3379         * elf/dl-open.c: Include <atomic.h>.
3380         * elf/dl-lookup.c: Likewise.
3381
3382 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
3383
3384         * sysdeps/unix/sysv/linux/kernel-features.h
3385         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
3386         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
3387         unconditionally.
3388         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
3389         unconditionally.
3390         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
3391         condition on __ASSUME_CLONE_THREAD_FLAGS.
3392
3393 2012-08-14  Andreas Jaeger  <aj@suse.de>
3394
3395         * sysdeps/i386/fpu/libm-test-ulps: Update.
3396
3397 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
3398
3399         * include/atomic.h (atomic_exchange_and_add): Split into ...
3400         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
3401         New atomic macros.
3402
3403 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
3404
3405         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3406
3407 2012-08-13  Jeff Law <law@redhat.com>
3408
3409         * manual/stdio.texi (snprintf): Clarify handling of the trailing
3410         null byte in the output string.
3411
3412 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
3413
3414         * sysdeps/unix/sysv/linux/kernel-features.h
3415         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
3416         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
3417         (__ASSUME_ARG_MAX_STACK_BASED): Define.
3418         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3419         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
3420         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
3421         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
3422
3423 2012-08-09  Jeff Law <law@redhat.com>
3424
3425         [BZ #13939]
3426         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
3427         When avoid_arena is set, don't retry in the that arena.  Pick the
3428         next one, whatever it might be.
3429         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
3430         (arena_lock): Pass in new parameter to arena_get2.
3431         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
3432         arena_get2.
3433         (__libc_malloc): Unify retrying after main arena failure with
3434         __libc_memalign version.
3435         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
3436
3437 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3438
3439         [BZ #14166]
3440         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
3441         to __redirect_strstr.
3442         (__strstr_sse42): Use typeof __redirect_strstr.
3443         (__strstr_ia32): Likewise.
3444         (__libc_strstr): New prototype.
3445         (strstr): Renamed to ...
3446         (__libc_strstr): This.
3447         (strstr): New strong alias of __libc_strstr.
3448         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
3449         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
3450         __redirect_time.
3451         Include <time.h>.
3452         (__libc_time): New prototype.
3453         (time_ifunc): Replace time with __libc_time.
3454         (time): New strong alias and hidden definition of __libc_time.
3455         (__GI_time): Remove strong alias.
3456         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
3457         Include <stddef.h>.
3458         (memmove): Redefined to __redirect_memmove.
3459         (__memmove_sse2): Use typeof __redirect_memmove.
3460         (__memmove_ssse3): Likewise.
3461         (__memmove_ssse3_back): Likewise.
3462         (__libc_memmove): New prototype.
3463         (memmove): Renamed to ...
3464         (__libc_memmove): This.
3465         (memmove): New strong alias of __libc_memmove.
3466
3467 2012-08-08  Mark Salter  <msalter@redhat.com>
3468
3469         * elf/elf.h
3470         (R_MN10300_TLS_GD): Define.
3471         (R_MN10300_TLS_LD): Likewise.
3472         (R_MN10300_TLS_LDO): Likewise.
3473         (R_MN10300_TLS_GOTIE): Likewise.
3474         (R_MN10300_TLS_IE): Likewise.
3475         (R_MN10300_TLS_LE): Likewise.
3476         (R_MN10300_TLS_DTPMOD): Likewise.
3477         (R_MN10300_TLS_DTPOFF): Likewise.
3478         (R_MN10300_TLS_TPOFF): Likewise.
3479         (R_MN10300_SYM_DIFF): Likewise.
3480         (R_MN10300_ALIGN): Likewise.
3481         (R_MN10300_NUM): Update.
3482
3483 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
3484
3485         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
3486         Remove.
3487
3488 2012-08-08  Roland McGrath  <roland@hack.frob.com>
3489
3490         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
3491
3492         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
3493         sysdeps/unix -> sysdeps/posix move.
3494         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3495
3496 2012-08-07      Allan McRae     <allan@archlinux.org>
3497
3498         [BZ #14303]
3499         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
3500         (SUNOS_CPP): Likewise.
3501         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
3502         not found.
3503         (open_input): Call CPP using execvp.
3504
3505 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3506
3507         * sysdeps/unix/sysv/linux/kernel-features.h
3508         (__ASSUME_PROT_GROWSUPDOWN): Remove.
3509         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3510         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3511         (__ASSUME_WAITID_SYSCALL): Likewise.
3512         * sysdeps/unix/sysv/linux/dl-execstack.c
3513         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
3514         code unconditional.
3515         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
3516         conditional code.
3517         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
3518         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
3519         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
3520         code.
3521         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
3522         unconditional.
3523         [__ASSUME_WAITID_SYSCALL]: Likewise.
3524         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
3525
3526 2012-08-07  Roland McGrath  <roland@hack.frob.com>
3527
3528         * sysdeps/unix/closedir.c: Renamed to ...
3529         * sysdeps/posix/closedir.c: ... here.
3530         * sysdeps/unix/dirfd.c: Renamed to ...
3531         * sysdeps/posix/dirfd.c: ... here.
3532         * sysdeps/unix/dirstream.h: Renamed to ...
3533         * sysdeps/posix/dirstream.h: ... here.
3534         * sysdeps/unix/fdopendir.c: Renamed to ...
3535         * sysdeps/posix/fdopendir.c: ... here.
3536         * sysdeps/unix/opendir.c: Renamed to ...
3537         * sysdeps/posix/opendir.c: ... here.
3538         * sysdeps/unix/readdir.c: Renamed to ...
3539         * sysdeps/posix/readdir.c: ... here.
3540         * sysdeps/unix/readdir_r.c: Renamed to ...
3541         * sysdeps/posix/readdir_r.c: ... here.
3542         * sysdeps/unix/rewinddir.c: Renamed to ...
3543         * sysdeps/posix/rewinddir.c: ... here.
3544         * sysdeps/unix/seekdir.c: Renamed to ...
3545         * sysdeps/posix/seekdir.c: ... here.
3546         * sysdeps/unix/telldir.c: Renamed to ...
3547         * sysdeps/posix/telldir.c: ... here.
3548         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3549         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3550         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3551         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3552
3553         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3554         * bits/fcntl.h: ... here.
3555
3556         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3557         not 0.
3558         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3559         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3560         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3561         (struct flock): Move l_start, l_len to the beginning.
3562         Use __pid_t for l_pid.
3563         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3564         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3565         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3566         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3567         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3568         [__USE_LARGEFILE64] (struct flock64): New type.
3569         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3570
3571         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3572         * bits/dirent.h: ... here.
3573
3574         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3575         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3576
3577 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3578
3579         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3580         Change from 2.6.0 to 2.6.16.
3581         * sysdeps/unix/sysv/linux/configure: Regenerated.
3582         * sysdeps/unix/sysv/linux/kernel-features.h
3583         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3584         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3585         version.
3586         (__ASSUME_UTIMES): Likewise.
3587         (__ASSUME_CLONE_STOPPED): Remove.
3588         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3589         architectures, not kernel version.
3590         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3591         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3592         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3593         (__ASSUME_WAITID_SYSCALL): Likewise.
3594         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3595         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3596         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3597         refer to older versions.
3598
3599 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3600
3601         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3602         Define alphasort64 as an alias.
3603         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3604         Define versionsort64 as an alias.
3605         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3606         Define scandir64 as an alias.
3607         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3608         Define scandirat64 as an alias.
3609         * dirent/alphasort64.c (alphasort64):
3610         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3611         * dirent/versionsort64.c: Likewise.
3612         * dirent/scandir64.c: Likewise.
3613         * dirent/scandirat64.c: Likewise.
3614         * sysdeps/wordsize-64/alphasort.c: File removed.
3615         * sysdeps/wordsize-64/alphasort64.c: File removed.
3616         * sysdeps/wordsize-64/scandir.c: File removed.
3617         * sysdeps/wordsize-64/scandir64.c: File removed.
3618         * sysdeps/wordsize-64/scandirat.c: File removed.
3619         * sysdeps/wordsize-64/scandirat64.c: File removed.
3620         * sysdeps/wordsize-64/versionsort.c: File removed.
3621         * sysdeps/wordsize-64/versionsort64.c: File removed.
3622         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3623         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3624         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3625         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3626         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3627         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3628         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3629         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3630
3631         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3632         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3633         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3634         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3635         [defined __arch64__ || defined __sparcv9]
3636         (__INO_T_MATCHES_INO64_T): New macro.
3637         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3638         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3639         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3640         * sysdeps/unix/sysv/linux/bits/dirent.h
3641         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3642         (_DIRENT_MATCHES_DIRENT64): New macro.
3643
3644         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3645         Define lockf64 as an alias.
3646         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3647         Define fseeko64 as an alias.
3648         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3649         Define ftello64 as an alias.
3650         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3651         Define _IO_fgetpos64 and fgetpos64 as aliases.
3652         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3653         Define _IO_fsetpos64 and fsetpos64 as aliases.
3654         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3655         Conditionalize body on this.
3656         * libio/fseeko64.c: Likewise.
3657         * libio/ftello64.c: Likewise.
3658         * libio/iofgetpos64.c: Likewise.
3659         * libio/iofsetpos64.c: Likewise.
3660         * sysdeps/wordsize-64/lockf.c: File removed.
3661         * sysdeps/wordsize-64/lockf64.c: File removed.
3662         * sysdeps/wordsize-64/fseeko.c: File removed.
3663         * sysdeps/wordsize-64/fseeko64.c: File removed.
3664         * sysdeps/wordsize-64/ftello.c: File removed.
3665         * sysdeps/wordsize-64/ftello64.c: File removed.
3666         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3667         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3668         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3669         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3670         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3671         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3672         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3673         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3674         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3675         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3676         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3677         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3678         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3679         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3680
3681         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3682         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3683         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3684         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3685         [defined __arch64__ || defined __sparcv9]
3686         (__OFF_T_MATCHES_OFF64_T): New macro.
3687         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3688         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3689         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3690         (__OFF_T_MATCHES_OFF64_T): New macro.
3691
3692 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3693
3694         * stdlib/secure-getenv.c (__secure_getenv): Replace
3695         GLIBC_2_16 with GLIBC_2_17.
3696
3697 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3698
3699         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3700         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3701
3702 2012-08-03  David S. Miller  <davem@davemloft.net>
3703
3704         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3705
3706 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3707
3708         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3709         Remove.
3710         (__ASSUME_CORRECT_SI_PID): Likewise.
3711         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3712         (__ASSUME_TMPFS_NAME): Likewise.
3713         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3714         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3715         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3716         (HAVE_AUX_SECURE): Make definition unconditional.
3717         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3718         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3719
3720 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3721
3722         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3723         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3724         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3725         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3726         __eloop_threshold instead of SYMLOOP_MAX.
3727
3728         * sysdeps/generic/eloop-threshold.h: New file.
3729         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3730         of MAXSYMLINKS.
3731         * elf/chroot_canon.c (chroot_canon): Likewise.
3732
3733 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3734
3735         [BZ #13717]
3736         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3737         Change to 2.6.0 everywhere.
3738         * sysdeps/unix/sysv/linux/configure: Regenerated.
3739         * sysdeps/unix/sysv/linux/kernel-features.h
3740         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3741         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3742         kernel versions.
3743         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3744         (__ASSUME_FUTEX_REQUEUE): Remove.
3745         (__ASSUME_STATFS64): Define unconditionally.
3746         (__ASSUME_AT_SECURE): Likewise.
3747         (__ASSUME_CORRECT_SI_PID): Likewise.
3748         (__ASSUME_TGKILL): Define without depending on kernel version for
3749         i386.
3750         (__ASSUME_UTIMES): Likewise.
3751         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3752         kernel version.
3753         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3754         (__ASSUME_TMPFS_NAME): Likewise.
3755         * README: Update reference to Linux kernel versions.
3756
3757 2012-08-02  Marek Polacek  <polacek@redhat.com>
3758
3759         [BZ# 14150]
3760         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3761         libc_cv_asm_type_prefix with %.
3762         * configure: Regenerated.
3763         * include/libc-symbols.h: Remove comment about
3764         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3765         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3766         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3767         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3768         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3769         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3770         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3771         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3772         * elf/tst-unique2mod1.c: Likewise.
3773         * elf/tst-unique1mod2.c: Likewise.
3774         * elf/tst-unique1mod1.c: Likewise.
3775         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3776         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3777         Replace ASM_TYPE_DIRECTIVE with .type.
3778         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3779         * sysdeps/i386/sysdep.h: Likewise.
3780         * sysdeps/x86_64/sysdep.h: Likewise.
3781         * sysdeps/sh/sysdep.h: Likewise.
3782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3783         Do not define ASM_TYPE_DIRECTIVE.
3784         * sysdeps/powerpc/sysdep.h: Likewise.
3785         * sysdeps/powerpc/powerpc32/sysdep.h:
3786         Replace ASM_TYPE_DIRECTIVE with .type.
3787         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3788         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3789         * sysdeps/i386/fpu/e_powf.S: Likewise.
3790         * sysdeps/i386/fpu/e_expl.S: Likewise.
3791         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3792         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3793         * sysdeps/i386/fpu/e_pow.S: Likewise.
3794         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3795         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3796         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3797         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3798         * sysdeps/i386/fpu/e_log2.S: Likewise.
3799         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3800         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3801         * sysdeps/i386/fpu/e_powl.S: Likewise.
3802         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3803         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3804         * sysdeps/i386/fpu/e_logl.S: Likewise.
3805         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3806         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3807         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3808         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3809         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3810         * sysdeps/i386/fpu/e_log.S: Likewise.
3811         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3812         * sysdeps/i386/fpu/e_logf.S: Likewise.
3813         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3814         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3815         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3816         * sysdeps/i386/fpu/e_log10.S: Likewise.
3817         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3818         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3819         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3820         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3821         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3822         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3823         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3824         * sysdeps/i386/i686/strtok.S: Likewise.
3825         * sysdeps/i386/i386-mcount.S: Likewise.
3826         * sysdeps/i386/strtok.S: Likewise.
3827         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3828         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3829         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3830         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3831         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3832         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3833         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3834         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3835         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3836         * sysdeps/x86_64/_mcount.S: Likewise.
3837         * sysdeps/x86_64/strtok.S: Likewise.
3838         * sysdeps/sh/_mcount.S: Likewise.
3839
3840 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3841
3842         * libio/iofopen.c: Include <fcntl.h>.
3843         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3844         (_IO_fopen64, fopen64): Define as aliases.
3845         * libio/iofopen64.c: Include <fcntl.h>.
3846         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3847         Conditionalize body on this.
3848         * sysdeps/wordsize-64/iofopen.c: File removed.
3849         * sysdeps/wordsize-64/iofopen64.c: File removed.
3850
3851 2012-08-01  Marek Polacek  <polacek@redhat.com>
3852
3853         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3854         Use dlfcn directly instead of a variable.
3855         (binfmt-subdir): Do not define.
3856         (dlfcn): Likewise.
3857
3858 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3859
3860         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3861         Remove all definitions.
3862         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3863         <kernel-features.h>.
3864         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3865         (miss_F_GETOWN_EX): Remove all definitions.
3866         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3867         macro definition.
3868         [!__ASSUME_FCNTL64]: Remove conditional code.
3869         [__ASSUME_FCNTL64]: Make code unconditional.
3870         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3871         <kernel-features.h>.
3872         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3873         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3874         (lockf64) [__NR_fcntl64]: Make code unconditional.
3875         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3876
3877         * sysdeps/unix/sysv/linux/kernel-features.h
3878         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3879         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3880         Make code unconditional.
3881         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3882         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3884         [__NR_vfork]: Make code unconditional.
3885         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3886         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3888         [__NR_vfork]: Make code unconditional.
3889         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3890         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3891
3892 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3893
3894         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3895         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3896
3897         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3898         Define mkstemp64 as an alias.
3899         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3900         Define mkstemps64 as an alias.
3901         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3902         Define mkostemp64 as an alias.
3903         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3904         Define mkostemps64 as an alias.
3905         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3906         Conditionalize body on this.
3907         * misc/mkostemp64.c: Likewise.
3908         * misc/mkostemps64.c: Likewise.
3909         * misc/mkstemps64.c: Likewise.
3910         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3911         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3912         * sysdeps/wordsize-64/mkostemp.c: File removed.
3913         * sysdeps/wordsize-64/mkstemp.c: File removed.
3914         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3915         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3916         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3917         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3918
3919         [BZ #14138]
3920         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3921         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3922         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3923         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3924
3925         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3926         compat_symbol macros from <shlib-compat.h> rather than the underlying
3927         default_symbol_version and symbol_version macros, so that DEFAULT
3928         lines in shlib-versions are respected.
3929         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3930
3931 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3932
3933         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3934         Declare with warn_unused_result.
3935         (setgid, setregid, setegid, setresgid): Likewise.
3936         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3937         Likewise.
3938         * WUR-REPORT: Remove set*id functions.
3939
3940 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3941
3942         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3943
3944 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3945
3946         * include/sys/socket.h (__libc_accept, __libc_accept4):
3947         Add attribute_hidden.
3948         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3949
3950         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3951         use of PTR_MANGLE.
3952         * inet/getnetgrent_r.c (setup): Likewise.
3953
3954         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3955
3956 2012-07-31  David S. Miller  <davem@davemloft.net>
3957
3958         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3959
3960 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3961
3962         [BZ #13629]
3963         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3964         value between 1.0 and 2.0 and smaller part has absolute value less
3965         than 1.0.
3966         * math/s_clog10.c (__clog10): Likewise.
3967         * math/s_clog10f.c (__clog10f): Likewise.
3968         * math/s_clog10l.c (__clog10l): Likewise.
3969         * math/s_clogf.c (__clogf): Likewise.
3970         * math/s_clogl.c (__clogl): Likewise.
3971         * math/libm-test.inc (clog_test): Add more tests.
3972         (clog10_test): Likewise.
3973         * sysdeps/i386/fpu/libm-test-ulps: Update.
3974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3975
3976 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3977
3978         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3979         Exit with zero in case no suitable GID is found, and write a
3980         message to standard error.
3981
3982 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3983
3984         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3985         rather than to 1.
3986         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3987         (MAXPATHLEN): Removed.
3988         (NOGROUP, NODEV): New macros.
3989         (setbit, clrbit, isset, isclr): New macros.
3990         (howmany, roundup, powerof2): New macros.
3991         (DEV_BSIZE): New macro.
3992
3993         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3994         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3995
3996         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3997         definition on [!__NO_LONG_DOUBLE_MATH].
3998
3999         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4000         PTR_MANGLE and PTR_DEMANGLE.
4001
4002         * socket/accept4.c (accept4): Rename to __libc_accept4.
4003         Define accept4 as a weak alias.
4004
4005         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4006         on [_DIRENT_HAVE_D_TYPE].
4007         * io/ftw.c (ftw_dir): Likewise.
4008
4009         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4010
4011         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4012
4013         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4014         Use the BSD numbers rather than the arbitrary ones we had.
4015         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4016         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4017         (SIGXCPU, SIGXFSZ): New macros.
4018         (_NSIG): Now 32.
4019
4020         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4021         initializer on [_LIBC_REENTRANT].
4022
4023         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4024         definitions inside [_POSIX_MAPPED_FILES].
4025
4026         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4027
4028         * dirent/opendir.c: Include <fcntl.h>.
4029
4030         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4031         (__libc_getspecific): Likewise.
4032         (__libc_key_create): Likewise.
4033
4034         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4035         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4036         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4037         (tmpfile64): Define as alias.
4038         * sysdeps/wordsize-64/tmpfile.c: File removed.
4039         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4040         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4041         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4042
4043         * stdio-common/vfscanf.c: Include <stdbool.h>.
4044         * nss/makedb.c: Likewise.
4045         * stdio-common/_i18n_number.h: Likewise.
4046         * argp/argp-help.c: Likewise.
4047         * posix/wordexp.c: Likewise.
4048         * sysdeps/posix/spawni.c: Likewise.
4049         * nss/nss_files/files-initgroups.c: Likewise.
4050         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4051         * nss/nss_files/files-initgroups.c: Likewise.
4052         * nss/nss_db/db-netgrp.c: Likewise.
4053         * nss/nss_db/db-initgroups.c: Likewise.
4054         * io/fchmodat.c: Include <sys/stat.h>.
4055
4056         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4057         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4058
4059         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4060         [HAVE_MMAP].
4061
4062         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4063         Add multiple inclusion protection.
4064
4065 2012-07-27  David S. Miller  <davem@davemloft.net>
4066
4067         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4068
4069 2012-07-27  Gary Benson  <gbenson@redhat.com>
4070
4071         [BZ #14298]
4072         * elf/rtld.c: Include <stap-probe.h>.
4073         (dl_main): Added static probes "init_start" and "init_complete".
4074         * elf/dl-load.c: Include <stap-probe.h>.
4075         (lose): Take new parameter "nsid".
4076         Added static probe "map_failed".
4077         (_dl_map_object_from_fd): Pass namespace id to lose.
4078         Added static probe "map_start".
4079         (open_verify): Pass namespace id to lose.
4080         * elf/dl-open.c: Include <stap-probe.h>.
4081         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4082         and "reloc_complete".
4083         * elf/dl-close.c: Include <stap-probe.h>.
4084         (_dl_close_worker): Added static probes "unmap_start" and
4085         "unmap_complete".
4086         * elf/rtld-debugger-interface.txt: New file documenting the above.
4087
4088 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4089
4090         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4091         rather than a string variable.
4092         * sunrpc/rpc_main.c (h_output): Likewise.
4093         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4094
4095 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4096
4097         * inet/check_native.c: New file.
4098
4099 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4100
4101         [BZ #13629]
4102         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4103         if larger part has absolute value 1.0.
4104         * math/s_clog10.c (__clog10): Likewise.
4105         * math/s_clog10f.c (__clog10f): Likewise.
4106         * math/s_clog10l.c (__clog10l): Likewise.
4107         * math/s_clogf.c (__clogf): Likewise.
4108         * math/s_clogl.c (__clogl): Likewise.
4109         * math/libm-test.inc (clog_test): Add more tests.
4110         (clog10_test): Likewise.
4111         * sysdeps/i386/fpu/libm-test-ulps: Update.
4112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4113
4114         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4115         (pltexit): Likewise.
4116         (La_regs): Likewise.
4117         (La_retval): Likewise.
4118         (int_retval): Likewise.
4119         Update #error for removed macros to refer only to definitions in
4120         tst-audit.h.
4121         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4122         macro.
4123         (pltexit): Likewise.
4124         (La_regs): Likewise.
4125         (La_retval): Likewise.
4126         (int_retval): Likewise.
4127         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4128         macro.
4129         (pltexit): Likewise.
4130         (La_regs): Likewise.
4131         (La_retval): Likewise.
4132         (int_retval): Likewise.
4133         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4134         macro.
4135         (pltexit): Likewise.
4136         (La_regs): Likewise.
4137         (La_retval): Likewise.
4138         (int_retval): Likewise.
4139         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4140         macro.
4141         (pltexit): Likewise.
4142         (La_regs): Likewise.
4143         (La_retval): Likewise.
4144         (int_retval): Likewise.
4145         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4146         macro.
4147         (pltexit): Likewise.
4148         (La_regs): Likewise.
4149         (La_retval): Likewise.
4150         (int_retval): Likewise.
4151         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4152         macro.
4153         (pltexit): Likewise.
4154         (La_regs): Likewise.
4155         (La_retval): Likewise.
4156         (int_retval): Likewise.
4157         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4158         macro definitions in tst-audit.h.
4159         * sysdeps/i386/tst-audit.h: New file.
4160         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4161         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4162         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4163         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4164         * sysdeps/sh/tst-audit.h: Likewise.
4165         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4166         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4167         * sysdeps/x86_64/tst-audit.h: Likewise.
4168
4169 2012-07-26  Andreas Jaeger  <aj@suse.de>
4170
4171         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4172         ptrace.
4173
4174         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4175         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4176         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4177         PTRACE_O_MASK.
4178         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4179         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4180         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4181
4182         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4183         value.
4184
4185         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4186         _sigsys.
4187         (si_call_addr, si_syscall, si_arch): Define new macro.
4188         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4189         _sigsys.
4190         (si_call_addr, si_syscall, si_arch): Define new marcro.
4191         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4192         _sigsys.
4193         (si_call_addr, si_syscall, si_arch): Define new macro.
4194         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4195         _sigsys.
4196         (si_call_addr, si_syscall, si_arch): Define new macro.
4197
4198 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4199
4200         [BZ #13717]
4201         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4202         Change to 2.4.21 where previously 2.4.1.
4203         * sysdeps/unix/sysv/linux/configure: Regenerated.
4204         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4205         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4206         Linux kernel version.
4207         (__ASSUME_STD_AUXV): Remove.
4208         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4209         kernel version.
4210         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4211         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4212         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4213         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4214         (__ASSUME_NETLINK_SUPPORT): Likewise.
4215         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4216         (__no_netlink_support): Remove conditional definition.
4217         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4218         Remove.
4219         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4220         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4221         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4222         (if_nameindex_ioctl): Remove.
4223         (if_nameindex_netlink): Do not handle __no_netlink_support.
4224         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4225         code.
4226         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4227         Remove conditional code.
4228         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4229         code.
4230         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4231         unconditional.
4232         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4233         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4234         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4235         Remove.
4236         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4237         [!__ASSUME_STD_AUXV]: Remove conditional code.
4238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4239         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4240         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4242         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4243         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4244         code.
4245         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4247         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4248         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4249         conditional code.
4250         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4252         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4253         code.
4254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4255         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4256         conditional code.
4257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4258         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4259         code unconditional.
4260         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4261         conditional code.
4262         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4263         unconditional.
4264         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4265         conditional code.
4266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4267         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4268         unconditional.
4269         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4270         conditional code.
4271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4272         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4273         code unconditional.
4274         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4275         conditional code.
4276         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4277         unconditional.
4278         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4279         conditional code.
4280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4281         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4282         code unconditional.
4283         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4284         conditional code.
4285         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4286         unconditional.
4287         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4288         conditional code.
4289
4290 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4291
4292         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4293         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4294         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4295         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4296         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4297         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4298         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4299         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4300         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4301         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4302         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4303         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4304         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4305         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4306         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4307         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4308         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4309         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4310         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4311         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4312         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4313         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4314         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4315
4316 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4317
4318         * Versions.def: Add GLIBC_2.17.
4319         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4320         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4321         Introduce __libc_secure_getenv.
4322         * stdlib/Versions (2.17): Add secure_getenv
4323         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4324         * stdlib/secure-getenv.c: Rename __secure_getenv to
4325         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4326         symbol __secure_getenv for GLIBC_2.0.
4327         * stdlib/tst-secure-getenv.c: New.
4328         * stdlib/Makefile (tests): Add testcase.
4329         * manual/startup.texi (Environment Access): Document
4330         secure_getenv.
4331         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4332         __libc_secure_getenv.
4333         * inet/ruserpass.c (ruserpass): Likewise.
4334         * malloc/mtrace.c (mtrace): Likewise.
4335         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4336         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4337         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4338         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4339         HAVE_SECURE_GETENV.
4340         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4341         __secure_getenv to __libc_secure_getenv.
4342         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4344         Likewise.
4345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4346         Likewise.
4347         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4348         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4349         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4350         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
4351         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
4352         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
4353         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
4354
4355 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4356
4357         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
4358         (struct La_i86_retval): Likewise.
4359         (struct La_x86_64_regs): Likewise.
4360         (struct La_x86_64_retval): Likewise.
4361         (struct La_x32_regs): Likewise.
4362         (struct La_x32_retval): Likewise.
4363         (struct La_ppc32_regs): Likewise.
4364         (struct La_ppc32_retval): Likewise.
4365         (struct La_ppc64_regs): Likewise.
4366         (struct La_ppc64_retval): Likewise.
4367         (struct La_sh_regs): Likewise.
4368         (struct La_sh_retval): Likewise.
4369         (struct La_s390_32_regs): Likewise.
4370         (struct La_s390_32_retval): Likewise.
4371         (struct La_s390_64_regs): Likewise.
4372         (struct La_s390_64_retval): Likewise.
4373         (struct La_sparc32_regs): Likewise.
4374         (struct La_sparc32_retval): Likewise.
4375         (struct La_sparc64_regs): Likewise.
4376         (struct La_sparc64_retval): Likewise.
4377         (struct audit_ifaces): Remove architecture-specific pltenter and
4378         pltexit members.
4379         * sysdeps/i386/ldsodefs.h: New file.
4380         * sysdeps/powerpc/ldsodefs.h: Likewise.
4381         * sysdeps/s390/ldsodefs.h: Likewise.
4382         * sysdeps/sh/ldsodefs.h: Likewise.
4383         * sysdeps/sparc/ldsodefs.h: Likewise.
4384         * sysdeps/x86_64/ldsodefs.h: Likewise.
4385
4386 2012-07-25  Marek Polacek  <polacek@redhat.com>
4387
4388         [BZ #6808]
4389         * math/libm-test.inc (yn_test): Add another test.
4390         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
4391         to ERANGE when the result is +-Inf.
4392         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
4393         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
4394         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
4395         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
4396
4397 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
4398
4399         * conform/data/time.h-data (NULL): Use macro-constant.  Require
4400         equal to 0.
4401         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
4402         clock_t.
4403         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
4404
4405 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
4406
4407         * configure.in <sysdeps resolving>: Correct printing
4408         Implies_before.
4409         * configure: Regenerate.
4410
4411 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
4412
4413         * math/w_ilogb.c: Include <limits.h>.
4414         * math/w_ilogbl.c: Likewise.
4415
4416 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4417
4418         * manual/lang.texi (__va_copy): Document primarily as ISO C99
4419         va_copy.  Document allowing for unavailable va_copy only as
4420         pre-C99 compatibility.
4421         * manual/string.texi (Copying and Concatenation): Use va_copy
4422         instead of __va_copy in concat example.
4423
4424 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
4425
4426         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
4427         (__sendto): Use create_address_port.  Initialize APORT and deallocate
4428         it if not null.
4429
4430         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
4431         with O_NOLINK passed to __file_name_lookup.
4432
4433         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
4434         with O_NOLINK passed to __file_name_lookup.
4435
4436         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
4437         negative N or less than NGIDS.
4438
4439         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
4440         type to string_t.  Set ERANGE as errno and return it if NAME is not big
4441         enough.  Use memcpy instead of strncpy.
4442
4443 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
4444
4445         * elf/Makefile (check-data): Remove.
4446         (localplt.data): New vpath directive.
4447         ($(objpfx)check-localplt.out): Use localplt.data from vpath
4448         instead of $(check-data).
4449         * scripts/data/localplt-generic.data: Move to ...
4450         * sysdeps/generic/localplt.data: ... here.
4451         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
4452         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
4453         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
4454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
4455         ... here.
4456         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
4457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
4458         ... here.
4459         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
4460         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
4461         ... here.
4462         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
4463         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
4464         ... here.
4465         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
4466         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
4467         ... here.
4468         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
4469         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
4470         ... here.
4471
4472 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4473
4474         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
4475         PPC32 and PPC64 files.
4476         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
4477         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
4478
4479 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4480
4481         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
4482         __makecontext_ret to ...
4483         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
4484         ... here and call exit if uc_link is NULL.  New file.
4485         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
4486         __makecontext_ret.S.
4487         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
4488         __makecontext_ret to ...
4489         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
4490         ... here and call exit if uc_link is NULL.  New file.
4491         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
4492         __makecontext_ret.S.
4493
4494 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4495
4496         * elf/elf.h (R_390_IRELATIVE): New definition.
4497         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
4498         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
4499         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
4500         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4501         (elf_machine_lazy_rel): Likewise.
4502         * sysdeps/s390/dl-irel.h: New file.
4503         * sysdeps/s390/s390-64/memcpy.S: New asm code.
4504         * sysdeps/s390/s390-64/memset.S: New asm code.
4505         * sysdeps/s390/s390-64/memcmp.S: New asm code.
4506         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
4507         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
4508         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
4509         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
4510         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
4511         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
4512         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
4513         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
4514         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
4515         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
4516         * sysdeps/s390/s390-32/memcpy.S: New asm code.
4517         * sysdeps/s390/s390-32/memset.S: New asm code.
4518         * sysdeps/s390/s390-32/memcmp.S: New asm code.
4519
4520 2012-07-17  Marek Polacek  <polacek@redhat.com>
4521
4522         [BZ #14349]
4523         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
4524         * sysdeps/s390/s390-64/configure.in: Likewise.
4525         * sysdeps/sparc/configure.in: Likewise.
4526         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
4527         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
4528         * sysdeps/i386/configure.in: Likewise.
4529         * sysdeps/x86_64/configure.in: Likewise.
4530         * sysdeps/sh/configure.in: Likewise.
4531         * sysdeps/s390/s390-32/configure: Regenerated.
4532         * sysdeps/s390/s390-64/configure: Likewise.
4533         * sysdeps/x86_64/configure: Likewise.
4534         * sysdeps/sh/configure: Likewise.
4535         * sysdeps/powerpc/powerpc64/configure: Likewise.
4536         * sysdeps/powerpc/powerpc32/configure: Likewise.
4537         * sysdeps/sparc/configure: Likwise.
4538         * sysdeps/i386/configure: Likewise.
4539
4540         * elf/dl-open.c: Comment fixes.
4541
4542 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4543
4544         * Makefile [CXX] (check-data): Remove.
4545         [CXX] (c++-types.data): New vpath directive.
4546         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4547         vpath.  Do not allow for C++ type data being missing.
4548         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4549         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4550         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4551         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4552         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4553         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4554         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4556         ... here.
4557         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4559         ... here.
4560         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4561         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4562         ... here.
4563         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4564         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4565         ... here.
4566         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4567         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4568         ... here.
4569         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4570         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4571         ... here.
4572         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4573         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4574         ... here.
4575         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4576         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4577
4578         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4579         definitions to architecture-specific files.
4580         (TLS_IE): Likewise.
4581         (TLS_LD): Likewise.
4582         (TLS_GD): Likewise.
4583         * sysdeps/i386/tls-macros.h: New file.
4584         * sysdeps/powerpc/tls-macros.h: Likewise.
4585         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4586         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4587         * sysdeps/sh/tls-macros.h: Likewise.
4588         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4589         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4590         * sysdeps/x86_64/tls-macros.h: Likewise.
4591
4592 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4593
4594         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4595         zero value for regular exit case.
4596
4597         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4598         (__start_context): Preserve zero value for regular exit case.
4599
4600 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4601             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4602
4603         * manual/setjmp.texi (setcontext): Clarify normal process
4604         termination when uc_link is the null pointer.
4605         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4606         exit call.
4607
4608 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4609
4610         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4611         preprocessor.  Test for each exception mask separately.
4612
4613 2012-07-16  Andreas Jaeger  <aj@suse.de>
4614
4615         * po/ru.po: Update from translation team.
4616
4617 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4618
4619         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4620         equal to 0.
4621         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4622         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4623         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4624         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4625         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4626
4627 2012-07-13  Andreas Jaeger  <aj@suse.de>
4628
4629         * po/fr.po: Update from translation team.
4630
4631 2012-07-12  Marek Polacek  <polacek@redhat.com>
4632
4633         [BZ #14173]
4634         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4635         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4636         loop condition.
4637
4638 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4639
4640         [BZ #13717]
4641         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4642         Change to 2.4.1 where previously 2.4.0.
4643         * sysdeps/unix/sysv/linux/configure: Regenerated.
4644         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4645         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4646         version.
4647         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4648         (__ASSUME_AT_CLKTCK): Remove.
4649         (__ASSUME_AT_PAGESIZE): Likewise.
4650         (__ASSUME_AT_XID): Likewise.
4651         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4652         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4653         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4654         unconditionally.
4655         (HAVE_AUX_PAGESIZE): Likewise.
4656         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4657         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4658         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4659
4660 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4661
4662         [BZ #14307]
4663         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4664         the temporary buffer used to invoke __gethostbyname2_r,
4665         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4666         host_data / struct gaih_addrtuple.
4667         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4668         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4669         header file nss/nsswitch.h.
4670         * nss/nsswitch.h (global scope): Add definition of implementation
4671         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4672         resolv/nss_dns/dns-host.c).
4673
4674 2012-07-11  Andreas Jaeger  <aj@suse.de>
4675
4676         * po/fr.po: Update from translation team.
4677
4678         * po/sv.po: Update from translation team
4679         * po/fr.po: Another update from translation team.
4680
4681 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4682
4683         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4684         for subnormals or multiply small sinh result by itself.
4685         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4686         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4687
4688 2012-07-11  David S. Miller  <davem@davemloft.net>
4689
4690         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4691
4692 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4693
4694         [BZ #14347]
4695         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4696         (INTERNAL_MARK): Shift it here.
4697
4698 2012-07-10  Marek Polacek  <polacek@redhat.com>
4699
4700         [BZ #14151]
4701         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4702         libc_cv_asm_global_directive with .globl.
4703         * configure: Regenerated.
4704         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4705         with .globl.
4706         * sysdeps/i386/configure: Regenerated.
4707         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4708         with .globl.
4709         * sysdeps/x86_64/configure: Regenerated.
4710         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4711         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4712         * elf/tst-unique2mod2.c: Likewise.
4713         * elf/tst-unique2mod1.c: Likewise.
4714         * elf/tst-unique1mod2.c: Likewise.
4715         * elf/tst-unique1mod1.c: Likewise.
4716         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4717         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4718         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4719         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4720         * sysdeps/mach/sysdep.h: Likewise.
4721         * sysdeps/i386/sysdep.h: Likewise.
4722         * sysdeps/i386/i386-mcount.S: Likewise.
4723         * sysdeps/x86_64/_mcount.S: Likewise.
4724         * sysdeps/x86_64/sysdep.h: Likewise.
4725         * sysdeps/sh/_mcount.S: Likewise.
4726         * sysdeps/sh/sysdep.h: Likewise.
4727         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4728         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4729         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4730         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4731         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4732         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4733         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4734         * locale/localeinfo.h: Likewise.
4735         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4736         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4737
4738 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4739
4740         [BZ #14336]
4741         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4742         system".
4743         * manual/message.texi (The Uniforum approach): Likewise.
4744         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4745         (glibc iconv Implementation): Likewise.
4746
4747 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4748
4749         [BZ #14337]
4750         * math/s_clog.c (__clog): Avoid scaling a value down where that
4751         could result in underflow.
4752         * math/s_clog10.c (__clog10): Likewise.
4753         * math/s_clog10f.c (__clog10f): Likewise.
4754         * math/s_clog10l.c (__clog10l): Likewise.
4755         * math/s_clogf.c (__clogf): Likewise.
4756         * math/s_clogl.c (__clogl): Likewise.
4757         * math/libm-test.inc (clog_test): Add more tests.
4758         (clog10_test): Likewise.
4759         * sysdeps/i386/fpu/libm-test-ulps: Update.
4760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4761
4762 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4763
4764         [BZ #14283]
4765         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4766         by 7 not 8 to examine high bit of fractional part.
4767
4768         [BZ #14042]
4769         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4770         for call to __mcount_internal.
4771         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4772         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4773         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4774
4775 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4776
4777         [BZ #14154]
4778         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4779         approximation for values within 0x1p-13f of an odd multiple of
4780         pi/4.
4781         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4782         exception.  Add more tests.
4783         * sysdeps/i386/fpu/libm-test-ulps: Update.
4784
4785         [BZ #6778]
4786         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4787         inputs and return -1 for them.  Do not check for +Inf in case not
4788         reachable for +Inf.
4789         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4790         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4791         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4792         and return -1 for them.  Do not check for +Inf in case not
4793         reachable for +Inf.
4794         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4795         define.
4796         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4797         and return -1 for them.  Do not check for +Inf in case not
4798         reachable for +Inf.
4799         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4800         spurious underflow.
4801         * sysdeps/i386/fpu/libm-test-ulps: Update.
4802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4803
4804 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4805
4806         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4807
4808 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4809
4810         [BZ #14157]
4811         [BZ #14331]
4812         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4813         could result in spurious underflow.  Scale down values above
4814         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4815         * math/s_csqrtf.c (__csqrtf): Likewise.
4816         * math/s_csqrtl.c (__csqrtl): Likewise.
4817         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4818         spurious underflow.
4819         * sysdeps/i386/fpu/libm-test-ulps: Update.
4820         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4821
4822 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4823
4824         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4825         xopen-msg.sed.
4826         * catgets/xopen-msg.awk: New file.
4827         * catgets/xopen-msg.sed: Removed.
4828
4829         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4830         po2text.sed.
4831         * intl/po2test.awk: New file.
4832         * intl/po2test.sed: Removed.
4833
4834 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4835
4836         [BZ #14328]
4837         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4838         or multiply small sinh result by itself.
4839         * math/s_ctanf.c (__ctanf): Likewise.
4840         * math/s_ctanh.c (__ctanh): Likewise.
4841         * math/s_ctanhf.c (__ctanhf): Likewise.
4842         * math/s_ctanhl.c (__ctanhl): Likewise.
4843         * math/s_ctanl.c (__ctanl): Likewise.
4844         * math/libm-test.inc (ctan_test_tonearest): New function.
4845         (ctan_test_towardzero): Likewise.
4846         (ctan_test_downward): Likewise.
4847         (ctan_test_upward): Likewise.
4848         (ctanh_test_tonearest): Likewise.
4849         (ctanh_test_towardzero): Likewise.
4850         (ctanh_test_downward): Likewise.
4851         (ctanh_test_upward): Likewise.
4852         (main): Call these new functions.
4853         * sysdeps/i386/fpu/libm-test-ulps: Update.
4854         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4855
4856 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4857
4858         * .gitignore: Delete /ports entry.
4859
4860 2012-07-03  Andreas Jaeger  <aj@suse.de>
4861
4862         * po/bg.po: Update from translation team.
4863         * po/cs.po: Likewise.
4864         * po/de.po: Likewise.
4865         * po/hr.po: Likewise.
4866         * po/nl.pl: Likewise.
4867         * po/pl.po: Likewise.
4868         * po/vi.po: Likewise.
4869
4870 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4871
4872         * Makeconfig [!+link] (+link-before-libc): New variable.
4873         [!+link] (+link-after-libc): Likewise.
4874         [!+link] (+link-tests): Likewise.
4875         [!+link] (+link): Define in terms of $(+link-before-libc) and
4876         $(+link-after-libc).
4877         [!+link-static] (+link-static-before-libc): New variable.
4878         [!+link-static] (+link-static-after-libc): Likewise.
4879         [!+link-static] (+link-static-tests): Likewise.
4880         [!+link-static] (+link-static): Define in terms of
4881         $(+link-static-before-libc) and $(+link-static-after-libc).
4882         [build-shared] (link-libc-before-gnulib): New variable.
4883         [build-shared] (link-libc-tests): Likewise.
4884         [build-shared] (link-libc): Define in terms of
4885         $(link-libc-before-gnulib).
4886         [!build-shared] (link-libc-tests): New variable.
4887         (link-libc-static-tests): New variable.
4888         [!gnulib] (gnulib-arch): New variable.
4889         [!gnulib] (gnulib-tests): Likewise.
4890         [!gnulib] (static-gnulib-arch): Likewise.
4891         [!gnulib] (static-gnulib-tests): Likewise.
4892         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4893         Define with "=" instead of ":=".
4894         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4895         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4896         * Rules (binaries-all-notests): New variable.
4897         (binaries-all-tests): Likewise.
4898         (binaries-static-notests): Likewise.
4899         (binaries-static-tests): Likewise.
4900         (binaries-all): Define using $(binaries-all-notests) and
4901         $(binaries-all-tests).
4902         (binaries-static): Define using $(binaries-static-notests) and
4903         $(binaries-static-tests).
4904         (binaries-shared-tests): New variable.
4905         (binaries-shared-notests): Likewise.
4906         (binaries-shared): Remove variable.
4907         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4908         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4909         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4910         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4911         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4912         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4913         * elf/Makefile (sln-modules): New variable.
4914         (extra-objs): Add $(sln-modules:=.o).
4915         (ldconfig-modules): Add static-stubs.
4916         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4917         * elf/static-stubs.c: New file.
4918
4919         [BZ #14283]
4920         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4921         by 7 not 8 to examine high bit of fractional part.  Use volatile
4922         variables when splitting into final array of floats if
4923         __FLT_EVAL_METHOD__ != 0.
4924         * math/libm-test.inc (cos_test): Add another test.
4925         (sin_test): Likewise.
4926         * sysdeps/i386/fpu/libm-test-ulps: Update.
4927
4928         [BZ #14273]
4929         * math/libm-test.inc (cosh_test): Add more tests.
4930
4931         * version.h (RELEASE): Set to "development".
4932         (VERSION): Set to "2.16.90".
4933
4934 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4935
4936         * NEWS: Update copyright. Remove last-updated date.
4937         Mention math library bug fixes and timezone data changes.
4938         * README: Mention GNU/Hurd, x32, and HPPA support status.
4939
4940 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4941
4942         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4943
4944 2012-06-27  Andreas Jaeger  <aj@suse.de>
4945
4946         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4947
4948 2012-06-25  Andreas Jaeger  <aj@suse.de>
4949
4950         * sysdeps/s390/fpu/libm-test-ulps: Update.
4951
4952 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4953             Thomas Schwinge  <thomas@codesourcery.com>
4954
4955         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4956         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4957         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4958         fanotify_mark.
4959
4960 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4961
4962         * sysdeps/mach/start.c: Remove file.
4963         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4964         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4965         * sysdeps/sh/init-first.c: Likewise.
4966
4967         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4968         registers for frame unwinding purposes, add CFI directives.
4969         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4970         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4971         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4972         Likewise.
4973
4974         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4975         __fortify_fail returning.
4976         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4977
4978         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4979         sysdeps/sh/____longjmp_chk.S.
4980         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4981         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4982         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4983         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4984
4985         * sysdeps/sh/abort-instr.h: New file.
4986         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4987         process in case exit returns.
4988
4989         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4990         initialize the GOT register before use.
4991
4992         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4993         calculation of ARGC > 4.
4994
4995         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4996         meaningful names to some local labels.
4997
4998 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4999             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5000
5001         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5002         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5003         (__arch_compare_and_exchange_val_16_acq): Likewise.
5004         (__arch_compare_and_exchange_val_32_acq): Likewise.
5005         (atomic_exchange_and_add): Fix gUSA sequence.
5006         (atomic_add): Likewise.
5007         (atomic_add_negative): Likewise.
5008         (atomic_add_zero): Likewise.
5009         (atomic_bit_test_set): Likewise.
5010
5011 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5012
5013         [BZ #13579]
5014         * include/link.h (struct link_map): Add l_free_initfini.
5015         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5016         l_initfini.
5017         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5018         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5019         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5020         set.
5021
5022 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5023
5024         * configure.in: Use AC_LANG_SOURCE.
5025         * configure: Regenerate.
5026
5027 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5028
5029         * configure.in (libc_cv_localstatedir): New substituted variable.
5030         * configure: Regenerated.
5031         * config.make.in (localstatedir): New variable, substituted from
5032         libc_cv_localstatedir.
5033         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5034         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5035         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5036         * sysdeps/gnu/configure: Regenerated.
5037
5038 2012-06-21  Jeff Law  <law@redhat.com>
5039
5040         [BZ #14277]
5041         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5042         free.  Simplify list management for _LIBC case.
5043
5044 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5045
5046         [BZ #14273]
5047         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5048         Clear sign bit of 64-bit integer value before comparing against
5049         overflow value.
5050
5051         * sysdeps/mach/configure: Regenerated.
5052
5053 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5054
5055         [BZ #14278]
5056         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5057
5058 2012-06-21  Jeff Law  <law@redhat.com>
5059
5060         [BZ #13882]
5061         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5062         uint16_t for elements in the "seen" array to avoid char overflows.
5063         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5064         * elf/dl-open.c (dl_open_worker): Likewise.
5065
5066 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5067
5068         * scripts/list-sources.sh: Scan PORTS for translations.
5069         * po/libc.pot: Regenerated.
5070
5071 2012-06-21  Andreas Jaeger  <aj@suse.de>
5072
5073         [BZ #12194]
5074         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5075         warning.
5076         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5077         * bits/byteswap-16.h (__bswap_16): Likewise.
5078         * bits/byteswap.h (__bswap_constant_16): Likewise.
5079
5080 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5081
5082         [BZ #14117]
5083         * sysdeps/i386/fpu_control.h: Removed.
5084         * sysdeps/x86_64/fpu_control.h: Moved to ...
5085         * sysdeps/x86/fpu_control.h: Here.
5086
5087         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5088         (_FPU_SETCW): Likewise.
5089
5090 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5091
5092         [BZ #14117]
5093         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5094         * sysdeps/x86/fpu/bits/mathinline.h: This.
5095         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5096
5097         [BZ #14050]
5098         [BZ #14117]
5099         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5100         functions if __x86_64__ is defined.
5101
5102 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5103
5104         * string/endian.h: Add !__ASSEMBLER__ condition for including
5105         conversion interfaces.
5106
5107 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5108
5109         [BZ #14241]
5110         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5111         of ABS(x) in calculating zero to negative powers other than odd
5112         integers.
5113         * math/libm-test.inc (pow_test): Add more tests.
5114
5115 2012-06-15  Andreas Jaeger  <aj@suse.de>
5116
5117         * manual/contrib.texi (Contributors): Update entry of Liubov
5118         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5119         Machado Filho.
5120
5121 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5122
5123         * string/string.h: Add __wur to GNU version of strerror_r.
5124
5125 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5126
5127         [BZ #14229]
5128         * string/Makefile (tests): Add tst-strtok_r.
5129         * string/tst-strtok_r.c: New file.
5130         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5131         RAX_LP/RDX_LP on SAVE_PTR.
5132
5133 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5134
5135         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5136
5137 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5138
5139         * libm_test.inc (csqrt_test): Allow more spurious underflow
5140         exceptions.
5141         (j0_test): Likewise.
5142         (j1_test): Likewise.
5143         (y0_test): Likewise.
5144         (y1_test): Likewise.
5145
5146 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5147
5148         * po/Makefile (libc.pot): Use UTF-8 charset.
5149
5150 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5151
5152         [BZ #14210]
5153         Suppress sign-conversion warning from FD_SET.
5154         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5155         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5156         not unsigned long int.
5157         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5158
5159 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5160
5161         [BZ #14050]
5162         [BZ #14117]
5163         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5164         __extern_always_inline instead of __extern_inline.
5165         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5166         (__signbit): Likewise.
5167         (__signbitl): Support C++ namespace.
5168         (lrintf): New inline function.
5169         (lrint): Likewise.
5170         (llrintf): Likewise.
5171         (llrint): Likewise.
5172         (fmaxf): Likewise.
5173         (fmax): Likewise.
5174         (fminf): Likewise.
5175         (fmin): Likewise.
5176         (rint): Likewise.
5177         (rintf): Likewise.
5178         (ceil): Likewise.
5179         (ceilf): Likewise.
5180         (floor): Likewise.
5181         (floorf): Likewise.
5182         (nearbyint): Likewise.
5183         (nearbyintf): Likewise.
5184
5185 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5186
5187         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5188         non-default versions.
5189
5190 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5191
5192         [BZ #14218]
5193         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5194
5195 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5196
5197         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5198         (FE_UPWARD, FE_DOWNWARD): Don't define.
5199         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5200         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5201
5202         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5203         reading it.
5204         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5205         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5206
5207 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5208
5209         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5210         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5211         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5212         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5213
5214 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5215
5216         [BZ #14117]
5217         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5218         * sysdeps/i386/fpu/Implies: New file.
5219         * sysdeps/x86_64/fpu/Implies: Likewise.
5220         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5221         * sysdeps/x86/fpu/bits/fenv.h: This.
5222
5223         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5224         __SSE_MATH__.
5225
5226 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5227
5228         [BZ #14134]
5229         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5230         character 0xffff that matches the last element of the
5231         conversion table.
5232
5233 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5234
5235         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5236         fmodl commit.
5237
5238 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5239
5240         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5241         values higher than 25.6283.
5242
5243 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5244
5245         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5246         subnormal exponent extraction and add some __builtin_expect.
5247         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5248         Fix for subnormal mantissa calculation.
5249
5250 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5251
5252         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5253         cpu2 is -1 and errno is not ENOSYS.
5254
5255 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5256
5257         [BZ #14117]
5258         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5259         * sysdeps/x86/bits/string.h: This.
5260         * sysdeps/x86_64/bits/string.h: Removed.
5261
5262         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5263         if not compiling for x86-64, but compiling for >= i486.
5264
5265         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5266         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5267
5268         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5269         New macro from Linux kernel 3.4.0.
5270         (FP_XSTATE_MAGIC2): Likewise.
5271         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5272         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5273         (struct _fpx_sw_bytes): New struct.
5274         (struct _xsave_hdr): Likewise.
5275         (struct _ymmh_state): Likewise.
5276         (struct _xstate): Likewise.
5277
5278         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5279         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5280         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5281         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5282         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5283         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5284
5285         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5286         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5287         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5288         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5289         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5290         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5291
5292 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5293
5294         [BZ #13743]
5295         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5296         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5297         (sysdep_headers): Include sys/platform/ppc.h.
5298         * sysdeps/powerpc/test-gettimebase.c: Test for
5299         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5300         * manual/Makefile (appendices): Include platform.texi.
5301         * manual/contrib.texi (Contributors): Update @node pointers.
5302         * manual/maint.texi (Maintenance): Likewise.
5303         (Platform): New node.
5304         * manual/platform.texi: New file.  Document the new features.
5305
5306 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5307             Jakub Jelinek  <jakub@redhat.com>
5308
5309         [BZ #14188]
5310         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5311         where __builtin_expect is unavailable.
5312
5313 2012-06-03  David S. Miller  <davem@davemloft.net>
5314
5315         * stdlib/longlong.h: Updated from GCC.
5316
5317 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5318
5319         [BZ #14042]
5320         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5321         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5322         __mcount_internal.
5323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5324         (GLIBC_2.16): Likewise.
5325
5326 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5327
5328         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5329
5330 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5331
5332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5333         (default-abi): New variable.
5334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5335         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5336         variable.
5337         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5338         Likewise.
5339         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5340         Likewise.
5341         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5342         Likewise.
5343
5344         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5345         definition.  Document in comment.
5346
5347 2012-06-01  David S. Miller  <davem@davemloft.net>
5348
5349         * stdlib/longlong.h: Updated from GCC.
5350
5351 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5352
5353         [BZ #14117]
5354         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
5355         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
5356         sys/debugreg.h sys/io.h here.
5357         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
5358         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
5359         sys/io.h.
5360         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
5361         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
5362         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
5363         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
5364         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
5365         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
5366
5367         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
5368         Define only if __x86_64__ is defined.
5369
5370 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5371
5372         [BZ #14048]
5373         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
5374         Use int64_t for variable i.
5375         * math/libm-test.inc (fmod_test): Add more tests.
5376
5377         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
5378         z computation is not scheduled after fetestexcept.
5379         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
5380         Use math_force_eval instead of asm to ensure calculation scheduled
5381         before exception test.
5382         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
5383         Ensure a1 + u.d computation is not scheduled after fetestexcept.
5384
5385 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
5386
5387         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
5388         computation is not scheduled after fetestexcept.
5389
5390 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5391
5392         [BZ #14117]
5393         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
5394         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
5395
5396 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5397
5398         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
5399         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
5400
5401 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5402
5403         [BZ #14117]
5404         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
5405         <bits/wordsize.h>.
5406         (__WCHAR_MIN): Support __WORDSIZE == 64.
5407         (__WCHAR_MAX): Likewise.
5408
5409         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
5410         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
5411
5412         [BZ #14183]
5413         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
5414         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
5415
5416         [BZ #14117]
5417         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
5418         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
5419
5420         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
5421         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
5422
5423         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
5424         Defined to 1 if __x86_64__ isn't defined.
5425         (_STAT_VER_LINUX_OLD): New.
5426         (st_atime): Remove duplicate.
5427         (st_mtime): Likewise.
5428         (st_ctime): Likewise.
5429
5430 2012-05-31  David S. Miller  <davem@davemloft.net>
5431
5432         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
5433         entries.
5434
5435 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
5436
5437         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
5438         gen-libm-test.pl.
5439
5440         [BZ #14132]
5441         * elf/dl-reloc.c: Include <_itoa.h>.
5442         (_dl_reloc_bad_type): Remove use of INTUSE.
5443         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
5444         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
5445         * stdio-common/psiginfo.c (psiginfo): Likewise.
5446         * stdio-common/psignal.c (psignal): Likewise.
5447         * string/strsignal.c (strsignal): Likewise.
5448         * include/signal.h (_sys_siglist): Declare hidden proto.
5449         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
5450         INTVARDEF with libc_hidden_data_def.
5451         * stdio-common/itoa-udigits.c: Likewise.
5452         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
5453         (_itoa_lower_digits_internal): Remove declaration.
5454         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
5455         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
5456         (_sys_sigabbrev_internal): Remove aliases.
5457         (_sys_siglist): Define hidden alias.
5458
5459 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
5460
5461         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5462         bits/sysctl.h.
5463
5464 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5465
5466         [BZ #14117]
5467         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
5468         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
5469
5470         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
5471         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
5472         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
5473         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
5474         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
5475         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
5476
5477         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
5478         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
5479         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
5480
5481         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
5482         with __addr.
5483         (insw): Likewise.
5484         (insl): Likewise.
5485         (outsb): Likewise.
5486         (outsw): Likewise.
5487         (outsl): Likewise.
5488
5489         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
5490         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
5491         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
5492
5493         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
5494         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
5495         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
5496         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
5497         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
5498         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
5499
5500         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
5501         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
5502
5503         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
5504         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
5505
5506         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
5507         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
5508         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
5509
5510         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
5511         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
5512         to ...
5513         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
5514
5515         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
5516         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
5517         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
5518
5519         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
5520         for x86-64.
5521         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
5522
5523 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
5524
5525         * math/math.h (M_El): Use two more decimal places.
5526         (M_LOG2El): Likewise.
5527         (M_LOG10El): Likewise.
5528         (M_LN2l): Likewise.
5529         (M_LN10l): Likewise.
5530         (M_PIl): Likewise.
5531         (M_PI_2l): Likewise.
5532         (M_PI_4l): Likewise.
5533         (M_1_PIl): Likewise.
5534         (M_2_PIl): Likewise.
5535         (M_2_SQRTPIl): Likewise.
5536         (M_SQRT2l): Likewise.
5537         (M_SQRT1_2l): Likewise.
5538
5539 2012-05-31  David S. Miller  <davem@davemloft.net>
5540
5541         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5542         values between float registers.
5543         * sysdeps/sparc/sparc64/memset.S: Likewise.
5544         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5545
5546 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5547
5548         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5549         -D_FORTIFY_SOURCE=1.
5550         (CPPFLAGS-tst-longjmp_chk.c): Define.
5551         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5552         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5553         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5554         CFLAGS-tst-wchar-h.c.
5555
5556 2012-05-31  Marek Polacek  <polacek@redhat.com>
5557
5558         [BZ #14132]
5559         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5560         __endmntent_internal): Remove declaration.
5561         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5562         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5563         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5564
5565 2012-05-30  David S. Miller  <davem@davemloft.net>
5566
5567         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5568         (___Q_simulate_exceptions): Use real FP ops rather than writing
5569         into the %fsr.
5570         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5571         Likewise.
5572
5573 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5574
5575         [BZ #14117]
5576         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5577         * sysdeps/x86/bits/xtitypes.h: This.
5578
5579         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5580         * sysdeps/x86/bits/wordsize.h: This.
5581
5582         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5583         * sysdeps/x86/bits/huge_vall.h: This.
5584
5585         * sysdeps/i386/bits/select.h: Removed.
5586         * sysdeps/x86_64/bits/select.h: Renamed to ...
5587         * sysdeps/x86/bits/select.h: This.
5588
5589         * sysdeps/i386/bits/setjmp.h: Removed.
5590         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5591         * sysdeps/x86/bits/setjmp.h: This.
5592
5593         * sysdeps/i386/bits/mathdef.h: Removed.
5594         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5595         * sysdeps/x86/bits/mathdef.h: This.
5596
5597 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5598
5599         [BZ #14132]
5600         * include/sys/socket.h (__connect_internal)
5601         (__libc_sa_len_internal): Remove declaration.
5602         (__connect, __libc_sa_len): Declare hidden_proto.
5603         (SA_LEN): Remove use of INTUSE.
5604         * socket/connect.c: Add libc_hidden_def.
5605         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5606         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5607         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5608         alias.
5609         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5610         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5611         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5612         of adding _internal alias.
5613
5614 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5615
5616         [BZ #14117]
5617         * sysdeps/i386/bits/link.h: Removed.
5618         * sysdeps/i386/bits/linkmap.h: Likewise.
5619         * sysdeps/x86_64/bits/link.h: Renamed to ...
5620         * sysdeps/x86/bits/link.h: This.
5621         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5622         * sysdeps/x86/bits/linkmap.h: This.
5623
5624         * sysdeps/i386/bits/endian.h: Removed.
5625         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5626         * sysdeps/x86/bits/endian.h: This.
5627
5628         * sysdeps/i386/bits/byteswap.h: Removed.
5629         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5630         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5631         * sysdeps/x86/bits/byteswap.h: This.
5632         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5633         * sysdeps/x86/bits/byteswap-16.h: This.
5634         * sysdeps/i386/Implies: Add x86.
5635         * sysdeps/x86_64/Implies: Likewise.
5636
5637 2012-05-30  David S. Miller  <davem@davemloft.net>
5638
5639         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5640         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5641         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5642         (FP_TRAPPING_EXCEPTIONS): Define.
5643         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5644         (FP_TRAPPING_EXCEPTIONS): Define.
5645         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5646         subnormals only when inexact has been signalled or underflow
5647         exceptions are enabled.
5648         (_FP_PACK_CANONICAL): Likewise.
5649
5650 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5651
5652         [BZ #14183]
5653         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5654         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5655
5656 2012-05-30  Richard Henderson  <rth@twiddle.net>
5657
5658         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5659         with #ifndef NOT_IN_libc.
5660
5661         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5662         marked to avoid plt entry.
5663
5664 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5665
5666         [BZ #14112]
5667         * Makeconfig (default-abi): New macro.
5668         (abi-includes): Likewise.
5669         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5670         $(abi-$(default-abi)-lib-soname) for soname if defined.
5671         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5672         abi-variants.
5673         * Makefile (installed-stubs): Likewise.
5674         * include/stubs-biarch.h: Removed.
5675         * scripts/lib-names.awk: Only handle one library at a time.
5676         * scripts/soversions.awk: Remove WORDSIZE support.
5677         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5678         entries.
5679         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5680         Removed.
5681         (syscall-list-default-condition): Likewise.
5682         (syscall-list-default-condition): Likewise.
5683         (syscall-list-includes): Likewise.
5684         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5685         syscall-list-* with abi-*.  Handle undefined abi-variants.
5686         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5687         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5688         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5689         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5690         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5691         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5692         Removed.
5693         (syscall-list-32-options): Likewise.
5694         (syscall-list-32-condition): Likewise.
5695         (syscall-list-64-options): Likewise.
5696         (syscall-list-64-condition): Likewise.
5697         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5698         macro.
5699         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5700         Renamed to ...
5701         (abi-*): This.
5702         (abi-64-ld-soname): New macro.
5703         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5704         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5705         Renamed to ...
5706         (abi-*): This.
5707         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5708         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5709
5710 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5711
5712         * sysdeps/unix/sysv/linux/kernel-features.h
5713         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5714         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5715         include <kernel-features.h>.
5716         [!__NR_ftruncate64]: Remove conditional code.
5717         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5718         [__NR_ftruncate64]: Make code unconditional.
5719         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5720         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5721         include <kernel-features.h>.
5722         [!__NR_ftruncate64]: Remove conditional code.
5723         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5724         [__NR_ftruncate64]: Make code unconditional.
5725         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5727         include <kernel-features.h>.
5728         [!__NR_ftruncate64]: Remove conditional code.
5729         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5730         [__NR_ftruncate64]: Make code unconditional.
5731         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5733         include <kernel-features.h>.
5734         [!__NR_ftruncate64]: Remove conditional code.
5735         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5736         [__NR_ftruncate64]: Make code unconditional.
5737         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5738
5739         * configure.in (libc_cv_fpie): Weaken to a compile test using
5740         LIBC_TRY_CC_OPTION.
5741         * configure: Regenerated.
5742
5743 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5744
5745         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5746         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5747         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5748         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5749         Refreshed.
5750         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5751         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5752         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5753         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5754         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5755         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5756         Refreshed.
5757
5758 2012-05-27  David S. Miller  <davem@davemloft.net>
5759
5760         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5761         (___Q_zero): New.
5762         (__Q_simulate_exceptions): Return void.  Change to simulate
5763         exceptions by writing into the %fsr.
5764         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5765         (__Qp_handle_exceptions): Likewise.
5766         (numbers): Delete.
5767         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5768         __Qp_handle_exceptions.
5769         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5770         __Qp_handle_exceptions.
5771         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5772         as unused and give dummy FP_RND_NEAREST initializer.
5773         (FP_INHIBIT_RESULTS): Define.
5774         (___Q_simulate_exceptions): Update declaration.
5775         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5776         formatting.
5777         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5778         as unused and give dummy FP_RND_NEAREST initializer.
5779         (__Qp_handle_exceptions): Update declaration.
5780         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5781         formatting.
5782
5783 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5784
5785         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5786         the temporary FPU control word.
5787         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5788         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5789         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5790         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5791         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5792         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5793         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5794         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5795         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5796         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5797         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5798
5799 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5800
5801         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5802         fields.
5803
5804 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5805
5806         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5807         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5808         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5809         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5810         Likewise.
5811         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5812         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5813         Likewise.
5814
5815 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5816
5817         * po/h.po: Update from translation team.
5818
5819 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5820
5821         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5822
5823         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5824         handling of denormals.
5825         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5826         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5827         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5828         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5829         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5830         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5831         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5832         Likewise.
5833
5834 2012-05-26  Marek Polacek  <polacek@redhat.com>
5835
5836         [BZ #14152]
5837         * math/libm-test.inc (fma_test): Don't always expect underflow
5838         exception.
5839
5840 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5841
5842         [BZ #12416]
5843         * elf/tst-execstack.c: Include stackinfo.h.
5844         (do_test): Adjust test case to ensure that pthread_getattr_np
5845         behaviour remains the same after marking stack executable.
5846
5847 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5848
5849         * sysdeps/unix/sysv/linux/kernel-features.h
5850         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5851         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5852         kernel-features.h.
5853         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5854         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5855         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5856         kernel-features.h.
5857         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5858         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5859
5860 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5861
5862         * configure.in: Define the default includes to being none.
5863         * configure: Regenerated.
5864
5865 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5866
5867         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5868         * sysdeps/x86_64/setjmp.S: Likewise.
5869         * sysdeps/i386/bsd-setjmp.S: Likewise.
5870         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5871         * sysdeps/i386/setjmp.S: Likewise.
5872         * sysdeps/i386/__longjmp.S: Likewise.
5873         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5874         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5875
5876         * include/stap-probe.h: New file.
5877         * configure.in: Handle --enable-systemtap.
5878         * configure: Regenerated.
5879         * config.h.in (USE_STAP_PROBE): New #undef.
5880         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5881         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5882         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5883
5884 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5885
5886         [BZ #13717]
5887         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5888         to 2.4.0 where earlier.
5889         * sysdeps/unix/sysv/linux/configure: Regenerated.
5890         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5891         <kernel-features.h>.
5892         [__ASSUME_32BITUIDS]: Make code unconditional.
5893         [!__ASSUME_32BITUIDS]: Remove conditional code.
5894         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5895         <kernel-features.h>.
5896         [__ASSUME_32BITUIDS]: Make code unconditional.
5897         [!__ASSUME_32BITUIDS]: Remove conditional code.
5898         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5899         [__ASSUME_32BITUIDS]: Make code unconditional.
5900         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5901         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5902         <kernel-features.h>.
5903         [__ASSUME_32BITUIDS]: Make code unconditional.
5904         [!__ASSUME_32BITUIDS]: Remove conditional code.
5905         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5906         <kernel-features.h>.
5907         [__ASSUME_32BITUIDS]: Make code unconditional.
5908         [!__ASSUME_32BITUIDS]: Remove conditional code.
5909         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5910         <kernel-features.h>.
5911         [__ASSUME_32BITUIDS]: Make code unconditional.
5912         [!__ASSUME_32BITUIDS]: Remove conditional code.
5913         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5914         <kernel-features.h>.
5915         [__ASSUME_32BITUIDS]: Make code unconditional.
5916         [!__ASSUME_32BITUIDS]: Remove conditional code.
5917         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5918         <kernel-features.h>.
5919         [__ASSUME_32BITUIDS]: Make code unconditional.
5920         [!__ASSUME_32BITUIDS]: Remove conditional code.
5921         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5922         <kernel-features.h>.
5923         [__ASSUME_32BITUIDS]: Make code unconditional.
5924         [!__ASSUME_32BITUIDS]: Remove conditional code.
5925         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5926         <kernel-features.h>.
5927         [__ASSUME_32BITUIDS]: Make code unconditional.
5928         [!__ASSUME_32BITUIDS]: Remove conditional code.
5929         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5930         <kernel-features.h>.
5931         [__ASSUME_32BITUIDS]: Make code unconditional.
5932         [!__ASSUME_32BITUIDS]: Remove conditional code.
5933         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5934         <kernel-features.h>.
5935         [__ASSUME_32BITUIDS]: Make code unconditional.
5936         [!__ASSUME_32BITUIDS]: Remove conditional code.
5937         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5938         <kernel-features.h>.
5939         [__ASSUME_32BITUIDS]: Make code unconditional.
5940         [!__ASSUME_32BITUIDS]: Remove conditional code.
5941         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5942         <kernel-features.h>.
5943         [__NR_setresgid] (__setresgid): Do not declare.
5944         [__ASSUME_32BITUIDS]: Make code unconditional.
5945         [!__ASSUME_32BITUIDS]: Remove conditional code.
5946         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5947         <kernel-features.h>.
5948         [__NR_setresuid] (__setresuid): Do not declare.
5949         [__ASSUME_32BITUIDS]: Make code unconditional.
5950         [!__ASSUME_32BITUIDS]: Remove conditional code.
5951         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.c: Do not include
5956         <kernel-features.h>.
5957         [__ASSUME_32BITUIDS]: Make code unconditional.
5958         [!__ASSUME_32BITUIDS]: Remove conditional code.
5959         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5960         <kernel-features.h>.
5961         [__ASSUME_32BITUIDS]: Make code unconditional.
5962         [!__ASSUME_32BITUIDS]: Remove conditional code.
5963         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5964         <kernel-features.h>.
5965         [__ASSUME_32BITUIDS]: Make code unconditional.
5966         [!__ASSUME_32BITUIDS]: Remove conditional code.
5967         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5968         <kernel-features.h>.
5969         [__ASSUME_32BITUIDS]: Make code unconditional.
5970         [!__ASSUME_32BITUIDS]: Remove conditional code.
5971         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5972         <kernel-features.h>.
5973         [__ASSUME_32BITUIDS]: Make code unconditional.
5974         [!__ASSUME_32BITUIDS]: Remove conditional code.
5975         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5976         <kernel-features.h>.
5977         [__ASSUME_32BITUIDS]: Make code unconditional.
5978         [!__ASSUME_32BITUIDS]: Remove conditional code.
5979         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5980         <kernel-features.h>.
5981         [__ASSUME_32BITUIDS]: Make code unconditional.
5982         [!__ASSUME_32BITUIDS]: Remove conditional code.
5983         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5984         <kernel-features.h>.
5985         [__ASSUME_32BITUIDS]: Make code unconditional.
5986         [!__ASSUME_32BITUIDS]: Remove conditional code.
5987         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5988         <kernel-features.h>.
5989         [__ASSUME_32BITUIDS]: Make code unconditional.
5990         [!__ASSUME_32BITUIDS]: Remove conditional code.
5991         * sysdeps/unix/sysv/linux/kernel-features.h
5992         (__ASSUME_SETRESUID_SYSCALL): Remove.
5993         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5994         (__ASSUME_32BITUIDS): Likewise.
5995         (__ASSUME_LDT_WORKS): Likewise.
5996         (__ASSUME_O_DIRECTORY): Likewise.
5997         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5998         architecture but not kernel version.
5999         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6000         (__ASSUME_MMAP2_SYSCALL): Likewise.
6001         (__ASSUME_STAT64_SYSCALL): Likewise.
6002         (__ASSUME_IPC64): Likewise.
6003         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6004         <kernel-features.h>.
6005         [__ASSUME_32BITUIDS]: Make code unconditional.
6006         [!__ASSUME_32BITUIDS]: Remove conditional code.
6007         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6008         <kernel-features.h>.
6009         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6010         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6011         132096]: Remove conditional code.
6012         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6013         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6014         <kernel-features.h>.
6015         [__ASSUME_32BITUIDS]: Make code unconditional.
6016         [!__ASSUME_32BITUIDS]: Remove conditional code.
6017         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6018         <kernel-features.h>.
6019         [__ASSUME_32BITUIDS]: Make code unconditional.
6020         [!__ASSUME_32BITUIDS]: Remove conditional code.
6021         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6022         <kernel-features.h>.
6023         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6024         unconditional.
6025         (__setresgid): Do not declare.
6026         [__ASSUME_32BITUIDS]: Make code unconditional.
6027         [!__ASSUME_32BITUIDS]: Remove conditional code.
6028         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6029         <kernel-features.h>.
6030         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6031         unconditional.
6032         (__setresuid): Do not declare.
6033         [__ASSUME_32BITUIDS]: Make code unconditional.
6034         [!__ASSUME_32BITUIDS]: Remove conditional code.
6035         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6036         <kernel-features.h>.
6037         [__ASSUME_32BITUIDS]: Make code unconditional.
6038         [!__ASSUME_32BITUIDS]: Remove conditional code.
6039         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6040         <kernel-features.h>.
6041         [__ASSUME_32BITUIDS]: Make code unconditional.
6042         [!__ASSUME_32BITUIDS]: Remove conditional code.
6043
6044 2012-05-25  Richard Henderson  <rth@twiddle.net>
6045
6046         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6047         dl_hwcap to ifunc resolver.
6048         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6049         elf_ifunc_invoke.
6050         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6051         dl_hwcap to ifunc resolver.
6052         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6053
6054 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6055
6056         [BZ #14153]
6057         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6058         for |x| <= 2**-26, not 2**-57.
6059         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6060         exception.
6061
6062 2012-05-24  Jeff Law  <law@redhat.com>
6063
6064         * stdio-common/Makefile (tests): Add bug25.
6065         * stdio-common/bug25.c: New test.
6066
6067 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6068
6069         [BZ #13576]
6070         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6071         multiple of MALLOC_ALIGNMENT in size.
6072         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6073
6074 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6075
6076         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6077         Require >= 256.
6078         (FILENAME_MAX): Use macro-int-constant.
6079         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6080         (_IOFBF): Use macro-int-constant.
6081         (_IOLBF): Likewise.
6082         (_IONBF): Likewise.
6083         (SEEK_CUR): Likewise.
6084         (SEEK_END): Likewise.
6085         (SEEK_SET): Likewise.
6086         (TMP_MAX): Likewise.
6087         (EOF): Use macro-int-constant.  Require < 0.
6088         (NULL): Use macro-constant.  Require == 0.
6089         (stdin): Require type to be FILE *.
6090         (stdout): Likewise.
6091         (stderr): Likewise.
6092         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6093         macro-int-constant.
6094         (EXIT_SUCCESS): Likewise.
6095         (NULL): Use macro-constant.  Require == 0.
6096         (RAND_MAX): Use macro-int-constant.
6097         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6098         [C99-based standards] (strtof): Require function.
6099         [C99-based standards] (strtold): Likewise.
6100         [C99-based standards] (strtoll): Likewise.
6101         [C99-based standards] (strtoull): Likewise.
6102         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6103         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6104         [ISO || ISO99 || ISO11] (math.h): Likewise.
6105         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6106         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6107         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6108
6109 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6110
6111         [BZ #14132]
6112         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6113         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6114         * intl/dgettext.c (DCGETTEXT): Likewise.
6115         * intl/gettext.c (DCGETTEXT): Likewise.
6116         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6117         * posix/regex_internal.h (gettext): Likewise.
6118         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6119         Remove declaration.
6120         * include/argz.h (__argz_count_internal)
6121         (__argz_stringify_internal): Remove declaration.
6122         (__argz_count, __argz_stringify): Declare hidden proto.
6123         * intl/dcgettext.c: Remove use of INTDEF.
6124         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6125         * string/argz-stringify.c: Likewise.
6126         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6127         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6128         Declare hidden proto.
6129         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6130         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6131         Declare hidden proto.
6132         * include/stdio.h (__asprintf_internal): Don't declare.
6133         (__asprintf): Don't define as macro.  Declare hidden proto.
6134         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6135         (__fsetlocking): Declare hidden proto.
6136         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6137         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6138         hidden proto.
6139         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6140         (_IO_setlinebuf): Remove use of INTUSE.
6141         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6142         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6143         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6144         Remove declaration.
6145         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6146         (_IO_do_flush): Remove use of INTUSE.
6147         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6148         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6149         (_IO_adjust_column, _IO_least_wmarker)
6150         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6151         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6152         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6153         (_IO_default_doallocate, _IO_wdefault_doallocate)
6154         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6155         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6156         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6157         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6158         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6159         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6160         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6161         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6162         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6163         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6164         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6165         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6166         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6167         proto.
6168         (_IO_flush_all_internal, _IO_adjust_column_internal)
6169         (_IO_default_uflow_internal, _IO_default_finish_internal)
6170         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6171         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6172         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6173         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6174         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6175         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6176         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6177         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6178         (_IO_file_close_internal, _IO_file_close_it_internal)
6179         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6180         (_IO_file_init_internal, _IO_file_attach_internal)
6181         (_IO_file_fopen_internal, _IO_file_read_internal)
6182         (_IO_file_sync_internal, _IO_file_seek_internal)
6183         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6184         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6185         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6186         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6187         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6188         (_IO_list_all_internal, _IO_link_in_internal)
6189         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6190         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6191         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6192         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6193         (_IO_do_write_internal, _IO_padn_internal)
6194         (_IO_getline_info_internal, _IO_getline_internal)
6195         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6196         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6197         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6198         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6199         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6200         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6201         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6202         with libc_hidden_ver, remove use of INTUSE.
6203         * libio/genops.c: Likewise.
6204         * libio/freopen.c: Likewise.
6205         * libio/freopen64.c: Likewise.
6206         * libio/iofclose.c: Likewise.
6207         * libio/iofdopen.c: Likewise.
6208         * libio/iofflush.c: Likewise.
6209         * libio/iofflush_u.c: Likewise.
6210         * libio/iofgets.c: Likewise.
6211         * libio/iofgets_u.c: Likewise.
6212         * libio/iofopen.c: Likewise.
6213         * libio/iofopncook.c: Likewise.
6214         * libio/iofread.c: Likewise.
6215         * libio/iofread_u.c: Likewise.
6216         * libio/ioftell.c: Likewise.
6217         * libio/iofwrite.c: Likewise.
6218         * libio/iogetline.c: Likewise.
6219         * libio/iogets.c: Likewise.
6220         * libio/iogetwline.c: Likewise.
6221         * libio/iopadn.c: Likewise.
6222         * libio/iopopen.c: Likewise.
6223         * libio/ioseekoff.c: Likewise.
6224         * libio/ioseekpos.c: Likewise.
6225         * libio/iosetbuffer.c: Likewise.
6226         * libio/iosetvbuf.c: Likewise.
6227         * libio/ioungetc.c: Likewise.
6228         * libio/ioungetwc.c: Likewise.
6229         * libio/iovdprintf.c: Likewise.
6230         * libio/iovsprintf.c: Likewise.
6231         * libio/iovsscanf.c: Likewise.
6232         * libio/memstream.c: Likewise.
6233         * libio/obprintf.c: Likewise.
6234         * libio/oldfileops.c: Likewise.
6235         * libio/oldiofclose.c: Likewise.
6236         * libio/oldiofdopen.c: Likewise.
6237         * libio/oldiofopen.c: Likewise.
6238         * libio/oldiopopen.c: Likewise.
6239         * libio/oldstdfiles.c: Likewise.
6240         * libio/putc.c: Likewise.
6241         * libio/setbuf.c: Likewise.
6242         * libio/setlinebuf.c: Likewise.
6243         * libio/stdfiles.c: Likewise.
6244         * libio/strops.c: Likewise.
6245         * libio/vasprintf.c: Likewise.
6246         * libio/vscanf.c: Likewise.
6247         * libio/vsnprintf.c: Likewise.
6248         * libio/vswprintf.c: Likewise.
6249         * libio/wfiledoalloc.c: Likewise.
6250         * libio/wfileops.c: Likewise.
6251         * libio/wgenops.c: Likewise.
6252         * libio/wmemstream.c: Likewise.
6253         * libio/wstrops.c: Likewise.
6254         * libio/__fpurge.c: Likewise.
6255         * libio/__fsetlocking.c: Likewise.
6256         * assert/assert.c: Likewise.
6257         * debug/fgets_chk.c: Likewise.
6258         * debug/fgets_u_chk.c: Likewise.
6259         * debug/fread_chk.c: Likewise.
6260         * debug/fread_u_chk.c: Likewise.
6261         * debug/gets_chk.c: Likewise.
6262         * debug/obprintf_chk.c: Likewise.
6263         * debug/vasprintf_chk.c: Likewise.
6264         * debug/vdprintf_chk.c: Likewise.
6265         * debug/vsnprintf_chk.c: Likewise.
6266         * debug/vsprintf_chk.c: Likewise.
6267         * malloc/mtrace.c: Likewise.
6268         * misc/error.c: Likewise.
6269         * misc/syslog.c: Likewise.
6270         * stdio-common/asprintf.c: Likewise.
6271         * stdio-common/fxprintf.c: Likewise.
6272         * stdio-common/getw.c: Likewise.
6273         * stdio-common/isoc99_fscanf.c: Likewise.
6274         * stdio-common/isoc99_scanf.c: Likewise.
6275         * stdio-common/isoc99_vfscanf.c: Likewise.
6276         * stdio-common/isoc99_vscanf.c: Likewise.
6277         * stdio-common/isoc99_vsscanf.c: Likewise.
6278         * stdio-common/printf-prs.c: Likewise.
6279         * stdio-common/printf_fp.c: Likewise.
6280         * stdio-common/printf_fphex.c: Likewise.
6281         * stdio-common/printf_size.c: Likewise.
6282         * stdio-common/putw.c: Likewise.
6283         * stdio-common/scanf.c: Likewise.
6284         * stdio-common/sprintf.c: Likewise.
6285         * stdio-common/tmpfile.c: Likewise.
6286         * stdio-common/vfprintf.c: Likewise.
6287         * stdio-common/vfscanf.c: Likewise.
6288         * stdlib/strfmon_l.c: Likewise.
6289         * sunrpc/openchild.c: Likewise.
6290         * sunrpc/xdr_stdio.c: Likewise.
6291         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6292         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6293
6294 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6295
6296         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6297
6298         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6299         in the third column, to generate for the shared library an IFUNC
6300         that uses _dl_vdso_vsym.
6301         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6302         * Makeconfig (object-suffixes-noshared): New variable.
6303
6304         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6305         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6306         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6307         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6308
6309         [BZ #14132]
6310         * include/sys/time.h (__gettimeofday): Remove macro.
6311         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6312         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6313         Remove INTDEF.
6314         (__gettimeofday): Add libc_hidden_def.
6315         (gettimeofday): Add libc_hidden_weak.
6316         * sysdeps/mach/gettimeofday.c: Likewise.
6317         * sysdeps/posix/gettimeofday.c: Likewise.
6318         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6319         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6320         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6321         (__gettimeofday_internal): Remove strong_alias.
6322         (__gettimeofday): Add libc_hidden_def.
6323         (gettimeofday): Add libc_hidden_weak.
6324         * sysdeps/unix/syscalls.list (gettimeofday):
6325         Remove __gettimeofday_internal alias.
6326
6327 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6328             H.J. Lu  <hongjiu.lu@intel.com>
6329
6330         [BZ #12495]
6331         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6332         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6333         (largebin_index_32_big): New.
6334         (largebin_index): Use it for 16-byte alignment.
6335         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6336         correction with front_misalign.
6337
6338 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6339
6340         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6341         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6342         Likewise.
6343         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6344         Likewise.
6345         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6346         Likewise.
6347         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6348         Likewise.
6349         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6350         Likewise.
6351         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
6352         Likewise.
6353         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
6354         Likewise.
6355         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
6356         Likewise.
6357         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
6358         Likewise.
6359         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
6360         Likewise.
6361         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
6362         Likewise.
6363         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
6364         Likewise.
6365
6366         * scripts/data/c++-types-x32-linux-gnu.data: New file.
6367         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
6368
6369 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6370
6371         [BZ #10846]
6372         [BZ #14036]
6373         * math/libm-test.inc (exp_test): Add test from bug 14036.
6374         (pow_test): Add test from bug 10846.
6375
6376         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
6377         and other flags.
6378         (special_function): Do not include flags in test name.
6379         (parse_args): Likewise.
6380         * sysdeps/i386/fpu/libm-test-ulps: Update.
6381         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6382         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6383         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6385
6386         * math/gen-libm-test.pl (%beautify): Add entries for underflow
6387         exceptions.
6388         * math/libm-test.inc ("Philosophy"): Update comment about
6389         exception testing.
6390         (UNDERFLOW_EXCEPTION): New macro.
6391         (UNDERFLOW_EXCEPTION_OK): Likewise.
6392         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
6393         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
6394         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
6395         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
6396         (INVALID_EXCEPTION_OK): Update value.
6397         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6398         (OVERFLOW_EXCEPTION_OK): Likewise.
6399         (IGNORE_ZERO_INF_SIGN): Likewise.
6400         (test_exceptions): Handle underflow exceptions.
6401         (acos_test): Update for underflow exception expectations.
6402         (cexp_test): Likewise.
6403         (clog_test): Likewise.
6404         (clog10_test): Likewise.
6405         (csqrt_test): Likewise.
6406         (ctan_test): Likewise.
6407         (ctanh_test): Likewise.
6408         (exp_test): Likewise.
6409         (exp10_test): Likewise.
6410         (exp2_test): Likewise.
6411         (expm1_test): Likewise.
6412         (fma_test): Likewise.
6413         (j0_test): Likewise.
6414         (jn_test): Likewise.
6415         (nexttoward_test): Likewise.
6416         (pow_test): Likewise.
6417         (scalbn_test): Likewise.
6418         (scalbln_test): Likewise.
6419         (tan_test): Likewise.
6420         (y1_test): Likewise.
6421         * sysdeps/i386/fpu/libm-test-ulps: Update.
6422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6423
6424 2012-05-23  David S. Miller  <davem@davemloft.net>
6425
6426         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6427         (__libc_sigaction): Remove unused local variables.
6428
6429 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6430
6431         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
6432
6433 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6434
6435         mktime: avoid signed integer overflow
6436         * time/mktime.c (__mktime_internal): Do not mishandle the case
6437         where diff == INT_MIN.
6438
6439         mktime: simplify computation of average
6440         * time/mktime.c (ranged_convert): Use new time_t_avg function
6441         instead of rolling our own (probably-slower) code.
6442
6443         mktime: do not assume signed right shift propagates sign bit
6444         * time/mktime.c (isdst_differ): New static function.
6445         (__mktime_internal): No need to normalize tm_isdst now.
6446         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
6447         tm_isdst values.
6448
6449         mktime: merge another wrapv change from gnulib
6450         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
6451         from some compilers.
6452
6453         mktime: remove incorrect attempt at unusual arithmetics
6454         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
6455         The code didn't really work on such machines anyway.
6456         (TYPE_MINIMUM): Assume two's complement.
6457         (twos_complement_arithmetic): Verify that long_int and time_t
6458         are two's complement (or unsigned, in the latter case).
6459
6460         mktime: check signed shifts on long_int and time_t, too
6461         * time/mktime.c (SHR): Check that shifts work as desired
6462         on the types long_int and time_t too, as SHR is used on
6463         such types.
6464
6465         mktime: do not assume 'long' is wide enough
6466         * time/mktime.c (verify): Move decl up.
6467         (long_int): New type.
6468         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
6469         to remove assumption in the code that 'long' is wide enough to
6470         store year values.  This assumption is not true on x32 and on
6471         some non-glibc platforms.
6472
6473         mktime: merge wrapv change from gnulib
6474         * time/mktime.c (WRAPV): New macro.
6475         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
6476         (guess_time_tm, __mktime_internal): Do not assume that signed
6477         integer overflow wraps around; modern compilers generate code
6478         where this assumption is no longer valid.
6479
6480 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6481
6482         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6483         Replace "jmp L(pseudo_end)" with "ret".
6484         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6485         Likewise.
6486
6487 2012-05-23  Andreas Jaeger  <aj@suse.de>
6488
6489         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
6490         * sysdeps/unix/sysv/linux/poll.c: Remove file.
6491
6492 2012-05-23  Andreas Jaeger  <aj@suse.de>
6493             Maximilian Attems  <max@stro.at>
6494
6495         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
6496         New macros.
6497
6498 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6499
6500         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
6501         code so that pseudo_end is just ret and the stack pointer is
6502         correct also for static library in error case.
6503
6504 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
6505
6506         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
6507         move to syscalls.list.
6508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6512
6513         * manual/install.texi (Running make install): Do not mention Linux
6514         kernel version for which pt_chown is not needed.
6515         (Linux): Do not mention problems with nscd with 2.0 kernels.
6516         * INSTALL: Regenerated.
6517
6518 2012-05-23  Andreas Jaeger  <aj@suse.de>
6519
6520         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
6521         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
6522         macro.
6523         * sysdeps/unix/sysv/linux/s390/bits/mman.h
6524         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6525         * sysdeps/unix/sysv/linux/sh/bits/mman.h
6526         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6527         * sysdeps/unix/sysv/linux/i386/bits/mman.h
6528         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6529         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6530         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6531         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6532         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6533         * sysdeps/unix/sysv/linux/bits/in.h
6534         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6535
6536 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6537
6538         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6539         (PREPARE_VERSION): Just use assert instead, it will be elided
6540         under [NDEBUG] anyway.
6541
6542 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6543
6544         * sysdeps/unix/sysv/linux/Makefile: Include
6545         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6546         (sysdep_routines): Remove sysctl.
6547         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6548         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6549         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6550         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6551         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6552
6553 2012-05-22  Andreas Jaeger  <aj@suse.de>
6554
6555         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6556         that pseudo_end is just ret and the stack pointer is correct also
6557         for static library in error case.
6558
6559 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6560
6561         [BZ #14122]
6562         * nss/nsswitch.c (defconfig_entries): New variable.
6563         (__nss_database_lookup): Don't leak defconfig entries.
6564         (nss_parse_service_list): Don't leak on error paths.
6565         (free_database_entries): New function.
6566         (free_defconfig): New function.
6567         (free_mem): Move common code to free_database_entries.
6568
6569 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6570
6571         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6572         Add arch_prctl.
6573         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6574
6575         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6576         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6577         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6578         New macro.
6579         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6580         (INTERNAL_SYSCALL_TYPES): Likewise.
6581         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6582         (LOAD_REGS_TYPES_[1-6]): Likewise.
6583         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6584         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6585
6586 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6587
6588         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6589         copysignl for GLIBC_2_0.
6590         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6591         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6592         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6593         logbl for GLIBC_2_0.
6594         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6595         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6596
6597 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6598
6599         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6600         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6601
6602         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6603         Use "neg %eax".
6604
6605         * time/mktime.c: Update copyright years.
6606
6607 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6608
6609         mktime: merge comment-quoting-style change from gnulib
6610         * time/mktime.c: Quote 'like this' in comments.
6611         The GNU coding standards suggest that we no longer quote `like this',
6612         as "`" and "'" are typically rendered asymmetrically nowadays.
6613         The typical gnulib style is to quote 'like this' when quoting
6614         code, and "like this" when quoting English.
6615
6616         * time/mktime.c (compile-command): Add "-I.".
6617
6618         mktime: merge mktime-internal.h change from gnulib
6619         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6620
6621         mktime: merge time_r change from gnulib
6622         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6623
6624         mktime: merge DEBUG change from gnulib
6625         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6626         case system <time.h> has a #define.
6627
6628         mktime: merge <sys/types.h> change from gnulib
6629         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6630         since <time.t> is now guaranteed to define time_t.
6631
6632         mktime: merge HAVE_CONFIG_H change from gnulib
6633         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6634
6635 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6636
6637         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6638         Use "neg %eax".
6639
6640         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6641         __rlim_t cast.
6642         (struct rusage): Use anonymous union to pad each field to
6643         __syscall_slong_t.
6644
6645 2012-05-21  David S. Miller  <davem@davemloft.net>
6646
6647         * Makefules (o-iterator): Remove .s cases.
6648         (compile-command.s): Delete.
6649         (COMPILE.s): Delete.
6650         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6651
6652 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6653
6654         * configure.in (libc_cv_predef_stack_protector): Only consider
6655         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6656         * configure: Regenerated.
6657
6658 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6659
6660         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6661         New macro.  Use R*LP on int and pointer.
6662         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6663         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6664         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6665         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6666
6667         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6668         [__WORDSIZE_TIME64_COMPAT32] instead of
6669         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6670         (struct utmp): Likewise.
6671         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6672         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6673         Renamed to ...
6674         (__WORDSIZE_TIME64_COMPAT32): This.
6675         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6676         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6677         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6678         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6679         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6680         (__WORDSIZE_TIME64_COMPAT32): New macro.
6681
6682 2012-05-21  Andreas Jaeger  <aj@suse.de>
6683
6684         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6685         only if [SHARED]. Add prototype for __wcschr_ia32.
6686
6687 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6688
6689         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6690         of %rbp unmolested in the jmp_buf while mangling the low bits.
6691         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6692         unmolested high bits of %rbp while demangling the low bits.
6693         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6694
6695 2012-05-21  Andreas Jaeger  <aj@suse.de>
6696
6697         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6698         * sunrpc/svc_simple.c: Use it for registerrpc.
6699         * sunrpc/xcrypt.c: Use it for passwd2des.
6700
6701         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6702
6703 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6704
6705         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6706         Don't define if [__SYSCALL_WORDSIZE != 32].
6707         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6708         New macro.
6709
6710 2012-05-21  Bruno Haible  <bruno@clisp.org>
6711             Andreas Jaeger  <aj@suse.de>
6712
6713         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6714         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6715         inptr and inend for must_buffer_ch.
6716         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6717         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6718         * stdio-common/Makefile (tests): Remove bug15.
6719         (bug15-ENV): Remove macro.
6720         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6721         anymore.
6722
6723 2012-05-19  Andreas Jaeger  <aj@suse.de>
6724             Roland McGrath  <roland@hack.frob.com>
6725
6726         * manual/contrib.texi: Completely rewritten. It contains now an
6727         alphabetical list of contributors and their contributions.
6728
6729 2012-05-21  Richard Henderson  <rth@twiddle.net>
6730
6731         * misc/getauxval.c (__getauxval): Use unsigned long int.
6732         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6733         (getauxval): Use unsigned long int.
6734
6735 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6736
6737         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6738
6739 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6740
6741         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6742         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6743         __alignof__ (long double).
6744
6745 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6746
6747         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6748
6749 2012-05-20  Richard Henderson  <rth@twiddle.net>
6750
6751         * misc/getauxval.c: New file.
6752         * misc/sys/auxv.h: New file.
6753         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6754         (routines): Add getauxval.
6755         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6756         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6757         * elf/dl-sysdep.c (_dl_auxv): Remove.
6758         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6759         * elf/dl-support.c (_dl_auxv): New variable.
6760         (_dl_aux_init): Initialize it.
6761         * manual/startup.texi (Auxiliary Vector): New node.
6762         * sysdeps/generic/bits/hwcap.h: New file.
6763         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6764         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6765         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6766         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6767         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6768         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6770         Update.
6771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6772         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6773         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6774         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6775         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6776         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6777         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6778         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6779
6780 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6781
6782         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6783
6784 2012-05-19  David S. Miller  <davem@davemloft.net>
6785
6786         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6787
6788 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6789
6790         [BZ #14123]
6791         * math/s_ccosh.c: Include <float.h>
6792         (__ccosh): Avoid internal overflow calculating sinh and cosh
6793         values before multiplying by sin and cos values.
6794         * math/s_ccoshf.c: Likewise.
6795         * math/s_ccoshl.c: Likewise.
6796         * math/s_csin.c: Likewise.
6797         * math/s_csinf.c: Likewise.
6798         * math/s_csinl.c: Likewise.
6799         * math/s_csinh.c: Likewise.
6800         * math/s_csinhf.c: Likewise.
6801         * math/s_csinhl.c: Likewise.
6802         * math/libm-test.inc (ccos_test): Add more tests.
6803         (ccosh_test): Likewise.
6804         (csin_test): Likewise.
6805         (csinh_test): Likewise.
6806         * sysdeps/i386/fpu/libm-test-ulps: Update.
6807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6808
6809 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6810
6811         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6812         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6813
6814         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6815
6816 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6817
6818         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6819         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6820         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6821         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6822         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6823         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6824         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6825         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6826         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6827         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6828         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6829         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6830         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6831         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6832         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6833         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6834         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6835         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6836         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6837         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6838         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6839         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6840         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6841         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6842         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6843         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6844         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6845         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6846         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6847         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6848         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6849
6850 2012-05-18  Andreas Jaeger  <aj@suse.de>
6851
6852         * csu/.gitignore: Delete.
6853
6854 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6855
6856         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6857         (timex): Use __syscall_slong_t.
6858
6859 2012-05-18  Andreas Jaeger  <aj@suse.de>
6860             Carlos O'Donell  <carlos_odonell@mentor.com>
6861
6862         * manual/install.texi (Configuring and compiling): Update
6863         description about files modified in the source directory.
6864         * INSTALL: Regenerated.
6865
6866 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6867
6868         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6869         value.  Use "or" to set return value to -1.
6870         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6871         negate return value.
6872
6873 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6874
6875         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6876         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6877         failure if the compiler has Graphite support disabled.
6878         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6879         Likewise.
6880         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6881         CFLAGS-memmove.c): Likewise.
6882         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6883         Likewise.
6884
6885 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6886
6887         * sysdeps/x86_64/x32/_itoa.h: New file.
6888
6889         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6890         getdents system call only if kernel and user dirents have the
6891         same d_ino and d_off.
6892
6893         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6894         LLONG_MAX != LONG_MAX.
6895         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6896         (_fitoa_word): Likewise.
6897
6898         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6899         years.
6900         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6901         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6902         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6903
6904         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6905         include <bits/wordsize.h>.  Check __x86_64__ instead of
6906         __WORDSIZE.
6907         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6908         if __x86_64__ is defined.  Use anonymous union on fpstate.
6909
6910         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6911         anonymous union.
6912
6913 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6914
6915         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6916         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6917         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6918         Refer to _rtld_local_ro instead of _rtld_global_ro.
6919         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6920         Likewise.
6921         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6922         Likewise.
6923         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6924         Likewise.
6925         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6926         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6927         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6928
6929         * sysdeps/powerpc/powerpc32/dl-machine.c
6930         (__elf_machine_runtime_setup) [PROF]: Don't reference
6931         _dl_prof_resolve.
6932
6933 2012-05-18  Andreas Jaeger  <aj@suse.de>
6934
6935         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6936         function only available for GCCs before 3.4 since GCC 3.4
6937         introduced a builtin.
6938         (lrint): Likewise.
6939         (llrintf): Likewise.
6940         (llrint): Likewise.
6941         (fmaxf): Likewise.
6942         (fmax): Likewise.
6943         (fminf): Likewise.
6944         (fmin): Likewise.
6945         (rint): Likewise.
6946         (rintf): Likewise.
6947         (nearbyint): Likewise.
6948         (nearbyintf): Likewise.
6949         (ceil): Likewise.
6950         (ceilf): Likewise.
6951         (floor): Likewise.
6952         (floorf): Likewise.
6953
6954 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6955
6956         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6957         on both fields and cast pointer to __syscall_ulong_t.
6958
6959         * bits/types.h (__fsword_t): New type.
6960         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6961         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6962         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6963         (__FSWORD_T_TYPE): Likewise.
6964         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6965         (__FSWORD_T_TYPE): Likewise.
6966         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6967         (__FSWORD_T_TYPE): Likewise.
6968         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6969         (__FSWORD_T_TYPE): Likewise.
6970         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6971         __SWORD_TYPE with __fsword_t.
6972         (statfs64): Likewise.
6973
6974 2012-05-17  David S. Miller  <davem@davemloft.net>
6975
6976         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6977
6978 2012-05-17  Andreas Jaeger  <aj@suse.de>
6979
6980         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6981         warning.
6982
6983 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6984
6985         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6986
6987 2012-05-17  Andreas Jaeger  <aj@suse.de>
6988
6989         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6990         when it is used.
6991
6992 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6993
6994         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6995
6996 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6997
6998         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6999         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7000
7001 2012-05-17  Andreas Jaeger  <aj@suse.de>
7002             Carlos O'Donell  <carlos_odonell@mentor.com>
7003
7004         [BZ #14059]
7005         * sysdeps/x86_64/multiarch/init-arch.h
7006         (bit_YMM_Usable): Rename to...
7007         (bit_AVX_Usable): ... this.
7008         (bit_FMA4_Usable): New macro.
7009         (bit_XMM_state): New macro.
7010         (bit_YMM_state): New macro.
7011         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7012         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7013         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7014         (CPUID_OSXSAVE): New macro.
7015         (CPUID_AVX): New macro.
7016         (CPUID_FMA4): New macro.
7017         (index_YMM_Usable): Rename to...
7018         (index_AVX_Usable): ... this.
7019         (HAS_AVX): Use HAS_ARCH_FEATURE.
7020         (HAS_FMA4): Likewise.
7021         (HAS_YMM_USABLE): Remove.
7022         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7023         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7024         are present.
7025         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7026         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7027         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7028         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7029         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7030
7031 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7032
7033         * math/libm-test.c: Support platforms without multiple rounding modes.
7034         * math/bug-nextafter.c: Support platforms without FP exceptions.
7035         * math/bug-nexttoward.c: Likewise.
7036         * math/test-fenv.c: Likewise.
7037         * math/test-misc.c: Likewise.
7038         * stdlib/bug-getcontext.c: Likewise.
7039
7040 2012-05-17  Andreas Jaeger  <aj@suse.de>
7041
7042         * manual/examples/search.c (critter_cmp): Change signature to
7043         avoid warnings.
7044         * manual/string.texi (Collation Functions): Likewise.
7045
7046 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7047
7048         * bits/types.h: Fold copyright years.
7049         * bits/typesizes.h: Likewise.
7050         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7051         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7052         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7053         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7054         * time/time.h: Likewise.
7055
7056 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7057
7058         [BZ #208]
7059         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7060         in instead of returning them.  Return void.
7061         (__libc_mallinfo): Accumulate over all arenas.
7062         (__malloc_stats): Adjust for change in int_mallinfo interface.
7063
7064 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7065
7066         [BZ #10375]
7067         * configure.in (NM): Add AC_CHECK_TOOL for it.
7068         (libc_extra_cflags): New substituted variable.
7069         Check for -fstack-protector being used implicitly.
7070         * configure: Regenerated.
7071         * config.make.in (config-extra-cflags): New variable,
7072         gets @libc_extra_cflags@.
7073         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7074
7075         [BZ #10375]
7076         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7077         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7078         * configure: Regenerated.
7079         * config.make.in (CPPUNDEFS): New substituted variable.
7080         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7081         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7082         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7083
7084 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7085
7086         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7087         (mq_attr): Use __syscall_slong_t.
7088
7089 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7090
7091         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7092         Check __x86_64__ instead of __WORDSIZE.
7093         (_STAT_VER_LINUX): Likewise.
7094         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7095         __syscall_ulong_t and __syscall_slong_t.
7096         (stat64): Likewise.
7097
7098 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7099
7100         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7101
7102 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7103
7104         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7105
7106 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7107
7108         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7109         __syscall_ulong_t.
7110
7111         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7112         include <bits/wordsize.h>.  Check __x86_64__ instead of
7113         __WORDSIZE.
7114         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7115         defined.
7116         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7117
7118         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7119         include <bits/wordsize.h>.  Check __x86_64__ instead of
7120         __WORDSIZE.
7121         (user_regs_struct): Use "__extension__ unsigned long long"
7122         instead of "unsigned long" if __x86_64__ is defined.
7123         (user): Likewise.  Pad after pointer field if __ILP32__ is
7124         defined.
7125
7126 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7127
7128         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7129         versions 5 to 9.
7130         * configure: Regenerated.
7131         * manual/install.texi (texinfo): Increase version requirement to
7132         4.5 or later.
7133         * INSTALL: Regenerated.
7134
7135         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7136
7137 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7138
7139         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7140
7141         * sysdeps/x86_64/x32/ffs.c: New file.
7142
7143         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7144         __syscall_ulong_t.
7145         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7146         defined.  Use __syscall_ulong_t.
7147         (shminfo): Use __syscall_ulong_t.
7148         (shm_info): Likewise.
7149
7150         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7151         __syscall_ulong_t.
7152
7153         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7154         <bits/wordsize.h>.
7155         (msgqnum_t): Use __syscall_ulong_t.
7156         (msglen_t): Likewise.
7157         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7158         __syscall_ulong_t.
7159
7160         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7161         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7162
7163         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7164
7165         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7166         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7167
7168         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7169         __syscall_slong_t.
7170
7171         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7172         include <bits/wordsize.h>.  Check __x86_64__ instead of
7173         __WORDSIZE.
7174
7175         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7176         "unsigned long long int" if __x86_64__ is defined.
7177         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7178
7179         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7180         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7181         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7182
7183         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7184         <stdint.h>.
7185         (GET_PC): Cast to uintptr_t first.
7186         (GET_FRAME): Likewise.
7187         (GET_STACK): Likewise.
7188
7189         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7190         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7191         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7192         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7193         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7194         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7195         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7196         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7197         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7198         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7199         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7200         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7201         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7202         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7203         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7204         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7205         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7206         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7207         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7208         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7209         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7210         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7211         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7212         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7213         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7214         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7215         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7216         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7217         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7218
7219 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7220
7221         * Makerules (+depfiles): Also collect depfiles from .oS in
7222         $(extra-objs).
7223         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7224         .oS, $(libnldbl-routines)).
7225
7226         * Makerules (native-compile-mkdep-flags): Define.
7227         * sunrpc/Makefile (extra-objs): Add $(addprefix
7228         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7229         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7230         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7231         calling $(make-target-directory).
7232
7233 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7234
7235         * bits/types.h (__snseconds_t): Removed.
7236         * time/time.h (struct timespec): Replace __snseconds_t with
7237         __syscall_slong_t.
7238         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7239         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7240         Likewise.
7241         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7242         (__SNSECONDS_T_TYPE): Likewise.
7243         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7244         (__SNSECONDS_T_TYPE): Likewise.
7245         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7246         (__SNSECONDS_T_TYPE): Likewise.
7247
7248 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7249
7250         * sysdeps/mach/hurd/bits/typesizes.h
7251         (__SYSCALL_SLONG_TYPE): New macro.
7252         (__SYSCALL_ULONG_TYPE): Likewise.
7253
7254 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7255
7256         * bits/types.h (__syscall_slong_t): New type.
7257         (__syscall_ulong_t): Likewise.
7258
7259         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7260         (__SYSCALL_ULONG_TYPE): Likewise.
7261         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7262         (__SYSCALL_SLONG_TYPE): Likewise.
7263         (__SYSCALL_ULONG_TYPE): Likewise.
7264         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7265         (__SYSCALL_SLONG_TYPE): Likewise.
7266         (__SYSCALL_ULONG_TYPE): Likewise.
7267         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7268         (__SYSCALL_SLONG_TYPE): Likewise.
7269         (__SYSCALL_ULONG_TYPE): Likewise.
7270
7271 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7272
7273         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7274         Add sigaltstack-offsets.sym.
7275         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7276         <sigaltstack-offsets.h>.
7277         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7278         longjmp_msg pointer.
7279         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7280         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7281         signal stack.
7282         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7283
7284 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7285
7286         * elf/stackguard-macros.h: Remove file.
7287         * sysdeps/generic/stackguard-macros.h: New file.
7288         * sysdeps/i386/stackguard-macros.h: Likewise.
7289         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7290         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7291         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7292         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7293         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7294         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7295         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7296         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7297         <elf/stackguard-macros.h>.
7298
7299         [BZ #14109]
7300         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7301         __aligned__ in attribute.
7302         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7303         (gregset_t): Likewise.
7304
7305 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7306
7307         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7308         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7309         * sysdeps/x86_64/x32/Implies-after: New file.
7310
7311 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7312
7313         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7314         and access return value for _dl_profile_fixup.  Use R10_LP to
7315         load frame size.
7316
7317 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7318
7319         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7320
7321 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7322
7323         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7324         * sysdeps/x86_64/x32/sysdep.h: New file.
7325
7326 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7327
7328         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7329         * sysdeps/x86_64/setjmp.S: Likewise.
7330
7331 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7332
7333         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7334         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7335         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7336         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7337         remove unused global constant.
7338
7339 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7340
7341         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7342         include of <not-cancel.h>.
7343
7344 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7345
7346         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7347
7348 2012-05-15  Jeff Law  <law@redhat.com>
7349             Andreas Jaeger  <aj@suse.de>
7350
7351         [BZ #13594]
7352         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
7353         out from...
7354         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
7355         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
7356         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
7357         code changing __hst_map_handle.map.
7358
7359 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7360
7361         * configure.in (sysnames): Look for Implies-before and Implies-after
7362         files.
7363         * configure: Regenerated.
7364
7365 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7366
7367         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
7368         8-byte data alignment with LP_SIZE alignment.
7369
7370 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7371
7372         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
7373         into R10_LP.
7374
7375 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7376
7377         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
7378
7379 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7380
7381         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
7382         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
7383         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
7384         Likewise.
7385         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
7386
7387 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7388
7389         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
7390         (stackinfo_sub_sp): Likewise.
7391
7392 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7393
7394         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
7395         RAX_LP.
7396
7397 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7398
7399         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
7400         into R*_LP.
7401
7402 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7403
7404         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
7405         sizes into R*_LP.
7406
7407 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7408
7409         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
7410
7411 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7412
7413         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
7414         into R11_LP and load __x86_64_shared_cache_size_half into
7415         R8_LP.
7416
7417 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7418
7419         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
7420         R8_LP.
7421
7422 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7423
7424         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
7425         logb for POWER7.
7426         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
7427         logbf for POWER7.
7428         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
7429         logbl for POWER7.
7430         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
7431         powerpc32/power7/fpu/s_logb.c via #include.
7432         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
7433         powerpc32/power7/fpu/s_logbf.c via #include.
7434         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
7435         powerpc32/power7/fpu/s_logbl.c via #include.
7436
7437 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7438
7439         * README.libm: Remove file.
7440
7441 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7442
7443         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
7444         count for x32.  Use R*_LP and omit operand-size suffix.
7445
7446 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7447
7448         * shlib-versions: Move x86_64-.*-linux.* entries to ...
7449         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
7450         * sysdeps/x86_64/x32/shlib-versions: New file.
7451
7452 2012-05-14  Roland McGrath  <roland@hack.frob.com>
7453
7454         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
7455         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
7456         Use _dl_fatal_printf instead.
7457
7458 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7459
7460         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
7461         set if not set by the user.  Do not allow for being unset.
7462         * sysdeps/unix/sysv/linux/configure: Regenerated.
7463
7464 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7465
7466         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
7467         the `q' suffix from lea and replace .quad with ASM_ADDR.
7468
7469 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7470
7471         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
7472         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
7473         instead of $17.
7474         (PTR_DEMANGLE): Likewise.
7475
7476 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7477
7478         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
7479         (LP_OP): Likewise.
7480         (ASM_ADDR): Likewise.
7481         (RAX_LP): Likewise.
7482         (RBP_LP): Likewise.
7483         (RBX_LP): Likewise.
7484         (RCX_LP): Likewise.
7485         (RDI_LP): Likewise.
7486         (RSI_LP): Likewise.
7487         (RSP_LP): Likewise.
7488         (R8_LP): Likewise.
7489         (R9_LP): Likewise.
7490         (R10_LP): Likewise.
7491         (R10_LP): Likewise.
7492         (R11_LP): Likewise.
7493         (R12_LP): Likewise.
7494         (R13_LP): Likewise.
7495         (R14_LP): Likewise.
7496         (R15_LP): Likewise.
7497
7498 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7499
7500         * sysdeps/x86_64/x32/dl-machine.h: New file.
7501
7502 2012-05-14  Andreas Jaeger  <aj@suse.de>
7503
7504         * manual/Makefile (subdir): Remove export of subdir.
7505         (all): Remove target.
7506         (.PHONY): Remove all from list.
7507         (mkinstalldirs): Remove.
7508         (.PHONY): Remove installdirs from list.
7509         ($(inst_infodir)/libc.info): Use make-target-directory.
7510         (installdirs): Remove.
7511         (subdir_%): Remove.
7512         (glibc-targets): Remove.
7513         (lib): Remove.
7514         (stubs): Remove.
7515         ($(objpfx)stubs ../po/manual.pot): Remove.
7516         ($(objpfx)stamp%): Remove.
7517         (make-target-directory): Remove.
7518         (subdir_install): Remove.
7519         (routines): Remove.
7520         (aux): Remove.
7521         (sources): Remove.
7522         (objects): Remove.
7523         (headers): Remove.
7524
7525         [BZ #13750]
7526         * manual/.gitignore: Remove, it's not needed anymore.
7527         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
7528         all files in it.
7529         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7530         directory.
7531         (texis): Renamed to $(objpfx)texis.
7532         (texis-path): New, contains path to generated files.
7533         (chapters.%): Use texis-path for complete path, add extra argument
7534         libc-texinfo.sh.
7535         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7536         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7537         (summary,texi, stamp-summary): Use complete path of
7538         files. Generate files in build dir.
7539         (dir-add.texi): Build in build dir.
7540         (libm-err.texi,stamp-libm-err): Likewise.
7541         (version.texi, stamp-version): Likewise.
7542         (.%c.texi): Likewise.
7543         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7544         (mostlyclean): Remove target.
7545         (realclean): Remove target.
7546         (generated): Add new variable with contents from mostlyclean and
7547         realclean, remove entries duplicated in common-mostlyclean, add
7548         stamp-libm-err and stamp-version.
7549         (generated-dirs): Add libc directory.
7550         ($(inst_infodir)/libc.info): Install files from build dir.
7551
7552         * manual/install.texi (Configuring and compiling): Adjust since
7553         the info files are not part of the tar ball anymore.
7554
7555 2012-05-14  Andreas Jaeger  <aj@suse.de>
7556
7557         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7558         variable.
7559
7560 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7561
7562         [BZ #13717]
7563         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7564         to 2.2.0 where earlier.
7565         * sysdeps/unix/sysv/linux/configure: Regenerated.
7566         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7567         Remove conditional code.
7568         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7569         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7570         Remove conditional code.
7571         [!__NR_lchown]: Likewise.
7572         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7573         [__NR_lchown]: Likewise.
7574         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7575         comment referencing __ASSUME_LCHOWN_SYSCALL.
7576         * sysdeps/unix/sysv/linux/i386/sigaction.c
7577         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7578         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7579         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7580         Remove conditional code.
7581         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7582         (__protocol_available): Remove #if 0 code.
7583         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7584         conditional code.
7585         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7586         * sysdeps/unix/sysv/linux/kernel-features.h
7587         (__ASSUME_GETCWD_SYSCALL): Don't define.
7588         (__ASSUME_REALTIME_SIGNALS): Likewise.
7589         (__ASSUME_PREAD_SYSCALL): Likewise.
7590         (__ASSUME_PWRITE_SYSCALL): Likewise.
7591         (__ASSUME_POLL_SYSCALL): Likewise.
7592         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7593         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7594         non-SPARC.
7595         (__ASSUME_SIOCGIFNAME): Don't define.
7596         (__ASSUME_MSG_NOSIGNAL): Likewise.
7597         (__ASSUME_SENDFILE): Define unconditionally.
7598         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7599         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7600         conditional code.
7601         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7602         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7603         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7604         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7605         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7606         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7607         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7609         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7610         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7612         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7613         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7615         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7616         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7618         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7619         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7621         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7622         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7624         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7625         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7627         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7628         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7630         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7631         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7632         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7633         Remove conditional code.
7634         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7635         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7636         Remove conditional code.
7637         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7638         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7639         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7640         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7641         Remove conditional code.
7642         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7643         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7644         Remove conditional code.
7645         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7646         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7647         Remove conditional code.
7648         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7649         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7650         Remove conditional code.
7651         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7652         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7653         Remove conditional code.
7654         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7655         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7656         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7657         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7658         * sysdeps/unix/sysv/linux/sigaction.c
7659         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7660         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7661         * sysdeps/unix/sysv/linux/sigpending.c
7662         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7663         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7664         * sysdeps/unix/sysv/linux/sigprocmask.c
7665         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7666         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7667         * sysdeps/unix/sysv/linux/sigsuspend.c
7668         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7669         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7670         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7671         (__libc_missing_rt_sigs): Remove.
7672         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7673         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7674         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7675         Remove conditional code.
7676         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7677         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7678         return 1.
7679         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7680         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7681         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7682         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7683
7684 2012-05-14  Andreas Jaeger  <aj@suse.de>
7685
7686         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7687         it's not used in glibc.
7688         (__coshm1): Likewise.
7689         (__acosh1p): Likewise.
7690         (__sgn): Likewise.
7691
7692         * manual/string.texi (Copying and Concatenation): Add missing
7693         variable in concat example.
7694         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7695
7696 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7697
7698         [BZ #14103]
7699         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7700         __builtin_clzl with __builtin_clzll.
7701
7702 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7703
7704         [BZ #14104]
7705         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7706         libc_freeres_ptr.
7707
7708 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7709
7710         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7711         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7712         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7713         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7714
7715 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7716
7717         * NEWS: Update ia64 info.
7718
7719 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7720
7721         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7722         used as bcopy.
7723
7724 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7725
7726         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7727         * sysdeps/unix/syscalls.list (dup3): Likewise.
7728         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7729         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7730
7731 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7732
7733         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7734         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7735
7736 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7737
7738         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7739         thread pointer.
7740         (TLS_IE): Use mov/add instead of movq/addq to load thread
7741         pointer.
7742         (TLS_GD_PREFIX): New.
7743         (TLS_GD): Use it.
7744
7745 2012-05-11  David S. Miller  <davem@davemloft.net>
7746
7747         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7748         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7749         (_FPU_SETCW): Likewise.
7750
7751 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7752
7753         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7754         is 32-byte aligned.
7755
7756 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7757
7758         [BZ #11837]
7759         * iconvdata/gb18030.c: Update tables.
7760         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7761         characters specially.
7762         (BODY for TO_LOOP): Add encoding of missing ranges.
7763
7764 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7765
7766         [BZ #13673]
7767         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7768         * sysdeps/mach/hurd/dup3.c: Likewise.
7769         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7770         * sysdeps/powerpc/memmove.c:: Likewise.
7771
7772 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7773
7774         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7775         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7776
7777 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7778
7779         * elf/elf.h (R_X86_64_RELATIVE64): New.
7780         (R_X86_64_NUM): Updated.
7781         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7782         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7783         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7784         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7785         tst-quad1pie tst-quad2pie
7786         (modules-names): Add tst-quadmod1 tst-quadmod2.
7787         ($(objpfx)tst-quad1): New dependency.
7788         ($(objpfx)tst-quad2): Likewise.
7789         ($(objpfx)tst-quad1pie): Likewise.
7790         ($(objpfx)tst-quad2pie): Likewise.
7791         * sysdeps/x86_64/tst-quad1.c: New file.
7792         * sysdeps/x86_64/tst-quad1pie.c: New file.
7793         * sysdeps/x86_64/tst-quad2.c: Likewise.
7794         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7795         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7796         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7797         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7798         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7799
7800 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7801
7802         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7803         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7804         * streams/stropts.h (t_scalar_t): Define type.
7805
7806         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7807         (_PATH_PRESERVE): Set to "/var/lib".
7808         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7809
7810         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7811         instead of int.
7812
7813         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7814         if __dir_mkfile succeeded.
7815
7816         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7817         checking for _hurd_dtablesize.  Unlock it right after having
7818         finished _hurd_dtable allocation.
7819
7820 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7821
7822         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7823         * sysdeps/mach/hurd/configure: Regenerated.
7824         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7825         special-casing to...
7826         * sysdeps/gnu/configure.in: ... this new file.
7827         * sysdeps/unix/sysv/linux/configure: Regenerated.
7828         * sysdeps/gnu/configure: New generated file.
7829
7830         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7831         for Linux: use nsec instead of usec, as well as:
7832         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7833         members of type struct timespec.
7834         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7835         New macros.
7836         (struct stat64): Likewise.
7837         (_STATBUF_ST_NSEC): New macro.
7838         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7839
7840         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7841         __strtoul_internal rather than strtoul.
7842
7843 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7844
7845         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7846         and reject them.
7847
7848 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7849
7850         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7851         which preserves existing values.
7852         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7853
7854 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7855
7856         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7857         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7858         greater than FD_SETSIZE.
7859
7860 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7861
7862         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7863         allocated, call __vm_protect to finish enabling the existing space, and
7864         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7865         allocate the remainder.
7866
7867 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7868
7869         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7870         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7871
7872 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7873
7874         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7875         sysdeps/mach/hurd/readlink.c.
7876
7877         * posix/tst-sysconf.c (posix_options): Only use
7878         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7879         _POSIX_SYNCHRONIZED_IO when they are defined
7880         * sysdeps/mach/hurd/bits/posix_opt.h:
7881         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7882         (_XOPEN_REALTIME): Undefine macro.
7883         (_XOPEN_REALTIME_THREADS): Undefine macro.
7884         (_XOPEN_SHM): Undefine macro.
7885         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7886         macro to -1.
7887         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7888         macro to -1.
7889         (_POSIX_ASYNC_IO): Undefine macro.
7890         (_POSIX_PRIORITIZED_IO): Undefine macro.
7891         (_POSIX_SPIN_LOCKS): Define macro to -1.
7892
7893         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7894         SA_NODEFER, SA_RESETHAND.
7895         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7896         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7897         F_DUPFD_CLOEXEC.
7898
7899 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7900
7901         * elf/Makefile (pldd-modules): Define unconditionally.
7902
7903 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7904
7905         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7906
7907 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7908
7909         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7910         Return ENOENT when name is empty.
7911         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7912
7913 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7914
7915         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7916
7917         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7918
7919 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7920
7921         Fix mlock in all cases except non-readable pages.
7922         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7923         instead of VM_PROT_ALL as parameter to __vm_wire function.
7924
7925         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7926         (__mkdir): When path is `/', just fail with EEXIST.
7927         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7928
7929 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7930
7931         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7932         <sys/uio.h> (for writev).
7933         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7934         and <sys/param.h> (for MIN).
7935
7936 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7937
7938         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7939         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7940         if interrupted.
7941
7942 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7943
7944         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7945         Depend on against $(link-rpcuserlibs).
7946
7947 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7948
7949         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7950         (__libc_stack_end): Do not use attribute_relro.
7951         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7952         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7953         to libthread-provided value.
7954         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7955         attribute_relro.
7956
7957 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7958
7959         [BZ #3748]
7960         * bits/libc-lock.h (__libc_once_get): New macro.
7961         * sysdeps/mach/bits/libc-lock.h: Likewise.
7962         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7963         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7964         instead of using implementation details.
7965
7966         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7967         * libio/freopen.c: Likewise.
7968         * libio/freopen64.c: Likewise.
7969         * misc/syslog.c: Likewise.
7970         * nscd/connections.c: Likewise.
7971         * nscd/netgroupcache.c: Likewise.
7972         * sysdeps/posix/getcwd.c: Likewise.
7973
7974 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7975
7976         * math/w_ilogbf.c: Add #include <limits.h>.
7977
7978 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7979
7980         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7981         path instead of returning without unlocking.
7982
7983         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7984         immediate-write ioctls.
7985         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7986
7987 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7988
7989         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7990         __builtin_frame_address instead of making assumptions about the
7991         location of the return address relative to DATA.  Force early load of
7992         the return address.
7993         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7994         __builtin_frame_address.
7995
7996         dup3 for GNU Hurd.
7997         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7998         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7999         implement dup3 and do some further code clean-ups.
8000         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8001         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8002
8003 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8004
8005         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8006
8007         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8008         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8009         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8010         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8011         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8012         d->port.lock.
8013
8014         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8015         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8016         when handler == SIG_ERR, not when handler != SIG_ERR.
8017
8018 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8019
8020         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8021         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8022         definitions.
8023
8024         accept4 for GNU Hurd.
8025         * include/sys/socket.h (__libc_accept4): New prototype.
8026         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8027         to implement __libc_accept4.
8028         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8029         __libc_accept4.
8030         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8031
8032         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8033         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8034         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8035         signal-defines.sym.
8036
8037 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8038
8039         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8040
8041 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8042
8043         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8044         assertion on O_CLOEXEC flag.
8045         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8046         * hurd/intern-fd.c: Likewise.
8047         * hurd/port2fd.c: Likewise.
8048
8049 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8050
8051         [BZ #3906]
8052         * bits/in.h (IPV6_PKTINFO): Define new macro.
8053         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8054
8055 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8056
8057         [BZ #13954]
8058         [BZ #13955]
8059         [BZ #13956]
8060         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8061         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8062         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8063         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8064         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8065         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8066         * math/libm-test.inc (logb_test) : Additional logb tests.
8067
8068 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8069             Andreas Jaeger  <aj@suse.de>
8070
8071         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8072         * configure: Regenerated.
8073         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8074         * config.make.in (link-obsolete-rpc): New substituted variable.
8075         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8076         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8077         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8078         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8079         so that libc.a contains the symbols.
8080         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8081         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8082         * sunrpc/auth_none.c: Likewise.
8083         * sunrpc/auth_unix.c: Likewise.
8084         * sunrpc/authdes_prot.c: Likewise.
8085         * sunrpc/authuxprot.c: Likewise.
8086         * sunrpc/clnt_gen.c: Likewise.
8087         * sunrpc/clnt_perr.c: Likewise.
8088         * sunrpc/clnt_raw.c: Likewise.
8089         * sunrpc/clnt_simp.c: Likewise.
8090         * sunrpc/clnt_tcp.c: Likewise.
8091         * sunrpc/clnt_udp.c: Likewise.
8092         * sunrpc/clnt_unix.c: Likewise.
8093         * sunrpc/des_crypt.c: Likewise.
8094         * sunrpc/des_soft.c: Likewise.
8095         * sunrpc/get_myaddr.c: Likewise.
8096         * sunrpc/key_call.c: Likewise.
8097         * sunrpc/key_prot.c: Likewise.
8098         * sunrpc/netname.c: Likewise.
8099         * sunrpc/pm_getmaps.c: Likewise.
8100         * sunrpc/pm_getport.c: Likewise.
8101         * sunrpc/pmap_clnt.c: Likewise.
8102         * sunrpc/pmap_prot.c: Likewise.
8103         * sunrpc/pmap_prot2.c: Likewise.
8104         * sunrpc/pmap_rmt.c: Likewise.
8105         * sunrpc/publickey.c: Likewise.
8106         * sunrpc/rpc_cmsg.c: Likewise.
8107         * sunrpc/rpc_common.c: Likewise.
8108         * sunrpc/rpc_dtable.c: Likewise.
8109         * sunrpc/rpc_prot.c: Likewise.
8110         * sunrpc/rpc_thread.c: Likewise.
8111         * sunrpc/rtime.c: Likewise.
8112         * sunrpc/svc.c: Likewise.
8113         * sunrpc/svc_auth.c: Likewise.
8114         * sunrpc/svc_raw.c: Likewise.
8115         * sunrpc/svc_run.c: Likewise.
8116         * sunrpc/svc_tcp.c: Likewise.
8117         * sunrpc/svc_udp.c: Likewise.
8118         * sunrpc/svc_unix.c: Likewise.
8119         * sunrpc/svcauth_des.c: Likewise.
8120         * sunrpc/xcrypt.c: Likewise.
8121         * sunrpc/xdr.c: Likewise.
8122         * sunrpc/xdr_array.c: Likewise.
8123         * sunrpc/xdr_float.c: Likewise.
8124         * sunrpc/xdr_intXX_t.c: Likewise.
8125         * sunrpc/xdr_mem.c: Likewise.
8126         * sunrpc/xdr_rec.c: Likewise.
8127         * sunrpc/xdr_ref.c: Likewise.
8128         * sunrpc/xdr_sizeof.c: Likewise.
8129         * sunrpc/xdr_stdio.c: Likewise.
8130
8131 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8132
8133         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8134         change.  Update copyright years.
8135
8136 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8137
8138         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8139
8140 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8141             Joseph Myers  <joseph@codesourcery.com>
8142             Paul Pluzhnikov  <ppluzhnikov@google.com>
8143
8144         [BZ #14012]
8145         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8146         requiring rpcgen.
8147         [cross-compiling] (extra-libs): Likewise.
8148         [cross-compiling] (extra-libs-others): Likewise.
8149         [cross-compiling] (librpcsvc-routines): Likewise.
8150         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8151         [cross-compiling] (omit-deps): Likewise.
8152         (sunrpc-CPPFLAGS): New variable.
8153         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8154         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8155         (cross-rpcgen-objs): New variable.
8156         (extra-objs): Append $(cross-rpcgen-objs).
8157         ($(cross-rpcgen-objs)): New rule.
8158         ($(objpfx)cross-rpcgen): Likewise.
8159         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8160         comment.
8161         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8162         ($(objpfx)x%.stmp): Likewise.
8163         * sunrpc/proto.h [IS_IN_build] (_): Define.
8164         [IS_IN_build] (_libc_intl_domainname): Likewise.
8165
8166 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8167
8168         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8169         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8170         and R_X86_64_TPOFF64.
8171
8172 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8173
8174         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8175         sysdeps/unix/sysv/syscalls.list.
8176         (stime): Likewise.
8177         (utime): Likewise.
8178         * sysdeps/unix/sysv/syscalls.list: Remove file.
8179
8180 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8181
8182         [BZ #3440]
8183         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8184         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8185         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8186         (__LC_IDENTIFICATION): Make these macros useful in #if
8187         expressions, as required by C99.
8188
8189 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8190
8191         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8192         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8193         after this.
8194
8195 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8196
8197         * stdlib/longlong.h: Updated from GCC.
8198
8199 2012-05-09  Andreas Jaeger  <aj@suse.de>
8200
8201         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8202         default is first entry.
8203         (run_mode): Set type.
8204         (main): Remove informal message about syslog.
8205         (options): Fix typo.
8206
8207         [BZ #14053]
8208         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8209         to asm.
8210         (lrint): Likewise.
8211         (llrintf): Likewise.
8212         (llrint): Likewise.
8213         (rint): Likewise.
8214         (rintf): Likewise.
8215         (nearbyint): Likewise.
8216         (nearbyintf): Likewise.
8217
8218 2012-05-09  Andreas Jaeger  <aj@suse.de>
8219             Pedro Alves  <palves@redhat.com>
8220
8221         * nscd/nscd.c (run_mode): Use enum.
8222         (main): Cleanup coding style issue.
8223
8224 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8225             Andreas Jaeger  <aj@suse.de>
8226
8227         * nscd/nscd.c (go_background): Replaced with...
8228         (run_mode): ... this.
8229         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8230         (options): Add -F --foreground.
8231         (main): Implement it.
8232         (parse_opt): Parse it.
8233
8234 2012-05-09  Andreas Jaeger  <aj@suse.de>
8235
8236         [BZ #14083]
8237         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8238         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8239         -Wconversion warning.
8240         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8241         Likewise.
8242
8243 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8244
8245         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8246         == 0.
8247         (LC_ALL): Use macro-int-constant.
8248         (LC_COLLATE): Likewise.
8249         (LC_CTYPE): Likewise.
8250         (LC_MESSAGES): Likewise.
8251         (LC_MONETARY): Likewise.
8252         (LC_NUMERIC): Likewise.
8253         (LC_TIME): Likewise.
8254         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8255         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8256         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8257         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8258         Specify type.
8259         [C99-based standards] (float_t): Expect type.
8260         [C99-based standards] (double_t): Expect type.
8261         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8262         type.
8263         [C99-based standards] (HUGE_VALL): Likewise.
8264         [C99-based standards] (INFINITY): Likewise.
8265         [C99-based standards] (NAN): Likewise.
8266         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8267         [C99-based standards] (FP_NAN): Likewise.
8268         [C99-based standards] (FP_NORMAL): Likewise.
8269         [C99-based standards] (FP_SUBNORMAL): Likewise.
8270         [C99-based standards] (FP_ZERO): Likewise.
8271         [C99-based standards] (FP_FAST_FMA): Use
8272         optional-macro-int-constant.  Specify type.  Require == 1.
8273         [C99-based standards] (FP_FAST_FMAF): Likewise.
8274         [C99-based standards] (FP_FAST_FMAL): Likewise.
8275         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8276         [C99-based standards] (FP_ILOGBNAN): Likewise.
8277         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8278         Specify type.
8279         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8280         [C99-based standards] (math_errhandling): Specify type.
8281         [ISO99 || ISO11] (signgam): Do not allow.
8282         [non-C99-based standards] (copysignf): Do not allow.
8283         [non-C99-based standards] (exp2f): Likewise.
8284         [non-C99-based standards] (log2f): Likewise.
8285         [non-C99-based standards] (modff): Allow.
8286         [non-C99-based standards] (erff): Do not allow.
8287         [non-C99-based standards] (erfcf): Likewise.
8288         [non-C99-based standards] (gammaf): Likewise.
8289         [non-C99-based standards] (hypotf): Likewise.
8290         [non-C99-based standards] (j0f): Likewise.
8291         [non-C99-based standards] (j1f): Likewise.
8292         [non-C99-based standards] (jnf): Likewise.
8293         [non-C99-based standards] (lgammaf): Likewise.
8294         [non-C99-based standards] (tgammaf): Likewise.
8295         [non-C99-based standards] (y0f): Likewise.
8296         [non-C99-based standards] (y1f): Likewise.
8297         [non-C99-based standards] (ynf): Likewise.
8298         [non-C99-based standards] (isnanf): Likewise.
8299         [non-C99-based standards] (acoshf): Likewise.
8300         [non-C99-based standards] (asinhf): Likewise.
8301         [non-C99-based standards] (atanhf): Likewise.
8302         [non-C99-based standards] (cbrtf): Likewise.
8303         [non-C99-based standards] (expm1f): Likewise.
8304         [non-C99-based standards] (ilogbf): Likewise.
8305         [non-C99-based standards] (log1pf): Likewise.
8306         [non-C99-based standards] (logbf): Likewise.
8307         [non-C99-based standards] (nextafterf): Likewise.
8308         [non-C99-based standards] (remainderf): Likewise.
8309         [non-C99-based standards] (rintf): Likewise.
8310         [non-C99-based standards] (scalbf): Likewise.
8311         [non-C99-based standards] (copysignl): Likewise.
8312         [non-C99-based standards] (exp2l): Likewise.
8313         [non-C99-based standards] (log2l): Likewise.
8314         [non-C99-based standards] (modfl): Allow.
8315         [non-C99-based standards] (erfl): Do not allow.
8316         [non-C99-based standards] (erfcl): Likewise.
8317         [non-C99-based standards] (gammal): Likewise.
8318         [non-C99-based standards] (hypotl): Likewise.
8319         [non-C99-based standards] (j0l): Likewise.
8320         [non-C99-based standards] (j1l): Likewise.
8321         [non-C99-based standards] (jnl): Likewise.
8322         [non-C99-based standards] (lgammal): Likewise.
8323         [non-C99-based standards] (tgammal): Likewise.
8324         [non-C99-based standards] (y0l): Likewise.
8325         [non-C99-based standards] (y1l): Likewise.
8326         [non-C99-based standards] (ynl): Likewise.
8327         [non-C99-based standards] (isnanl): Likewise.
8328         [non-C99-based standards] (acoshl): Likewise.
8329         [non-C99-based standards] (asinhl): Likewise.
8330         [non-C99-based standards] (atanhl): Likewise.
8331         [non-C99-based standards] (cbrtl): Likewise.
8332         [non-C99-based standards] (expm1l): Likewise.
8333         [non-C99-based standards] (ilogbl): Likewise.
8334         [non-C99-based standards] (log1pl): Likewise.
8335         [non-C99-based standards] (logbl): Likewise.
8336         [non-C99-based standards] (nextafterl): Likewise.
8337         [non-C99-based standards] (remainderl): Likewise.
8338         [non-C99-based standards] (rintl): Likewise.
8339         [non-C99-based standards] (scalbl): Likewise.
8340         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8341         [non-C99-based standards] (FP_*): Do not allow.
8342         [C99-based standards] (FP_*): Change to
8343         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8344         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8345         allow.
8346         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8347         (SIG_ERR): Likewise.
8348         [X/Open-based standards] (SIG_HOLD): Likewise.
8349         (SIG_IGN): Likewise.
8350         (SIGABRT): Use macro-int-constant.  Specify type.  Require
8351         positive value.
8352         (SIGFPE): Likewise.
8353         (SIGILL): Likewise.
8354         (SIGINT): Likewise.
8355         (SIGSEGV): Likewise.
8356         (SIGTER): Likewise.
8357         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
8358         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
8359         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
8360         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
8361         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
8362         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
8363         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
8364         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
8365         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
8366         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
8367         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
8368         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
8369         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
8370         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
8371         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
8372         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
8373         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
8374         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
8375         [X/Open-based standards] (SIGTRAP): Likewise.
8376         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
8377         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
8378         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
8379         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
8380         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8381         allow.
8382
8383 2012-05-08  Ian Wienand  <ianw@vmware.com>
8384
8385         [BZ #14080]
8386         * time/tzset.c (__tzset_parse_tz): Update default rules for
8387         daylight time changes in the Energy Policy Act of 2005.
8388
8389 2012-05-09  Andreas Jaeger  <aj@suse.de>
8390
8391         [BZ #13983]
8392         * elf/ldconfig.c (parse_conf): Change string to make clear that
8393         ldconfig only issued a warning if ld.so.conf does not exist.
8394
8395 2012-05-08  David S. Miller  <davem@davemloft.net>
8396
8397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
8398         movxtod instead of popping the value on the stack.
8399
8400         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8401
8402 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
8403
8404         * config.h.in: Add HAVE_ARM_PCS_VFP.
8405
8406 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
8407
8408         [BZ #13979]
8409         * include/features.h: Warn if user requests __FORTIFY_SOURCE
8410         checking but the checks are disabled for any reason.
8411
8412 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8413
8414         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
8415         and ELF64_R_TYPE with ELFW(R_TYPE).
8416
8417 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
8418
8419         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
8420         (ulimit): Likewise.
8421
8422         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
8423         (settimeofday): Likewise.
8424
8425 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
8426
8427         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
8428         a struct th_u2 inside the union, and move tu_block/tu_code into
8429         a new th_u3 union of tu_block/tu_code inside of that.  Move
8430         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
8431         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
8432         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
8433         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
8434         (th_stuff): Change to th_u1.tu_stuff.
8435         (th_data): Define.
8436         (th_msg): Change to th_u1.th_u2.tu_data.
8437
8438 2012-05-07  David S. Miller  <davem@davemloft.net>
8439
8440         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8441
8442         [BZ #14074]
8443         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
8444         (SETUP_PIC_REG): Use it.
8445         (SETUP_PIC_REG_LEAF): Use it.
8446
8447 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
8448
8449         [BZ #13885]
8450         [BZ #13923]
8451         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8452         USE_AS_EXPM1L.
8453         (EXPL_FINITE): Likewise.
8454         (FLDLOG): Likewise.
8455         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8456         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8457         e_expl.S.
8458         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8459         USE_AS_EXPM1L.
8460         (EXPL_FINITE): Likewise.
8461         (FLDLOG): Likewise.
8462         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
8463         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
8464         e_expl.S.
8465         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
8466         test of -max_value argument for long double.
8467         * sysdeps/i386/fpu/libm-test-ulps: Update.
8468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8469
8470 2012-05-06  David S. Miller  <davem@davemloft.net>
8471
8472         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
8473         quad soft-float symbols whose references which are compiler
8474         generated.
8475         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8476
8477 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
8478
8479         [BZ #13884]
8480         [BZ #13914]
8481         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8482         USE_AS_EXP10L.
8483         (EXPL_FINITE): Likewise.
8484         (FLDLOG): Likewise.
8485         (c0): Likewise.
8486         (c1): Likewise.
8487         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8488         Adjust comments for base varying.
8489         (__expl_finite): Change alias to EXPL_FINITE.
8490         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
8491         e_expl.S.
8492         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
8493         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
8494         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
8495         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
8496         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
8497         USE_AS_EXP10L.
8498         (EXPL_FINITE): Likewise.
8499         (FLDLOG): Likewise.
8500         (c0): Likewise.
8501         (c1): Likewise.
8502         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
8503         Adjust comments for base varying.
8504         (__expl_finite): Change alias to EXPL_FINITE.
8505         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
8506         tests for bugs.
8507         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8508
8509         [BZ #14064]
8510         * math/libm-test.inc (check_float_internal): Correct ulp
8511         calculation for subnormal expected results.
8512
8513 2012-05-06  Andreas Jaeger  <aj@suse.de>
8514
8515         * Makeconfig (+math-flags): New, set to -frounding-math.
8516         (+cflags): Add +math-flags so that all of glibc gets compiled with
8517         it.
8518
8519         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
8520
8521 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
8522
8523         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
8524         Disable one test.
8525
8526         [BZ #13787]
8527         [BZ #13922]
8528         [BZ #14036]
8529         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8530         (__ieee754_expl): Allow for and saturate large arguments.
8531         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8532         (u_threshold): Likewise.
8533         (__exp): Call __ieee754_exp before checking for overflow and
8534         underflow.
8535         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8536         (u_threshold): Likewise.
8537         (__expf): Call __ieee754_expf before checking for overflow and
8538         underflow.
8539         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8540         (u_threshold): Likewise.
8541         (__expl): Call __ieee754_expl before checking for overflow and
8542         underflow.
8543         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8544         (__ieee754_expl): Allow for and saturate large arguments.
8545         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8546         missing overflow exception on overflow.
8547         (expm1_test): Do not allow missing overflow exception on overflow.
8548
8549         * sysdeps/i386/fpu/e_expl.c: Move to ...
8550         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8551         rather than using inline asm.
8552         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8553         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8554         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8555
8556         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8557         (nice): Likewise.
8558         (poll): Likewise.
8559         (signal): Likewise.
8560         (time): Likewise.
8561         (times): Likewise.
8562
8563 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8564
8565         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8566         sysdeps/unix/common/syscalls.list.
8567         (fchmod): Likewise.
8568         (fchown): Likewise.
8569         (ftruncate): Likewise.
8570         (getrusage): Likewise.
8571         (gettimeofday): Likewise.
8572         (setpgid): Likewise.
8573         (setregid): Likewise.
8574         (setreuid): Likewise.
8575         (sigaction): Likewise.
8576         (truncate): Likewise.
8577         (vhangup): Likewise.
8578         * sysdeps/unix/common/syscalls.list: Remove file.
8579         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8580         * sysdeps/unix/sysv/linux/Implies: Likewise.
8581
8582 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8583
8584         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8585         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8586         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8587         Moved to ...
8588         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8589         Here.
8590         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8591         to ...
8592         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8593         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8594         to ...
8595         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8596         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8597         to ...
8598         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8599         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8600         to ...
8601         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8602         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8603         to ...
8604         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8605         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8606         to ...
8607         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8608         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8609         to ...
8610         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8611         Here.
8612         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8613         to ...
8614         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8615         Here.
8616         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8617         to ...
8618         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8619         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8620         Moved to ...
8621         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8622         Here.
8623         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8624         to ...
8625         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8626
8627 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8628
8629         * sysdeps/unix/common/bits/dirent.h: Remove file.
8630         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8631
8632         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8633         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8634         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8635         * sysdeps/unix/bsd/isatty.c: Likewise.
8636         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8637         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8638         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8639
8640 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8641
8642         [BZ #13563]
8643         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8644         long double comparison inaccuracies.
8645         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8646         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8647
8648 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8649
8650         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8651         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8652
8653 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8654
8655         [BZ #14049]
8656         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8657         nonzero digits before rounding a hex value.
8658         * stdlib/tst-strtod.c (tests): Add another test.
8659
8660 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8661
8662         * sysdeps/s390/fpu/libm-test-ulps: Update.
8663
8664 2012-05-03  Andreas Jaeger  <aj@suse.de>
8665
8666         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8667         does not get optimized out.
8668         (malloc_opt_barrier): New.
8669
8670 2012-05-03  Andreas Jaeger  <aj@suse.de>
8671             Roland McGrath  <roland@hack.frob.com>
8672
8673         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8674         intermediate file deletion.
8675         (generated): Add .symlist files.
8676
8677 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8678
8679         [BZ #13775]
8680         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8681         Redirect under this condition.
8682         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8683         [__USE_GNU] (__dprintf_chk): Not under this condition.
8684         [__USE_GNU] (__vdprintf_chk): Likewise.
8685         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8686         under this condition.
8687         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8688         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8689         [__USE_XOPEN2K8] (vdprintf): Likewise.
8690         [__USE_GNU] (__dprintf_chk): Not under this condition.
8691         [__USE_GNU] (__vdprintf_chk): Likewise.
8692         [__USE_GNU] (dprintf): Likewise.
8693         [__USE_GNU] (vdprintf): Likewise.
8694
8695 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8696
8697         * elf/Makefile (common-generated): Set this instead of generated for
8698         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8699         $(all-built-dso)-derived lists.
8700
8701 2012-05-03  Andreas Jaeger  <aj@suse.de>
8702
8703         * sysdeps/i386/fpu/libm-test-ulps: Update.
8704
8705         * FAQ: Removed.
8706         * FAQ.in: Likewise.
8707         * scripts/gen-FAQ.pl: Likewise.
8708         * manual/install.texi (Installation): Point to online location of
8709         FAQ.
8710         * Makefile (files-for-dist): Remove FAQ.
8711         (FAQ): Remove.
8712
8713 2012-05-02  Allan McRae  <allan@archlinux.org>
8714
8715         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8716         (LDFLAGS-reldepmod5.so): Likewise.
8717         (LDFLAGS-reldep6mod1.so): Likewise.
8718         (LDFLAGS-reldep6mod4.so): Likewise.
8719         (LDFLAGS-reldep8mod3.so): Likewise.
8720         (LDFLAGS-unload4mod1.so): Likewise.
8721         (LDFLAGS-unload4mod2.so): Likewise.
8722         (LDFLAGS-tst-initorder): Likewise.
8723         (LDFLAGS-tst-initordera2.so): Likewise.
8724         (LDFLAGS-tst-initordera3.so): Likewise.
8725         (LDFLAGS-tst-initordera4.so): Likewise.
8726         (LDFLAGS-tst-initorderb2.so): Likewise.
8727         (LDFLAGS-noload): Likewise.
8728         (LDFLAGS-next): Likewise.
8729         (LDFLAGS-order2mod1.so): Likewise.
8730         (LDFLAGS-order2mod2.so): Likewise.
8731         (LDFLAGS-tst-initorder2): Likewise.
8732         (LDFLAGS-tst-initorder2a.so): Likewise.
8733         (LDFLAGS-tst-initorder2b.so): Likewise.
8734         (LDFLAGS-tst-initorder2c.so): Likewise.
8735         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8736
8737 2012-05-02  David S. Miller  <davem@davemloft.net>
8738
8739         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8740
8741 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8742
8743         [BZ #14055]
8744         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8745
8746 2012-05-02  Andreas Jaeger  <aj@suse.de>
8747
8748         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8749         since we manipulate rounding mode.
8750         (CPPFLAGS-test-idouble.c): Likewise.
8751         (CPPFLAGS-test-ifloat.c): Likewise.
8752         (CFLAGS-test-ldouble.c): Likewise.
8753         (CFLAGS-test-double.c): Likewise.
8754         (CFLAGS-test-float.c): Likewise.
8755         (CFLAGS-test-misc.c): Likewise.
8756         (CFLAGS-test-test-fenv.c): Likewise.
8757
8758 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8759
8760         [BZ #2550]
8761         [BZ #2570]
8762         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8763         comparisons to determine direction to adjust input.
8764
8765 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8766
8767         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8768         output to the target.
8769
8770         * scripts/localplt.awk: New file.
8771         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8772         (check-localplt-CFLAGS): Variable removed.
8773         ($(all-built-dso:=.jmprel)): New static pattern rule.
8774         (generated): Add those targets.
8775         (localplt-built-dso): New variable.
8776         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8777
8778         * elf/check-localplt.c: File removed.
8779
8780         * scripts/check-execstack.awk: New file.
8781         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8782         (check-execstack-CFLAGS): Variable removed.
8783         ($(objpfx)check-execstack.h): Target removed.
8784         ($(objpfx)execstack-default): New target.
8785         (generated): Add that instead of check-execstack.h.
8786         ($(all-built-dso:=.phdr)): New static pattern rule.
8787         (generated): Add those targets.
8788         * elf/check-execstack.c: File removed.
8789
8790         * scripts/check-textrel.awk: New file.
8791         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8792         (check-textrel-CFLAGS): Variable removed.
8793         (all-built-dso): Use := to define.o
8794         ($(all-built-dso:=.dyn)): New static pattern rule.
8795         (generated): Add those targets.
8796         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8797         * config.make.in (READELF): New substituted variable.
8798         * elf/check-textrel.c: File removed.
8799
8800 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8801
8802         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8803         allow.
8804         * conform/data/ctype.h-data [C99-based standards] (isblank):
8805         Expect function.
8806         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8807         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8808         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8809         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8810         Specify type.  Require positive value.
8811         (EILSEQ): Likewise.
8812         (ERANGE): Likewise.
8813         [ISO || POSIX] (EILSEQ): Do not expect.
8814         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8815         Specify type.  Require positive value.
8816         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8817         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8818         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8819         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8820         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8821         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8822         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8823         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8824         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8825         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8826         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8827         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8828         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8829         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8830         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8831         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8832         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8833         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8834         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8835         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8836         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8837         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8838         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8839         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8840         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8841         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8842         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8843         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8844         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8845         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8846         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8847         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8848         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8849         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8850         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8851         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8852         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8853         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8854         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8855         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8856         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8857         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8858         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8859         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8860         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8861         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8862         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8863         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8864         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8865         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8866         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8867         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8868         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8869         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8870         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8871         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8872         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8873         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8874         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8875         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8876         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8877         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8878         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8879         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8880         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8881         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8882         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8883         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8884         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8885         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8886         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8887         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8888         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8889         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8890         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8891         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8892         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8893         Require >= 2.
8894         (FLT_ROUNDS): Expect as macro, not constant.
8895         (FLT_MANT_DIG): Use macro-int-constant.
8896         (DBL_MANT_DIG): Likewise.
8897         (LDBL_MANT_DIG): Likewise.
8898         (FLT_DIG): Likewise.
8899         (DBL_DIG): Likewise.
8900         (LDBL_DIG): Likewise.
8901         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8902         (DBL_MIN_EXP): Likewise.
8903         (LDBL_MIN_EXP): Likewise.
8904         (FLT_MAX_EXP): Use macro-int-constant.
8905         (DBL_MAX_EXP): Likewise.
8906         (LDBL_MAX_EXP): Likewise.
8907         (FLT_MAX_10_EXP): Likewise.
8908         (DBL_MAX_10_EXP): Likewise.
8909         (LDBL_MAX_10_EXP): Likewise.
8910         (FLT_MAX): Use macro-constant.
8911         (DBL_MAX): Likewise.
8912         (LDBL_MAX): Likewise.
8913         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8914         (DBL_EPSILON): Likewise.
8915         (LDBL_EPSILON): Likewise.
8916         (FLT_MIN): Likewise.
8917         (DBL_MIN): Likewise.
8918         (LDBL_MIN): Likewise.
8919         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8920         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8921         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8922         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8923         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8924         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8925         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8926         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8927         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8928         [ISO11] (FLT_TRUE_MIN): Likewise.
8929         [ISO11] (LDBL_TRUE_MIN): Likewise.
8930         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8931         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8932         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8933         (SCHAR_MAX): Likewise.
8934         (UCHAR_MAX): Likewise.
8935         (CHAR_MIN): Likewise.
8936         (CHAR_MAX): Likewise.
8937         (MB_LEN_MAX): Use macro-int-constant.
8938         (SHRT_MIN): Use macro-int-constant.  Specify type.
8939         (SHRT_MAX): Likewise.
8940         (USHRT_MAX): Likewise.
8941         (INT_MAX): Likewise.
8942         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8943         bound negative.
8944         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8945         bound with "U".
8946         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8947         bound with "L".
8948         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8949         bound negative.  Suffix upper bound with "L".
8950         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8951         bound with "UL".
8952         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8953         Specify type.
8954         [C99-based standards] (LLONG_MAX): Likewise.
8955         [C99-based standards] (ULLONG_MAX): Likewise.
8956         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8957         == 0.
8958         [ISO11] (max_align_t): Require type.
8959         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8960
8961         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8962         from $CFLAGS, without defining away __attribute__ calls.
8963         (checknamespace): Use $CFLAGS_namespace.
8964
8965         * conform/conformtest.pl (@keywords): Only include C99 keywords
8966         for standards based on C99 or C11.
8967
8968         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8969         Disable tests.
8970         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8971         UNIX98]: Likewise.
8972
8973         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8974         usability of symbols in #if.
8975
8976         * conform/conformtest.pl: If macro or constant types start
8977         "promoted:", expect the symbol to be of the following type
8978         promoted by the integer promotions.
8979
8980         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8981         in one place.  Also handle "macro-constant".
8982
8983         * conform/conformtest.pl: Only accept expected macro values with
8984         "==".  Parse all "macro" lines in one place.
8985         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8986
8987         * conform/conformtest.pl: Handle braced types on "constant" lines
8988         instead of handling "typed-constant".
8989         * conform/data/signal.h-data: Use "constant" instead of
8990         "typed-constant".
8991
8992         * conform/conformtest.pl: Handle "optional-" at start of lines in
8993         one place rather than duplicating several cases.  Handle each
8994         format of "macro" line with initial "optional-".
8995
8996         * conform/conformtest.pl: Only accept expected constant or
8997         optional-constant values with "==".  Parse all "constant" lines in
8998         one place.  Parse all "optional-constant" lines in one place.
8999         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9000         * conform/data/fmtmsg.h-data: Likewise.
9001         * conform/data/netinet/in.h-data: Likewise.
9002         * conform/data/tar.h-data: Likewise.
9003         * conform/data/limits.h-data: Use "==" form on "constant" and
9004         "optional-constant" lines.
9005
9006         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9007         Use -std=c99 for XOPEN2K.
9008         (@knownproblems): Remove.
9009         (newtoken): Don't check %isknown.
9010
9011         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9012         Do not expect macro.
9013         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9014         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9015         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9016         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9017         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9018         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9019         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9020         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9021         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9022         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9023         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9024         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9025         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9026         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9027         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9028         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9029         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9030         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9031         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9032         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9033         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9034         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9035         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9036         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9037         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9038         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9039         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9040         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9041         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9042         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9043         [XPG3] (acosh): Likewise.
9044         [XPG3] (asinh): Likewise.
9045         [XPG3] (atanh): Likewise.
9046         [XPG3] (cbrt): Likewise.
9047         [XPG3] (expm1): Likewise.
9048         [XPG3] (ilogb): Likewise.
9049         [XPG3] (log1p): Likewise.
9050         [XPG3] (logb): Likewise.
9051         [XPG3] (nextafter): Likewise.
9052         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9053         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9054         [XPG3] (remainder): Likewise.
9055         [XPG3] (rint): Likewise.
9056         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9057         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9058         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9059         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9060         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9061         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9062         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9063         [UNIX98 || XOPEN2K] (scalb): Expect.
9064         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9065         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9066         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9067         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9068         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9069         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9070         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9071         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9072         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9073         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9074         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9075         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9076         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9077         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9078         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9079         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9080         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9081         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9082         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9083         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9084         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9085         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9086         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9087         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9088         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9089         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9090         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9091         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9092         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9093         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9094         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9095         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9096         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9097         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9098         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9099         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9100         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9101         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9102         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9103         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9104         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9105         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9106         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9107         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9108         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9109         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9110         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9111         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9112         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9113         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9114         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9115         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9116         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9117         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9118         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9119         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9120         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9121         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9122         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9123         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9124         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9125         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9126         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9127         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9128         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9129         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9130         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9131         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9132         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9133         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9134         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9135         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9136         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9137         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9138         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9139         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9140         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9141         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9142         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9143         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9144         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9145         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9146         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9147         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9148         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9149         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9150         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9151         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9152         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9153         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9154         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9155         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9156         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9157         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9158         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9159         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9160         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9161         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9162         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9163         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9164         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9165         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9166         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9167         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9168         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9169         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9170         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9171         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9172         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9173         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9174         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9175         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9176         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9177         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9178         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9179         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9180         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9181         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9182         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9183         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9184         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9185         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9186         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9187         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9188         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9189         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9190         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9191         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9192         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9193         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9194         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9195         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9196         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9197         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9198         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9199         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9200         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9201
9202         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9203         _XOPEN_SOURCE_EXTENDED for XPG4.
9204
9205         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9206
9207         * Makeconfig (localtime): Remove variable.
9208         (inst_localtime-file): Likewise.
9209
9210 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9211
9212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9213         Update.
9214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9215         Update.
9216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9217         Update.
9218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9219         Update.
9220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9221         Update.
9222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9223         Update.
9224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9225         Update.
9226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9227         Update.
9228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9229         Update.
9230
9231 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9232
9233         [BZ #2550]
9234         [BZ #2570]
9235         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9236         comparisons to determine direction to adjust input.
9237         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9238         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9239         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9240         Likewise.
9241         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9242         Likewise.
9243         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9244         Likewise.
9245         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9246         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9247         Likewise.
9248         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9249         Likewise.
9250         * math/libm-test.inc (nexttoward_test): Add more tests.
9251
9252 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9253
9254         [BZ #14040]
9255         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9256         in version GLIBC_2.1, not GLIBC_2.0.
9257         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9258         Likewise.
9259
9260 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9261
9262         [BZ #13942]
9263         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9264         (1 - x) * (1 + x).
9265         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9266         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9267         * math/libm-test.inc (acos_test): Add more tests.
9268         (asin_test): Likewise.
9269         * sysdeps/i386/fpu/libm-test-ulps: Update.
9270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9271
9272         [BZ #14034]
9273         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9274         of square root.
9275         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9276         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9277         * math/libm-test.inc (acos_test_tonearest): New function.
9278         (acos_test_towardzero): Likewise.
9279         (acos_test_downward): Likewise.
9280         (acos_test_upward): Likewise.
9281         (asin_test_tonearest): Likewise.
9282         (asin_test_towardzero): Likewise.
9283         (asin_test_downward): Likewise.
9284         (asin_test_upward): Likewise.
9285         (main): Call the new functions.
9286         * sysdeps/i386/fpu/libm-test-ulps: Update.
9287         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9288
9289         [BZ #13884]
9290         [BZ #13924]
9291         * math/e_exp10.c: Include <float.h>.
9292         (__ieee754_exp10): Handle underflow here rather than multiplying
9293         large negative argument by M_LN10.
9294         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9295         of __ieee754_expf.
9296         * math/e_exp10l.c: Include <float.h>.
9297         (__ieee754_exp10l): Handle underflow here rather than multiplying
9298         large negative argument by M_LN10l.
9299         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9300         spurious overflow exception on underflow.
9301
9302 2012-04-29  Marek Polacek  <polacek@redhat.com>
9303
9304         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9305         (__fortify_function): New macro.
9306         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9307         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9308         __extern_always_inline.
9309         * libio/bits/stdio2.h: Likewise.
9310         * libio/bits/stdio.h: Likewise.
9311         * string/string.h: Likewise.
9312         * string/bits/string3.h: Likewise.
9313         * include/stdio.h: Likewise.
9314         * stdlib/bits/stdlib.h: Likewise.
9315         * stdlib/stdlib.h: Likewise.
9316         * rt/bits/mqueue2.h: Likewise.
9317         * rt/mqueue.h: Likewise.
9318         * posix/bits/unistd.h: Likewise.
9319         * posix/unistd.h: Likewise.
9320         * io/bits/poll2.h: Likewise.
9321         * io/bits/fcntl2.h: Likewise.
9322         * io/fcntl.h: Likewise.
9323         * io/sys/poll.h: Likewise.
9324         * misc/bits/syslog.h: Likewise.
9325         * misc/bits/syslog-ldbl.h: Likewise.
9326         * misc/sys/syslog.h: Likewise.
9327         * socket/bits/socket2.h: Likewise.
9328         * socket/sys/socket.h: Likewise.
9329         * debug/tst-chk1.c: Likewise.
9330         * wcsmbs/bits/wchar2.h: Likewise.
9331         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9332         * wcsmbs/wchar.h: Likewise.
9333
9334 2012-04-29  Andreas Jaeger  <aj@suse.de>
9335
9336         * Makerules (tests): Remove enable-check-abi protection.
9337         (check-abi-warn): Remove.
9338         (check-abi-%): Remove check-abi-warn usage.
9339
9340         * configure.in: Remove check-abi configure option.
9341         * configure: Regenerated.
9342         * config.make.in (enable-check-abi): Remove.
9343
9344 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9345
9346         [BZ #14033]
9347         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9348         double functions to double *_finite functions.
9349
9350         [BZ #13941]
9351         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
9352         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
9353         LDBL_MIN_EXP.
9354         * stdio-common/Makefile (tests): Add tst-sprintf3.
9355         * stdio-common/tst-sprintf3.c: New file.
9356
9357         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
9358         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
9359
9360 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9361
9362         * conform/conformtest.pl: Remove duplicate typed-constant
9363         handling.
9364
9365 2012-04-28  David S. Miller  <davem@davemloft.net>
9366
9367         * Makerules (%.abilist): Add vpath on sysdep_dirs.
9368         (check-abi-%): Remove AWK script prerequisite and explicit
9369         abilist directory.
9370         (check-abi): Rewrite to just diff the symlist with the abilist.
9371         (config-tls, config-abi-config): Delete, no longer used.
9372         (update-abi-%): Remove AWK script and explicit abilist directory.
9373         (update-abi): Rewrite to simply compare and conditionally copy the
9374         symlist and the sysdep abilist file.  Remove update-abi-config
9375         checks.
9376         * abilist/ld.abilist: Remove.
9377         * abilist/libBrokenLocale.abilist: Remove.
9378         * abilist/libanl.abilist: Remove.
9379         * abilist/libcrypt.abilist: Remove.
9380         * abilist/libdl.abilist: Remove.
9381         * abilist/librt.abilist: Remove.
9382         * abilist/libthread_db.abilist: Remove.
9383         * abilist/libutil.abilist: Remove.
9384         * scripts/extract-abilist.awk: Remove.
9385         * scripts/merge-abilist.awk: Remove.
9386         * sysdeps/generic/libcidn.abilist: New file.
9387         * sysdeps/generic/libnss_compat.abilist: New file.
9388         * sysdeps/generic/libnss_db.abilist: New file.
9389         * sysdeps/generic/libnss_dns.abilist: New file.
9390         * sysdeps/generic/libnss_files.abilist: New file.
9391         * sysdeps/generic/libnss_hesiod.abilist: New file.
9392         * sysdeps/generic/libnss_nis.abilist: New file.
9393         * sysdeps/generic/libnss_nisplus.abilist: New file.
9394         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
9395         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
9396         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
9397         file.
9398         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
9399         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
9400         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
9401         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
9402         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
9403         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
9404         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
9405         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
9406         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
9407         file.
9408         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
9409         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
9410         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
9411         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
9412         file.
9413         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
9414         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
9415         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
9416         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
9417         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
9418         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
9419         file.
9420         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
9421         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
9422         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
9423         file.
9424         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
9425         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
9426         New file.
9427         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
9428         New file.
9429         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
9430         New file.
9431         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
9432         New file.
9433         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
9434         New file.
9435         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
9436         New file.
9437         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
9438         New file.
9439         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
9440         New file.
9441         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
9442         New file.
9443         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
9444         New file.
9445         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
9446         New file.
9447         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
9448         New file.
9449         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
9450         New file.
9451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
9452         file.
9453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
9454         New file.
9455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
9456         New file.
9457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
9458         file.
9459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
9460         New file.
9461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
9462         New file.
9463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
9464         file.
9465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
9466         New file.
9467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9468         New file.
9469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
9470         New file.
9471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
9472         New file.
9473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
9474         New file.
9475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
9476         New file.
9477         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
9478         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
9479         file.
9480         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
9481         New file.
9482         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
9483         file.
9484         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
9485         file.
9486         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
9487         file.
9488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
9489         file.
9490         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
9491         file.
9492         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9493         New file.
9494         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
9495         file.
9496         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
9497         file.
9498         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
9499         New file.
9500         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
9501         file.
9502         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
9503         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
9504         file.
9505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
9506         New file.
9507         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
9508         file.
9509         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
9510         file.
9511         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
9512         file.
9513         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
9514         file.
9515         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
9516         file.
9517         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9518         New file.
9519         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
9520         file.
9521         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
9522         file.
9523         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
9524         New file.
9525         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
9526         file.
9527         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
9528         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9529         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9530         file.
9531         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9532         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9533         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9534         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9535         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9536         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9537         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9538         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9539         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9540         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9541         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9542         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9543         file.
9544         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9545         New file.
9546         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9547         file.
9548         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9549         file.
9550         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9551         file.
9552         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9553         file.
9554         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9555         file.
9556         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9557         New file.
9558         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9559         New file.
9560         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9561         file.
9562         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9563         New file.
9564         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9565         file.
9566         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9567         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9568         file.
9569         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9570         New file.
9571         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9572         file.
9573         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9574         file.
9575         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9576         file.
9577         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9578         file.
9579         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9580         file.
9581         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9582         New file.
9583         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9584         New file.
9585         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9586         file.
9587         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9588         New file.
9589         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9590         file.
9591
9592 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9593
9594         * conform/conformtest.pl: Fix typo in handling typed-constant from
9595         allow-header.
9596
9597 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9598
9599         * README: Cut down references to pre-2.6 Linux kernels and
9600         Linuxthreads.  Update lists of configurations in libc and ports
9601         and sort alphabetically.  Say "or newer" with Linux kernel version
9602         requirements.
9603
9604         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9605
9606 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9607
9608         [BZ #887]
9609         * math/libm-test.inc (logb_test_downward): New test to expose
9610         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9611         rounding mode.
9612
9613 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9614
9615         [BZ #14027]
9616         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9617         to be done.
9618         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9619         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9620
9621 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9622
9623         * sysdeps/unix/i386/brk.S: Remove file.
9624         * sysdeps/unix/i386/dl-brk.S: Likewise.
9625         * sysdeps/unix/i386/pipe.S: Likewise.
9626         * sysdeps/unix/i386/sigreturn.S: Likewise.
9627         * sysdeps/unix/i386/syscall.S: Likewise.
9628         * sysdeps/unix/i386/vfork.S: Likewise.
9629         * sysdeps/unix/i386/wait.S: Likewise.
9630
9631         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9632         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9633
9634         * configure.in (arm*-none*): Do not allow without
9635         --enable-hacker-mode.
9636         (netbsd*): Remove case setting base_os.
9637         (386bsd*): Likewise.
9638         (freebsd*): Likewise.
9639         (bsdi*): Likewise.
9640         (osf*): Likewise.
9641         (sunos*): Likewise.
9642         (ultrix*): Likewise.
9643         (newsos*): Likewise.
9644         (dynix*): Likewise.
9645         (*bsd*): Likewise.
9646         (sysv*): Likewise.
9647         (isc*): Likewise.
9648         (esix*): Likewise.
9649         (sco*): Likewise.
9650         (minix*): Likewise.
9651         (irix4*): Likewise.
9652         (irix6*): Likewise.
9653         (solaris[2-9]*): Likewise.
9654         (none): Likewise.
9655         * configure: Regenerated.
9656
9657 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9658
9659         [BZ #11521]
9660         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9661         overflow or cancellation in calculating denominator.
9662         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9663         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9664         down expression to avoid unexpected rounding in newer GCCs.
9665         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9666
9667 2012-04-26  David S. Miller  <davem@davemloft.net>
9668
9669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9670         long-double compat symbols.
9671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9676         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9677         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9678         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9679         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9680         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9681         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9682         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9683         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9684
9685 2012-04-25  David S. Miller  <davem@davemloft.net>
9686
9687         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9688         HWCAP_* values only after the memory barriers have been defined.
9689         (atomic_full_barrier): Define.
9690         (atomic_read_barrier): Define.
9691         (atomic_write_barrier): Define.
9692
9693 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9694
9695         * shlib-versions: Add libgcc_s version information.
9696         * sysdeps/generic/libgcc_s.h: Remove.
9697         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9698         libgcc_s.h.
9699         * sysdeps/gnu/unwind-resume.c: Likewise.
9700         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9701
9702 2012-04-25  David S. Miller  <davem@davemloft.net>
9703
9704         * sysdeps/unix/sparc/brk.S: Delete.
9705         * sysdeps/unix/sparc/dl-brk.S: Delete.
9706         * sysdeps/unix/sparc/pipe.S: Delete.
9707         * sysdeps/unix/sparc/sysdep.S: Delete.
9708         * sysdeps/unix/sparc/sysdep.h: Delete.
9709         * sysdeps/unix/sparc/vfork.S: Delete.
9710         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9711         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9712         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9713         ret_ERRVAL, r0, r1, MOVE): Define.
9714         (JUMPTARGET): Remove.
9715         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9716         sysdeps/unix/sparc/sysdep.h
9717         (ENTRY, END): Remove.
9718         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9719
9720 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9721
9722         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9723         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9724         -DIS_IN_build.
9725
9726         * timezone/README: Update upstream location and email address for
9727         tzcode and tzdata.
9728         * timezone/zdump.c: Update from tzcode 2012b.
9729         * timezone/zic.c: Likewise.
9730
9731         * configure.in (libc_cv_as_needed): Remove test.
9732         * configure: Regenerated.
9733         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9734         conditional definition.
9735         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9736         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9737         * config.make.in (have-as-needed): Remove variable.
9738
9739 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9740             Paul Pluzhnikov  <ppluzhnikov@google.com>
9741
9742         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9743         strings correctly.
9744
9745 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9746
9747         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9748         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9749         * sysdeps/sh/strlen.S: Likewise.
9750
9751 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9752
9753         * sysdeps/unix/fork.S: Remove file.
9754         * sysdeps/unix/i386/fork.S: Likewise.
9755         * sysdeps/unix/sparc/fork.S: Likewise.
9756
9757         * sysdeps/unix/system.c: Remove file.
9758         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9759
9760         * sysdeps/unix/getegid.S: Remove file.
9761         * sysdeps/unix/geteuid.S: Likewise.
9762
9763 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9764
9765         * scripts/check-localplt.awk: New file.
9766         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9767         of diff.
9768         * scripts/data/localplt-generic.data: Add a comment.
9769
9770         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9771         NODE when __dir_mkfile failed.
9772         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9773         Reported by Ludovic Courtès <ludo@gnu.org>.
9774
9775 2012-04-24  Andreas Jaeger  <aj@suse.de>
9776
9777         * Makerules (common-clean): Also remove gen-as-const-headers
9778         files.
9779
9780 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9781
9782         * Makerules (native-compile): Do not change working directory for
9783         build.  Use $(OUTPUT_OPTION) in command.
9784         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9785
9786 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9787
9788         [BZ #13886]
9789         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9790         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9791         * math/libm-test.inc (floor_test): Add more tests.
9792         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9793
9794 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9795
9796         * sysdeps/unix/getdents.c: Remove file.
9797         * sysdeps/unix/sysv/getdents.c: Likewise.
9798         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9799
9800         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9801         sysdeps/unix/mman/syscalls.list.
9802         (mmap): Likewise.
9803         (mprotect): Likewise.
9804         (msync): Likewise.
9805         (munmap): Likewise.
9806         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9807         * sysdeps/unix/mman/syscalls.list: Remove.
9808         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9809
9810         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9811         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9812         * configure: Regenerated.
9813         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9814         $(libgcc_s_suffix).
9815         * config.make.in (libgcc_s_suffix): Remove variable.
9816
9817 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9818
9819         * sysdeps/unix/sysv/gethostname.c: Move to ...
9820         * sysdeps/posix/gethostname.c: ... here.
9821
9822         * sysdeps/unix/execve.S: Remove file.
9823
9824         * sysdeps/unix/_exit.S: Remove file.
9825
9826 2012-04-23  Andreas Jaeger  <aj@suse.de>
9827
9828         [BZ #13739]
9829         * manual/Makefile: Remove make dist support, there's no
9830         need for a stand-alone documentation tar ball.
9831         (TEXI2DVI): Define always, it's not in Makeconfig.
9832         (dist): Removed.
9833         (tar-it): Removed.
9834         (edition): Removed.
9835         (glibc-doc-$(edition).tar): Removed
9836         (%.Z): Removed.
9837         (%.gz): Removed.
9838         (%.uu): Removed.
9839         (ETAGS): Remove, it's in Makeconfig.
9840         (move-if-change): Remove, it's in Makeconfig.
9841
9842 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9843
9844         [BZ #13970]
9845         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9846         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9847         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9848         (strtod_l, strtof_l, strtold_l): Remove __wur.
9849         It is not necessarily an error to ignore strtol's return value.
9850         One can reliably look at the stored endptr to decide whether
9851         the number had valid syntax.
9852
9853 2012-04-21  Andreas Jaeger  <aj@suse.de>
9854
9855         [BZ #13739]
9856         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9857
9858 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9859
9860         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9861         * sysdeps/unix/sysv/Versions: Remove file.
9862
9863 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9864
9865         [BZ #13927]
9866         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9867
9868 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9869
9870         [BZ #7064]
9871         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9872         version from __vm86.
9873
9874 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9875
9876         * sysdeps/unix/common/lxstat.c: Remove file.
9877         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9878
9879         * sysdeps/unix/sysv/Makefile: Remove file.
9880
9881         * sysdeps/unix/sysv/direct.h: Remove file.
9882
9883         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9884         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9885         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9886         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9887         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9888         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9889         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9890
9891         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9892
9893         * sysdeps/unix/xmknod.c: Remove file.
9894         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9895
9896         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9897
9898         * sysdeps/unix/sysv/i386/time.S: Remove file.
9899
9900         * sysdeps/unix/fxstat.c: Remove file.
9901         * sysdeps/unix/xstat.c: Likewise.
9902         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9903
9904         * sysdeps/unix/sysv/sigaction.c: Remove file.
9905
9906         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9907         (sysdep_headers): Remove variable.
9908         [termio.h not in sysdep_headers] (generated): Likewise.
9909         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9910         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9911         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9912         * sysdeps/unix/sysv/tcflow.c: Likewise.
9913         * sysdeps/unix/sysv/tcflush.c: Likewise.
9914         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9915         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9916         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9917         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9918         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9919
9920         * sysdeps/unix/siglist.c: Remove file.
9921
9922         * sysdeps/unix/getppid.S: Remove file.
9923
9924         * sysdeps/unix/mkdir.c: Remove file.
9925         * sysdeps/unix/rmdir.c: Likewise.
9926
9927 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9928
9929         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9930         ERR_MAX value.
9931         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9932         errlist-compat value.
9933
9934 2012-04-18  David S. Miller  <davem@davemloft.net>
9935
9936         * sysdeps/generic/memcopy.h (reg_char): Delete.
9937         * debug/strcat_chk.c: Use char, not reg_char.
9938         * debug/strcpy_chk.c: Likewise.
9939         * debug/strncat_chk.c: Likewise.
9940         * debug/strncpy_chk.c: Likewise.
9941         * string/memchr.c: Likewise.
9942         * string/memrchr.c: Likewise.
9943         * string/rawmemchr.c: Likewise.
9944         * string/strcat.c: Likewise.
9945         * string/strchr.c: Likewise.
9946         * string/strchrnul.c: Likewise.
9947         * string/strcmp.c: Likewise.
9948         * string/strcpy.c: Likewise.
9949         * string/strncat.c: Likewise.
9950         * string/strncmp.c: Likewise.
9951         * string/strncpy.c: Likewise.
9952
9953 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9954
9955         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9956         __builtin_memcopy is called when src and dest ranges are known to not
9957         overlap.
9958
9959 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9960
9961         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9962         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9963         fwd_align_merge macro call.
9964         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9965         bwd_align_merge macro call.
9966         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9967
9968 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9969
9970         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9971         bwd_align_merge macros.
9972         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9973         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9974         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9975
9976 2012-04-18  David S. Miller  <davem@davemloft.net>
9977
9978         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9979
9980 2012-04-18  Andreas Jaeger  <aj@suse.de>
9981
9982         [BZ# 6794]
9983         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9984         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9985         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9986
9987         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9988         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9989         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9990
9991         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9992         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9993         Adjust for changed ldbl-128 files.
9994
9995         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9996         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9997         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9998
9999 2012-04-17  David S. Miller  <davem@davemloft.net>
10000
10001         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10002
10003 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10004
10005         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10006         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10007         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10008         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10009         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10010         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10011
10012 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10013
10014         [BZ #6794]
10015         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10016         * math/libm-test.inc: Add ilogb errno and exception tests.
10017         * math/w_ilogb.c: New file: ilogb wrapper.
10018         * math/w_ilogbf.c: New file: ilogbf wrapper.
10019         * math/w_ilogbl.c: New file: ilogbl wrapper.
10020         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10021         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10022         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10023         exception being thrown with 0.0 as argument.
10024         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10025         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10026         exception being thrown with 0.0 as argument.
10027         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10028         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10029         exception being thrown with 0.0 as argument.
10030         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10031         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10032         exception being thrown with 0.0 as argument.
10033         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10034         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10035         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10036         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10037         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10038         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10039         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10040         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10041         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10042
10043 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10044
10045         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10046         with altivec.
10047
10048 2012-04-16  Marek Polacek  <polacek@redhat.com>
10049
10050         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10051
10052 2012-04-16  Marek Polacek  <polacek@redhat.com>
10053
10054         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10055         operands of fdivp instruction.
10056
10057 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10058
10059         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10060         * elf/tst-auditmod3b.c: Likewise.
10061         * elf/tst-auditmod4b.c: Likewise.
10062         * elf/tst-auditmod5b.c: Likewise.
10063         * elf/tst-auditmod6b.c: Likewise.
10064         * elf/tst-auditmod6c.c: Likewise.
10065         * elf/tst-auditmod7b.c: Likewise.
10066         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10067         * sysdeps/x86_64/preconfigure.in: Likewise.
10068         * sysdeps/x86_64/preconfigure: Regenerated.
10069
10070 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10071
10072         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10073         __ILP32__.
10074
10075 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10076
10077         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10078         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10079
10080 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10081
10082         [BZ #13973]
10083         * locale/iso-639.def: Fix gl language name. Spotted by
10084         Yaron Shahrabani.
10085
10086 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10087
10088         [BZ #2074]
10089         * libio/libio.h (__io_write_fn): Update comment.
10090
10091 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10092
10093         [BZ #2074]
10094         * stdio.texi (Hook Functions): The user provided writer function
10095         is not allowed to return -1.
10096
10097 2012-04-11  David S. Miller  <davem@davemloft.net>
10098
10099         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10100
10101 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10102
10103         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10104         Add a leading slash to rtkaio.
10105
10106 2012-04-11  Jim Meyering  <meyering@redhat.com>
10107
10108         [BZ #11959]
10109         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10110         It is not necessarily an error to ignore fwrite's return
10111         value.  One can reliably use ferror to test for errors after
10112         the fact.
10113
10114 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10115
10116         * bits/types.h (__snseconds_t): New type.
10117         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10118
10119         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10120         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10121         (__SNSECONDS_T_TYPE): Likewise.
10122         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10123         (__SNSECONDS_T_TYPE): Likewise.
10124         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10125         (__SNSECONDS_T_TYPE): Likewise.
10126
10127 2012-04-10  Andreas Jaeger  <aj@suse.de>
10128
10129         [BZ #2636]
10130         * manual/time.texi (Processor Time): Return type of times is
10131         elapsed real time since an arbitrary point in the past.
10132         (CPU Time): Move CLK_TCK from here...
10133         (Processor Time): ...to here.  Correct description.
10134         * manual/conf.texi (Constants for Sysconf): Correct description of
10135         _SC_CLK_TCK.
10136
10137 2012-04-10  David S. Miller  <davem@davemloft.net>
10138
10139         [BZ #13967]
10140         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10141         where the is a gap between DT_REL(A) and DT_JMPREL.
10142
10143 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10144
10145         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10146         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10147         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10148
10149 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10150
10151         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10152         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10153         (dl_main): Handle --inhibit-cache.
10154         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10155         _dl_inhibit_cache.
10156         * elf/dl-load.c (_dl_map_object): Use it.
10157         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10158
10159 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10160
10161         [BZ #13872]
10162         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10163         (__ieee754_powl): Saturate large exponents rather than testing for
10164         overflow of y*log2(x).
10165         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10166         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10167         exceptions.
10168
10169         [BZ #11521]
10170         * math/s_ctan.c: Include <float.h>.
10171         (__ctan): Avoid internal overflow or cancellation in calculating
10172         denominator.
10173         * math/s_ctanf.c: Likewise.
10174         * math/s_ctanl.c: Likewise.
10175         * math/s_ctanh.c: Likewise.
10176         * math/s_ctanhf.c: Likewise.
10177         * math/s_ctanhl.c: Likewise.
10178         * math/libm-test.inc (ctan_test): Add more tests.
10179         (ctanh_test): Likewise.
10180         * sysdeps/i386/fpu/libm-test-ulps: Update.
10181         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10182
10183 2012-04-09  Andreas Jaeger  <aj@suse.de>
10184
10185         [BZ #6894]
10186         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10187         is an optional BSD extension.
10188
10189         [BZ #10254]
10190         * manual/stdio.texi (Opening Streams): Document additional fopen
10191         parameters.
10192
10193 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10194
10195         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10196         %eax without telling the compiler.
10197
10198 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10199
10200         [BZ # 13963]
10201         * manual/install.texi: Use sourceware.org.
10202
10203 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10204
10205         [BZ #13873]
10206         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10207         (__ieee754_pow): Generate overflow and underflow using huge*huge
10208         and tiny*tiny rather than just returning constant infinity or zero
10209         for large exponents.
10210         * math/libm-test.inc (pow_test): Require overflow exceptions for
10211         applicable cases of large exponents.
10212
10213         [BZ #706]
10214         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10215         (__ieee754_pow): Use iterative multiplication algorithm only for
10216         integer exponents with absolute value below 1024.  Check for odd
10217         integer exponents when using algorithm for real exponents.
10218         * math/libm-test.inc (pow_test): Add more tests.
10219         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10220
10221 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10222
10223         [BZ #13705]
10224         * math/libm-test.inc (exp_test): Do not allow overflow exception
10225         on underflow test.
10226
10227 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10228
10229         [BZ #13705]
10230         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10231         instead of __kernel_standard_f.
10232
10233 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10234
10235         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10236         * sysdeps/x86_64/memset_chk.S: Likewise.
10237
10238 2012-04-08  Andreas Jaeger  <aj@suse.de>
10239
10240         [BZ #10153]
10241         * manual/startup.texi (Environment Access): Describe return value
10242         for putenv and setenv.
10243
10244         [BZ #6895]
10245         * manual/filesys.texi (Directory Entries): Add description for
10246         DT_LNK.
10247
10248         [BZ #6890]
10249         * manual/filesys.texi (Directory Entries): Clarify that it's file
10250         system not operating system in the description of DT_UNKNOWN.
10251
10252         [BZ #6578]
10253         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10254
10255 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10256
10257         [BZ #6649]
10258         * manual/llio.texi (Opening and Closing Files): Add cross
10259         reference to explain mode argument.
10260
10261 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10262
10263         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10264         * sysdeps/x86_64/memset_chk.S: Likewise.
10265
10266 2012-04-07  David S. Miller  <davem@davemloft.net>
10267
10268         * elf/elf.h (R_SPARC_WDISP10): Define.
10269         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10270         R_SPARC_SIZE32.
10271         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10272         R_SPARC_SIZE64 and R_SPARC_H34.
10273
10274 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10275
10276         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10277         conditions and remove no longer applicable assertion.
10278
10279 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10280
10281         * bits/byteswap.h: Include <features.h>.
10282         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10283         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10284
10285 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10286
10287         * bits/byteswap.h (__bswap_16): Removed.
10288         Include <bits/byteswap-16.h> to get __bswap_16.
10289         * sysdeps/i386/bits/byteswap.h: Likewise.
10290         * sysdeps/s390/bits/byteswap.h: Likewise.
10291         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10292         * bits/byteswap-16.h: New file.
10293         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10294         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10295         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10296         * string/Makefile (headers): Add bits/byteswap-16.h.
10297
10298 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10299
10300         [BZ #13895]
10301         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10302         extra indirection.
10303         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10304         * nss/tst-nss-static.c: New.
10305
10306 2012-04-06  Robert Millan  <rmh@gnu.org>
10307
10308         [BZ #6486]
10309         * manual/llio.texi (File Position Primitive): lseek
10310         refers to WHENCE when it really means OFFSET.
10311
10312 2012-04-06  Andreas Jaeger  <aj@suse.de>
10313
10314         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10315         strncmp declarations.
10316
10317         * abilist/libc.abilist: Add __poll and __ppoll.
10318
10319 2012-04-05  David S. Miller  <davem@davemloft.net>
10320
10321         * scripts/check-local-headers.sh: Accept a host triplet in the
10322         path matched by the exclude regexp.
10323
10324         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10325         definition.
10326         * sysdeps/powerpc/powerpc32/dl-machine.h
10327         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10328         * sysdeps/s390/s390-32/dl-machine.h
10329         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10330         * sysdeps/sparc/sparc32/dl-machine.h
10331         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10332         * sysdeps/sparc/sparc64/dl-machine.h
10333         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10334
10335         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10336         lazy binding.
10337         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10338         undefined symbol errors.
10339
10340         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10341         DT_NEEDED entries.
10342
10343 2012-04-05  Michael Matz  <matz@suse.de>
10344
10345         [BZ #13592]
10346         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10347
10348 2012-04-05  Andreas Jaeger  <aj@suse.de>
10349
10350         [BZ #13908]
10351         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
10352         comment.
10353
10354 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10355
10356         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
10357         which ROUND is no valid rounding mode.
10358
10359 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10360
10361         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
10362         read again.
10363         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
10364
10365 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10366
10367         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
10368         an exception using FPU order intentionally.
10369
10370 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10371
10372         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
10373         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
10374         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
10375         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
10376
10377 2012-04-05  Simon Josefsson  <simon@josefsson.org>
10378
10379         [BZ #12340]
10380         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
10381         EINVAL when BUFLEN is too smal.
10382
10383 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
10384
10385         [BZ #13553]
10386         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
10387         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
10388
10389 2012-04-03  Andreas Jaeger  <aj@suse.de>
10390
10391         [BZ #13938]
10392         * manual/setjmp.texi (System V contexts): Fix sentence.
10393
10394         [BZ #13926]
10395         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
10396         New macro for this case.
10397         [!__GNUC__] (__bswap_64): New inline function for this case.
10398         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10399         * bits/byteswap.h: Likewise.
10400         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
10401         ull, guard with __GLIBC_HAVE_LONG_LONG.
10402
10403         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
10404         __GLIBC_HAVE_LONG_LONG.
10405
10406         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
10407         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
10408
10409 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10410
10411         [BZ #13691]
10412         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
10413         inptr and inend, rather than using last_ch.
10414
10415 2012-04-02  David S. Miller  <davem@davemloft.net>
10416
10417         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
10418         * stdio-common/printf-parse.h (read_int): Change return type to
10419         'int', return -1 on INT_MAX overflow.
10420         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
10421         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
10422         overflows INT_MAX.  Check for overflow of in-format-string precision
10423         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
10424         SIZE_MAX not INT_MAX for integer overflow test.
10425         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
10426         skip the construct in the format string but do not record anything.
10427         * stdio-common/bug22.c: Adjust to test both width/prevision
10428         INT_MAX overflow as well as total length INT_MAX overflow.  Check
10429         explicitly for proper errno values.
10430
10431 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
10432
10433         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
10434         CHAR_MAX.
10435         * string/test-strcmp.c [! WIDE]: Likewise.
10436         * time/tst-mktime2.c: Likewise for INT_MAX.
10437         * string/test-string.h: #include <sys/param.h> for MIN.
10438
10439         * csu/init-first.c (__libc_init_first): Call __ctype_init.
10440         * sysdeps/i386/init-first.c (init): Likewise.
10441         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
10442         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
10443         * sysdeps/sh/init-first.c (init): Likewise.
10444
10445 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
10446
10447         * po/ru.po: Update from translation team.
10448         * po/vi.po: Likewise.
10449
10450 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10451
10452         * resolv/nss_dns/dns-host.c: Merge copyright years.
10453
10454 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10455
10456         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10457         Optimize memcpy with prefetch if
10458         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
10459         src, dst pointers have unequal 16 byte alignments.
10460
10461 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10462
10463         [BZ #13928]
10464         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
10465         from a CNAME entry and return the minimum ttl for the query.
10466         (gaih_getanswer_slice): Likewise.
10467
10468 2012-03-30  Jeff Law  <law@redhat.com>
10469
10470         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
10471         due to long keys.
10472         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
10473         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
10474
10475         * resolv/nss_dns/dns-host.c: Update copyright year.
10476
10477 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
10478
10479         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
10480         requests to save a system call.  Fix check that all bytes are sent.
10481
10482         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
10483         comments for sendmmsg.
10484
10485 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10486
10487         [BZ #13691]
10488         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
10489         with only 1 character between 0x0041 and 0x01b0.
10490         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
10491         * wcsmbs/tst-mbsnrtowcs.c: New file.
10492
10493 2012-03-29  David S. Miller  <davem@davemloft.net>
10494
10495         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
10496         small copies by hand.
10497
10498 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10499
10500         [BZ #13761]
10501         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
10502         _nss_compat_initgroups_dyn): Fall back to malloc/free
10503         for large group memberships.
10504
10505 2012-03-28  David S. Miller  <davem@davemloft.net>
10506
10507         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
10508         that branches into memcpy.
10509         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
10510         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
10511         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10512         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
10513         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
10514         bits.
10515         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
10516         implementation too.
10517         * sysdeps/sparc/mempcpy.S: New file.
10518
10519         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
10520         the IFUNC routine in the libc case.
10521         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10522
10523         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
10524         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
10525         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
10526         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
10527         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
10528         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10529         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10530         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10531
10532         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10533         loop to 256 bytes instead of 64 bytes and fix test signedness.
10534
10535         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10536         * sysdeps/sparc/sparc32/Makefile: rather than here...
10537         * sysdeps/sparc/sparc64/Makefile: and here.
10538
10539 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10540
10541         * malloc/mallocbug.c: Avoid warnings about unused variables.
10542
10543 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10544
10545         [BZ #13760]
10546         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10547         in the right place. Discard and retry query if response is
10548         larger than input buffer size.
10549
10550 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10551
10552         [BZ #369]
10553         [BZ #2678]
10554         [BZ #3866]
10555         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10556         x for large integer exponent.
10557         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10558         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10559         sign of result as needed afterwards.
10560         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10561         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10562         result for underflowing pow the same as for overflow.
10563         (__kernel_standard_l): Handle powl overflow and underflow here
10564         rather than calling __kernel_standard.
10565         * math/libm-test.inc (pow_test): Add more tests.
10566
10567         [BZ #3868]
10568         [BZ #13879]
10569         [BZ #13910]
10570         [BZ #13911]
10571         [BZ #13912]
10572         [BZ #13913]
10573         [BZ #13915]
10574         [BZ #13916]
10575         [BZ #13917]
10576         [BZ #13918]
10577         [BZ #13919]
10578         [BZ #13920]
10579         [BZ #13921]
10580         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10581         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10582         (__kernel_standard_l): New function.
10583         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10584         __kernel_standard.
10585         * math/w_acosl.c (__acosl): Likewise.
10586         * math/w_asinl.c (__asinl): Likewise.
10587         * math/w_atan2l.c (__atan2l): Likewise.
10588         * math/w_atanhl.c (__atanhl): Likewise.
10589         * math/w_coshl.c (__coshl): Likewise.
10590         * math/w_exp10l.c (__exp10l): Likewise.
10591         * math/w_exp2l.c (__exp2l): Likewise.
10592         * math/w_fmodl.c (__fmodl): Likewise.
10593         * math/w_hypotl.c (__hypotl): Likewise.
10594         * math/w_j0l.c (__j0l, __y0l): Likewise.
10595         * math/w_j1l.c (__j1l, __y1l): Likewise.
10596         * math/w_jnl.c (__jnl, __ynl): Likewise.
10597         * math/w_lgammal.c (__lgammal): Likewise.
10598         * math/w_log10l.c (__log10l): Likewise.
10599         * math/w_log2l.c (__log2l): Likewise.
10600         * math/w_logl.c (__logl): Likewise.
10601         * math/w_powl.c (__powl): Likewise.
10602         * math/w_remainderl.c (__remainderl): Likewise.
10603         * math/w_scalbl.c (sysv_scalbl): Likewise.
10604         * math/w_sinhl.c (__sinhl): Likewise.
10605         * math/w_sqrtl.c (__sqrtl): Likewise.
10606         * math/w_tgammal.c (__tgammal): Likewise.
10607         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10608         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10609         * math/libm-test.inc (acos_test): Add more tests.
10610         (acosh_test): Likewise.
10611         (asin_test): Likewise.
10612         (atanh_test): Likewise.
10613         (exp_test): Likewise.
10614         (exp10_test): Likewise.
10615         (exp2_test): Likewise.
10616         (expm1_test): Likewise.
10617         (lgamma_test): Likewise.
10618         (log_test): Likewise.
10619         (log10_test): Likewise.
10620         (log1p_test): Likewise.
10621         (log2_test): Likewise.
10622         (pow_test): Do not allow some spurious overflow exceptions.
10623         (sqrt_test): Add more tests.
10624         (tgamma_test): Likewise.
10625         (y0_test): Likewise.
10626         (y1_test): Likewise.
10627         (yn_test): Likewise.
10628
10629 2012-03-27  Anton Blanchard  <anton@samba.org>
10630
10631         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10632         MAP_HUGETLB.
10633         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10634         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10635         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10636
10637 2012-03-27  David S. Miller  <davem@davemloft.net>
10638
10639         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10640
10641         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10642         have-as-vis3 check.
10643
10644 2012-03-27  Andreas Jaeger  <aj@suse.de>
10645
10646         * sysdeps/x86_64/elf/configure.in: Moved to ...
10647         * sysdeps/x86_64/configure.in: ... here.
10648         * sysdeps/x86_64/elf/start.S: Moved to ...
10649         * sysdeps/x86_64/start.S: ... here.
10650         * sysdeps/x86_64/elf/configure: Delete.
10651
10652         * sysdeps/x86_64/configure.in: Merge contents from
10653         sysdeps/i386/configure.in (without i686 check).
10654
10655         * sysdeps/i386/elf/Versions: Merge into ...
10656         * sysdeps/i386/Versions: ... this.
10657         * sysdeps/i386/elf/Versions: Delete file.
10658         * sysdeps/i386/elf/start.S: Moved to ...
10659         * sysdeps/i386/start.S: ...here.
10660         * sysdeps/i386/elf/configure.in: Merge into...
10661         * sysdeps/i386/configure.in: ...here.
10662         * sysdeps/i386/elf/configure.in: Delete file.
10663         * sysdeps/i386/elf/configure: Delete file.
10664
10665         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10666         * debug/backtracesyms.c: ... here.
10667         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10668         * debug/backtracesymsfd.c: ... here.
10669         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10670         * sysdeps/generic/ifunc-sel.h: ... here.
10671
10672         * sysdeps/unix/i386/start.c: Delete file.
10673         * sysdeps/unix/sparc/start.c: Delete file.
10674         * sysdeps/unix/start.c: Delete file.
10675
10676         * sysdeps/sh/elf/configure.in: Moved to ...
10677         * sysdeps/sh/configure.in: ... here.
10678         * sysdeps/sh/elf/start.S: Moved to ...
10679         * sysdeps/sh/start.S: ... here.
10680         * sysdeps/sh/elf/configure: Delete file.
10681
10682         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10683         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10684         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10685         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10686         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10687         * sysdeps/powerpc/powerpc64/start.S: here.
10688         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10689         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10690         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10691         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10692         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10693
10694         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10695         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10696         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10697         * sysdeps/powerpc/powerpc32/start.S: ... here.
10698         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10699         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10700         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10701
10702         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10703         * sysdeps/powerpc/ifunc-sel.h: ... here.
10704         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10705         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10706
10707         * sysdeps/sparc/elf/configure.in: Moved to ...
10708         * sysdeps/sparc/configure.in: ... here.
10709         * sysdeps/sparc/elf/configure: Delete file.
10710         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10711         * sysdeps/sparc/sparc32/start.S: ... here.
10712         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10713         * sysdeps/sparc/sparc64/start.S: ... here.
10714         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10715         * sysdeps/sparc/sparc32/Makefile: ... this.
10716         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10717         * sysdeps/sparc/sparc64/Makefile: ... this.
10718
10719         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10720         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10721         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10722         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10723         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10724         * sysdeps/s390/s390-32/setjmp.S: ... here.
10725         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10726         * sysdeps/s390/s390-32/configure.in: ... here.
10727         * sysdeps/s390/s390-32/elf/configure: Delete file.
10728         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10729         * sysdeps/s390/s390-32/start.S: ... here.
10730
10731         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10732         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10733         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10734         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10735         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10736         * sysdeps/s390/s390-64/setjmp.S: ... here.
10737         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10738         * sysdeps/s390/s390-64/configure.in: ... here
10739         * sysdeps/s390/s390-64/elf/configure: Delete file.
10740         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10741         * sysdeps/s390/s390-64/start.S: ... here.
10742         * sysdeps/s390/s390-64/elf/configure: Delete.
10743
10744         * configure.in: Remove support for elf directories in sysdeps.
10745
10746         * configure: Regenerated.
10747         * sysdeps/i386/configure: Regenerated.
10748         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10749         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10750         * sysdeps/s390/s390-32/configure: Regenerated.
10751         * sysdeps/s390/s390-64/configure: Regenerated.
10752         * sysdeps/sh/configure: Regenerated.
10753         * sysdeps/sparc/configure: Regenerated.
10754         * sysdeps/x86_64/configure: Regenerated.
10755
10756 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10757
10758         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10759
10760         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10761         denormal result into account.
10762
10763 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10764
10765         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10766         Reported by Allan McRae <allan@archlinux.org>.
10767
10768 2012-03-23  Jeff Law  <law@redhat.com>
10769
10770         * nss/getnssent.c (__nss_getent): Fix typo.
10771
10772 2012-03-23  David S. Miller  <davem@davemloft.net>
10773
10774         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10775
10776 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10777
10778         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10779         to pad to uint64_t for each field.
10780         (dl_tls_index): Replace unsigned long with uint64_t.
10781
10782 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10783         Paul Pluzhnikov  <ppluzhnikov@google.com>
10784
10785         [BZ #6528]
10786         * grp/Makefile (otherlibs): Don't set it.
10787         * inet/Makefile (otherlibs): Likewise.
10788         * login/Makefile (otherlibs): Likewise.
10789         * nscd/Makefile (otherlibs): Likewise.
10790         * posix/Makefile (otherlibs): Likewise.
10791         * pwd/Makefile (otherlibs): Likewise.
10792         * rt/Makefile (otherlibs): Likewise.
10793         * sunrpc/Makefile (otherlibs): Likewise.
10794         * nss/Makefile (otherlibs): Likewise.
10795         Add libnss_files to routines and static-only-routines.
10796         ($(objpfx)getent): Remove rule.
10797         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10798         static-only-routines.
10799
10800 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10801
10802         [BZ #13892]
10803         * math/s_cexp.c: Include <float.h>.
10804         (__cexp): Handle exp result overflowing not necessarily
10805         overflowing both real and imaginary parts of result.
10806         * math/s_cexpf.c: Likewise.
10807         * math/s_cexpl.c: Likewise.
10808         * math/libm-test.inc (cexp_test): Add more tests.
10809         * sysdeps/i386/fpu/libm-test-ulps: Update.
10810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10811
10812 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10813
10814         * include/link.h (ELFW): New macro.
10815         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10816         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10817
10818 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10819
10820         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10821         with uint64_t.
10822
10823 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10824
10825         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10826         declaration.
10827         (struct La_x32_retval): Likewise.
10828
10829 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10830
10831         * sysdeps/x86_64/preconfigure.in: New file.
10832         * sysdeps/x86_64/preconfigure: New generated file.
10833
10834 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10835
10836         [BZ #13824]
10837         * math/e_exp2l.c: Include <float.h>.
10838         (__ieee754_exp2l): Handle overflow and underflow cases
10839         separately.  Only pass fractional part of argument to
10840         __ieee754_expl.
10841         * math/libm-test.inc (exp2_test): Add more tests.
10842
10843         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10844         negating x to take absolute value.
10845         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10846         Likewise.
10847         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10848         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10849         Likewise.
10850         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10851         computing low part if x was negated.
10852         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10853
10854 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10855
10856         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10857         la_x32_gnu_pltexit.
10858         (pltexit): Cast int_retval to ptrdiff_t.
10859         * elf/tst-auditmod3b.c: Likewise.
10860         * elf/tst-auditmod4b.c: Likewise.
10861         * elf/tst-auditmod5b.c: Likewise.
10862         * elf/tst-auditmod6b.c: Likewise.
10863         * elf/tst-auditmod6c.c: Likewise.
10864         * elf/tst-auditmod7b.c: Likewise.
10865
10866         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10867         and x32_gnu_pltexit.
10868
10869         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10870         __ELF_NATIVE_CLASS.
10871         (La_x32_regs): New macro.
10872         (La_x32_retval): Likewise.
10873         (la_x32_gnu_pltenter): New function prototype.
10874         (la_x32_gnu_pltexit): Likewise.
10875
10876 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10877
10878         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10879         exponent.
10880
10881         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10882
10883         * configure.in (libc_cv_cc_nofma): Check for option to disable
10884         generation of FMA instructions.
10885         * configure: Regenerate.
10886         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10887         * sysdeps/ieee754/dbl-64/Makefile: New file.
10888         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10889         Remove brandred-fma4.
10890         (CFLAGS-brandred-fma4.c): Remove.
10891         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10892         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10893         define.
10894         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10895         define.
10896
10897 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10898
10899         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10900         LLONG_MAX != LONG_MAX.
10901         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10902         (_fitoa_word): Likewise.
10903         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10904         LLONG_MAX != LONG_MAX.
10905         * stdio-common/_itowa.h: Include <_itoa.h>.
10906         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10907         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10908         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10909         only if not defined.
10910         (_ITOA_WORD_TYPE): Likewise.
10911         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10912         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10913
10914 2012-03-21  David S. Miller  <davem@davemloft.net>
10915
10916         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10917
10918 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10919
10920         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10921         of x86_64 when setting libc_cv_slibdir, libdir and
10922         libc_cv_localedir.
10923         * sysdeps/unix/sysv/linux/configure: Regenerated.
10924
10925 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10926
10927         * manual/lang.texi (Old Varargs): Remove section.
10928         (How Variadic): Update menu.
10929         (va_start): Do not mention varargs.h.
10930
10931 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10932             Joseph Myers  <joseph@codesourcery.com>
10933
10934         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10935         link test.
10936         * configure: Regenerated.
10937
10938 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10939
10940         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10941         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10942         conformtest.pl
10943
10944 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10945
10946         * NOTES: Remove.
10947         * Makefile (files-for-dist): Remove NOTES.
10948         (NOTES): Remove rule.
10949         * README: Don't refer to NOTES.
10950         * manual/creature.texi: Don't include macros.texi.
10951         * manual/intro.texi (creature.texi): Remove comment referring to
10952         NOTES.
10953
10954         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10955         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10956         * configure: Regenerated.
10957         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10958         LIBC_TRY_CC_OPTION.
10959         (libc_cv_as_i686): Likewise.
10960         (libc_cv_cc_avx): Likewise.
10961         (libc_cv_cc_sse2avx): Likewise.
10962         (libc_cv_cc_fma4): Likewise.
10963         (libc_cv_cc_novzeroupper): Likewise.
10964         * sysdeps/i386/configure: Regenerated.
10965
10966         [BZ #13883]
10967         * sysdeps/i386/fpu/s_cexp.S: Remove.
10968         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10969         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10970         * math/libm-test.inc (cexp_test): Add more tests.
10971         * sysdeps/i386/fpu/libm-test-ulps: Update.
10972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10973
10974 2012-03-21  Allan McRae  <allan@archlinux.org>
10975
10976         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10977
10978 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10979
10980         [BZ #13871]
10981         * math/w_exp2.c: Do not include <float.h>.
10982         (o_threshold, u_threshold): Remove.
10983         (__exp2): Calculate result before checking finiteness and calling
10984         __kernel_standard.
10985         * math/w_exp2f.c: Likewise.
10986         * math/w_exp2l.c: Likewise.
10987         * math/libm-test.inc (exp2_test): Require overflow exception for
10988         1e6 input.
10989
10990         [BZ #3866]
10991         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10992         range of signed 64-bit integers before using fistpll.  Remove
10993         checks for whether integers fit in mantissa bits.
10994         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10995         the range of signed 32-bit integers before using fistpl.  Remove
10996         checks for whether integers fit in mantissa bits.
10997         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10998         (__ieee754_powl): Test for y outside the range of signed 64-bit
10999         integers before using fistpll.  Reduce 64-bit values to 63-bit
11000         ones as needed.
11001         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11002         divide-by-zero is raised for zero to large negative powers.
11003         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11004         (__ieee754_powl): Test for y outside the range of signed 64-bit
11005         integers before using fistpll.  Reduce 64-bit values to 63-bit
11006         ones as needed.
11007         * math/libm-test.inc (pow_test): Add more tests.
11008
11009 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11010
11011         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11012         <stdio-common/_itoa.h>.
11013         * debug/segfault.c: Likewise.
11014         * elf/dl-cache.c: Likewise.
11015         * elf/dl-minimal.c: Likewise.
11016         * elf/dl-misc.c: Likewise.
11017         * elf/dl-sysdep.c: Likewise.
11018         * elf/dl-version.c: Likewise.
11019         * elf/rtld.c: Likewise.
11020         * hurd/hurdsock.c: Likewise.
11021         * hurd/lookup-retry.c: Likewise.
11022         * malloc/malloc.c: Likewise.
11023         * malloc/mtrace.c: Likewise.
11024         * nscd/nscd_getgr_r.c: Likewise.
11025         * nscd/nscd_getpw_r.c: Likewise.
11026         * nscd/nscd_getserv_r.c: Likewise.
11027         * posix/getopt_init.c: Likewise.
11028         * posix/wordexp.c: Likewise.
11029         * stdio-common/_itoa.c: Likewise.
11030         * stdio-common/printf_fphex.c: Likewise.
11031         * stdio-common/vfprintf.c: Likewise.
11032         * string/_strerror.c: Likewise.
11033         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11034         * sysdeps/i386/i686/hp-timing.h: Likewise.
11035         * sysdeps/mach/_strerror.c: Likewise.
11036         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11037         * sysdeps/mach/hurd/sethostid.c: Likewise.
11038         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11039         * sysdeps/mach/xpg-strerror.c: Likewise.
11040         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11041         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11042         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11043         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11044         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11045         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11046         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11047         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11048         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11049         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11050         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11051         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11052         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11053         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11054         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11055         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11056         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11057         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11058         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11059         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11060         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11061
11062         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11063
11064         * stdio-common/_itoa.h: Moved to ...
11065         * sysdeps/generic/_itoa.h: Here.
11066
11067         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11068
11069         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11070         instead of "_itoa.h" and "_itowa.h".
11071         * stdio-common/vfprintf.: Likewise.
11072
11073 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11074
11075         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11076         <bits/wordsize.h>.
11077         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11078         (__signbit): Likwise.
11079         (llrintf): Likwise.
11080         (llrint): Likwise.
11081
11082 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11083
11084         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11085         __WORDSIZE != 64.
11086
11087 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11088
11089         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11090         OVERFLOW_EXCEPTION_OK.
11091         * math/libm-test.inc ("Philosophy"): Update comment about
11092         exception testing.
11093         (OVERFLOW_EXCEPTION): Define.
11094         (OVERFLOW_EXCEPTION_OK): Likewise.
11095         (INVALID_EXCEPTION_OK): Renumber.
11096         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11097         (IGNORE_ZERO_INF_SIGN): Likewise.
11098         (test_exceptions): Handle FE_OVERFLOW.
11099         (exp10_test): Expect overflow exceptions.
11100         (exp2_test): Likewise.
11101         (expm1_test): Likewise.
11102         (nextafter_test): Likewise.
11103         (pow_test): Likewise.
11104         (scalbn_test): Likewise.
11105         (scalbln_test): Likewise.
11106
11107 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11108
11109         * sysdeps/x86_64/bits/atomic.h
11110         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11111         64bit integer.
11112         (atomic_exchange_acq): Likewise.
11113         (__arch_exchange_and_add_body): Likewise.
11114         (__arch_add_body): Likewise.
11115         (atomic_add_negative): Likewise.
11116         (atomic_add_zero): Likewise.
11117
11118 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11119
11120         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11121         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11122
11123 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11124
11125         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11126         Check __x86_64__ instead of __WORDSIZE.
11127
11128 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11129
11130         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11131
11132 2012-03-19  David S. Miller  <davem@davemloft.net>
11133
11134         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11135
11136         * sysdeps/sparc/fpu/fenv_private.h: New file.
11137         * sysdeps/sparc/fpu/math_private.h: Use it.
11138         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11139         Remove.
11140         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11141         (libc_feholdexcept_setroundl): Remove.
11142         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11143         Remove.
11144         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11145         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11146
11147 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11148
11149         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11150         int64_t instead of long int.
11151         (INSERT_WORDS64): Likwise.
11152
11153 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11154
11155         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11156         _Unwind_GetCFA return to _Unwind_Ptr first.
11157
11158 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11159
11160         [BZ #13629]
11161         * math/s_clog.c: Include <float.h>.
11162         (__clog): Scale large or subnormal inputs.
11163         * math/s_clogf.c: Likewise.
11164         * math/s_clogl.c: Likewise.
11165         * math/s_clog10.c: Include <float.h>.
11166         (M_LOG10_2): Define.
11167         (__clog10): Scale large or subnormal inputs.
11168         * math/s_clog10f.c: Likewise.
11169         * math/s_clog10l.c: Likewise.
11170         * math/libm-test.inc (clog_test): Add more tests.
11171         (clog10_test): Likewise.
11172         * sysdeps/i386/fpu/libm-test-ulps: Update.
11173         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11174
11175         [BZ #11451]
11176         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11177         x and y.
11178         * math/libm-test.inc (atan2_test): Add another test.
11179
11180         * Makerules (common-objdir-compile): Remove.
11181         * sysdeps/unix/Makefile (config-generated): Do not add
11182         $(unix-generated) to variable.
11183         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11184         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11185         Remove rule.
11186         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11187         Likewise.
11188         [generic bits/local_lim.h] (before-compile): Do not append to
11189         variable.
11190         [generic bits/local_lim.h] (common-generated): Likewise.
11191         [generic sys/param.h] (before-compile): Do not append to variable.
11192         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11193         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11194         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11195         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11196         include.
11197         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11198         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11199         [generic sys/param.h] ($(addprefix
11200         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11201         [generic sys/param.h] (common-generated): Do not append to
11202         variable.
11203         [generic sys/param.h] (sysdep_headers): Likewise.
11204         [generic bits/errno.h] (before-compile): Do not append to
11205         variable.
11206         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11207         rule.
11208         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11209         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11210         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11211         [generic bits/errno.h] (common-generated): Do not append to
11212         variable.
11213         [generic bits/ioctls.h] (before-compile): Do not append to
11214         variable.
11215         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11216         rule.
11217         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11218         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11219         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11220         rule.
11221         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11222         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11223         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11224         [generic bits/ioctls.h] (common-generated): Do not append to
11225         variable.
11226         [generic sys/syscall.h] (syscall.h): Remove variable.
11227         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11228         rule.
11229         [generic sys/syscall.h] (before-compile): Do not append to
11230         variable.
11231         [generic sys/syscall.h] (common-generated): Likewise.
11232         * sysdeps/unix/errnos-tmpl.c: Remove file.
11233         * sysdeps/unix/errnos.awk: Likewise.
11234         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11235         * sysdeps/unix/ioctls.awk: Likewise.
11236         * sysdeps/unix/mk-local_lim.c: Likewise.
11237         * sysdeps/unix/snarf-ioctls: Likewise.
11238
11239 2012-03-19  Richard Henderson  <rth@twiddle.net>
11240
11241         * sysdeps/i386/fpu/fenv_private.h: New file.
11242         * sysdeps/i386/fpu/math_private.h: Use it.
11243         (math_opt_barrier, math_force_eval): Remove.
11244         (libc_feholdexcept_setround_53bit): Remove.
11245         (libc_feupdateenv_53bit): Remove.
11246         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11247         (math_opt_barrier, math_force_eval): Remove.
11248         (libc_feholdexcept): Remove.
11249         (libc_feholdexcept_setround): Remove.
11250         (libc_fetestexcept, libc_fesetenv): Remove.
11251         (libc_feupdateenv_test): Remove.
11252         (libc_feupdateenv, libc_feholdsetround): Remove.
11253         (libc_feresetround): Remove.
11254
11255         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11256         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11257
11258         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11259         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11260         (libc_feupdateenv_testl): New.
11261         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11262         (libc_feupdateenv_testf): New.
11263         (libc_feupdateenv): Use libc_feupdateenv_test.
11264         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11265         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11266
11267         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11268         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11269         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11270         (libc_feresetround_noex): New.
11271         (libc_feresetround_noexf): New.
11272         (libc_feresetround_noexl): New.
11273         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11274         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11275         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11276         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11277         SET_RESTORE_ROUND.
11278         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11279         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11280         (__cos): Likewise.
11281         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11282         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11283         SET_RESTORE_ROUND_NOEX.
11284         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11285         SET_RESTORE_ROUND_NOEXF.
11286         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11287         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11288         (libc_feholdsetroundf): New.
11289         (libc_feresetround, libc_feresetroundf): New.
11290
11291         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11292         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11293         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11294
11295         * sysdeps/generic/math_private.h: Include <fenv.h>.
11296         (default_libc_feholdexcept): New.
11297         (default_libc_feholdexcept_setround): New.
11298         (default_libc_fesetenv, default_libc_feupdateenv): New.
11299         (libc_feholdexcept): Only define if undefined.
11300         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11301         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11302         (libc_feholdexcept_setroundl): Likewise.
11303         (libc_feholdexcept_setround_53bit): Likewise.
11304         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11305         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11306         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11307         (libc_feupdateenv_53bit): Likewise.
11308         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11309         (libc_feholdexcept): Convert from macro to inline function.
11310         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11311         (libc_fesetenv, libc_feupdateenv): Likewise.
11312
11313         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11314         not previously defined.
11315         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11316         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11317         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11318         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11319         * sysdeps/ieee754/flt-32/math_private.h: New file.
11320         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11321         math_private.h below SET_FLOAT_WORD.
11322         (__isnan, __isinf_ns, __finite): Remove.
11323         (__isnanf, __isinf_nsf, __finitef): Remove.
11324
11325 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11326
11327         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11328
11329 2012-03-17  David S. Miller  <davem@davemloft.net>
11330
11331         [BZ #6471]
11332         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11333         for 2.16.
11334
11335 2012-03-16  David S. Miller  <davem@davemloft.net>
11336
11337         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11338         warnings.
11339
11340         [BZ #6471]
11341         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11342         properly.
11343         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11344         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11345         sysdep_routines when subdir is sysvipc.
11346         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11347         __getshmlba helper.
11348
11349         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11350
11351 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11352
11353         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
11354         [__LP64__].
11355
11356 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11357
11358         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
11359         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
11360         (__lround): Renamed to ...
11361         (__llround): This.  Replace long int with long long int.
11362         Define lround functions as aliases of llround functions.
11363         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
11364
11365 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11366
11367         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
11368         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
11369         adresses to uintptr_t.  Replace "long int" and "unsigned long
11370         int" with "greg_t" on va_arg.
11371
11372 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11373
11374         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
11375         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
11376
11377         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
11378         Move e_machine check before EI_CLASS check.  Handle x32
11379         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
11380         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
11381         SKIP_EM_IA_64 and include
11382         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
11383
11384         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
11385         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
11386         (add_system_dir): New macro.
11387
11388         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
11389         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
11390
11391 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11392
11393         [BZ #2551]
11394         [BZ #2552]
11395         [BZ #2553]
11396         [BZ #2554]
11397         [BZ #2562]
11398         [BZ #2563]
11399         [BZ #2565]
11400         [BZ #2566]
11401         [BZ #2576]
11402         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
11403         (y0): Likewise.
11404         * math/w_j0f.c (j0f): Likewise.
11405         (y0f): Likewise.
11406         * math/w_j0l.c (__j0l): Likewise.
11407         (__y0l): Likewise.
11408         * math/w_j1.c (j1): Likewise.
11409         (y1): Likewise.
11410         * math/w_j1f.c (j1f): Likewise.
11411         (y1f): Likewise.
11412         * math/w_j1l.c (__j1l): Likewise.
11413         (__y1l): Likewise.
11414         * math/w_jn.c (jn): Likewise.
11415         (yn): Likewise.
11416         * math/w_jnf.c (jnf): Likewise.
11417         (ynf): Likewise.
11418         * math/w_jnl.c (__jnl): Likewise.
11419         (__ynl): Likewise.
11420         * math/libm-test.inc (j0_test): Add more tests.
11421         (j1_test): Likewise.
11422         (jn_test): Likewise.  Add trailing semicolon to existing test.
11423         (y0_test): Likewise.
11424         (y1_test): Likewise.
11425         * sysdeps/i386/fpu/libm-test-ulps: Update.
11426         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11427
11428         [BZ #13851]
11429         [BZ #13854]
11430         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11431         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
11432         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
11433         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
11434         (__tanl): Set errno for infinite argument.
11435         * sysdeps/i386/fpu/mptan.c: Remove.
11436         * sysdeps/i386/fpu/s_tan.S: Likewise.
11437         * sysdeps/i386/fpu/s_tanl.S: Likewise.
11438         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
11439         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
11440         * math/libm-test.inc (tan_test): Add more tests and enable more
11441         tests for double and long double.
11442         * sysdeps/i386/fpu/libm-test-ulps: Update.
11443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11444
11445 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11446
11447         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
11448         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
11449
11450 2012-03-16  Roland McGrath  <roland@hack.frob.com>
11451
11452         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
11453         * configure.in: Use it for both main tree and add-ons.
11454         * configure: Regenerated.
11455
11456 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11457
11458         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
11459
11460 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
11461
11462         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
11463         in comment.
11464
11465         [BZ #13851]
11466         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
11467         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
11468         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11469         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
11470         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
11471         infinite argument.
11472         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
11473         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
11474         != 0 for prec == 2.
11475         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
11476         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
11477         * sysdeps/i386/fpu/s_cosl.S: Likewise.
11478         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
11479         * sysdeps/i386/fpu/s_sinl.S: Likewise.
11480         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
11481         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
11482         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
11483         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
11484         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
11485         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
11486         * math/libm-test.inc (cos_test): Add more tests and enable more
11487         tests for long double.
11488         (sin_test): Likewise.
11489         (sincos_test): Likewise.
11490         * sysdeps/i386/fpu/libm-test-ulps: Update.
11491         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11492
11493 2012-03-16  David S. Miller  <davem@davemloft.net>
11494
11495         * sysdeps/sparc/fpu/math_private.h: New file.
11496
11497 2012-03-15  David S. Miller  <davem@davemloft.net>
11498
11499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
11500         file.
11501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
11502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
11503         file.
11504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
11505         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
11506         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
11507         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
11508         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
11509         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
11510         sysdep routines.
11511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11512
11513         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
11514         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
11515
11516         * sysdeps/sparc/sparc-ifunc.h: New file.
11517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
11518         sparc-ifunc.h
11519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
11521         Likewise.
11522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
11523         Likewise.
11524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
11525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
11526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11528         Likewise.
11529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11534         Likewise.
11535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11536         Likewise.
11537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11541         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11542         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11543         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11544         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11545         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11546         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11547         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11548         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11549         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11550         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11551         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11552         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11553         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11554         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11555         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11556         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11557         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11558         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11559         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11560         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11561
11562 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11563
11564         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11565         scaling.
11566         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11567
11568 2012-03-15  Andreas Jaeger  <aj@suse.de>
11569
11570         [BZ #13852]
11571         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11572         ieee754/flt-32 implementation for sin, cos and sincos.
11573         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11574         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11575         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11576         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11577         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11578         ieee754/flt-32 implementation for tan.
11579
11580         * math/libm-test.inc (cos_test): Enable some large input tests for
11581         float as well
11582         (sin_test): Likewise.
11583         (sincos_test): Likewise.
11584         (tan_test): Add tests for large input.
11585
11586         * sysdeps/i386/fpu/libm-test-ulps: Update.
11587
11588 2012-03-15  Andreas Jaeger  <aj@suse.de>
11589
11590         [BZ #13658]
11591         * math/libm-test.inc (cos_test): Add more test cases.
11592         (sin_test): Likewise.
11593         (sincos_test): Likewise.
11594
11595 2012-03-15  Andreas Jaeger  <aj@suse.de>
11596
11597         [BZ #13837]
11598         * math/libm-test.inc (cos_test): Add a test case for large input
11599         value.
11600         (sin_test): Likewise.
11601         (sincos_test): Likewise.
11602
11603 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11604         Joseph Myers  <joseph@codesourcery.com>
11605
11606         [BZ #13658]
11607         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11608         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11609         * sysdeps/i386/fpu/branred.c: Likewise.
11610         * sysdeps/i386/fpu/dosincos.c: Likewise.
11611         * sysdeps/i386/fpu/mpa.c: Likewise.
11612         * sysdeps/i386/fpu/s_cos.S: Likewise.
11613         * sysdeps/i386/fpu/s_sin.S: Likewise.
11614         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11615         * sysdeps/i386/fpu/sincos32.c: Likewise.
11616
11617         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11618         Define.
11619         (libc_feupdateenv_53bit): Define.
11620         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11621         Define.
11622         (libc_feupdateenv_53bit): Define.
11623
11624         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11625         53 bit (without extend i386 double precision).
11626
11627         * math/libm-test.inc (sincos_test): Add tests for large input.
11628         (sin): Likewise.
11629         (cos): Likewise.
11630
11631         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11632
11633 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11634
11635         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11636
11637 2012-03-15  David S. Miller  <davem@davemloft.net>
11638
11639         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11640         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11641         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11642         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11643         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11644         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11645         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11646         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11647         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11648         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11649         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11650         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11651         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11652         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11653         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11655         file.
11656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11658         file.
11659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11661         file.
11662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11664         file.
11665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11666         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11667         fmin/fmax sysdep routines.
11668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11669
11670 2012-03-14  David S. Miller  <davem@davemloft.net>
11671
11672         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11673         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11674         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11675         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11676         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11677         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11678         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11679         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11680         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11681         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11682         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11683         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11684         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11685         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11686         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11687         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11688         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11689         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11690         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11691         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11692         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11693         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11694         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11695         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11696         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11697         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11698         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11699         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11700         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11701         routines.
11702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11703         file.
11704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11706         file.
11707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11709         file.
11710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11712         file.
11713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11715         file.
11716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11718         file.
11719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11720         file.
11721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11722         file.
11723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11724         file.
11725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11726         New file.
11727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11728         file.
11729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11730         file.
11731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11733         file.
11734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11736         file.
11737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11739         file.
11740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11742         VIS3 routines.
11743
11744         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11745         New file.
11746
11747         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11748
11749         * sysdeps/sparc/configure.in: New file.
11750         * sysdeps/sparc/configure: Generate.
11751         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11752         * configure: Regenerate.
11753         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11754         * config.make.in (have-as-vis3): New.
11755         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11756         available use -Av9d instead of -Av9a.
11757         * sysdeps/sparc/sparc64/Makefile: Likewise.
11758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11760         New file.
11761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11762         file.
11763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11764         New file.
11765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11766         file.
11767         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11768         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11769         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11770         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11771         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11772
11773         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11774         fzeros/fnegs to load 0x80000000 into a float register instead of
11775         using the stack.
11776         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11777
11778 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11779
11780         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11781         bits/syscall.h.
11782         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11783         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11784         ($(inst_includedir)/bits/syscall.h): Remove rule.
11785         ($(objpfx)bits/syscall.d): Include instead of
11786         $(objpfx)syscall-list.d.
11787         (generated): Change syscall-list.h and syscall-list.d to
11788         bits/syscall.h and bits/syscall.d.
11789
11790 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11791
11792         [BZ #13846]
11793         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11794
11795 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11796
11797         [BZ #13841]
11798         * math/s_csqrt.c: Include <float.h>.
11799         (__csqrt): Scale large or subnormal inputs.
11800         * math/s_csqrtf.c: Likewise.
11801         * math/s_csqrtl.c: Likewise.
11802         * math/libm-test.inc (csqrt_test): Add more tests.
11803         * sysdeps/i386/fpu/libm-test-ulps: Update.
11804         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11805
11806         [BZ #13840]
11807         * math/libm-test.inc (hypot_test): Add more tests.
11808
11809 2012-03-13  David S. Miller  <davem@davemloft.net>
11810
11811         [BZ #13840]
11812         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11813         double-precision for the calculation instead of scaling.
11814
11815 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11816
11817         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11818         manipulate bits before adding and subtracting TWO52[sx].
11819         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11820         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11821         Likewise.
11822         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11823
11824 2012-03-13  David S. Miller  <davem@davemloft.net>
11825
11826         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11827         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11828         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11829         rtld-global-offsets.h
11830         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11831
11832         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11833         large parameters.
11834
11835         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11836
11837         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11838         'err' in the ifdef scope in which it is actually used.
11839
11840         * nss/nss_db/db-init.c: Include string.h
11841
11842 2012-03-12  David S. Miller  <davem@davemloft.net>
11843
11844         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11845         masking out of the most significant byte of random value used.
11846         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11847         Fix coding style in previous change.
11848
11849         * sysdeps/unix/sysv/linux/kernel-features.h
11850         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11851         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11852         expression.
11853         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11854         later.
11855
11856 2012-03-11  David S. Miller  <davem@davemloft.net>
11857
11858         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11859         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11860         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11861         for 'resultvar' otherwise things get truncated on 64-bit.
11862
11863         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11864         Fix masking out of the most significant byte of random value used.
11865
11866         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11867
11868 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11869
11870         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11871
11872 2012-03-09  David S. Miller  <davem@davemloft.net>
11873
11874         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11875         variables with appropriate CPP guards.
11876         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11877         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11878         on resulting framesize and the management of the outregs buffer for pltexit.
11879         Preserve floating point return values across _dl_call_pltexit call.
11880         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11881         framesize and the management of the outregs buffer for pltexit.
11882         Preserve floating point return values across _dl_call_pltexit
11883         call.
11884         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11885         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11886         (print_exit): Fix format string for return register value.
11887
11888 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11889
11890         * sunrpc/Makefile (others): Add rpcgen.
11891         ($(objpfx)rpcgen): Remove special build rule and dependency on
11892         libc.
11893         * sunrpc/rpcgen.c: New file.
11894
11895 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11896
11897         [BZ #13673]
11898         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11899         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11900         * sysdeps/i386/crti.S: Likewise.
11901         * sysdeps/i386/crtn.S: Likewise.
11902         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11903         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11904         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11905         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11906         * sysdeps/sh/crti.S: Likewise.
11907         * sysdeps/sh/crtn.S: Likewise.
11908         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11909
11910         [BZ #13673]
11911         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11912         with URL.
11913         * locale/programs/locfile-kw.gperf: Likewise.
11914         * locale/programs/charmap-kw.h: Regenerated.
11915         * locale/programs/locfile-kw.h: Likewise.
11916
11917         [BZ #13673]
11918         * intl/plural.y: Replace FSF snail mail address with URL.
11919         * intl/plural.c: Regenerated.
11920
11921 2012-03-09  Richard Henderson  <rth@twiddle.net>
11922
11923         * include/math_private.h: Remove file.
11924         * math/math_private.h: Move file ...
11925         * sysdeps/generic/math_private.h: ... here.
11926
11927         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11928         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11929         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11930
11931         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11932         and <math_private.h>.
11933         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11934         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11935         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11936         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11937         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11938         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11939         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11940         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11941         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11942         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11943         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11944         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11945         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11946         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11947         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11948         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11949         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11950         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11951         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11952         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11953         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11954         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11955         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11956         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11957         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11958         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11959         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11960         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11961         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11962         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11963         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11964         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11965         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11966         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11967         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11968         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11969         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11970         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11971         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11972         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11973         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11974         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11975         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11976         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11977         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11978         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11979         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11980         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11981         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11982         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11983         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11984         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11985         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11986         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11987         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11988         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11989         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11990         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11991         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11992         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11993         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11994         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11995         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11996         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11997         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11998         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11999         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12000         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12001         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12002         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12003         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12004         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12005         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12006         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12007         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12008         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12009         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12010         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12011         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12012         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12013         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12014         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12015         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12016         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12017         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12018         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12019         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12020         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12021         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12022         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12023         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12024         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12025         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12026         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12027         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12028         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12029         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12030         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12031         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12032         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12033         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12034         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12035         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12036         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12037         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12038         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12039         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12040         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12041         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12042         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12043         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12044         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12045         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12046         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12047         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12048         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12049         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12050         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12051         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12052         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12053         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12054         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12055         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12056         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12057         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12058         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12059         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12060         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12061         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12062         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12063         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12064         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12065         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12066         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12067         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12068         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12069         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12070         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12071         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12072         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12073         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12074         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12075         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12076         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12077         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12078         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12079         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12080         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12081         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12082         * sysdeps/ieee754/k_standard.c: Likewise.
12083         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12084         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12085         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12086         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12087         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12088         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12089         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12090         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12091         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12092         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12093         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12094         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12095         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12096         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12097         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12098         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12099         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12100         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12101         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12102         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12103         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12104         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12105         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12106         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12107         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12108         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12109         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12110         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12111         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12112         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12113         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12114         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12115         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12116         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12117         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12118         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12119         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12120         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12121         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12122         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12123         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12124         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12125         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12126         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12127         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12128         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12129         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12130         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12131         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12132         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12133         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12134         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12135         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12136         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12137         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12138         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12139         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12140         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12141         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12142         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12143         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12144         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12145         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12146         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12147         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12148         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12149         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12150         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12151         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12152         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12153         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12154         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12155         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12156         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12157         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12158         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12159         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12160         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12161         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12162         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12163         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12164         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12165         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12166         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12167         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12168         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12169         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12170         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12171         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12173         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12177         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12178         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12179         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12180         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12181         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12182         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12183         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12184         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12185         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12186         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12187         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12188         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12189         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12190         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12191         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12192         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12193         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12194         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12195         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12196         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12197         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12198         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12199         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12200         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12201         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12202         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12203         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12204         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12205         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12206         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12207         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12208         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12209         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12210         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12211         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12212         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12213         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12214         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12215         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12216         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12217         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12218         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12219         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12220         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12221         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12222         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12223         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12224         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12225         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12226         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12227         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12228         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12229         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12230         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12231         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12232         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12233         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12234         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12235         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12236         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12237         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12238         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12239         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12240         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12241         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12242         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12243         * sysdeps/ieee754/s_lib_version.c: Likewise.
12244         * sysdeps/ieee754/s_matherr.c: Likewise.
12245         * sysdeps/ieee754/s_signgam.c: Likewise.
12246         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12247         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12248         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12249         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12250         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12251         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12252         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12253         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12254         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12255         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12256         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12257         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12258         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12259         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12260         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12261         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12262         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12263         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12264         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12265         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12266         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12267
12268 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12269
12270         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12271         * sunrpc/rpc_main.c: Likewise.
12272         * sunrpc/rpc_svcout.c: Likewise.
12273
12274 2012-03-09  David S. Miller  <davem@davemloft.net>
12275
12276         * include/math_private.h: New file.
12277
12278 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12279
12280         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12281         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12282         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12283         from <bits/socket_type.h>.
12284         (enum __socket_type): Don't define here.
12285         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12286         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12287         bits/socket_type.h.
12288
12289         [BZ #13566]
12290         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12291         checking __USE_GNU.
12292
12293         * Makerules ($(inst_includedir)/%.h): New rule.
12294         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12295         (install-others): Remove variable setting.
12296         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12297
12298 2012-03-08  Richard Henderson  <rth@twiddle.net>
12299
12300         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12301         from macro to inline function; merge with the
12302         !__LIBC_INTERNAL_MATH_INLINES version.
12303         (__ieee754_sqrtf): Likewise.
12304
12305         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12306         to inline function.
12307         (__rintf, __floor, __floorf): Likewise.
12308
12309         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12310         macro to inline function.
12311         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12312
12313         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12314         not <math/math_private.h>.
12315
12316 2012-03-08  David S. Miller  <davem@davemloft.net>
12317
12318         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12319         copyright year.
12320         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12321
12322 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12323
12324         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12325         normalization.
12326         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12327         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12328
12329 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12330
12331         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12332         be defined individually, they must be defined as a block.  Define
12333         S for printing a string instead of hidint the different by using a
12334         macro for adding the 'l'.
12335         * stdio-common/tst-fphex-wide.c: Adjust.
12336
12337 2012-03-07  Marek Polacek  <polacek@redhat.com>
12338
12339         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12340
12341 2012-03-08  Marek Polacek  <polacek@redhat.com>
12342
12343         [BZ #13806]
12344         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12345         * stdio-common/tst-fphex.c: Define a few macros to make the
12346         test reusable.  Use them.
12347         * stdio-common/tst-fphex-wide.c: New file.
12348
12349 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12350
12351         [BZ #6911]
12352         * manual/macros.texi (gnusystems): New macro.
12353         (nongnusystems): Likewise.
12354         (gnulinuxhurdsystems): Likewise.
12355         (gnuhurdsystems): Likewise..
12356         (gnulinuxsystems): Likewise.
12357         * manual/charset.texi: Use new macros or @theglibc{} to refer to
12358         variants of the GNU system, not "GNU system".
12359         * manual/conf.texi: Likewise.
12360         * manual/errno.texi: Likewise.  Update example of errno macro
12361         expansion.
12362         * manual/filesys.texi: Likewise.
12363         (getumask): Document as specific to GNU/Hurd.
12364         * manual/install.texi: Likewise.  Reword some references to
12365         GNU/Linux.
12366         * manual/intro.texi: Likewise.
12367         * manual/io.texi: Likewise.
12368         (File Name Portability): Detail which constraints are inapplicable
12369         to all GNU systems and which are only inapplicable to GNU/Hurd.
12370         * manual/job.texi: Likewise.
12371         * manual/llio.texi: Likewise.
12372         (O_NOCTTY): Document as present on GNU/Linux.
12373         * manual/maint.texi: Likewise.
12374         * manual/memory.texi: Likewise.
12375         * manual/pattern.texi: Likewise.
12376         * manual/pipe.texi: Likewise.
12377         * manual/process.texi: Likewise.
12378         * manual/resource.texi: Likewise.
12379         (RUSAGE_CHILDREN): Remove statement about specifying a particular
12380         child on GNU/Hurd.
12381         * manual/setjmp.texi: Likewise.
12382         * manual/signal.texi: Likewise.
12383         * manual/startup.texi: Likewise.
12384         * manual/stdio.texi: Likewise.
12385         * manual/terminal.texi: Likewise.
12386         (ONLCR): Document as POSIX.
12387         (OXTABS): Document availability on GNU/Linux as XTABS.
12388         (ONOEOT): Document availability separately from other bits.
12389         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
12390         * manual/time.texi: Likewise.
12391         * manual/users.texi: Likewise.
12392         * INSTALL: Regenerated.
12393         * sysdeps/gnu/errlist.c: Regenerated.
12394
12395         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
12396         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
12397         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
12398         puts.
12399         * configure: Regenerated.
12400
12401 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
12402
12403         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
12404         default includes instead of AC_HEADER_CHECK.
12405         * sysdeps/i386/configure: Regenerated.
12406
12407         [BZ #10716]
12408         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
12409         * math/s_cacoshf.c (__cacoshf): Likewise.
12410         * math/s_cacoshl.c (__cacoshl): Likewise.
12411         * math/s_casinh.c (__casinh): Set signs of result from argument.
12412         * math/s_casinhf.c (__casinhf): Likewise.
12413         * math/s_casinhl.c (__casinhl): Likewise.
12414         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
12415         (casinh_test): Add more tests.
12416         * sysdeps/i386/fpu/libm-test-ulps: Update.
12417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12418
12419 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
12420
12421         * po/zh_TW.po: Update from translation team.
12422
12423         * login/Makefile (distribute): Remove variable.
12424         * catgets/Makefile: Likewise.
12425         * mach/Makefile: Likewise.
12426         * malloc/Makefile: Likewise.
12427         * misc/Makefile: Likewise.
12428         * iconv/Makefile: Likewise.
12429         * nscd/Makefile: Likewise.
12430         * hurd/Makefile: Likewise.
12431         * manual/Makefile: Likewise.
12432         * locale/Makefile: Likewise.
12433         * intl/Makefile: Likewise.
12434         * conform/Makefile: Likewise.
12435         * nss/Makefile: Likewise.
12436         * time/Makefile: Likewise.
12437         * soft-fp/Makefile: Likewise.
12438         * dirent/Makefile: Likewise.
12439         * gmon/Makefile: Likewise.
12440         * po/Makefile: Likewise.
12441         * rt/Makefile: Likewise.
12442         * socket/Makefile: Likewise.
12443         * math/Makefile: Likewise.
12444         * signal/Makefile: Likewise.
12445         * debug/Makefile: Likewise.
12446         * elf/Makefile: Likewise.
12447         * timezone/Makefile: Likewise.
12448         * stdlib/Makefile: Likewise.
12449         * iconvdata/Makefile: Likewise.
12450         * sunrpc/Makefile: Likewise.
12451         * io/Makefile: Likewise.
12452         * argp/Makefile: Likewise.
12453         * inet/Makefile: Likewise.
12454         * hesiod/Makefile: Likewise.
12455         * grp/Makefile: Likewise.
12456         * csu/Makefile: Likewise.
12457         * wctype/Makefile: Likewise.
12458         * crypt/Makefile: Likewise.
12459         * libio/Makefile: Likewise.
12460         * string/Makefile: Likewise.
12461         * nis/Makefile: Likewise.
12462         * resolv/Makefile: Likewise.
12463         * stdio-common/Makefile: Likewise.
12464         * wcsmbs/Makefile: Likewise.
12465         * dlfcn/Makefile: Likewise.
12466         * posix/Makefile: Likewise.
12467
12468         [BZ #6959]
12469         * timezone/Makefile: Don't install timezone files, just the programs
12470         and scripts.
12471
12472 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
12473
12474         * nss/databases.def: Add missing gshadow entry.
12475
12476         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
12477
12478 2012-03-06  Marek Polacek  <polacek@redhat.com>
12479
12480         [BZ #13726]
12481         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
12482         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12483         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
12484         * stdio-common/tst-long-dbl-fphex.c: New file.
12485
12486 2012-03-06  David S. Miller  <davem@davemloft.net>
12487
12488         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12489         (set_obp_int): New function.
12490         (get_obp_int): New function.
12491         (__get_clockfreq_via_dev_openprom): Likewise.
12492         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
12493         Avoid unused variable warnings on 'val' and use builtin_expect.
12494         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
12495         __builtin_expect.
12496         (INLINE_CLONE_SYSCALL): Likewise.
12497
12498 2012-03-05  David S. Miller  <davem@davemloft.net>
12499
12500         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12501
12502 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
12503
12504         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12505
12506         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
12507         only for |x| >= 40.
12508         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12509
12510 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12511
12512         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
12513         Replace gettimeofday with __vdso_gettimeofday.
12514
12515         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12516         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
12517         __vdso_clock_gettime and __vdso_getcpu.
12518
12519         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
12520         time with __vdso_time.
12521
12522 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12523
12524         * manual/lang.texi (size_t): Note types to which size_t may be
12525         equivalent with the GNU C Library, but do not describe when
12526         differences between them are significant.
12527
12528 2012-03-05  Andreas Jaeger  <aj@suse.de>
12529
12530         * sysdeps/i386/fpu/libm-test-ulps: Update.
12531
12532 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12533
12534         [BZ #3976]
12535         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12536         (__ieee754_pow): Save and restore rounding mode and use
12537         round-to-nearest for main computations.
12538         * math/libm-test.inc (pow_test_tonearest): New function.
12539         (pow_test_towardzero): Likewise.
12540         (pow_test_downward): Likewise.
12541         (pow_test_upward): Likewise.
12542         (main): Call the new functions.
12543         * sysdeps/i386/fpu/libm-test-ulps: Update.
12544         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12545
12546         [BZ #3976]
12547         * math/libm-test.inc (cosh_test_tonearest): New function.
12548         (cosh_test_towardzero): Likewise.
12549         (cosh_test_downward): Likewise.
12550         (cosh_test_upward): Likewise.
12551         (sinh_test_tonearest): Likewise.
12552         (sinh_test_towardzero): Likewise.
12553         (sinh_test_downward): Likewise.
12554         (sinh_test_upward): Likewise.
12555         (main): Call the new functions.
12556         * sysdeps/i386/fpu/libm-test-ulps: Update.
12557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12558
12559 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12560
12561         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12562         default stack guard is set in last bytes.
12563         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12564
12565 2012-03-05  Kees Cook  <keescook@chromium.org>
12566
12567         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12568
12569         [BZ #13656]
12570         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12571         possibly allocate from heap instead of stack.
12572         * stdio-common/bug-vfprintf-nargs.c: New file.
12573         * stdio-common/Makefile (tests): Add nargs overflow test.
12574
12575 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12576
12577         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12578
12579 2012-03-03  Marek Polacek  <polacek@redhat.com>
12580
12581         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12582         * math/math_private.h: Likewise.
12583         * stdlib/tst-strtod.c: Likewise.
12584         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12585         * sysdeps/x86_64/bits/atomic.h: Likewise.
12586
12587 2012-03-02  David S. Miller  <davem@davemloft.net>
12588
12589         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12592         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12593         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12594         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12595         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12596         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12597
12598 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12599
12600         [BZ #13792]
12601         * manual/examples/README: New file, says the example source files
12602         can be used under GPL>=2.
12603         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12604         line containing just "*/".
12605         * manual/examples/add.c: Add copyright header (GPL>=2).
12606         * manual/examples/argp-ex1.c: Likewise.
12607         * manual/examples/argp-ex2.c: Likewise.
12608         * manual/examples/argp-ex3.c: Likewise.
12609         * manual/examples/argp-ex4.c: Likewise.
12610         * manual/examples/atexit.c: Likewise.
12611         * manual/examples/db.c: Likewise.
12612         * manual/examples/dir.c: Likewise.
12613         * manual/examples/dir2.c: Likewise.
12614         * manual/examples/execinfo.c: Likewise.
12615         * manual/examples/filecli.c: Likewise.
12616         * manual/examples/filesrv.c: Likewise.
12617         * manual/examples/fmtmsgexpl.c: Likewise.
12618         * manual/examples/genpass.c: Likewise.
12619         * manual/examples/inetcli.c: Likewise.
12620         * manual/examples/inetsrv.c: Likewise.
12621         * manual/examples/isockad.c: Likewise.
12622         * manual/examples/longopt.c: Likewise.
12623         * manual/examples/memopen.c: Likewise.
12624         * manual/examples/memstrm.c: Likewise.
12625         * manual/examples/mkfsock.c: Likewise.
12626         * manual/examples/mkisock.c: Likewise.
12627         * manual/examples/mygetpass.c: Likewise.
12628         * manual/examples/pipe.c: Likewise.
12629         * manual/examples/popen.c: Likewise.
12630         * manual/examples/rprintf.c: Likewise.
12631         * manual/examples/search.c: Likewise.
12632         * manual/examples/select.c: Likewise.
12633         * manual/examples/setjmp.c: Likewise.
12634         * manual/examples/sigh1.c: Likewise.
12635         * manual/examples/sigusr.c: Likewise.
12636         * manual/examples/stpcpy.c: Likewise.
12637         * manual/examples/strdupa.c: Likewise.
12638         * manual/examples/strftim.c: Likewise.
12639         * manual/examples/strncat.c: Likewise.
12640         * manual/examples/subopt.c: Likewise.
12641         * manual/examples/swapcontext.c: Likewise.
12642         * manual/examples/termios.c: Likewise.
12643         * manual/examples/testopt.c: Likewise.
12644         * manual/examples/testpass.c: Likewise.
12645         * manual/examples/timeval_subtract.c: Likewise.
12646
12647         [BZ #13792]
12648         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12649         function to ...
12650         * manual/timeval_subtract.c.texi: ... here, new file.
12651
12652 2012-03-02  David S. Miller  <davem@davemloft.net>
12653
12654         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12655
12656 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12657
12658         [BZ #3976]
12659         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12660         (__sin): Save and restore rounding mode and use round-to-nearest
12661         for all computations.
12662         (__cos): Save and restore rounding mode and use round-to-nearest
12663         for all computations.
12664         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12665         <fenv.h>.
12666         (tan): Save and restore rounding mode and use round-to-nearest for
12667         all computations.
12668         * math/libm-test.inc (cos_test_tonearest): New function.
12669         (cos_test_towardzero): Likewise.
12670         (cos_test_downward): Likewise.
12671         (cos_test_upward): Likewise.
12672         (sin_test_tonearest): Likewise.
12673         (sin_test_towardzero): Likewise.
12674         (sin_test_downward): Likewise.
12675         (sin_test_upward): Likewise.
12676         (tan_test_tonearest): Likewise.
12677         (tan_test_towardzero): Likewise.
12678         (tan_test_downward): Likewise.
12679         (tan_test_upward): Likewise.
12680         (main): Call the new functions.
12681         * sysdeps/i386/fpu/libm-test-ulps: Update.
12682         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12683
12684         [BZ #10135]
12685         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12686         small n, then large n, before computing and testing k+n.
12687         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12688         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12689         Likewise.
12690         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12691         Likewise.
12692         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12693         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12694         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12695         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12696         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12697         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12698         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12699         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12700         * math/libm-test.inc (scalbn_test): Add more tests.
12701         (scalbln_test): Likewise.
12702
12703         * manual/filesys.texi (mode_t): Describe constraints on size and
12704         signedness, not exact equivalence to a particular type.
12705         (ino_t): Likewise.
12706         (ino64_t): Likewise.
12707         (dev_t): Likewise.
12708         (nlink_t): Likewise.
12709         (blkcnt_t): Likewise.
12710         (blkcnt64_t): Likewise.
12711         * manual/llio.texi (off_t): Likewise.
12712
12713         [BZ #3976]
12714         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12715         (__ieee754_exp): Save and restore rounding mode and use
12716         round-to-nearest for all computations.
12717         * math/libm-test.inc (exp_test_tonearest): New function.
12718         (exp_test_towardzero): Likewise.
12719         (exp_test_downward): Likewise.
12720         (exp_test_upward): Likewise.
12721         (main): Call the new functions.
12722         * sysdeps/i386/fpu/libm-test-ulps: Update.
12723         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12724
12725 2012-03-01  Chris Demetriou  <cgd@google.com>
12726
12727         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12728         have predictable order.
12729
12730 2012-03-01  David S. Miller  <davem@davemloft.net>
12731
12732         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12733
12734         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12735         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12736         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12737         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12738
12739         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12740         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12741         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12742         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12743         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12744         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12745         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12746         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12747         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12748
12749         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12750
12751         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12752         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12753         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12754
12755         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12756         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12757         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12758         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12759         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12760         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12761         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12762         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12763         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12764         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12765         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12766         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12767         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12768         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12769         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12770         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12771         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12772         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12773         * sysdeps/sparc/elf/configure: Regenerated.
12774
12775 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12776
12777         * configure.in (AS, LD): Require binutils 2.20 or later.
12778         * configure: Regenerated.
12779         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12780         as required minimum version.
12781         * INSTALL: Regenerated.
12782
12783         [BZ #2541]
12784         [BZ #4108]
12785         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12786         before squaring exponent.
12787         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12788         bottom long double and 27 bits of top long double before squaring
12789         exponent.
12790         * math/libm-test.inc (erfc_test): Add more tests.
12791         * sysdeps/i386/fpu/libm-test-ulps: Update.
12792         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12793         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12794
12795 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12796
12797         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12798         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12799         containing bit-fields.
12800         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12801         * soft-fp/single.h (_FP_UNION_S): Likewise.
12802         * soft-fp/double.h (_FP_UNION_D): Likewise.
12803
12804 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12805
12806         [BZ #13786]
12807         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12808         not include ../strcmp.S.
12809         [USE_AS_STRNCASECMP_L]: Likewise.
12810         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12811         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12812         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12813         (__strncasecmp_l_ia32): Define as alias to
12814         __strncasecmp_l_nonascii.
12815
12816         [BZ #5794]
12817         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12818         * sysdeps/i386/fpu/libm-test-ulps: Update.
12819         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12820
12821         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12822         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12823
12824 2012-02-29  Jeff Law  <law@redhat.com>
12825
12826         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12827         out of bounds read.
12828
12829 2012-02-29  Marek Polacek  <polacek@redhat.com>
12830
12831         [BZ #13706]
12832         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12833         * elf/Makefile: Add rules to run tst-unused-dep.out.
12834
12835 2012-02-28  David S. Miller  <davem@davemloft.net>
12836
12837         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12838         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12839         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12840         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12841         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12842         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12843
12844 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12845
12846         * math/libm-test.inc (llround_test): Move one test from
12847         lround_test.  Use TEST_f_L in moved test.
12848         (lround_test): Move misplaced test to llround_test.  Add testcase
12849         from bug 2561.
12850
12851 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12852
12853         * sysdeps/x86_64/fpu/e_expf.S: New file.
12854         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12855
12856 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12857
12858         [BZ #13637]
12859         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12860         of remain_len that may cause incomplete multi-byte character and
12861         false match.
12862         * posix/bug-regex33.c: New file.
12863         * posix/Makefile (tests): Add bug-regex33.
12864
12865 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12866
12867         * manual/macros.texi: New file.
12868         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12869         * manual/libc.texinfo: Include macros.texi.
12870         * manual/creatute.texi: Likewise.
12871         * manual/install.texi: Likewise.
12872         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12873         @glibcadj{} in references to the GNU C Library.
12874         * manual/charset.texi: Likewise.
12875         * manual/conf.texi: Likewise.
12876         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12877         when not using those macros.
12878         * manual/creature.texi: Likewise.
12879         * manual/crypt.texi: Likewise.
12880         * manual/errno.texi: Likewise.
12881         * manual/filesys.texi: Likewise.
12882         * manual/header.texi: Likewise.
12883         * manual/install.texi: Likewise.
12884         * manual/intro.texi: Likewise.
12885         * manual/io.texi: Likewise.
12886         * manual/job.texi: Likewise.
12887         * manual/lang.texi: Likewise.
12888         * manual/libc.texiinfo: Likewise.
12889         * manual/llio.texi: Likewise.
12890         * manual/locale.texi: Likewise.
12891         * manual/maint.texi: Likewise.
12892         * manual/math.texi: Likewise.
12893         * manual/memory.texi: Likewise.
12894         * manual/message.texi: Likewise.
12895         * manual/nss.texi: Likewise.
12896         * manual/pattern.texi: Likewise.
12897         * manual/process.texi: Likewise.
12898         * manual/resource.texi: Likewise.
12899         * manual/search.texi: Likewise.
12900         * manual/setjmp.texi: Likewise.
12901         * manual/signal.texi: Likewise.
12902         * manual/socket.texi: Likewise.
12903         * manual/startup.texi: Likewise.
12904         * manual/stdio.texi: Likewise.
12905         * manual/string.texi: Likewise.
12906         * manual/sysinfo.texi: Likewise.
12907         * manual/syslog.texi: Likewise.
12908         * manual/terminal.texi: Likewise.
12909         * manual/time.texi: Likewise.
12910         * manual/users.texi: Likewise.
12911         * INSTALL: Regenerated.
12912         * NOTES: Regenerated.
12913         * sysdeps/gnu/errlist.c: Regenerated.
12914
12915 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12916
12917         * include/dirent.h: Include <dirstream.h> before
12918         <dirent/dirent.h>.
12919
12920 2012-02-28  David S. Miller  <davem@davemloft.net>
12921
12922         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12923         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12924         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12925         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12926
12927 2012-02-27  David S. Miller  <davem@davemloft.net>
12928
12929         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12930         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12931         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12932         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12933
12934         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12935         frame pointer instead of stack pointer relative arg slot.
12936         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12937         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12938         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12939
12940 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12941
12942         [BZ #3992]
12943         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12944
12945 2012-02-27  David S. Miller  <davem@davemloft.net>
12946
12947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12948         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12949         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12950         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12951         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12952         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12953         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12954         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12955
12956 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12957
12958         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12959         later.  Allow versions 5-9.
12960         * configure: Regenerated.
12961         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12962         required minimum version and 4.6 as recommended version.  Do not
12963         mention bugs in GCC 2.7 and 2.8.
12964         * INSTALL: Regenerated.
12965
12966 2012-02-27  David S. Miller  <davem@davemloft.net>
12967
12968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12969         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12970         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12971         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12972         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12973         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12974         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12975         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12976
12977         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12978         manipulate bits before adding and subtracting TWO112[sx].
12979         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12980
12981 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12982
12983         [BZ #13775]
12984         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12985         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12986         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12987         being in POSIX, because they are in 1003.1-2008.
12988
12989         * rt/tst-aio.c: Include <fcntl.h>.
12990         * rt/tst-aio7.c: Likewise.
12991         * rt/tst-aio64.c: Likewise.
12992
12993         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12994
12995 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12996
12997         * manual/install.texi (--with-headers): Describe headers as
12998         interface headers, not private headers.
12999         (Specific advice for GNU/Linux systems): Describe use of headers
13000         from "make headers_install", not private headers from older
13001         kernels.
13002         * INSTALL: Regenerated.
13003         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13004         Change to 2.6.19.
13005         * sysdeps/unix/sysv/linux/configure: Regenerated.
13006
13007         * manual/llio.texi (fclean): Remove documentation.
13008
13009         * manual/Makefile (libc-texi-generated): New variable.  Include
13010         version.texi.
13011         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13012         $(libc-texi-generated), not duplicated list of files.
13013         (version.texi, stamp-version): New rules.
13014         (realclean): Remove $(libc-texi-generated), not individual files
13015         from that list.  Do not remove dir-add.texinfo.
13016         * manual/libc.texinfo: Comment out uses of edition numbers and
13017         references to printed manual.  Remove last-updated dates.
13018         (EDITION): Comment out.
13019         (ISBN): Likewise.
13020         (VERSION, UPDATED): Remove.
13021         (version.texi): Include.
13022
13023 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13024
13025         * sysdeps/posix/spawni.c: Include <signal.h>.
13026         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13027         * sysdeps/pthread/aio_fsync.c: Likewise.
13028
13029 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13030
13031         * conform/Makefile (tests): Run only when not cross-compiling and
13032         when fast-check is not defined.
13033
13034         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13035         * conform/data/limits.h-data: Fixes for POSIX2008.
13036         * conform/run-conformtest.sh: Run all tests.
13037         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13038         headers.
13039         * include/bits/dlfcn.h: Likewise.
13040         * include/langinfo.h: Likewise.
13041         * include/monetary.h: Likewise.
13042         * include/sys/poll.h: Likewise.
13043
13044         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13045         for __USE_GNU.
13046         * posix/spawn.h: Define __need_sigset_t.
13047         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13048         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13049         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13050         to get sigevent_t only.
13051         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13052         only for __USE_GNU.
13053         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13054         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13055         process_vm_writev only for __USE_GNU.
13056         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13057
13058         * conform/Makefile: For now ignore errors from run-conformtest.
13059         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13060         POSIX to avoid namespace pollution.  Don't prepend headers.
13061         * conform/data/aio.h-data: Fixes for POSIX testing.
13062         * conform/data/fcntl.h-data: Likewise.
13063         * conform/data/glob.h-data: Likewise.
13064         * conform/data/grp.h-data: Likewise.
13065         * conform/data/pthread.h-data: Likewise.
13066         * conform/data/pwd.h-data: Likewise.
13067         * conform/data/signal.h-data: Likewise.
13068         * conform/data/spawn.h-data: Likewise.
13069         * conform/data/stdio.h-data: Likewise.
13070         * conform/data/stdlib.h-data: Likewise.
13071         * conform/data/stropts.h-data: Likewise.
13072         * conform/data/sys/mman.h-data: Likewise.
13073         * conform/data/sys/stat.h-data: Likewise.
13074         * conform/data/sys/types.h-data: Likewise.
13075         * conform/data/sys/wait.h-data: Likewise.
13076         * conform/data/time.h-data: Likewise.
13077         * conform/data/unistd.h-data: Likewise.
13078         * conform/data/utime.h-data: Likewise.
13079
13080         * io/sys/stat.h: fchmod was always in POSIX.
13081         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13082         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13083         * rt/aio.h: Define __need_timespec before including <time.h>.
13084         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13085         struct.  Add forward declaration of pthread_attr_t and use it in
13086         sigevent.
13087         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13088         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13089         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13090         always remove CLK_TCK definition.
13091
13092 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13093
13094         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13095
13096 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13097
13098         * conform/run-conformtest.sh: New file.
13099         * conform/Makefile: Run run-conformtest for tests.
13100         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13101         support.
13102
13103         * conform/data/uchar.h-data: New file.
13104         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13105         * conform/data/arpa/inet.h-data: Likewise.
13106         * conform/data/assert.h-data: Likewise.
13107         * conform/data/complex.h-data: Likewise.
13108         * conform/data/cpio.h-data: Likewise.
13109         * conform/data/ctype.h-data: Likewise.
13110         * conform/data/dirent.h-data: Likewise.
13111         * conform/data/dlfcn.h-data: Likewise.
13112         * conform/data/errno.h-data: Likewise.
13113         * conform/data/fcntl.h-data: Likewise.
13114         * conform/data/float.h-data: Likewise.
13115         * conform/data/fmtmsg.h-data: Likewise.
13116         * conform/data/fnmatch.h-data: Likewise.
13117         * conform/data/ftw.h-data: Likewise.
13118         * conform/data/glob.h-data: Likewise.
13119         * conform/data/grp.h-data: Likewise.
13120         * conform/data/iconv.h-data: Likewise.
13121         * conform/data/inttypes.h-data: Likewise.
13122         * conform/data/langinfo.h-data: Likewise.
13123         * conform/data/libgen.h-data: Likewise.
13124         * conform/data/limits.h-data: Likewise.
13125         * conform/data/locale.h-data: Likewise.
13126         * conform/data/math.h-data: Likewise.
13127         * conform/data/monetary.h-data: Likewise.
13128         * conform/data/mqueue.h-data: Likewise.
13129         * conform/data/ndbm.h-data: Likewise.
13130         * conform/data/net/if.h-data: Likewise.
13131         * conform/data/netdb.h-data: Likewise.
13132         * conform/data/netinet/in.h-data: Likewise.
13133         * conform/data/nl_types.h-data: Likewise.
13134         * conform/data/poll.h-data: Likewise.
13135         * conform/data/pthread.h-data: Likewise.
13136         * conform/data/pwd.h-data: Likewise.
13137         * conform/data/regex.h-data: Likewise.
13138         * conform/data/sched.h-data: Likewise.
13139         * conform/data/search.h-data: Likewise.
13140         * conform/data/semaphore.h-data: Likewise.
13141         * conform/data/setjmp.h-data: Likewise.
13142         * conform/data/signal.h-data: Likewise.
13143         * conform/data/spawn.h-data: Likewise.
13144         * conform/data/stdarg.h-data: Likewise.
13145         * conform/data/stdio.h-data: Likewise.
13146         * conform/data/stdlib.h-data: Likewise.
13147         * conform/data/string.h-data: Likewise.
13148         * conform/data/strings.h-data: Likewise.
13149         * conform/data/stropts.h-data: Likewise.
13150         * conform/data/sys/ipc.h-data: Likewise.
13151         * conform/data/sys/mman.h-data: Likewise.
13152         * conform/data/sys/msg.h-data: Likewise.
13153         * conform/data/sys/resource.h-data: Likewise.
13154         * conform/data/sys/select.h-data: Likewise.
13155         * conform/data/sys/sem.h-data: Likewise.
13156         * conform/data/sys/shm.h-data: Likewise.
13157         * conform/data/sys/socket.h-data: Likewise.
13158         * conform/data/sys/stat.h-data: Likewise.
13159         * conform/data/sys/statvfs.h-data: Likewise.
13160         * conform/data/sys/time.h-data: Likewise.
13161         * conform/data/sys/timeb.h-data: Likewise.
13162         * conform/data/sys/times.h-data: Likewise.
13163         * conform/data/sys/types.h-data: Likewise.
13164         * conform/data/sys/uio.h-data: Likewise.
13165         * conform/data/sys/un.h-data: Likewise.
13166         * conform/data/sys/utsname.h-data: Likewise.
13167         * conform/data/sys/wait.h-data: Likewise.
13168         * conform/data/syslog.h-data: Likewise.
13169         * conform/data/tar.h-data: Likewise.
13170         * conform/data/termios.h-data: Likewise.
13171         * conform/data/utime.h-data: Likewise.
13172         * conform/data/utmpx.h-data: Likewise.
13173         * conform/data/varargs.h-data: Likewise.
13174         * conform/data/wchar.h-data: Likewise.
13175         * conform/data/wctype.h-data: Likewise.
13176         * conform/data/wordexp.h-data: Likewise.
13177
13178         * include/stropts.h: New file.
13179         * include/uchar.h: New file.
13180         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13181         * include/assert.h: Likewise.
13182         * include/ctype.h: Likewise.
13183         * include/dirent.h: Likewise.
13184         * include/dlfcn.h: Likewise.
13185         * include/fcntl.h: Likewise.
13186         * include/fnmatch.h: Likewise.
13187         * include/glob.h: Likewise.
13188         * include/grp.h: Likewise.
13189         * include/libio.h: Likewise.
13190         * include/locale.h: Likewise.
13191         * include/math.h: Likewise.
13192         * include/net/if.h: Likewise.
13193         * include/netdb.h: Likewise.
13194         * include/netinet/in.h: Likewise.
13195         * include/pthread.h: Likewise.
13196         * include/pwd.h: Likewise.
13197         * include/regex.h: Likewise.
13198         * include/sched.h: Likewise.
13199         * include/search.h: Likewise.
13200         * include/setjmp.h: Likewise.
13201         * include/signal.h: Likewise.
13202         * include/stdio.h: Likewise.
13203         * include/stdlib.h: Likewise.
13204         * include/string.h: Likewise.
13205         * include/sys/cdefs.h: Likewise.
13206         * include/sys/mman.h: Likewise.
13207         * include/sys/msg.h: Likewise.
13208         * include/sys/resource.h: Likewise.
13209         * include/sys/select.h: Likewise.
13210         * include/sys/socket.h: Likewise.
13211         * include/sys/stat.h: Likewise.
13212         * include/sys/statvfs.h: Likewise.
13213         * include/sys/time.h: Likewise.
13214         * include/sys/times.h: Likewise.
13215         * include/sys/uio.h: Likewise.
13216         * include/sys/utsname.h: Likewise.
13217         * include/sys/wait.h: Likewise.
13218         * include/termios.h: Likewise.
13219         * include/time.h: Likewise.
13220         * include/ulimit.h: Likewise.
13221         * include/unistd.h: Likewise.
13222         * include/utime.h: Likewise.
13223         * include/wchar.h: Likewise.
13224         * include/wctype.h: Likewise.
13225         * include/wordexp.h: Likewise.
13226
13227         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13228
13229         * time/time.h: TIME_UTC must be a macro.
13230         Make timespec_get available for ISO C11 only as well.
13231
13232 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13233
13234         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13235         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13236
13237 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13238
13239         * configure.in: Use -o not -a in test for unsupported multi-arch.
13240
13241 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13242
13243         * manual/texinfo.tex: Update to version 2012-01-19.16.
13244
13245 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13246
13247         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13248
13249 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13250
13251         [BZ #13738]
13252         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13253         * manual/fdl-1.3.texi: New file.
13254         * manual/fdl-1.1.texi: File removed.
13255
13256         [BZ #13738]
13257         * manual/libc.texinfo (FDL_VERSION): New @set.
13258         Use it for mention of FDL in cover text.
13259         (Documentation License): Use it in @include file name.
13260
13261 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13262             Roland McGrath  <roland@hack.frob.com>
13263
13264         [BZ #5461]
13265         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13266         not LONG_LONG_MAX and LONG_LONG_MIN.
13267         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13268         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13269         name.
13270         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13271
13272 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13273
13274         [BZ #2547]
13275         [BZ #11365]
13276         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13277         manipulate bits before adding and subtracting TWO23[sx].
13278         * math/libm-test.inc (nearbyint_test): Add more tests.
13279
13280 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13281
13282         [BZ #2548]
13283         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13284         bits before adding and subtracting TWO23[sx].
13285         * math/libm-test.inc (rint_test): Add more tests.
13286         (rint_test_tonearest): Likewise.
13287         (rint_test_towardzero): Likewise.
13288         (rint_test_downward): Likewise.
13289         (rint_test_upward: Likewise.
13290
13291 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13292
13293         [BZ #10110]
13294         * include/stdc-predef.h: New file.  Extracted from features.h.
13295         * include/features.h: Include stdc-predef.h.
13296         * Makefile (headers): Add stdc-predef.h.
13297         * CONFORMANCE (Compiler limitations): Update.
13298
13299 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13300
13301         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13302
13303 2012-02-21  David S. Miller  <davem@davemloft.net>
13304
13305         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13306         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13307
13308 2012-02-20  David S. Miller  <davem@davemloft.net>
13309
13310         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13311         using a normal save/restore sequence, rather than allocating a
13312         dummy stack frame just to store a frame pointer and restore.
13313         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13314
13315 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13316
13317         * manual/install.texi: Fix stray word in line-wrapped comment.
13318
13319 2012-02-20  David S. Miller  <davem@davemloft.net>
13320
13321         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13322         both binutils and gcc support GOTDATA.
13323
13324         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13325         "rd %pc" in the PIC register setup sequences.
13326
13327         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13328         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13329         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13330         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13331         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13332         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13333         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13334         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13335         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13336         (SYSCALL_ERROR_HANDLER): Likewise.
13337         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13338         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13339         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13340         (SYSCALL_ERROR_HANDLER): Likewise.
13341
13342         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13343         (HAVE_GCC_GOTDATA): New.
13344         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13345         relocation support in both binutils and gcc.
13346         * sysdeps/sparc/elf/configure: Regenerate.
13347
13348         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13349         * sysdeps/sparc/sparc32/elf/configure: Delete.
13350         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
13351         * sysdeps/sparc/sparc64/elf/configure: Delete.
13352         * sysdeps/sparc/elf/configure.in: New file.
13353         * sysdeps/sparc/elf/configure: Generate.
13354
13355         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
13356         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
13357         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
13358         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
13359         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
13360
13361 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13362
13363         * manual/install.texi: Do not mention specific glibc version
13364         numbers.
13365         * manual/libc.texinfo (VERSION, UPDATED): Update.
13366         (@copying): Use @copyright{} and range of years.
13367
13368 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13369
13370         [BZ #13695]
13371         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
13372         [crti.S not in sysdirs] (generated): Do not append.
13373         [crti.S not in sysdirs] (omit-deps): Likewise.
13374         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
13375         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
13376         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
13377         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
13378         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
13379         Likewise.
13380         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
13381         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
13382         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
13383         * csu/defs.awk: Remove file.
13384         * sysdeps/generic/initfini.c: Likewise.
13385         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
13386         variable.
13387         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
13388         Likewise.
13389
13390 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13391
13392         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
13393         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
13394         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
13395         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
13396         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13397         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
13398         <bits/epoll.h>.
13399         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
13400         (__EPOLL_PACKED): Define to empty if not defined by
13401         <bits/epoll.h>.
13402         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
13403         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13404         bits/epoll.h.
13405
13406 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13407
13408         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
13409         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
13410         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
13411         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
13412         <bits/timerfd.h>.
13413         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
13414         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13415         bits/timerfd.h.
13416
13417 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
13418
13419         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
13420         in C locale.
13421         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13422         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
13423         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
13424         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13425
13426 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
13427
13428         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13429         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13430
13431 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13432
13433         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
13434         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
13435         defined.
13436         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
13437         Likewise.
13438         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
13439         entry for 2.16.
13440
13441 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
13442
13443         * math/w_acos.c: Use non-signaling floating-point comparisons.
13444         * math/w_acosf.c: Likewise.
13445         * math/w_acosh.c: Likewise.
13446         * math/w_acoshf.c: Likewise.
13447         * math/w_acoshl.c: Likewise.
13448         * math/w_acosl.c: Likewise.
13449         * math/w_asin.c: Likewise.
13450         * math/w_asinf.c: Likewise.
13451         * math/w_asinl.c: Likewise.
13452         * math/w_atanh.c: Likewise.
13453         * math/w_atanhf.c: Likewise.
13454         * math/w_atanhl.c: Likewise.
13455         * math/w_exp2.c: Likewise.
13456         * math/w_exp2f.c: Likewise.
13457         * math/w_exp2l.c: Likewise.
13458         * math/w_j0.c: Likewise.
13459         * math/w_j0f.c: Likewise.
13460         * math/w_j0l.c: Likewise.
13461         * math/w_j1.c: Likewise.
13462         * math/w_j1f.c: Likewise.
13463         * math/w_j1l.c: Likewise.
13464         * math/w_jn.c: Likewise.
13465         * math/w_jnf.c: Likewise.
13466         * math/w_log.c: Likewise.
13467         * math/w_log10.c: Likewise.
13468         * math/w_log10f.c: Likewise.
13469         * math/w_log10l.c: Likewise.
13470         * math/w_log2.c: Likewise.
13471         * math/w_log2f.c: Likewise.
13472         * math/w_log2l.c: Likewise.
13473         * math/w_logf.c: Likewise.
13474         * math/w_logl.c: Likewise.
13475         * math/w_sqrt.c: Likewise.
13476         * math/w_sqrtf.c: Likewise.
13477         * math/w_sqrtl.c: Likewise.
13478         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13479         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
13480         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13481         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13482         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13483
13484 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13485
13486         [BZ #9739]
13487         * manual/string.texi (strnlen): Use correct parameter name in
13488         equivalent expression.
13489
13490 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13491
13492         [BZ #11174]
13493         * manual/users.texi (seteuid): Consistently use neweuid for
13494         argument name.
13495
13496 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
13497
13498         [BZ #13704]
13499         * manual/nss.texi (Services in the NSS configuration): Correct
13500         list of services in example configuration file.
13501
13502 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
13503
13504         [BZ #11322]
13505         * manual/arith.texi: Remove statements about negative zero
13506         behaving identically to zero.
13507
13508 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13509
13510         [BZ #5993]
13511         * manual/install.texi: Do not document upgrading from libc5.
13512
13513 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
13514
13515         [BZ #4596]
13516         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
13517
13518 2012-02-18  David S. Miller  <davem@davemloft.net>
13519
13520         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
13521         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
13522         %o7 across the call.
13523         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
13524         instead.
13525         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
13526         SETUP_PIC_REG_LEAF.
13527         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13528         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13529         * sysdeps/sparc/crtn.S: Likewise.
13530
13531 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13532
13533         * aout/Makefile: Remove.
13534
13535 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13536
13537         [BZ #13058]
13538         * manual/examples/argp-ex1.c (main): Format definition in GNU
13539         style.
13540         * manual/examples/argp-ex2.c (main): Likewise.
13541         * manual/examples/argp-ex3.c (main): Likewise.
13542         * manual/examples/argp-ex4.c (main): Likewise.
13543         * manual/examples/longopt.c (main): Use new-style prototype
13544         definition.
13545         * manual/examples/strncat.c (main): Specify return type and use
13546         (void) for arguments.
13547         * manual/examples/subopt.c (main): Use char **argv argument.
13548
13549 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13550
13551         [BZ #5077]
13552         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13553         rounding modes.
13554
13555 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13556
13557         [BZ #6907]
13558         * manual/string.texi (strchr): Change when strchrnul is
13559         recommended.
13560
13561 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13562
13563         [BZ #174]
13564         * manual/locale.texi (setlocale): Document LOCPATH.
13565
13566 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13567
13568         [BZ #10210]
13569         * manual/process.texi (execle): Move @dots{} before last argument.
13570
13571 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13572
13573         [BZ #12047]
13574         * manual/charset.texi (Generic Charset Conversion): Fix typo
13575         (LC_TYPE -> LC_CTYPE).
13576
13577 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13578
13579         [BZ #5805]
13580         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13581         (scalbnf): Likewise.
13582         (scalbnl): Likewise.
13583         (scalbln): Likewise.
13584         (scalblnf): Likewise.
13585         (scalblnl): Likewise.
13586         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13587         (vwarnx): Likewise.
13588         (verr): Likewise.
13589         (verrx): Likewise.
13590         * manual/filesys.texi (telldir): Use braces around return type.
13591         * manual/llio.texi (mmap): Add space after comma.
13592         (mmap64): Likewise.
13593         * manual/math.texi (jn): Use @var{} on parameter names.
13594         (jnf): Likewise.
13595         (jnl): Likewise.
13596         (yn): Likewise.
13597         (ynf): Likewise.
13598         (ynl): Likewise.
13599         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13600         line.
13601         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13602         "...".
13603         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13604         (sched_get_priority_max): Likewise.
13605         * manual/signal.texi (sigvec): Add space after comma.
13606         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13607         names.
13608         (if_indextoname): Likewise.
13609         (if_freenameindex): Likewise.
13610         (sendto): Use ',' instead of '.' in prototype.
13611         * manual/startup.texi (syscall): Use @dots{} instead of literal
13612         "...".
13613         * manual/stdio.texi (__fpending): Separate initial words of
13614         paragraph from @deftypefun line.
13615         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13616         "...".
13617         (vsyslog): Use @var{} on parameter names.
13618         * manual/terminal.texi (stty): Use @var{} on parameter names.
13619         * manual/users.texi (getutmp): Use @var{} on parameter names.
13620         (getutmpx): Likewise.
13621
13622 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13623
13624         [BZ #6884]
13625         * manual/stdio.texi (fopen): Fix typos in description of
13626         ",ccs=STRING".
13627
13628 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13629
13630         [BZ #4026]
13631         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13632         get clock_id definition.
13633
13634 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13635
13636         [BZ #4822]
13637         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13638         (madvise): Cast every argument to void on its own.
13639
13640 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13641
13642         [BZ #9902]
13643         * manual/startup.texi (Exit Status): Fix typo.
13644
13645 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13646
13647         [BZ #10140]
13648         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13649         * manual/examples/argp-ex2.c: Likewise.
13650         * manual/examples/argp-ex3.c: Likewise.
13651
13652 2012-02-16  Richard Henderson  <rth@redhat.com>
13653
13654         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13655         * sysdeps/s390/s390-32/initfini.c: Remove.
13656         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13657         * sysdeps/s390/s390-64/initfini.c: Remove.
13658
13659 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13660
13661         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13662         compiler output for sysdeps/generic/initfini.c.
13663         * sysdeps/sh/elf/initfini.c: Remove file.
13664
13665 2012-02-16  David S. Miller  <davem@davemloft.net>
13666
13667         [BZ #11494]
13668         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13669
13670         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13671         * sysdeps/sparc/crti.S: New file.
13672         * sysdeps/sparc/crtn.S: New file.
13673         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13674         * sysdeps/sparc/sparc64/Makefile: Likewise.
13675
13676 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13677
13678         [BZ #3335]
13679         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13680
13681 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13682
13683         [BZ #4822]
13684         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13685
13686         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13687         (write, read, close): Likewise.
13688         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13689
13690 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13691
13692         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13693         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13694         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13695         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13696         <bits/signalfd.h>.
13697         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13698         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13699         bits/signalfd.h.
13700
13701 2012-02-14  Marek Polacek  <polacek@redhat.com>
13702
13703         * sysdeps/x86_64/crti.S: New file.
13704         * sysdeps/x86_64/crtn.S: New file.
13705         * sysdeps/x86_64/elf/initfini.c: Remove file.
13706
13707 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13708
13709         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13710         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13711         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13712         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13713         <bits/inotify.h>.
13714         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13715         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13716         bits/inotify.h.
13717
13718 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13719
13720         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13721         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13722         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13723         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13724         <bits/eventfd.h>.
13725         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13726         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13727         bits/eventfd.h.
13728
13729 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13730
13731         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13732         __feraiseexcept instead of feraiseexcept.
13733
13734         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13735         nanosleep invocations.
13736         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13737         strings, and add error checking for a nanosleep invocations.
13738
13739 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13740
13741         Replace FSF snail mail address with URLs, as per GNU coding standards.
13742         Most of the snail mail addresses were wrong anyway, and omitting
13743         them makes the source code easier to maintain.  Almost all of the
13744         changes are to license notices and to locale LC_IDENTIFICATION
13745         addresses, except for this one:
13746         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13747         not its snail mail address.
13748
13749 2012-02-09  Richard Henderson  <rth@twiddle.net>
13750
13751         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13752         of kernel-features.h.
13753
13754         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13755
13756 2012-02-08  Marek Polacek  <polacek@redhat.com>
13757
13758         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13759         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13760         * sysdeps/gnu/_G_config.h: Likewise.
13761         * sysdeps/generic/_G_config.h: Likewise.
13762
13763 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13764
13765         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13766         tests.
13767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13768
13769         * sysdeps/powerpc/powerpc32/crti.S: New file.
13770         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13771         * sysdeps/powerpc/powerpc64/crti.S: New file.
13772         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13773
13774         * Makeconfig (have-initfini): Don't set.
13775         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13776         * configure.in (nopic_initfini): Don't substitute.
13777         * config.h.in (HAVE_INITFINI): Don't #undef.
13778         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13779         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13780
13781 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13782
13783         Support crti.S and crtn.S provided directly by architectures.
13784         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13785         [crti.S in sysdirs] (omit-deps): Likewise.
13786         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13787         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13788         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13789         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13790         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13791         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13792         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13793         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13794         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13795         compiler output for sysdeps/generic/initfini.c.
13796         * sysdeps/i386/elf/Makefile: Remove file.
13797         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13798
13799 2012-02-07  Marek Polacek  <polacek@redhat.com>
13800
13801         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13802         * sysdeps/gnu/_G_config.h: Likewise.
13803         * sysdeps/mach/hurd/_G_config.h: Likewise.
13804
13805 2012-02-07  Marek Polacek  <polacek@redhat.com>
13806
13807         * math/Makefile (tests): Add tst-CMPLX2.
13808         * math/tst-CMPLX2.c: New file.
13809
13810 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13811
13812         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13813
13814         * math/libm-test.inc (jn_test): Add missing L suffix.
13815
13816 2012-02-06  Marek Polacek  <polacek@redhat.com>
13817
13818         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13819         * sysdeps/i386/fpu/e_powf.S: Likewise.
13820         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13821         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13822         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13823         * sysdeps/i386/fpu/e_pow.S: Likewise.
13824         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13825         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13826         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13827         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13828         * sysdeps/i386/fpu/e_log2.S: Likewise.
13829         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13830         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13831         * sysdeps/i386/fpu/e_powl.S: Likewise.
13832         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13833         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13834         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13835         * sysdeps/i386/fpu/e_logl.S: Likewise.
13836         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13837         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13838         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13839         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13840         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13841         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13842         * sysdeps/i386/fpu/e_log.S: Likewise.
13843         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13844         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13845         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13846         * sysdeps/i386/fpu/e_logf.S: Likewise.
13847         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13848         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13849         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13850         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13851         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13852         * sysdeps/i386/fpu/e_log10.S: Likewise.
13853         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13854         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13855         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13856         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13857         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13858         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13859         * sysdeps/i386/asm-syntax.h: Likewise.
13860         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13861         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13862         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13863         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13864         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13865         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13866         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13867         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13868         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13869         * sysdeps/powerpc/sysdep.h: Likewise.
13870         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13871         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13872
13873 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13874
13875         [BZ #411]
13876         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13877
13878 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13879
13880         * sysdeps/i386/sysdep.h: Include <features.h>.
13881         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13882         version.
13883
13884 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13885
13886         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13887         Define.
13888         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13889         LOAD_PIC_REG_STR.
13890
13891 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13892
13893         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13894         (SETUP_PIC_REG): Use GET_PC_THUNK.
13895         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13896         macro.
13897
13898 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13899
13900         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13901         for non-PIC compilation.
13902         (SETUP_PIC_REG): Add .p2align directive.
13903         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13904         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13905         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13906         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13907         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13908         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13909         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13910         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13911         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13912         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13913         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13914         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13915         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13916         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13917         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13918         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13919         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13920         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13921         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13922         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13923         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13924         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13925         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13926         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13927         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13928         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13929         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13930         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13931         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13932         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13933         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13934         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13935         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13936         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13937         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13938         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13939         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13940         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13941         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13942         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13943         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13944
13945 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13946
13947         * math/tst-CMPLX.c: Include <stdio.h>.
13948
13949 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13950
13951         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13952         float.
13953         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13954         * sysdeps/sparc/bits/mathdef.h: Likewise.
13955
13956 2012-01-31  Marek Polacek  <polacek@redhat.com>
13957
13958         * libio/libio.h: Don't define _PARAMS.
13959         * locale/programs/config.h: Don't define PARAMS.
13960         * stdlib/strtol_l.c: Likewise.
13961         (__strtol_l): Remove PARAMS from the prototype.
13962
13963 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13964
13965         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13966         names.  Just use the correct names.  Remove unnecessary wrapper
13967         functions.
13968         * malloc/arena.c: Likewise.
13969         * malloc/hooks.c: Likewise.
13970
13971         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13972         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13973         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13974
13975 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13976
13977         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13978         into tail calls.
13979         (update_get_addr): New function.
13980         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13981         GET_ADDR_MODULE parameter.
13982
13983 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13984
13985         * crypt/cert.c: Remove __STDC__ conditionals.
13986         * crypt/crypt-entry.c: Likewise.
13987         * crypt/crypt_util.c: Likewise.
13988         * libio/filedoalloc.c: Likewise.
13989         * libio/fileops.c: Likewise.
13990         * libio/genops.c: Likewise.
13991         * libio/iofclose.c: Likewise.
13992         * libio/iofdopen.c: Likewise.
13993         * libio/iofopen.c: Likewise.
13994         * libio/iofopen64.c: Likewise.
13995         * libio/iogetdelim.c: Likewise.
13996         * libio/iopopen.c: Likewise.
13997         * libio/obprintf.c: Likewise.
13998         * libio/oldfileops.c: Likewise.
13999         * libio/oldiofclose.c: Likewise.
14000         * libio/oldiofdopen.c: Likewise.
14001         * libio/oldiofopen.c: Likewise.
14002         * libio/oldiopopen.c: Likewise.
14003         * libio/wfiledoalloc.c: Likewise.
14004         * libio/wgenops.c: Likewise.
14005         * locale/programs/xmalloc.c: Likewise.
14006         * misc/syslog.c: Likewise.
14007         * stdio-common/xbug.c: Likewise.
14008         * string/memchr.c: Likewise.
14009         * string/memcmp.c: Likewise.
14010         * string/memrchr.c: Likewise.
14011         * string/rawmemchr.c: Likewise.
14012         * sysdeps/posix/getcwd.c: Likewise.
14013         * time/strftime_l.c: Likewise.
14014
14015 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14016
14017         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14018         * config.make.in (config-cflags-sse2avx): Define.
14019         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14020         Fix typo.
14021
14022 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14023
14024         * scripts/config.guess: Update from upstream config git repository.
14025         * scripts/config.sub: Likewise.
14026
14027 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14028
14029         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14030         (EM_NUM): Update.
14031         (R_TILEPRO_*, R_TILEGX_*): New macros.
14032
14033         * scripts/firstversions.awk: Fix bug in version range handling.
14034
14035         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14036
14037         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14038
14039         * include/sys/epoll.h: New file.
14040         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14041         libc_hidden_def.
14042
14043 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14044
14045         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14046         Avoid unnecessary __WORDSIZE == 64 test.
14047         (fmaxf): Use VEX format if possible.
14048         (fmax): Likewise.
14049         (fminf): Likewise.
14050         (fmin): Likewise.
14051
14052         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14053         * math/math_private.h: Remove libc_fegetround* and
14054         libc_fesetround*.
14055         * sysdeps/i386/configure.in: Check for -msse2avx.
14056         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14057         also if SSE2AVX is defined.
14058         Remove libc_fegetround* and libc_fesetround*.
14059         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14060         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14061         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14062         of HAS_YMM_USABLE.
14063         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14064         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14065         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14066         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14067         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14068
14069         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14070
14071 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14072
14073         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14074         size is not set.
14075         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14076
14077 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14078
14079         [BZ #13618]
14080         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14081         relocation.
14082         * Makeconfig (libm): Define.
14083         * elf/Makefile: Add rules to build and run tst-relsort1.
14084         * elf/tst-relsort1.c: New file.
14085         * elf/tst-relsort1mod1.c: New file.
14086         * elf/tst-relsort1mod2.c: New file.
14087
14088 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14089
14090         * math/s_ldexp.c: Remove __STDC__ conditionals.
14091         * math/s_ldexpf.c: Likewise.
14092         * math/s_ldexpl.c: Likewise.
14093         * math/s_nextafter.c: Likewise.
14094         * math/s_nexttowardf.c: Likewise.
14095         * math/s_significand.c: Likewise.
14096         * math/s_significandf.c: Likewise.
14097         * math/s_significandl.c: Likewise.
14098         * math/w_jnl.c: Likewise.
14099         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14100         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14101         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14102         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14103         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14104         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14105         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14106         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14107         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14108         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14109         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14110         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14111         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14112         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14113         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14114         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14115         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14116         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14117         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14118         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14119         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14120         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14121         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14122         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14123         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14124         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14125         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14126         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14127         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14128         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14129         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14130         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14131         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14132         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14133         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14134         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14135         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14136         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14137         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14138         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14139         * sysdeps/ieee754/k_standard.c: Likewise.
14140         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14141         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14142         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14143         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14144         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14145         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14146         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14147         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14148         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14149         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14150         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14151         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14152         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14153         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14154         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14155         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14156         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14157         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14158         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14159         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14160         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14161         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14162         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14163         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14164         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14165         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14166         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14167         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14168         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14169         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14170         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14171         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14172         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14173         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14174         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14175         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14176         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14177         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14178         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14179         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14180         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14181         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14182         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14183         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14184         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14185         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14186         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14187         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14188         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14189         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14190         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14191         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14192         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14193         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14194         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14195         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14196         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14197         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14198         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14199         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14200         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14201         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14202         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14203         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14204         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14205         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14206         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14207         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14208         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14209         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14210         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14211         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14212         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14213         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14214         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14215         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14216         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14217         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14218         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14219         * sysdeps/ieee754/s_matherr.c: Likewise.
14220         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14221         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14222         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14223         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14224
14225 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14226
14227         * crypt/md5.h: Remove __STDC__ conditionals.
14228         * libio/libioP.h: Likewise.
14229         * locale/programs/config.h: Likewise.
14230         * sysdeps/generic/sysdep.h: Likewise.
14231         * sysdeps/i386/asm-syntax.h: Likewise.
14232         * sysdeps/s390/asm-syntax.h: Likewise.
14233         * sysdeps/unix/sysdep.h: Likewise.
14234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14236
14237 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14238
14239         * libio/libio.h: Remove __STDC__ conditionals.
14240         * malloc/obstack.h: Likewise.
14241         * math/complex.h: Likewise.
14242         * math/math.h: Likewise.
14243         * sysdeps/generic/_G_config.h: Likewise.
14244         * sysdeps/gnu/_G_config.h: Likewise.
14245         * sysdeps/mach/hurd/_G_config.h: Likewise.
14246         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14247         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14248         * sysdeps/sparc/bits/mathdef.h: Likewise.
14249
14250 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14251
14252         [BZ #13583]
14253         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14254         Clean up HAS_* macros.
14255         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14256         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14257         possible.
14258         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14259         HAS_AVX.
14260         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14261         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14262         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14263         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14264         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14265
14266 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14267
14268         * elf/tst-unique3.cc (gets): Remove declaration.
14269         * elf/tst-unique3lib.cc (gets): Likewise.
14270         * elf/tst-unique3lib2.cc (gets): Likewise.
14271         * elf/tst-unique4.cc (gets): Likewise.
14272
14273 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14274
14275         * include/stdio.h: Add C++ protection.  Add gets declarations and
14276         definitions.
14277         * debug/tst-chk1.c: Don't declare gets here.
14278         * stdio-common/tst-gets.c: Likewise.
14279
14280 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14281
14282         * posix/glob: Remove directory.
14283
14284 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14285
14286         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14287
14288 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14289
14290         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14291         of the non-standard EPFNOSUPPORT.
14292
14293 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14294
14295         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14296         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14297         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14298
14299 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14300
14301         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14302
14303 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14304
14305         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14306         transient errors.
14307         * nscd/grpcache.c (cache_addgr): Likewise.
14308         * nscd/hstcache.c (cache_addhst): Likewise.
14309         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14310         * nscd/pwdcache.c (cache_addpw): Likewise.
14311         * nscd/servicescache.c (cache_addserv): Likewise.
14312
14313 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14314
14315         * malloc/malloc.c: Various cleanups.
14316         * malloc/hooks.c: Likewise.
14317
14318         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14319         * stdlib/bug-fmtmsg1.c: New file.
14320
14321         * stdlib/fmtmsg.c (init): Add missing unlock.
14322         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14323
14324 2012-01-12  Marek Polacek  <polacek@redhat.com>
14325
14326         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14327         and _GNU_SOURCE.
14328
14329 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14330
14331         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14332         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14333         macro to ensure uniqueness of label name.
14334         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14335         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14336
14337 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14338
14339         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14340
14341         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14342         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14343         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14344         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14345
14346 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14347
14348         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14349
14350         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
14351         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
14352         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
14353
14354         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
14355
14356         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
14357         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
14358         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
14359         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
14360
14361         * math/bits/math-finite.h: Add ldexp support.
14362
14363 2012-01-10  Marek Polacek  <polacek@redhat.com>
14364
14365         * locale/programs/localedef.h (show_archive_content): Add noreturn
14366         attribute.
14367
14368 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
14369
14370         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
14371
14372 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14373
14374         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
14375
14376         * io/Makefile (headers): Add bits/poll2.h.
14377
14378 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
14379
14380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
14381         typo #include statement.
14382
14383 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14384
14385         * include/sys/cdefs.h: Define __attribute_alloc_size.
14386         * catgets/gencat.c: Add alloc_size attribute and apply consistently
14387         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
14388         * elf/pldd.c: Likewise.
14389         * iconv/iconv_charmap.c: Likewise.
14390         * iconv/iconvconfig.c: Likewise.
14391         * iconv/strtab.c: Likewise.
14392         * locale/programs/locale.c: Likewise.
14393         * locale/programs/localedef.h: Likewise.
14394         * locale/programs/simple-hash.c: Likewise.
14395         * nscd/nscd.h: Likewise.
14396         * nss/makedb.c: Likewise.
14397         * sysdeps/generic/ldconfig.h: Likewise.
14398         * locale/programs/localedef.c: Remove xmalloc prototype.
14399         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
14400
14401 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14402
14403         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
14404         appropriate.
14405
14406 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
14407
14408         * math/Makefile (tests): Add tst-CMPLX.
14409         * math/tst-CMPLX.c: New file.
14410
14411         * math/complex.h (CMPLXL): Fix typo.
14412
14413         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
14414         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
14415         GLIBC_2.16.
14416         * debug/tst-chk1.c: Add poll and ppoll tests.
14417         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
14418         * include/sys/poll.h: Add hidden proto for ppoll.
14419         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
14420         * sysdeps/mach/hurd/ppoll.c: Likewise.
14421         * io/ppoll.c: Likewise.
14422         * debug/poll_chk.c: New file.
14423         * debug/ppoll_chk.c: New file.
14424         * include/bits/poll2.h: New file.
14425         * io/bits/poll2.h: New file.
14426
14427         [BZ #1350]
14428         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
14429
14430         * configure.in: static is always set to yes.  Remove.
14431         * config.make.in: Don't set build-static.
14432         * Makeconfig: Remove use of build-static.
14433         * dlfcn/Makefile: Likewise.
14434         * elf/Makefile: Likewise.
14435         * math/Makefile: Likewise.
14436         * misc/Makefile: Likewise.
14437         * nptl/Makefile: Likewise.
14438         * sysdeps/mach/hurd/Makefile: Likewise.
14439
14440         * configure.in: PWD_P is not used anymore.
14441         * config.make.in: Remove PWD_P entry.
14442
14443         * configure.in: Remove last remnants of RANLIB.
14444         No need to check for signed size_t anymore.
14445         Don't set libc_commonpagesize and libc_relro_required here for Alpha
14446         and IA-64.
14447         Remove __builtin_expect test because we require at least gcc 3.4.
14448         * aclocal.m4: Likewise.
14449
14450         * wcsmbs/mbrtoc16.c: Implement using towc function.
14451         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
14452         * wcsmbs/wcsmbsload.c: Likewise.
14453         * iconv/gconv_simple.c: Likewise.
14454         * iconv/gconv_int.h: Likewise.
14455         * iconv/gconv_builtin.h: Likewise.
14456         * iconv/iconv_prog.c: Remove CHAR16 handling.
14457
14458         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
14459
14460         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
14461
14462         * configure.in: Remove --with-elf and --enable-bounded options.
14463         Dont set base_machine for ia64.  More non-ELF conditions removed.
14464         Remove testing and setting of leading underscore information.
14465         * config.make.in (build-bounded): Set to no.
14466         * config.h.in: Remove NO_UNDERSCORES entry.
14467         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
14468         them.
14469         * csu/start.c: Remove !NO_UNDERSCORE code.
14470         * locale/localeinfo.h: Likewise.
14471         * sysdeps/generic/machine-gmon.h: Likewise.
14472         * sysdeps/generic/sysdep.h: Likewise.
14473         * sysdeps/i386/sysdep.h: Likewise.
14474         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14475         * sysdeps/mach/sysdep.h: Likewise.
14476         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14477         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14478         * sysdeps/sh/sysdep.h: Likewise.
14479         * sysdeps/sparc/sparc32/alloca.S: Likewise.
14480         * sysdeps/unix/i386/sysdep.S: Likewise.
14481         * sysdeps/unix/sparc/start.c: Likewise.
14482         * sysdeps/unix/sparc/sysdep.S: Likewise.
14483         * sysdeps/unix/sparc/sysdep.h: Likewise.
14484         * sysdeps/unix/start.c: Likewise.
14485         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14486         * sysdeps/x86_64/sysdep.h: Likewise.
14487
14488 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
14489
14490         [BZ #13553]
14491         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
14492         for non-gcc.
14493         * argp/argp-fmtstream.h: Use const instead __const.
14494         * argp/argp.h: Likewise.
14495         * assert/assert.h: Likewise.
14496         * bits/fenv.h: Likewise.
14497         * bits/sched.h: Likewise.
14498         * bits/sigset.h: Likewise.
14499         * bits/sigthread.h: Likewise.
14500         * catgets/nl_types.h: Likewise.
14501         * conform/data/pthread.h-data: Likewise.
14502         * crypt/crypt-private.h: Likewise.
14503         * crypt/crypt.h: Likewise.
14504         * crypt/crypt_util.c: Likewise.
14505         * ctype/ctype.h: Likewise.
14506         * debug/execinfo.h: Likewise.
14507         * debug/mbsnrtowcs_chk.c: Likewise.
14508         * debug/mbsrtowcs_chk.c: Likewise.
14509         * debug/wcsnrtombs_chk.c: Likewise.
14510         * debug/wcsrtombs_chk.c: Likewise.
14511         * debug/wcstombs_chk.c: Likewise.
14512         * dirent/dirent.h: Likewise.
14513         * dlfcn/dlfcn.h: Likewise.
14514         * elf/neededtest4.c: Likewise.
14515         * grp/grp.h: Likewise.
14516         * gshadow/gshadow.h: Likewise.
14517         * iconv/gconv.h: Likewise.
14518         * iconv/gconv_int.h: Likewise.
14519         * iconv/gconv_simple.c: Likewise.
14520         * iconv/iconv.h: Likewise.
14521         * iconv/loop.c: Likewise.
14522         * iconv/skeleton.c: Likewise.
14523         * include/aio.h: Likewise.
14524         * include/aliases.h: Likewise.
14525         * include/argz.h: Likewise.
14526         * include/arpa/inet.h: Likewise.
14527         * include/assert.h: Likewise.
14528         * include/dirent.h: Likewise.
14529         * include/dlfcn.h: Likewise.
14530         * include/execinfo.h: Likewise.
14531         * include/fcntl.h: Likewise.
14532         * include/fenv.h: Likewise.
14533         * include/glob.h: Likewise.
14534         * include/grp.h: Likewise.
14535         * include/libintl.h: Likewise.
14536         * include/mntent.h: Likewise.
14537         * include/netdb.h: Likewise.
14538         * include/pwd.h: Likewise.
14539         * include/rpc/netdb.h: Likewise.
14540         * include/sched.h: Likewise.
14541         * include/search.h: Likewise.
14542         * include/shadow.h: Likewise.
14543         * include/signal.h: Likewise.
14544         * include/stdio.h: Likewise.
14545         * include/stdlib.h: Likewise.
14546         * include/string.h: Likewise.
14547         * include/sys/socket.h: Likewise.
14548         * include/sys/stat.h: Likewise.
14549         * include/sys/statfs.h: Likewise.
14550         * include/sys/statvfs.h: Likewise.
14551         * include/sys/syslog.h: Likewise.
14552         * include/sys/time.h: Likewise.
14553         * include/sys/uio.h: Likewise.
14554         * include/time.h: Likewise.
14555         * include/unistd.h: Likewise.
14556         * include/utmp.h: Likewise.
14557         * include/wchar.h: Likewise.
14558         * include/wctype.h: Likewise.
14559         * inet/aliases.h: Likewise.
14560         * inet/arpa/inet.h: Likewise.
14561         * inet/netinet/ether.h: Likewise.
14562         * inet/netinet/in.h: Likewise.
14563         * intl/libintl.h: Likewise.
14564         * io/bits/fcntl2.h: Likewise.
14565         * io/fcntl.h: Likewise.
14566         * io/ftw.h: Likewise.
14567         * io/sys/poll.h: Likewise.
14568         * io/sys/stat.h: Likewise.
14569         * io/sys/statfs.h: Likewise.
14570         * io/sys/statvfs.h: Likewise.
14571         * io/utime.h: Likewise.
14572         * libio/bits/stdio.h: Likewise.
14573         * libio/bits/stdio2.h: Likewise.
14574         * libio/libio.h: Likewise.
14575         * libio/libioP.h: Likewise.
14576         * libio/stdio.h: Likewise.
14577         * locale/lc-ctype.c: Likewise.
14578         * locale/locale.h: Likewise.
14579         * login/utmp.h: Likewise.
14580         * malloc/arena.c: Likewise.
14581         * malloc/malloc.c: Likewise.
14582         * malloc/malloc.h: Likewise.
14583         * malloc/mcheck.c: Likewise.
14584         * malloc/mtrace.c: Likewise.
14585         * math/bits/mathcalls.h: Likewise.
14586         * math/fenv.h: Likewise.
14587         * math/math_private.h: Likewise.
14588         * misc/bits/error.h: Likewise.
14589         * misc/bits/syslog.h: Likewise.
14590         * misc/err.h: Likewise.
14591         * misc/error.h: Likewise.
14592         * misc/fstab.h: Likewise.
14593         * misc/mntent.h: Likewise.
14594         * misc/regexp.h: Likewise.
14595         * misc/search.h: Likewise.
14596         * misc/sgtty.h: Likewise.
14597         * misc/sys/mman.h: Likewise.
14598         * misc/sys/syslog.h: Likewise.
14599         * misc/sys/uio.h: Likewise.
14600         * misc/sys/xattr.h: Likewise.
14601         * misc/ttyent.h: Likewise.
14602         * nis/rpcsvc/ypclnt.h: Likewise.
14603         * nss/nss.h: Likewise.
14604         * posix/bits/unistd.h: Likewise.
14605         * posix/fnmatch.h: Likewise.
14606         * posix/glob.h: Likewise.
14607         * posix/sched.h: Likewise.
14608         * posix/spawn.h: Likewise.
14609         * posix/sys/wait.h: Likewise.
14610         * posix/unistd.h: Likewise.
14611         * posix/wordexp.h: Likewise.
14612         * pwd/pwd.h: Likewise.
14613         * resolv/netdb.h: Likewise.
14614         * resource/sys/resource.h: Likewise.
14615         * rt/aio.h: Likewise.
14616         * rt/bits/mqueue2.h: Likewise.
14617         * rt/mqueue.h: Likewise.
14618         * shadow/shadow.h: Likewise.
14619         * signal/signal.h: Likewise.
14620         * socket/send.c: Likewise.
14621         * socket/sendto.c: Likewise.
14622         * socket/sys/socket.h: Likewise.
14623         * stdio-common/printf.h: Likewise.
14624         * stdlib/bits/stdlib.h: Likewise.
14625         * stdlib/fmtmsg.h: Likewise.
14626         * stdlib/monetary.h: Likewise.
14627         * stdlib/stdlib.h: Likewise.
14628         * stdlib/ucontext.h: Likewise.
14629         * streams/stropts.h: Likewise.
14630         * string/argz.h: Likewise.
14631         * string/bits/string2.h: Likewise.
14632         * string/string.h: Likewise.
14633         * string/strings.h: Likewise.
14634         * sunrpc/rpc/auth.h: Likewise.
14635         * sunrpc/rpc/auth_des.h: Likewise.
14636         * sunrpc/rpc/clnt.h: Likewise.
14637         * sunrpc/rpc/netdb.h: Likewise.
14638         * sunrpc/rpc/pmap_clnt.h: Likewise.
14639         * sunrpc/rpc/xdr.h: Likewise.
14640         * sysdeps/generic/inttypes.h: Likewise.
14641         * sysdeps/generic/net/if.h: Likewise.
14642         * sysdeps/generic/sys/swap.h: Likewise.
14643         * sysdeps/gnu/net/if.h: Likewise.
14644         * sysdeps/gnu/utmpx.h: Likewise.
14645         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14646         * sysdeps/i386/i486/bits/string.h: Likewise.
14647         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14648         * sysdeps/s390/bits/string.h: Likewise.
14649         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14650         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14651         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14652         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14653         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14654         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14655         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14656         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14657         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14658         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14659         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14660         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14661         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14662         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14663         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14664         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14665         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14666         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14667         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14668         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14669         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14670         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14671         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14672         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14673         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14674         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14675         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14676         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14677         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14678         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14679         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14680         * sysvipc/sys/ipc.h: Likewise.
14681         * sysvipc/sys/msg.h: Likewise.
14682         * sysvipc/sys/sem.h: Likewise.
14683         * sysvipc/sys/shm.h: Likewise.
14684         * termios/termios.h: Likewise.
14685         * time/sys/time.h: Likewise.
14686         * time/time.h: Likewise.
14687         * wcsmbs/bits/wchar2.h: Likewise.
14688         * wcsmbs/uchar.h: Likewise.
14689         * wcsmbs/wchar.h: Likewise.
14690         * wctype/wctype.h: Likewise.
14691
14692         [BZ #13551]
14693         * Makeconfig: Remove all but ELF support including AIX support.
14694         * Makerules: Likewise.
14695         * config.h.in: Likewise.
14696         * config.make.in: Likewise.
14697         * configure: Likewise.
14698         * configure.in: Likewise.
14699         * csu/Makefile: Likewise.
14700         * csu/version.c: Likewise.
14701         * debug/Makefile: Likewise.
14702         * dlfcn/Makefile: Likewise.
14703         * elf/Makefile: Likewise.
14704         * extra-lib.mk: Likewise.
14705         * iconv/Makefile: Likewise.
14706         * include/libc-symbols.h: Likewise.
14707         * include/shlib-compat.h: Likewise.
14708         * resolv/Makefile: Likewise.
14709         * resolv/res_libc.c: Likewise.
14710         * rt/Makefile: Likewise.
14711         * sysdeps/i386/asm-syntax.h: Likewise.
14712         * sysdeps/i386/sysdep.h: Likewise.
14713         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14714         * sysdeps/mach/sysdep.h: Likewise.
14715         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14716         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14717         * sysdeps/s390/asm-syntax.h: Likewise.
14718         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14719         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14720         * sysdeps/sh/sysdep.h: Likewise.
14721         * sysdeps/unix/sparc/sysdep.h: Likewise.
14722         * sysdeps/wordsize-32/divdi3.c: Likewise.
14723         * sysdeps/x86_64/sysdep.h: Likewise.
14724
14725         * argp/Versions: Remove _argp_unlock_xxx.
14726
14727         [BZ #13559]
14728         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14729         * abilist/libBrokenLocale.abilist: Likewise.
14730         * abilist/libanl.abilist: Likewise.
14731         * abilist/libc.abilist: Likewise.
14732         * abilist/libcrypt.abilist: Likewise.
14733         * abilist/libdl.abilist: Likewise.
14734         * abilist/libm.abilist: Likewise.
14735         * abilist/libnsl.abilist: Likewise.
14736         * abilist/libpthread.abilist: Likewise.
14737         * abilist/libresolv.abilist: Likewise.
14738         * abilist/librt.abilist: Likewise.
14739         * abilist/libthread_db.abilist: Likewise.
14740         * abilist/libutil.abilist: Likewise.
14741         * abilist/libnss_db.abilist: New file.
14742
14743         * scripts/abilist.awk: Add support for indirect functions.
14744
14745         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14746
14747         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14748
14749         * shlib-versions: Remove entries for ports architectures.
14750
14751         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14752         files in ports.
14753         * elf/stackguard-macros.h: Remove support for IA-64.
14754         * elf/tst-auditmod1.c: Likewise.
14755         * sysdeps/generic/ldsodefs.h: Likewise.
14756
14757         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14758         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14759         configure files.
14760
14761         [BZ #13552]
14762         * configure.in: Remove --enable-omitfp support.
14763         * FAQ.in: Adjust.
14764         * config.make.in: Likewise.
14765         * Makeconfig: Likewise.
14766         * manual/install.texi: Likewise.
14767
14768         In case anyone cares, the IA-64 architecture could move to ports.
14769         * sysdeps/ia64/*: Removed.
14770         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14771         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14772
14773         [BZ #13555]
14774         * configure.in: Remove entries for unsupported architectures.
14775
14776         [BZ #13533]
14777         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14778         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14779         routines.
14780         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14781         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14782         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14783         fall back to using wcrtomb.
14784         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14785         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14786         renaming.
14787         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14788         * wcsmbs/tst-c16c32-1.c: New file.
14789
14790         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14791         local variable.
14792
14793         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14794
14795         * elf/tst-unique3.cc: Add explicit declaration of gets.
14796         * elf/tst-unique3lib.cc: Likewise.
14797         * elf/tst-unique3lib2.cc: Likewise.
14798         * elf/tst-unique4.cc: Likewise.
14799
14800         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14801
14802 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14803
14804         [BZ #13566]
14805         * assert/assert.h (static_assert): Don't define for C++.
14806         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14807         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14808
14809 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14810
14811         * iconv/loop.c (single loop): Fix assertion in storing of
14812         remaining bytes.
14813
14814         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14815
14816 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14817
14818         * posix/getconf.c: Update copyright year.
14819         * nss/getent.c: Likewise.
14820         * nss/makedb.c: Likewise.
14821         * iconv/iconvconfig.c: Likewise.
14822         * iconv/iconv_prog.c: Likewise.
14823         * elf/ldconfig.c: Likewise.
14824         * elf/pldd.c: Likewise.
14825         * elf/sotruss.ksh: Likewise.
14826         * catgets/gencat.c: Likewise.
14827         * csu/version.c: Likewise.
14828         * elf/ldd.bash.in: Likewise.
14829         * elf/sprof.c (print_version): Likewise.
14830         * locale/programs/locale.c: Likewise.
14831         * locale/programs/localedef.c: Likewise.
14832         * login/programs/pt_chown.c: Likewise.
14833         * nscd/nscd.c (print_version): Likewise.
14834         * debug/xtrace.sh: Likewise.
14835         * malloc/memusage.sh: Likewise.
14836         * malloc/mtrace.pl: Likewise.
14837         * debug/catchsegv.sh: Likewise.
14838
14839 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14840
14841         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14842         pure attribute.
14843
14844 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14845
14846         [BZ #13533]
14847         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14848         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14849         transformations.
14850         * iconv/gconv_int.h: Likewise.
14851         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14852         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14853         from libc for GLIBC_2.16.
14854         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14855         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14856         * wcsmbs/uchar.h: Really define mbstate_t.
14857         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14858         * wcsmbs/c16rtomb.c: New file.
14859         * wcsmbs/mbrtoc16.c: New file.
14860         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14861         for C/POSIX locale.
14862         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14863         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14864
14865         * wcsmbs/wchar.h: Add missing __restrict.
14866
14867 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14868
14869         [BZ #13532]
14870         * time/Makefile (routines): Add timespec_get.
14871         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14872         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14873         timespec for ISO C11.
14874         * time/timespec_get.c: New file.
14875         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14876         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14877
14878         [BZ #13531]
14879         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14880         * stdlib/stdlib.h: Declare aligned_alloc.
14881         * Versions.def: Add GLIBC_2.16 for libc.
14882         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14883
14884         [BZ 13527]
14885         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14886         ISO C11.
14887
14888         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14889         code.
14890
14891         [BZ #13528]
14892         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14893
14894         [BZ #13529]
14895         * assert/assert.h (static_assert): Define.
14896
14897         * version.h: Update for 2.16 development version.
14898
14899         [BZ #13526]
14900         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14901         _ISOC11_SOURCE.
14902
14903         * version.h (RELEASE): Bump for 2.15 release.
14904         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14905
14906         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14907         Patch by Marek Polacek <mpolacek@redhat.com>.
14908
14909         * bits/byteswap.h: Protect long long constants with __extension__.
14910         * sysdeps/i386/bits/byteswap.h: Likewise.
14911         * sysdeps/ia64/bits/byteswap.h: Likewise.
14912         * sysdeps/s390/bits/byteswap.h: Likewise.
14913         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14914
14915 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14916
14917         [BZ #13540]
14918         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14919         destination buffer.
14920         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14921
14922 2011-12-23  Marek Polacek  <polacek@redhat.com>
14923
14924         * elf/dl-addr.c (determine_info): Add inline keyword.
14925         * elf/tst-auditmod4b.c (check_avx): Likewise.
14926         * elf/tst-auditmod6b.c (check_avx): Likewise.
14927         * elf/tst-auditmod6c.c (check_avx): Likewise.
14928         * elf/tst-auditmod7b.c (check_avx): Likewise.
14929
14930 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14931
14932         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14933         !__SSE_MATH__.
14934
14935 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14936
14937         [BZ #13540]
14938         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14939         processing for last bytes.
14940
14941 2011-08-06  Bruno Haible  <bruno@clisp.org>
14942
14943         [BZ #13061]
14944         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14945         U+0385, not to U+1FEE.
14946
14947         [BZ #13062]
14948         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14949         entry for U+00A5 U+0301.
14950
14951 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14952
14953         [BZ #13166]
14954         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14955         buffer for the output is too small.
14956
14957         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14958         optimization.
14959
14960         [BZ #13185]
14961         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14962         SSE flags if possible.
14963
14964 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14965
14966         [BZ #13540]
14967         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14968         processing for last bytes.
14969
14970 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14971
14972         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14973         (syscall-list-default-options, syscall-list-default-condition)
14974         (syscall-list-includes): Define.
14975         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14976         list of ABIs and options and #if conditions for each ABI.  Do not
14977         handle common syscalls between ABIs specially.
14978         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14979         Remove.
14980         (syscall-list-variants, syscall-list-32bit-options)
14981         (syscall-list-32bit-condition, syscall-list-64bit-options)
14982         (syscall-list-64bit-condition): Define.
14983         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14984         (syscall-list-variants, syscall-list-32bit-options)
14985         (syscall-list-32bit-condition, syscall-list-64bit-options)
14986         (syscall-list-64bit-condition): Define.
14987         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14988         Remove.
14989         (syscall-list-variants, syscall-list-32bit-options)
14990         (syscall-list-32bit-condition, syscall-list-64bit-options)
14991         (syscall-list-64bit-condition): Define.
14992         * sysdeps/unix/sysv/linux/x86_64/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
14998 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14999
15000         * locale/iso-639.def: Add brx entry.
15001
15002         [BZ #13328]
15003         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15004         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15005
15006         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15007         __feraiseexcept_renamed.
15008
15009 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15010
15011         [BZ #13538]
15012         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15013         EPOLLET with unsigned values.
15014         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15015         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15016
15017         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15018         to large cancellation.
15019         * math/s_cacoshf.c: Likewise.
15020         * math/s_cacoshl.c: Likewise.
15021
15022 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15023
15024         [BZ #13305]
15025         [BZ #12786]
15026         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15027         * math/s_cacoshf.c: Likewise.
15028         * math/s_cacoshl.c: Likewise.
15029
15030 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15031
15032         [BZ #13439]
15033         * iconv/gconv.h: Define __GCONV_SWAP.
15034         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15035         * iconvdata/utf-16.c: Likewise.
15036         * iconvdata/utf-32.c: Likewise.
15037
15038 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15039
15040         [BZ #13524]
15041         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15042         numerator after shifting it by one limb.
15043
15044 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15045
15046         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15047         under [__USE_EXTERN_INLINES].
15048
15049 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15050
15051         [BZ #13446]
15052         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15053
15054 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15055
15056         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15057         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15058         optimized code.
15059         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15060         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15061         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15062         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15063         for strncasecmp/strncasecmp_l compilation.
15064         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15065         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15066
15067 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15068
15069         [BZ #13484]
15070         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15071         of __asm__.
15072
15073 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15074
15075         [BZ #13506]
15076         * time/tzfile.c (__tzfile_read): Check values from file header.
15077
15078 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15079
15080         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15081         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15082         * powerpc/powerpc32/dl-start.S: Likewise.
15083         * powerpc/powerpc32/elf/start.S: Likewise.
15084         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15085         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15086         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15087         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15088         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15089         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15090         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15091         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15092         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15093         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15094         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15095         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15096         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15097         * powerpc/powerpc32/memset.S: Likewise.
15098         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15099         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15100         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15101         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15102         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15103         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15104         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15105         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15106         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15107         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15108         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15109         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15110         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15111
15112 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15113
15114         * math/libm-test.inc: Added more nearbyint tests.
15115         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15116         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15117         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15118         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15119
15120 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15121
15122         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15123         FD_CLOEXEC.
15124
15125 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15126
15127         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15128         Add wcscpy-ssse3 wcscpy-c.
15129         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15130         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15131         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15132         * sysdeps/x86_64/wcschr.S: New file.
15133         * sysdeps/x86_64/wcsrchr.S: New file.
15134         * string/test-strcmp.c: Remove checking of wcscmp function for
15135         wrong alignments.
15136         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15137         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15138         wcsrchr-sse2 wcsrchr-c.
15139         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15140         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15141         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15142         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15143         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15144         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15145         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15146         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15147         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15148         * wcsmbc/wcschr.c (WCSCHR): New macro.
15149
15150 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15151
15152         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15153         * wcsmbs/test-wcsrchr.c: New file.
15154         * string/test-strrchr.c: Add wcsrchr support.
15155         (WIDE): New macro.
15156         * wcsmbs/test-wcscpy.c: New file.
15157         * string/test-strcpy.c: Add wcscpy support.
15158         (WIDE): New macro.
15159
15160 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15161
15162         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15163         the inner loop.
15164
15165 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15166
15167         [BZ #13472]
15168         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15169
15170 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15171
15172         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15173         Minor optimizations.
15174
15175         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15176         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15177         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15178
15179 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15180
15181         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15182         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15183         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15184         for gcc to avoid warnings.
15185         * inet/Makefile (tests): Add tst-checks.
15186         * inet/tst-checks.c: New file.
15187
15188         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15189         warning.
15190
15191         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15192         __wmemcmp_sse2.
15193
15194         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15195         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15196
15197         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15198
15199 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15200
15201         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15202         problem.
15203
15204         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15205
15206 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15207
15208         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15209         conditional on GCC version.
15210         (__arch_compare_and_exchange_val_8_acq)
15211         (__arch_compare_and_exchange_val_16_acq)
15212         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15213         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15214         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15215
15216 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15217
15218         * sysdeps/sh/backtrace.c: New file.
15219
15220 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15221
15222         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15223         parenthesis.
15224
15225 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15226
15227         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15228         falling back to utime.
15229
15230 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15231
15232         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15233         expectations for float.
15234
15235 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15236
15237         * locale/weight.h (findidx): Add parameter len.
15238         * locale/weightwc.h (findidx): Likewise.
15239         * posix/fnmatch_loop.c (FCT): Adjust caller.
15240         * posix/regcomp.c (build_equiv_class): Likewise.
15241         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15242         * posix/regexec.c (check_node_accept_bytes): Likewise.
15243         * string/strcoll_l.c (STRCOLL): Likewise.
15244         * string/strxfrm_l.c (STRXFRM): Likewise.
15245
15246 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15247
15248         * Makefile.in: Remove CVSOPT handling.
15249         * configure.in: Remove use of AC_REVISION.
15250         * iconvdata/Makefile (distribute): No need to filter out CVS.
15251         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15252         handling.
15253
15254 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15255
15256         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15257         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15258         [USE_AS_STRNCASECMP_L]: Likewise.
15259         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15260         NO_TLS_DIRECT_SEG_REFS.
15261         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15262         Fix argument offsets for non-PIC.
15263         [USE_AS_STRNCASECMP_L]: Likewise.
15264         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15265         NO_TLS_DIRECT_SEG_REFS.
15266
15267 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15268
15269         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15270         O_CLOEXEC.
15271         * locale/loadlocale.c (_nl_load_locale): Likewise.
15272
15273 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15274
15275         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15276         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15277         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15278         (SYSCALL_GETTIME): Set errno on error.
15279
15280         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15281         count references to noai6ai_cached.
15282
15283 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15284
15285         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15286
15287         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15288         FD_CLOEXEC for /proc/self/maps.
15289
15290         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15291         FD_CLOEXEC for /proc/meminfo.
15292
15293         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15294         gai.conf.
15295
15296         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15297         FD_CLOEXEC for given file.
15298
15299         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15300
15301         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15302         FD_CLOEXEC for /etc/hosts.
15303         (_gethtent): Likewise.
15304
15305         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15306
15307         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15308         cancellation and set FD_CLOEXEC for /etc/netgroup.
15309
15310         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15311         reading /etc/publickey.
15312
15313         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15314         allow cancellation when reading /etc/group.
15315
15316         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15317         cancellation.
15318         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15319
15320         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15321         when using data file.
15322
15323         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15324
15325         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15326         (write_nis_obj): Use "c" and "e" in fopen.
15327
15328         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15329
15330         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15331
15332         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15333
15334         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15335
15336         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15337         locale.alias.
15338
15339         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15340
15341         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15342
15343         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15344
15345         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15346         file parsing and set FD_CLOEXEC.
15347
15348 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15349
15350         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
15351
15352 2011-11-14  Andreas Schwab  <schwab@redhat.com>
15353
15354         * malloc/arena.c (arena_get2): Don't call reused_arena when
15355         _int_new_arena failed.
15356
15357 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15358
15359         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
15360         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
15361         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
15362         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15363         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15364         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
15365         to compile strcasecmp and strncasecmp.
15366         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
15367         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
15368
15369         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
15370
15371 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
15372
15373         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
15374         locale-defines.sym to gen-as-const-headers.
15375         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
15376         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
15377         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
15378         to compile strcasecmp and strncasecmp.
15379         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
15380         strcasecmp_l and strncasecmp_l.
15381         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
15382         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
15383         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
15384         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
15385         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
15386         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
15387         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
15388         * sysdeps/i386/i686/multiarch/strncase.S: New file.
15389         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
15390         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
15391         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
15392
15393 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
15394
15395         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
15396         result of SYSDEP_GETTIME_CPU to retval.
15397         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
15398         parameter list to macro.  Remove trailing semicolon.  Adjust users.
15399
15400         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
15401         variable.
15402
15403         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
15404         mantissa words.
15405         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15406
15407         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
15408         from unused variable.
15409
15410         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
15411         DWARF definitions.
15412         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
15413         for assembling.
15414
15415         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
15416         over namespaces.
15417
15418         * sunrpc/rpc_prot.c (rejected): Fix case value.
15419
15420         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
15421         unsigned long long int to avoid warnings in shift.
15422
15423         * posix/regex_internal.c (re_string_reconstruct): Actually use result
15424         of use of trans.
15425         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
15426         variable tmp.
15427
15428         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
15429         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
15430         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
15431
15432         * nis/nis_table.c (nis_list): Use variable of correct type for
15433         result of __follow_path call.
15434
15435 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15436
15437         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
15438         of math functions ceil, trunc, floor, round, and sqrt, when
15439         avaliable on the platform.
15440         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
15441         name clash.
15442         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15443         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15444         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15445
15446 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
15447
15448         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
15449         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
15450
15451 2011-11-11  Roland McGrath  <roland@hack.frob.com>
15452
15453         * include/unistd.h: Fix __readlink return type.
15454         Reported by Chris Metcalf <cmetcalf@tilera.com>.
15455
15456 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
15457
15458         * stdlib/ucontext.h: Undo last change for makecontext.
15459
15460 2011-11-11  Andreas Schwab  <schwab@redhat.com>
15461
15462         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
15463
15464         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
15465         * setjmp/setjmp.h: Mark functions as non-leaf.
15466         * setjmp/bits/setjmp2.h: Likewise.
15467         * stdlib/ucontext.h: Likewise.
15468
15469 2011-11-10  Andreas Schwab  <schwab@redhat.com>
15470
15471         * malloc/arena.c (_int_new_arena): Don't increment narenas.
15472         (reused_arena): Don't check arena limit.
15473         (arena_get2): Atomically check arena limit.
15474
15475 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
15476
15477         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
15478         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
15479
15480         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
15481         instructions.
15482
15483 2011-11-07  Andreas Schwab  <schwab@redhat.com>
15484
15485         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
15486         handler when locking.
15487
15488         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15489         Fix size of allocated buffer.
15490
15491 2011-11-04  Andreas Schwab  <schwab@redhat.com>
15492
15493         [BZ #10103]
15494         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
15495         declarations for long double functions.
15496         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
15497
15498         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
15499
15500 2011-11-03  Andreas Schwab  <schwab@redhat.com>
15501
15502         * nscd/nscd.c (main): Don't start AVC thread until credentials are
15503         installed.
15504
15505         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
15506         is disabled.
15507
15508 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15509
15510         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
15511
15512 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
15513
15514         * include/alloca.h (stackinfo_alloca_round): Define.
15515         (extend_alloca): Use it.
15516         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
15517         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
15518         here.
15519
15520         * scripts/check-local-headers.sh: Ignore libaudit.h.
15521
15522         * nscd/Makefile (extra-objs): Make recursively expanded.
15523
15524 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
15525
15526         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
15527         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15528
15529         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15530         * posix/tst-rfc3484-2.c: Likewise.
15531         * posix/tst-rfc3484-3.c: Likewise.
15532
15533         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15534         process_vm_writev.
15535         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15536         process_vm_writev.
15537         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15538         process_vm_writev from libc using GLIBC_2.15 version.
15539
15540         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15541
15542 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15543
15544         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15545         stack usage.
15546
15547 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15548
15549         [BZ #13367]
15550         * nss/getent.c (initgroups_keys): Show error message in case no group
15551         names are given.
15552
15553         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15554         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15555         __bump_nl_timestamp.
15556         * nscd/connections (nscd_init): When host database is served open
15557         netlink socket and request notification about configuration changes.
15558         (main_loop_poll): Track netlink file descriptor and bump timestamp
15559         in case data becomes available.
15560         (main_loop_epoll): Likewise.
15561         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15562         (database_pers_head): Add extra_data fileds.
15563         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15564         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15565         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15566         Adjust caller.
15567         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15568         in6ai data, call __free_in6ai.
15569         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15570         Add -DHAVE_NETLINK.
15571         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15572         interface information.  Reuse previous data if netlink timestamp
15573         is not changed.
15574         (__bump_nl_timestamp): New function.
15575         (__free_in6ai): New function.
15576
15577 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15578
15579         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15580         close_not_cancel_no_status here.
15581         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15582
15583 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15584
15585         [BZ #13276]
15586         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15587         return value.
15588
15589         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15590         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15591         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15592
15593 2011-07-03  Andreas Jaeger  <aj@suse.de>
15594
15595         [BZ #10709]
15596         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15597         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15598         * math/libm-test.inc (sin_test): Add test case.
15599
15600 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15601
15602         [BZ #13337]
15603         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15604         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15605
15606         * elf/chroot_canon.c (chroot_canon): Cleanups.
15607
15608         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15609
15610         [BZ #13335]
15611         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15612         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15613
15614         * string/test-strchr.c: Make usable for strchrnul testing.
15615         * string/test-strchrnul.c: New file.
15616         * string/Makefile (strop-tests): Add strchrnul.
15617
15618         * po/it.po: Update from translation team.
15619         * po/es.po: Likewise.
15620
15621 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15622
15623         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15624         the three constants needed as parameters.  Drop the others.
15625         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15626         __m128i_strloadu_tolower.
15627         Create and initialize variable zero and use it in all the places
15628         where _mm_setzero_si128 was used.
15629
15630         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15631         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15632         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15633         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15634         anymore.
15635         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15636         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15637         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15638         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15639         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15640         __mpranred, __mptan.
15641         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15642         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15643         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15644         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15645         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15646         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15647         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15648         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15649         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15650
15651 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15652
15653         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15654         redefine if SHARED.
15655         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15656
15657         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15658         wide char related routines to wcsmbs subdir.
15659
15660 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15661
15662         [BZ #13344]
15663         * misc/sys/cdefs.h (__THROWNL): Define.
15664         * posix/unistd.h: Use __THREADNL instead of __THREAD
15665         for memory synchronization functions.
15666
15667 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15668
15669         [BZ #13349]
15670         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15671         doesn't exist.
15672         * manual/stdio.texi (Obstack Streams): Node removed.
15673
15674 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15675
15676         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15677         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15678         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15679
15680         * math/math_private.h (math_force_eval): Allow non-addressable
15681         arguments.
15682         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15683
15684 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15685
15686         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15687         file is not needed.
15688
15689         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15690         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15691         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15692         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15693         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15694         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15695         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15696         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15697         Add AVX variants.
15698         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15699         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15700         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15701         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15702         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15703         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15704         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15705         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15706         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15707         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15708         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15709         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15710         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15711         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15712         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15713         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15714         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15715         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15716         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15717
15718         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15719         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15720
15721         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15722         place.  Use VEX encoding when compiling for AVX.
15723
15724 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15725
15726         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15727         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15728
15729         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15730
15731 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15732
15733         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15734         useless if() expression.
15735         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15736         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15737         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15738         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15739         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15740         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15741         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15742         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15743         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15744         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15745         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15746         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15747         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15748         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15749         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15750         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15751         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15752         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15753         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15754
15755         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15756
15757 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15758
15759         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15760         condition.
15761         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15762
15763 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15764
15765         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15766         .text section.  Avoid duplicate constants.
15767         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15768         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15769         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15770         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15771         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15772         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15773         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15774         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15775         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15776         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15777         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15778         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15779         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15780         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15781         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15782         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15783         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15784         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15785         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15786         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15787         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15788         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15789         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15790         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15791         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15792         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15793         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15794         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15795         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15796         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15797         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15798         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15799         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15800         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15801         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15802         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15803         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15804         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15805         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15806         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15807         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15808         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15809         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15810         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15811         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15812
15813 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15814
15815         * sysdeps/x86_64/dla.h: Move to ...
15816         * sysdeps/x86_64/fpu/dla.h: ...here.
15817         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15818         situations.  Use __builtin_fma only for gcc 4.6 and up.
15819
15820         * config.make.in: Add have-mfma4 entry.
15821         * configure.in: Substitute libc_cv_cc_fma4.
15822         * math/Makefile (dbl-only-routines): Add sincostab.
15823         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15824         Use __sincostab not sincos.
15825         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15826         name is a macro.
15827         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15828         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15829         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15830         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15831         using __copysign.
15832         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15833         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15834         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15835         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15836         and __inv.
15837         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15838         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15839         __copysign.
15840         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15841         define aliases when function name is a macro.
15842         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15843         sysdeps/ieee754/dbl-64/sincos.tbl.
15844         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15845         fma4-enabled routines.
15846         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15847         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15848         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15849         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15850         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15851         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15852         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15853         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15854         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15855         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15856         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15857         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15858         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15859         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15860         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15861         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15862         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15863         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15864         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15865         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15866         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15867         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15868         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15869         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15870         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15871         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15872         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15873         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15874         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15875         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15876
15877         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15878         rename.
15879         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15880         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15881         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15882         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15883         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15884         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15885         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15886         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15887
15888 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15889
15890         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15891
15892 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15893
15894         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15895
15896         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15897         prediction.
15898         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15899
15900         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15901         Remove unused variable magic_bits.
15902         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15903
15904         * string/strnlen.c: Define and use STRNLEN macro.
15905         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15906         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15907         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15908         * wcsmbs/wcslen.c: Define and use WCSLEN.
15909         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15910         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15911         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15912         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15913         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15914         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15915         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15916
15917 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15918
15919         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15920         strnlen-sse2-no-bsf.
15921         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15922         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15923         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15924         Add strnlen support.
15925         (USE_AS_STRNLEN): New macro.
15926         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15927         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15928         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15929         * sysdeps/x86_64/wcslen.S: New file.
15930
15931 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15932
15933         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15934         XMM-moves are used for copying on small sizes.
15935
15936 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15937
15938         * wcsmbs/Makefile (strop-tests): Add wcschr.
15939         * wcsmbs/test-wcschr.c: New file.
15940         * string/test-strchr.c: Update.
15941         Add wcschr support.
15942         (WIDE): New macro.
15943
15944 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15945
15946         * wcsmbs/Makefile (strop-tests): Add wcslen.
15947         * wcsmbs/test-wcslen.c: New file.
15948         * string/test-strlen.c: Update.
15949         Add wcslen support.
15950         (WIDE): New macro.
15951
15952 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15953
15954         * po/it.po: Update from translation team.
15955
15956 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15957
15958         * sysdeps/x86_64/wcscmp.S: Update.
15959         Fix wrong comparison semantics.
15960         wcscmp shall use signed comparison not unsigned.
15961         Don't use substraction to avoid overflow bug.
15962         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15963         * wcsmbc/wcscmp.c: Likewise.
15964         * string/test-strcmp.c: Likewise.
15965         Add new tests to check cases with negative values.
15966
15967 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15968
15969         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15970         * sysdeps/x86_64/dla.h: ...here.  New file.
15971         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15972         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15973         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15974         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15975         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15976         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15977         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15978         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15979         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15980
15981 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15982
15983         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15984         __ynl_finite aliases.
15985
15986 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15987
15988         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15989
15990         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15991         define DLA_FMA.
15992         [DLA_FMA] (EMULV): Use DLA_FMA.
15993         [DLA_FMA] (MUL12): Use EMULV.
15994         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15995         that are not needed.
15996         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15997         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15998         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15999         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16000         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16001         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16002         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16003
16004 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16005
16006         * math/s_nan.c: Undef __nan.
16007         * math/s_nanf.c: Undef __nanf.
16008         * math/s_nanl.c: Undef __nanl.
16009         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16010         "math_private.h".
16011
16012 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16013
16014         * math/s_catan.c: Add branch predictions.
16015         * math/s_catanf.c: Likewise.
16016         * math/s_catanh.c: Likewise.
16017         * math/s_catanhf.c: Likewise.
16018         * math/s_catanhl.c: Likewise.
16019         * math/s_catanl.c: Likewise.
16020         * math/s_cexp.c: Likewise.
16021         * math/s_cexpf.c: Likewise.
16022         * math/s_cexpl.c: Likewise.
16023         * math/s_clog.c: Likewise.
16024         * math/s_clog10.c: Likewise.
16025         * math/s_clog10f.c: Likewise.
16026         * math/s_clog10l.c: Likewise.
16027         * math/s_clogf.c: Likewise.
16028         * math/s_clogl.c: Likewise.
16029         * math/s_csqrt.c: Likewise.
16030         * math/s_csqrtf.c: Likewise.
16031         * math/s_csqrtl.c: Likewise.
16032         * math/s_ctanf.c: Likewise.
16033         * math/s_ctanh.c: Likewise.
16034         * math/s_ctanhf.c: Likewise.
16035         * math/s_ctanhl.c: Likewise.
16036         * math/s_ctanl.c: Likewise.
16037
16038         * math/math_private.h: Define __nan, __nanf, __nanl.
16039         * math/s_cacosh.c: Include <math_private.h>.
16040         * math/s_cacoshl.c: Likewise.
16041         * math/s_casinh.c: Likewise.
16042         * math/s_casinhf.c: Likewise.
16043         * math/s_casinhl.c: Likewise.
16044         * math/s_ccos.c: Rely entire on ccosh.
16045         * math/s_ccosf.c: Rely entire on ccoshf.
16046         * math/s_ccosl.c: Rely entirely on ccoshl.
16047         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16048         Remove tests for FE_INVALID.
16049         * math/s_ccoshf.c: Likewise.
16050         * math/s_ccoshl.c: Likewise.
16051         * math/s_csin.c: Likewise.
16052         * math/s_csinf.c: Likewise.
16053         * math/s_csinh.c Likewise.
16054         * math/s_csinhf.c: Likewise.
16055         * math/s_csinhl.c: Likewise.
16056         * math/s_csinl.c: Likewise.
16057         * math/s_ctan.c: Likewise.
16058         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16059         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16060         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16061
16062 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16063
16064         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16065         compilation problems.
16066
16067         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16068         __builtin_expect.
16069
16070 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16071
16072         * sysdeps/i386/configure.in: Test for -mfma4 option.
16073         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16074         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16075         COMMON_CPUID_INDEX_80000001.
16076         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16077         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16078         use it if FMA3 is not supported.
16079         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16080
16081         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16082         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16083
16084 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16085
16086         [BZ #12892]
16087         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16088         it would create a cycle with a link time dependency.
16089
16090 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16091
16092         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16093         instruction.
16094         * string/Makefile (strop-tests): Add rawmemchr.
16095         * string/test-rawmemchr.c: New file.
16096
16097         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16098         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16099         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16100         when compiling str{,n}casecmp and when AVX is available.  Hook up
16101         new optimized code in initializers.
16102
16103 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16104
16105         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16106         __feraiseexcept instead of feraiseexcept.
16107
16108 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16109
16110         * math/math_private.h: Define defaults for libc_fetestexcept and
16111         libc_feupdateenv.
16112         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16113         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16114         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16115         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16116         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16117         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16118         libc_fetestexcept and libc_feupdateenv.
16119
16120         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16121         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16122         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16123         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16124         libc_feholdexcept_setround.
16125
16126         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16127         Add s_nearbyint-c and s_nearbyintf-c.
16128         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16129         nearbyintf inlines.
16130         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16131         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16132         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16133         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16134
16135         * math/math_private.h: Define defaults for libc_fegetround,
16136         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16137         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16138         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16139         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16140         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16141         standard functions.
16142         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16143         Remove comments and hacks for old compiler versions.
16144         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16145         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16146         libc_feholdexceptl.
16147
16148 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16149
16150         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16151         (__feraiseexcept_renamed): Add __NTH.
16152         (feraiseexcept): Add __NTH.  Rename local variables to fix
16153         namespace violations.
16154
16155 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16156
16157         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16158
16159         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16160
16161         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16162         recently added interfaces.
16163         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16164
16165         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16166         about macro parameter expansion.
16167
16168         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16169         __NO_MATH_INLINES is defined.  Cleanups.
16170
16171         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16172         and __floorf is target has SSE4.1.
16173         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16174         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16175         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16176         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16177
16178         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16179         name.
16180         (floorf): Likewise.
16181
16182         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16183
16184 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16185
16186         * misc/sys/cdefs.h: Fix last change.
16187
16188         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16189         database lookup.
16190
16191 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16192
16193         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16194
16195         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16196         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16197         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16198         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16199         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16200         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16201         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16202         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16203         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16204         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16205         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16206         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16207         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16208         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16209         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16210         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16211         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16212         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16213         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16214         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16215         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16216         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16217
16218         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16219         ceil, ceilf, floor, floorf.
16220
16221         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16222         Perform IRELATIVE relocations last.
16223
16224         * elf/do-rel.h: Add another parameter nrelative, replacing the
16225         local variable with the same name.  Change name of the function
16226         to end in Rel or Rela (uppercase).
16227         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16228         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16229         elf_dynamic_do_##reloc function.
16230
16231 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16232
16233         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16234         is sufficient, at least on modern CPUs.
16235
16236         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16237
16238         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16239         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16240
16241         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16242         __expl_finite.
16243         * math/bits/math-finite.h: Add entries for exp.
16244         * math/e_expl.c: Add __*_finite alias.
16245         * sysdeps/i386/fpu/e_exp.S: Likewise.
16246         * sysdeps/i386/fpu/e_expf.S: Likewise.
16247         * sysdeps/i386/fpu/e_expl.c: Likewise.
16248         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16249         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16250         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16251         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16252         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16253         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16254         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16255
16256         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16257         is sufficient, at least on modern CPUs.
16258
16259         * ctype/ctype-info.c (__ctype_init): Define.
16260         * include/ctype.h (__ctype_init): Declare.
16261         (__ctype_b_loc): The variable is always initialized.
16262         (__ctype_toupper_loc): Likewise.
16263         (__ctype_tolower_loc): Likewise.
16264         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16265         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16266
16267 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16268
16269         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16270
16271         * configure.in: Also look in $cxxmachine/include for C++ system
16272         headers.
16273
16274 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16275
16276         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16277         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16278         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16279         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16280         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16281         (USE_AS_WMEMCMP): New macro.
16282         Fixing indents.
16283         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16284         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16285         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16286         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16287         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16288         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16289         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16290         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16291         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16292         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16293         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16294         (USE_AS_WMEMCMP): New macro.
16295         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16296         * sysdeps/string/test-memcmp.c: Update.
16297         Fix simple_wmemcmp.
16298         Add new tests.
16299         * wcsmbs/wmemcmp.c: Update.
16300         (WMEMCMP): New macro.
16301         Fix overflow bug.
16302
16303 2011-10-12  Andreas Jaeger  <aj@suse.de>
16304
16305         [BZ #13268]
16306         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16307
16308 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16309
16310         * libio/iofwide.c (do_length): Avoid warning.
16311
16312         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16313
16314 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16315
16316         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16317
16318         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16319         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16320         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16321         * sysdeps/i386/i686/fpu/e_log.S: New file.
16322         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16323         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16324
16325         * ctype/ctype.h: Add support for inlined isXXX functions when
16326         compiling C++ code.
16327
16328 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16329
16330         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16331
16332         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16333
16334 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16335
16336         [BZ #13291]
16337         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16338
16339 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16340
16341         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16342         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16343         feraiseexcept.
16344
16345         * sysdeps/x86_64/memrchr.S: Check for zero size.
16346
16347         * string/stratcliff.c: Add memrchr tests.
16348
16349 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16350
16351         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16352         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
16353         rawmemchr-sse2 rawmemchr-sse2-bsf.
16354         * sysdeps/i386/i686/multiarch/memchr.S: New file.
16355         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
16356         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
16357         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
16358         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
16359         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
16360         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
16361         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
16362         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
16363         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16364         * string/memrchr.c (MEMRCHR): New macro.
16365
16366 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
16367
16368         Add integration with gcc's -ffinite-math-only and optimize wrapper
16369         functions in libm.
16370         * Versions.def: Define GLIBC_2.15 version for libm.
16371         * math/Makefile (headers): Add bits/math-finite.h.
16372         * math/bits/math-finite.h: New file.
16373         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
16374         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
16375         * math/e_acoshl.c: Add __*_finite alias.
16376         * math/e_acosl.c: Likewise.
16377         * math/e_asinl.c: Likewise.
16378         * math/e_atan2l.c: Likewise.
16379         * math/e_atanhl.c: Likewise.
16380         * math/e_coshl.c: Likewise.
16381         * math/e_exp10.c: Likewise.
16382         * math/e_exp10f.c: Likewise.
16383         * math/e_exp10l.c: Likewise.
16384         * math/e_exp2l.c: Likewise.
16385         * math/e_fmodl.c: Likewise.
16386         * math/e_gammal_r.c: Likewise.
16387         * math/e_hypotl.c: Likewise.
16388         * math/e_j0l.c: Likewise.
16389         * math/e_j1l.c: Likewise.
16390         * math/e_jnl.c: Likewise.
16391         * math/e_lgammal_r.c: Likewise.
16392         * math/e_log10l.c: Likewise.
16393         * math/e_log2l.c: Likewise.
16394         * math/e_logl.c: Likewise.
16395         * math/e_powl.c: Likewise.
16396         * math/e_sinhl.c: Likewise.
16397         * math/e_sqrtl.c: Likewise.
16398         * math/e_scalb.c: Completely rewritten and optimized.
16399         * math/e_scalbf.c: Likewise.
16400         * math/e_scalbl.c: Likewise.
16401         * math/w_acos.c: Likewise.
16402         * math/w_acosf.c: Likewise.
16403         * math/w_acosl.c: Likewise.
16404         * math/w_acosh.c: Likewise.
16405         * math/w_acoshf.c: Likewise.
16406         * math/w_acoshl.c: Likewise.
16407         * math/w_asin.c: Likewise.
16408         * math/w_asinf.c: Likewise.
16409         * math/w_asinl.c: Likewise.
16410         * math/w_atan2.c: Likewise.
16411         * math/w_atan2f.c: Likewise.
16412         * math/w_atan2l.c: Likewise.
16413         * math/w_atanh.c: Likewise.
16414         * math/w_atanhf.c: Likewise.
16415         * math/w_atanhl.c: Likewise.
16416         * math/w_exp10.c: Likewise.
16417         * math/w_exp10f.c: Likewise.
16418         * math/w_exp10l.c: Likewise.
16419         * math/w_fmod.c: Likewise.
16420         * math/w_fmodf.c: Likewise.
16421         * math/w_fmodl.c: Likewise.
16422         * math/w_j0.c: Likewise.
16423         * math/w_j0f.c: Likewise.
16424         * math/w_j0l.c: Likewise.
16425         * math/w_j1.c: Likewise.
16426         * math/w_j1f.c: Likewise.
16427         * math/w_j1l.c: Likewise.
16428         * math/w_jn.c: Likewise.
16429         * math/w_jnf.c: Likewise.
16430         * math/w_log.c: Likewise.
16431         * math/w_logf.c: Likewise.
16432         * math/w_logl.c: Likewise.
16433         * math/w_log10.c: Likewise.
16434         * math/w_log10f.c: Likewise.
16435         * math/w_log10l.c: Likewise.
16436         * math/w_log2.c: Likewise.
16437         * math/w_log2f.c: Likewise.
16438         * math/w_log2l.c: Likewise.
16439         * math/w_pow.c: Likewise.
16440         * math/w_powf.c: Likewise.
16441         * math/w_powl.c: Likewise.
16442         * math/w_remainder.c: Likewise.
16443         * math/w_remainderf.c: Likewise.
16444         * math/w_remainderl.c: Likewise.
16445         * math/w_scalb.c: Likewise.
16446         * math/w_scalbf.c: Likewise.
16447         * math/w_scalbl.c: Likewise.
16448         * math/w_sqrt.c: Likewise.
16449         * math/w_sqrtf.c: Likewise.
16450         * math/w_sqrtl.c: Likewise.
16451         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
16452         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
16453         used.
16454         * math/math_private.h: Declare __kernel_standard_f.
16455         * math/w_cosh.c: Remove cruft and optimize a bit.
16456         * math/w_coshf.c: Likewise.
16457         * math/w_coshl.c: Likewise.
16458         * math/w_exp2.c: Likewise.
16459         * math/w_exp2f.c: Likewise.
16460         * math/w_exp2l.c: Likewise.
16461         * math/w_hypot.c: Likewise.
16462         * math/w_hypotf.c: Likewise.
16463         * math/w_hypotl.c: Likewise.
16464         * math/w_lgamma.c: Likewise.
16465         * math/w_lgamma_r.c: Likewise.
16466         * math/w_lgammaf.c: Likewise.
16467         * math/w_lgammaf_r.c: Likewise.
16468         * math/w_lgammal.c: Likewise.
16469         * math/w_lgammal_r.c: Likewise.
16470         * math/w_sinh.c: Likewise.
16471         * math/w_sinhf.c: Likewise.
16472         * math/w_sinhl.c: Likewise.
16473         * math/w_tgamma.c: Likewise.
16474         * math/w_tgammaf.c: Likewise.
16475         * math/w_tgammal.c: Likewise.
16476         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
16477         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16478         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
16479         Minor optimizations.  Pretty printing.  Remove cruft.
16480         * sysdeps/i386/fpu/e_acosf.S: Likewise.
16481         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16482         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16483         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16484         * sysdeps/i386/fpu/e_acosl.c: Likewise.
16485         * sysdeps/i386/fpu/e_asin.S: Likewise.
16486         * sysdeps/i386/fpu/e_asinf.S: Likewise.
16487         * sysdeps/i386/fpu/e_atan2.S: Likewise.
16488         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
16489         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
16490         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16491         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16492         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16493         * sysdeps/i386/fpu/e_exp10.S: Likewise.
16494         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
16495         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
16496         * sysdeps/i386/fpu/e_exp2.S: Likewise.
16497         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
16498         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
16499         * sysdeps/i386/fpu/e_fmod.S: Likewise.
16500         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
16501         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
16502         * sysdeps/i386/fpu/e_hypot.S: Likewise.
16503         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
16504         * sysdeps/i386/fpu/e_log.S: Likewise.
16505         * sysdeps/i386/fpu/e_log10.S: Likewise.
16506         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16507         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16508         * sysdeps/i386/fpu/e_log2.S: Likewise.
16509         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16510         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16511         * sysdeps/i386/fpu/e_logf.S: Likewise.
16512         * sysdeps/i386/fpu/e_logl.S: Likewise.
16513         * sysdeps/i386/fpu/e_pow.S: Likewise.
16514         * sysdeps/i386/fpu/e_powf.S: Likewise.
16515         * sysdeps/i386/fpu/e_powl.S: Likewise.
16516         * sysdeps/i386/fpu/e_remainder.S: Likewise.
16517         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
16518         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
16519         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16520         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16521         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16522         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
16523         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
16524         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
16525         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
16526         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16527         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16528         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16529         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16530         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16531         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16532         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16533         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16534         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16535         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16536         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16537         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16538         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16539         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16540         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16541         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16542         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16543         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16544         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16545         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16546         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16547         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16548         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16549         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16550         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16551         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16552         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16553         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16554         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16555         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16556         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16557         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16558         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16559         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16560         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16561         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16562         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16563         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16564         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16565         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16566         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16567         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16568         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16569         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16570         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16571         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16572         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16573         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16574         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16575         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16576         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16577         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16578         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16579         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16580         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16581         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16582         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16583         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16584         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16585         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16586         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16587         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16588         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16589         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16590         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16591         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16592         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16593         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16594         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16595         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16596         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16597         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16598         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16599         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16600         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16601         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16602         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16603         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16604         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16605         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16606         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16607         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16608         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16609         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16610         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16611         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16612         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16613         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16614         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16615         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16616         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16617         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16618         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16619         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16620         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16621         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16622         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16623         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16624         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16625         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16626         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16627         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16628         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16629         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16630         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16631         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16632         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16633         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16634         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16635         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16636         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16637         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16638         (__isnanf): Likewise.
16639         (__isinf_ns): Likewise.
16640         (__isinf_nsf): Likewise.
16641         (__finite): Likewise.
16642         (__finitef): Likewise.
16643         (__ieee754_sqrt): Define as macro.
16644         (__ieee754_sqrtf): Define as macro.
16645         (__ieee754_sqrtl): Define as macro.
16646         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16647         inlined copy.
16648         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16649         __FINITE_MATH_ONLY__ consistent.
16650         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16651
16652 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16653
16654         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16655         of rawmemchr.
16656
16657         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16658
16659 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16660
16661         * po/ja.po: Update from translation team.
16662
16663 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16664
16665         * locale/programs/locarchive.c (prepare_address_space): New function.
16666         (create_archive, enlarge_archive, open_archive): Use it.
16667
16668         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16669         inside [SHARED], where it is used.
16670
16671         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16672
16673         * nss/getent.c (netgroup_keys): Remove unused variable.
16674         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16675
16676 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16677
16678         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16679         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16680         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16681         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16682         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16683         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16684         * math/Makefile (libm-calls): Add s_isinf_ns.
16685         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16686         * math/multc3.c: Likewise.
16687         * math/s_casin.c: Likewise.
16688         * math/s_casinf.c: Likewise.
16689         * math/s_casinl.c: Likewise.
16690         * math/s_ccos.c: Likewise.
16691         * math/s_ccosf.c: Likewise.
16692         * math/s_ccosl.c: Likewise.
16693         * math/s_ctan.c: Likewise.
16694         * math/s_ctanf.c: Likewise.
16695         * math/s_ctanh.c: Likewise.
16696         * math/s_ctanhf.c: Likewise.
16697         * math/s_ctanhl.c: Likewise.
16698         * math/s_ctanl.c: Likewise.
16699         * math/w_fmod.c: Likewise.
16700         * math/w_fmodf.c: Likewise.
16701         * math/w_fmodl.c: Likewise.
16702         * math/w_remainder.c: Likewise.
16703         * math/w_remainderf.c: Likewise.
16704         * math/w_remainderl.c: Likewise.
16705         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16706         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16707         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16708         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16709         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16710         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16711         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16712         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16713
16714         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16715         of the number.
16716         * stdio-common/printf_fphex.c: Likewise.
16717         * stdio-common/printf_size.c: Likewise.
16718
16719         * math/e_exp10.c: Include math_private.h using <...> not "...".
16720         * math/e_exp10f.c: Likewise.
16721         * math/e_exp10l.c: Likewise.
16722         * math/e_exp2l.c: Likewise.
16723         * math/e_j0l.c: Likewise.
16724         * math/e_j1l.c: Likewise.
16725         * math/e_jnl.c: Likewise.
16726         * math/e_lgammal_r.c: Likewise.
16727         * math/e_rem_pio2l.c: Likewise.
16728         * math/e_scalb.c: Likewise.
16729         * math/e_scalbf.c: Likewise.
16730         * math/e_scalbl.c: Likewise.
16731         * math/k_cosl.c: Likewise.
16732         * math/k_sinl.c: Likewise.
16733         * math/k_tanl.c: Likewise.
16734         * math/s_cacoshf.c: Likewise.
16735         * math/s_catan.c: Likewise.
16736         * math/s_catanf.c: Likewise.
16737         * math/s_catanh.c: Likewise.
16738         * math/s_catanhf.c: Likewise.
16739         * math/s_catanhl.c: Likewise.
16740         * math/s_catanl.c: Likewise.
16741         * math/s_ccosh.c: Likewise.
16742         * math/s_ccoshf.c: Likewise.
16743         * math/s_ccoshl.c: Likewise.
16744         * math/s_cexp.c: Likewise.
16745         * math/s_cexpf.c: Likewise.
16746         * math/s_cexpl.c: Likewise.
16747         * math/s_clog.c: Likewise.
16748         * math/s_clog10.c: Likewise.
16749         * math/s_clog10f.c: Likewise.
16750         * math/s_clog10l.c: Likewise.
16751         * math/s_clogf.c: Likewise.
16752         * math/s_clogl.c: Likewise.
16753         * math/s_csin.c: Likewise.
16754         * math/s_csinf.c: Likewise.
16755         * math/s_csinh.c: Likewise.
16756         * math/s_csinhf.c: Likewise.
16757         * math/s_csinhl.c: Likewise.
16758         * math/s_csinl.c: Likewise.
16759         * math/s_csqrt.c: Likewise.
16760         * math/s_csqrtf.c: Likewise.
16761         * math/s_csqrtl.c: Likewise.
16762         * math/s_ctan.c: Likewise.
16763         * math/s_ctanf.c: Likewise.
16764         * math/s_ctanh.c: Likewise.
16765         * math/s_ctanhf.c: Likewise.
16766         * math/s_ctanhl.c: Likewise.
16767         * math/s_ctanl.c: Likewise.
16768         * math/s_ldexp.c: Likewise.
16769         * math/s_ldexpf.c: Likewise.
16770         * math/s_ldexpl.c: Likewise.
16771         * math/s_significand.c: Likewise.
16772         * math/s_significandf.c: Likewise.
16773         * math/s_significandl.c: Likewise.
16774         * math/w_acos.c: Likewise.
16775         * math/w_acosf.c: Likewise.
16776         * math/w_acosh.c: Likewise.
16777         * math/w_acoshf.c: Likewise.
16778         * math/w_acoshl.c: Likewise.
16779         * math/w_acosl.c: Likewise.
16780         * math/w_asin.c: Likewise.
16781         * math/w_asinf.c: Likewise.
16782         * math/w_asinl.c: Likewise.
16783         * math/w_atan2.c: Likewise.
16784         * math/w_atan2f.c: Likewise.
16785         * math/w_atan2l.c: Likewise.
16786         * math/w_atanh.c: Likewise.
16787         * math/w_atanhf.c: Likewise.
16788         * math/w_atanhl.c: Likewise.
16789         * math/w_cosh.c: Likewise.
16790         * math/w_coshf.c: Likewise.
16791         * math/w_coshl.c: Likewise.
16792         * math/w_dremf.c: Likewise.
16793         * math/w_exp10.c: Likewise.
16794         * math/w_exp10f.c: Likewise.
16795         * math/w_exp10l.c: Likewise.
16796         * math/w_exp2.c: Likewise.
16797         * math/w_exp2f.c: Likewise.
16798         * math/w_fmod.c: Likewise.
16799         * math/w_fmodf.c: Likewise.
16800         * math/w_fmodl.c: Likewise.
16801         * math/w_hypot.c: Likewise.
16802         * math/w_hypotf.c: Likewise.
16803         * math/w_hypotl.c: Likewise.
16804         * math/w_j0.c: Likewise.
16805         * math/w_j0f.c: Likewise.
16806         * math/w_j0l.c: Likewise.
16807         * math/w_j1.c: Likewise.
16808         * math/w_j1f.c: Likewise.
16809         * math/w_j1l.c: Likewise.
16810         * math/w_jn.c: Likewise.
16811         * math/w_jnf.c: Likewise.
16812         * math/w_jnl.c: Likewise.
16813         * math/w_lgamma.c: Likewise.
16814         * math/w_lgamma_r.c: Likewise.
16815         * math/w_lgammaf.c: Likewise.
16816         * math/w_lgammaf_r.c: Likewise.
16817         * math/w_lgammal.c: Likewise.
16818         * math/w_lgammal_r.c: Likewise.
16819         * math/w_log.c: Likewise.
16820         * math/w_log10.c: Likewise.
16821         * math/w_log10f.c: Likewise.
16822         * math/w_log10l.c: Likewise.
16823         * math/w_log2.c: Likewise.
16824         * math/w_log2f.c: Likewise.
16825         * math/w_log2l.c: Likewise.
16826         * math/w_logf.c: Likewise.
16827         * math/w_logl.c: Likewise.
16828         * math/w_pow.c: Likewise.
16829         * math/w_powf.c: Likewise.
16830         * math/w_powl.c: Likewise.
16831         * math/w_remainder.c: Likewise.
16832         * math/w_remainderf.c: Likewise.
16833         * math/w_remainderl.c: Likewise.
16834         * math/w_scalb.c: Likewise.
16835         * math/w_scalbf.c: Likewise.
16836         * math/w_scalbl.c: Likewise.
16837         * math/w_sinh.c: Likewise.
16838         * math/w_sinhf.c: Likewise.
16839         * math/w_sinhl.c: Likewise.
16840         * math/w_sqrt.c: Likewise.
16841         * math/w_sqrtf.c: Likewise.
16842         * math/w_sqrtl.c: Likewise.
16843         * math/w_tgamma.c: Likewise.
16844         * math/w_tgammaf.c: Likewise.
16845         * math/w_tgammal.c: Likewise.
16846
16847         * po/ja.po: Update from translation team.
16848
16849 2011-09-29  Andreas Jaeger  <aj@suse.de>
16850
16851         [BZ #13179]
16852         * sunrpc/netname.c (netname2host): Fix logic.
16853
16854         [BZ #6779]
16855         [BZ #6783]
16856         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16857         correctly.
16858         * math/w_remainder.c (__remainder): Likewise.
16859         * math/w_remainderf.c (__remainderf): Likewise.
16860         * math/libm-test.inc (remainder_test): Add test cases.
16861
16862 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16863
16864         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16865         sdiv_qrnnd.
16866
16867 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16868
16869         * string/test-memcmp.c: Avoid unncessary #defines.
16870         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16871
16872 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16873
16874         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16875         Use new sse2 version for core i3 - i7 as it's faster
16876         than sse42 version.
16877         (bit_Prefer_PMINUB_for_stringop): New.
16878         * sysdeps/x86_64/rawmemchr.S: Update.
16879         Replace with faster SSE2 version.
16880         * sysdeps/x86_64/memrchr.S: New file.
16881         * sysdeps/x86_64/memchr.S: Update.
16882         Replace with faster SSE2 version.
16883
16884 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16885
16886         * elf/dl-load.c (lose): Add cast to avoid warning.
16887
16888 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16889
16890         * po/ca.po: Update from translation team.
16891
16892         * inet/getnetgrent_r.c: Hook up nscd.
16893         * nscd/Makefile (routines): Add nscd_netgroup.
16894         (nscd-modules): Add netgroupcache.
16895         (CFLAGS-netgroupcache.c): Define.
16896         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16897         (cache_search): Add const to second parameter.
16898         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16899         INNETGR.
16900         (dbs): Add netgrdb entry.
16901         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16902         (verify_persistent_db): Handle netgrdb.
16903         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16904         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16905         GETFDNETGR.
16906         (netgroup_response_header): Define.
16907         (innetgroup_response_header): Define.
16908         (datahead): Add netgroup_response_header and innetgroup_response_header
16909         elements.
16910         * nscd/nscd.conf: Add entries for netgroup cache.
16911         * nscd/nscd.h (dbtype): Add netgrdb.
16912         (_PATH_NSCD_NETGROUP_DB): Define.
16913         (netgroup_iov_disabled): Declare.
16914         (xmalloc, xcalloc, xrealloc): Move declarations here.
16915         (cache_search): Adjust prototype.
16916         Add netgroup-related prototypes.
16917         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16918         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16919         (__nscd_innetgr): Declare.
16920         * nscd/selinux.c (perms): Use access_vector_t as element type and
16921         add netgroup-related initializers.
16922         * nscd/netgroupcache.c: New file.
16923         * nscd/nscd_netgroup.c: New file.
16924         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16925         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16926         For four parameters use innetgr.
16927         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16928         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16929         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16930         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16931
16932         * nscd/connections.c (register_traced_file): Don't register file
16933         for disabled databases.
16934
16935 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16936
16937         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16938
16939         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16940         from tree and freeing node.
16941
16942 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16943
16944         * nss/nsswitch.c (__nss_database_lookup): Handle
16945         nss_parse_service_list out of memory case.
16946
16947 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16948
16949         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16950         out of memory case.
16951
16952 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16953
16954         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16955         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16956         pass it down.
16957         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16958         elf_machine_rela, elf_machine_lazy_rel.
16959         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16960         (ELF_DYNAMIC_DO_REL): Likewise.
16961         (ELF_DYNAMIC_DO_RELA): Likewise.
16962         (ELF_DYNAMIC_RELOCATE): Likewise.
16963         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16964         to ELF_DYNAMIC_DO_REL.
16965         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16966         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16967         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16968         elf_machine_rela.
16969         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16970         skip_ifunc, don't call ifunc function if non-zero.
16971         (elf_machine_rela): Likewise.
16972         (elf_machine_lazy_rel): Likewise.
16973         (elf_machine_lazy_rela): Likewise.
16974         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16975         (elf_machine_lazy_rel): Likewise.
16976         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16977         Likewise.
16978         (elf_machine_lazy_rel): Likewise.
16979         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16980         Likewise.
16981         (elf_machine_lazy_rel): Likewise.
16982         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16983         (elf_machine_lazy_rel): Likewise.
16984         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16985         (elf_machine_lazy_rel): Likewise.
16986         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16987         (elf_machine_lazy_rel): Likewise.
16988         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16989         (elf_machine_lazy_rel): Likewise.
16990         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16991         (elf_machine_lazy_rel): Likewise.
16992         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16993         (elf_machine_lazy_rel): Likewise.
16994
16995 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16996
16997         * nss/nss_files/files-init.c (_nss_files_init): Use static
16998         initialization for all the *_traced_file variables.
16999
17000 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17001
17002         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17003
17004 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17005
17006         [BZ #13226]
17007         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17008
17009 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17010
17011         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17012         Reread the line before reparsing it.
17013
17014 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17015
17016         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17017
17018 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17019             Maxim Kuvyrkov  <maxim@codesourcery.com>
17020             Joseph Myers  <joseph@codesourcery.com>
17021
17022         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17023         if needed for __stack_chk_guard.
17024
17025 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17026
17027         * sysdeps/posix/spawni.c (script_execute): Always define it.
17028         It will be optimized away if unused.
17029         (maybe_script_execute): New function.
17030         (__spawni): Call it.
17031
17032         * Makerules: Don't include tls.make.
17033         (config-tls): Always set to thread.
17034         * tls.make.c: File removed.
17035
17036 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17037
17038         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17039         * config.make.in (CPPFLAGS-config): New substituted variable.
17040
17041 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17042
17043         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17044
17045         [BZ #13192]
17046         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17047         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17048
17049 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17050
17051         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17052         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17053         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17054         (CALL_FAIL): Likewise.
17055         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17056         (CALL_FAIL): Macro removed.
17057         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17058
17059 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17060
17061         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17062         for __FINITE_MATH_ONLY__ == 1.
17063
17064 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17065
17066         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17067         __ieee754_sqrt instead of sqrt.
17068         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17069         __ieee754_sqrtf instead of sqrtf.
17070         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17071         __floorf instead of floorf.
17072         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17073         __floorf, __truncf instead of floorf, truncf.
17074
17075 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17076
17077         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17078
17079         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17080         __extern_always_inline.
17081         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17082         32-bit.
17083
17084 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17085
17086         * elf/rtld.c (dl_main): Also relocate in dependency order when
17087         doing symbol dependency testing.
17088
17089 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17090
17091         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17092         Always define `refsym'.
17093
17094 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17095
17096         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17097         (__FD_ELT): Renamed from __FDELT.
17098         * misc/bits/select2.h (__FD_ELT): Likewise.
17099         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17100         __FD_MASK instead of __FDELT, __FDMASK.
17101         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17102         Likewise.
17103         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17104         Likewise.
17105
17106         * elf/Makefile (gen-ldd): Fix pattern.
17107
17108         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17109         (init_tls): Likewise.
17110
17111 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17112
17113         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17114
17115 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17116
17117         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17118         `struct cmsghdr *' instead of `void *'.
17119         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17120         Likewise.
17121
17122 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17123
17124         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17125         if non-absolute.
17126         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17127         ldd_rewrite_script.
17128
17129 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17130
17131         * configure.in: Remove --with-tls option.
17132         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17133         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17134         out in case it is missing.
17135         * sysdeps/ia64/elf/configure.in: Likewise.
17136         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17137         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17138         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17139         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17140         * sysdeps/sh/elf/configure.in: Likewise.
17141         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17142         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17143         * sysdeps/x86_64/elf/configure.in: Likewise.
17144         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17145         * sysdeps/mach/hurd/tls.h: Likewise.
17146
17147         [BZ #13067]
17148         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17149
17150         [BZ #13090]
17151         * configure.in: Fix use of AC_INIT.
17152
17153         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17154
17155 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17156
17157         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17158         __set_errno.
17159         * malloc/hooks.c: Likewise.
17160
17161         [BZ #11929]
17162         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17163         variables statically.
17164         (narenas): Initialize.
17165         (list_lock): Initialize.
17166         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17167         initializtion of main_arena and list_lock.  Small cleanups.
17168         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17169         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17170         Add initializers to main_arena and mp_.
17171         (malloc_state): Remove pagesize member.  Change all users to use
17172         GLRO(dl_pagesize).
17173
17174         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17175         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17176         is always initialized.
17177
17178         * malloc/malloc.c: Removed unused configurations and dead code.
17179         * malloc/arena.c: Likewise.
17180         * malloc/hooks.c: Likewise.
17181         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17182
17183         * include/tls.h: Removed.  USE___THREAD must always be defined.
17184         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17185         * elf/dl-libc.c: Likewise.
17186         * elf/dl-tsd.c: Likewise.
17187         * include/errno.h: Likewise.
17188         * include/netdb.h: Likewise.
17189         * include/resolv.h: Likewise.
17190         * inet/herrno-loc.c: Likewise.
17191         * inet/herrno.c: Likewise.
17192         * malloc/arena.c: Likewise.
17193         * malloc/hooks.c: Likewise.
17194         * malloc/malloc.c: Likewise.
17195         * resolv/res-state.c: Likewise.
17196         * resolv/res_libc.c: Likewise.
17197         * sysdeps/i386/dl-machine.h: Likewise.
17198         * sysdeps/ia64/dl-machine.h: Likewise.
17199         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17200         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17201         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17202         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17203         * sysdeps/sh/dl-machine.h: Likewise.
17204         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17205         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17206         * sysdeps/unix/i386/sysdep.S: Likewise.
17207         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17208         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17209         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17210         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17211         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17212         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17213         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17214         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17215         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17216         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17217         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17218         * sysdeps/x86_64/dl-machine.h: Likewise.
17219         * tls.make.c: Likewise.
17220
17221         * configure.in: Remove --with-__thread option.  Make tests for
17222         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17223         tls_model attribute fail if no support is available.  Remove
17224         USE_IN_LIBIO.
17225         * Makeconfig: Adjust for dropped configure option.  All features are
17226         now mandatory.
17227         * Makerules: Likewise.
17228         * Versions.def: Likewise.
17229         * argp/argp-fmtstream.c: Likewise.
17230         * argp/argp-fmtstream.h: Likewise.
17231         * argp/argp-help.c: Likewise.
17232         * assert/assert.c: Likewise.
17233         * config.h.in: Likewise.
17234         * config.make.in: Likewise.
17235         * configure: Likewise.
17236         * configure.in: Likewise.
17237         * csu/Versions: Likewise.
17238         * csu/init.c: Likewise.
17239         * elf/tst-audit2.c: Likewise.
17240         * elf/tst-tls10.c: Likewise.
17241         * elf/tst-tls10.h: Likewise.
17242         * elf/tst-tls11.c: Likewise.
17243         * elf/tst-tls12.c: Likewise.
17244         * elf/tst-tls14.c: Likewise.
17245         * elf/tst-tlsmod11.c: Likewise.
17246         * elf/tst-tlsmod12.c: Likewise.
17247         * elf/tst-tlsmod13.c: Likewise.
17248         * elf/tst-tlsmod13a.c: Likewise.
17249         * elf/tst-tlsmod14a.c: Likewise.
17250         * elf/tst-tlsmod15b.c: Likewise.
17251         * elf/tst-tlsmod16a.c: Likewise.
17252         * elf/tst-tlsmod16b.c: Likewise.
17253         * elf/tst-tlsmod7.c: Likewise.
17254         * elf/tst-tlsmod8.c: Likewise.
17255         * elf/tst-tlsmod9.c: Likewise.
17256         * gmon/gmon.c: Likewise.
17257         * grp/fgetgrent_r.c: Likewise.
17258         * grp/putgrent.c: Likewise.
17259         * hurd/fopenport.c: Likewise.
17260         * include/libc-symbols.h: Likewise.
17261         * include/tls.h: Likewise.
17262         * intl/gettextP.h: Likewise.
17263         * intl/loadinfo.h: Likewise.
17264         * locale/global-locale.c: Likewise.
17265         * locale/localeinfo.h: Likewise.
17266         * mach/devstream.c: Likewise.
17267         * malloc/arena.c: Likewise.
17268         * malloc/set-freeres.c: Likewise.
17269         * misc/err.c: Likewise.
17270         * misc/getttyent.c: Likewise.
17271         * misc/mntent_r.c: Likewise.
17272         * posix/getopt.c: Likewise.
17273         * posix/wordexp.c: Likewise.
17274         * pwd/fgetpwent_r.c: Likewise.
17275         * resolv/Versions: Likewise.
17276         * resolv/res_hconf.c: Likewise.
17277         * shadow/fgetspent_r.c: Likewise.
17278         * shadow/putspent.c: Likewise.
17279         * stdio-common/printf_fphex.c: Likewise.
17280         * stdio-common/tmpfile.c: Likewise.
17281         * stdlib/abort.c: Likewise.
17282         * stdlib/fmtmsg.c: Likewise.
17283         * sunrpc/auth_unix.c: Likewise.
17284         * sunrpc/clnt_perr.c: Likewise.
17285         * sunrpc/clnt_tcp.c: Likewise.
17286         * sunrpc/clnt_udp.c: Likewise.
17287         * sunrpc/clnt_unix.c: Likewise.
17288         * sunrpc/openchild.c: Likewise.
17289         * sunrpc/svc_simple.c: Likewise.
17290         * sunrpc/svc_tcp.c: Likewise.
17291         * sunrpc/svc_udp.c: Likewise.
17292         * sunrpc/svc_unix.c: Likewise.
17293         * sunrpc/xdr.c: Likewise.
17294         * sunrpc/xdr_array.c: Likewise.
17295         * sunrpc/xdr_rec.c: Likewise.
17296         * sunrpc/xdr_ref.c: Likewise.
17297         * sunrpc/xdr_stdio.c: Likewise.
17298
17299 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17300
17301         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17302
17303 2011-07-03  Andreas Jaeger  <aj@suse.de>
17304
17305         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17306         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17307         regenerate with gen-libm-tests.pl.
17308
17309 2010-05-12  Petr Baudis  <pasky@suse.cz>
17310
17311         [BZ #11589]
17312         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17313         around j0() zero points by switching to j1().
17314         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17315         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17316         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17317         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17318
17319 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17320
17321         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17322         instead of 0.
17323         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17324         instead of 0.                              .
17325         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17326         Patch in part by Pavel Roskin <proski@gnu.org>.
17327
17328         [BZ #13138]
17329         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17330         realloc.
17331         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17332         Free memory block if necessary.
17333
17334         [BZ #12847]
17335         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17336         be NULL.  Don't lock in this case.
17337
17338 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17339
17340         * elf/elf.h (ELFOSABI_GNU): New macro.
17341         (ELFOSABI_LINUX): Define to that.
17342
17343 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17344
17345         * string/strncat.c (strncat): Undef the symbol in case it has been
17346         defined in bits/string.h.
17347
17348 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17349
17350         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
17351
17352         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
17353         link map.
17354
17355 2011-08-17  Andreas Jaeger  <aj@suse.de>
17356
17357         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
17358
17359 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
17360             Ian Lance Taylor  <iant@google.com>
17361
17362         * math/libm-test.inc (lround_test): New testcase.
17363         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
17364
17365 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
17366
17367         * Makefile: Remove support for automatic cvs check-ins.
17368         * Makerules: Likewise.
17369         * config.make.in: Likewise.
17370         * configure.in: Likewise.
17371         * intl/Makefile: Likewise.
17372         * locale/Makefile: Likewise.
17373         * po/Makefile: Likewise.
17374         * posix/Makefile: Likewise.
17375         * sysdeps/gnu/Makefile: Likewise.
17376         * sysdeps/mach/hurd/Makefile: Likewise.
17377         * sysdeps/sparc/sparc32/Makefile: Likewise.
17378
17379         [BZ #13118]
17380         * posix/Makefile (bug-regex32-ENV): Define.
17381         Patch by John Stanley <jpsinthemix@verizon.net>.
17382
17383         * misc/Makefile (headers): Add bits/select2.h.
17384         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
17385         * misc/bits/select2.h: New file.
17386         * include/bits/select2.h: New file.
17387         * debug/Makefile (routines): Add fdelt_chk.
17388         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
17389         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
17390         FD_ISSET.
17391         * debug/fdelt_chk.c: New file.
17392
17393         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
17394         * wcsmbs/test-wmemcmp.c: Likewise.
17395         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
17396         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
17397
17398 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17399
17400         * string/Makefile (strop-tests): Add memcmp.
17401         * string/test-wmemcmp.c: New file.
17402         * string/test-memcmp.c: Add wmemcmp support.
17403
17404 2011-09-08  Roland McGrath  <roland@hack.frob.com>
17405
17406         [BZ #13153]
17407         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
17408         2011-07-19 change.
17409
17410         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
17411         garbage value in a __mach_port_mod_refs call in the cases of the
17412         task-self and thread-self ports.
17413
17414 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17415
17416         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
17417
17418 2011-09-08  Andreas Schwab  <schwab@redhat.com>
17419
17420         * elf/dl-load.c (lose): Check for non-null L.
17421
17422 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17423
17424         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
17425
17426         * elf/dl-libc.c (dlerror_run): Pass back error code from
17427         dl_catch_error.
17428
17429         [BZ #13123]
17430         * elf/dl-load.c (lose): Free l_origin if it is valid.
17431
17432         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
17433         names.
17434         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
17435         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17436         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17437         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17438         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
17439         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
17440
17441 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17442
17443         * sysdeps/powerpc/fpu/e_hypot.c: New file.
17444         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
17445         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
17446         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
17447         * sysdeps/powerpc/fpu/k_cosf.c: New file.
17448         * sysdeps/powerpc/fpu/k_sinf.c: New file.
17449         * sysdeps/powerpc/fpu/s_cosf.c: New file.
17450         * sysdeps/powerpc/fpu/s_sinf.c: New file.
17451         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
17452         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
17453
17454 2011-08-15  Alan Modra  <amodra@gmail.com>
17455
17456         [BZ #13092]
17457         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
17458         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
17459         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
17460         ppc_mcount to static-only-routines.
17461         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
17462         __mcount_internal.
17463         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
17464         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
17465
17466 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
17467
17468         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
17469         for finite and infinity parameters.
17470
17471 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
17472
17473         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
17474         and add nop instructions for throughput optimization.
17475         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17476
17477 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
17478
17479         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
17480         aligned copy for power7 with vector-scalar instructions.
17481         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
17482
17483 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
17484
17485         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
17486         AVX check.
17487
17488 2011-09-07  Andreas Schwab  <schwab@redhat.com>
17489
17490         [BZ #13144]
17491         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
17492         last change.
17493
17494 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
17495
17496         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17497         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
17498         syscall wrapper around clock_gettime in __vdso_clock_gettime.
17499         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
17500         clock_gettime.
17501
17502 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17503
17504         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
17505         Forgot to demangle the pointer.
17506
17507         * sysdeps/i386/sysdep.h: Define atom_text_section.
17508         * sysdeps/x86_64/sysdep.h: Likewise.
17509         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
17510         section with atom_text_section.
17511         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
17512         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
17513         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
17514         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17515         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
17516
17517         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
17518         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
17519         already be defined.  Change to take two parameters and don't assign
17520         result to variable.  Adjust all users.
17521         Define INTERNAL_GETTIME if not already defined.
17522         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
17523         call.
17524         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
17525         HAVE_CLOCK_GETTIME_VSYSCALL.
17526         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
17527
17528         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17529         gettimeofday vsyscall, just use time.
17530
17531 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17532
17533         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17534         <errno.h>.
17535
17536 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17537
17538         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17539         syscall on x86-64.
17540         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17541         syscall.
17542         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17543         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17544         syscall if possible.
17545
17546 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17547
17548         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17549         e_ident.  Don't pass to find_mapsXX.
17550         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17551
17552 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17553
17554         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17555         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17556         * sysdeps/x86_64/multiarch/strchr.S: Update.
17557         Check bit_slow_BSF bit.
17558         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17559         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17560         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17561
17562 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17563
17564         [BZ #13134]
17565         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17566         before glibc 2.15.
17567         (tryshell): Define.
17568         (__spawni): Change last parameter to be flag.  Test
17569         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17570         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17571         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17572         * posix/spawni.c: Likewise.
17573         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17574         * posix/spawnp.c: Likewise.  Change normal version to use
17575         SPAWN_XFLAGS_USE_PATH.
17576         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17577         SPAWN_XFLAGS_TRY_SHELL.
17578
17579         [BZ #13150]
17580         * posix/glob.h: Remove gcc 1.x support.
17581
17582         [BZ #13068]
17583         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17584
17585 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17586
17587         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17588         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17589         strrchr-sse2-bsf
17590         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17591         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17592         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17593         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17594         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17595         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17596
17597 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17598
17599         * sysdeps/x86_64/wcscmp.S: New file.
17600
17601         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17602         wcscmp-c wcscmp-sse2
17603         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17604         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17605         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17606         * wcsmbs/wcscmp.c: Allow renaming.
17607
17608 2011-09-05  David S. Miller  <davem@davemloft.net>
17609
17610         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17611         stack slot, rather than the struct return pointer slot.
17612         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17613         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17614         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17615         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17616
17617 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17618
17619         * po/ja.po: Update from translation team.
17620
17621         [BZ #13144]
17622         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17623         kernel in 64-bit binaries.
17624
17625 2011-09-01  David S. Miller  <davem@davemloft.net>
17626
17627         * elf/elf.h (HWCAP_SPARC_*): Move to..
17628         * sysdeps/sparc/sysdep.h: this new file and add new values.
17629         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17630         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17631         _DL_HWCAP_COUNT to 24.
17632         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17633         entries.
17634         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17635         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17636         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17637         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17638         instead of magic constants.
17639         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17640
17641 2011-08-31  David S. Miller  <davem@davemloft.net>
17642
17643         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17644         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17645         Reimplement to do errno handling inline.
17646         (SYSCALL_ERROR_HANDLER): New macro.
17647         (__SYSCALL_STRING): Do not do errno handling in asm.
17648         (__CLONE_SYSCALL_STRING): Delete.
17649         (__INTERNAL_SYSCALL_STRING): Delete.
17650         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17651         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17652         (PSEUDO): Reimplement to do errno handling inline.
17653         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17654         (SYSCALL_ERROR_HANDLER): New macro.
17655         (__SYSCALL_STRING): Do not do errno handling in asm.
17656         (__CLONE_SYSCALL_STRING): Delete.
17657         (__INTERNAL_SYSCALL_STRING): Delete.
17658         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17659         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17660         i386.
17661         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17662         (inline_syscall*): Add 'err' argument.
17663         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17664         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17665         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17666         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17667
17668         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17669         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17670
17671 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17672
17673         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17674
17675 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17676
17677         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17678         directive.
17679
17680 2011-08-24  David S. Miller  <davem@davemloft.net>
17681
17682         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17683
17684 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17685
17686         * elf/Makefile: Add rules to build and run unload8 test.
17687         * elf/unload8.c: New file.
17688         * elf/unload8mod1.c: New file.
17689         * elf/unload8mod1x.c: New file.
17690         * elf/unload8mod2.c: New file.
17691         * elf/unload8mod3.c: New file.
17692
17693         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17694         it wasn't used.
17695
17696 2011-08-23  David S. Miller  <davem@davemloft.net>
17697
17698         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17699         subtract stack bias.
17700         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17701         %sp not %fp in calculations.
17702         (_JMPBUF_UNWINDS_ADJ): Likewise.
17703
17704         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17705         (aio_suspend): Call it to force an exception region around the
17706         AIO_MISC_WAIT() invocation.
17707
17708 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17709
17710         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17711         backslash.
17712
17713 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17714
17715         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17716         protection macro.
17717         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17718         and <dl-machine.h>.
17719         (Elf64_FuncDesc): Remove.
17720
17721 2011-08-22  David S. Miller  <davem@davemloft.net>
17722
17723         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17724         sigaltstack check, add missing cfi directives.
17725         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17726         missing cfi directives, and sigaltstack handling.
17727
17728 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17729
17730         [BZ #11724]
17731         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17732         object is seen twice.
17733         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17734
17735         * elf/Makefile (distribute): Add tst-initorder2.c.
17736         (tests): Add tst-initorder2.
17737         (modules-names): Add tst-initorder2a tst-initorder2b
17738         tst-initorder2c tst-initorder2d.  Add rules to build them.
17739         ($(objpfx)tst-initorder2.out): New rule.
17740         * elf/tst-initorder2.c: New file.
17741         * elf/tst-initorder2.exp: New file.
17742
17743 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17744
17745         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17746
17747         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17748         dependencies back to end of function.
17749
17750         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17751         $(elfobjdir)/ld.so.
17752
17753 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17754
17755         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17756         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17757         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17758         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17759         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17760         of __vdso_gettimeofday.
17761         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17762         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17763         attribute_hidden.
17764         (_libc_vdso_platform_setup): Remove initialization of
17765         __vdso_gettimeofday and __vdso_time.
17766
17767 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17768
17769         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17770         and fgetc_unlocked.
17771         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17772         getc_unlocked.
17773
17774         * elf/dl-open.c (add_to_global): Report additions to the global scope
17775         for LD_DEBUG=scopes.
17776         (dl_open_worker): Also print scope of newly loaded dependencies.
17777         (_dl_show_scope): Indicate if there is no scope.
17778
17779         [BZ #13114]
17780         * stdio-common/Makefile (tests): Add bug24.
17781         * stdio-common/bug24.c: New file.
17782
17783 2011-08-19  Andreas Jaeger  <aj@suse.de>
17784
17785         [BZ #13114]
17786         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17787         non-existant file when using close-on-exec mode.
17788
17789 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17790
17791         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17792         the very first instruction.
17793
17794         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17795         the CFI state in the end.
17796         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17797         inclusion of dl-trampoline.h.
17798         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17799
17800 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17801
17802         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17803         expectations for long double.
17804
17805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17806         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17807
17808 2011-08-14  David S. Miller  <davem@davemloft.net>
17809
17810         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17811         artificual limit depends upon the system page size.
17812
17813 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17814
17815         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17816         * resolv/Makefile: Define CFLAGS-libresolv.
17817
17818 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17819
17820         * nss/makedb.c (compute_tables): Make variables used in nested
17821         function static.
17822
17823 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17824
17825         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17826         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17827         if buffer was too small.
17828
17829         * elf/pldd.c (main): Attach to all threads in the process.
17830         Rewrite /proc handling to use *at functions.
17831
17832 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17833
17834         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17835         specifies first scope to show.
17836         (dl_open_worker): Update callers.  Move printing scope of new
17837         object to before the relocation.
17838         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17839         * sysdeps/generic/ldsodefs.h: Update declaration.
17840
17841         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17842         string for the scope number.
17843
17844 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17845
17846         * nscd/servicescache.c (cache_addserv): Make sure written is always
17847         initialized.
17848
17849 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17850
17851         * sysdeps/i386/i486/bits/atomic.h
17852         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17853         statement expression, so as to suppress "set but not used" warning.
17854         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17855
17856         * string/strncat.c (STRNCAT): Use prototype definition.
17857
17858         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17859         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17860         -Iprograms here.
17861         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17862         (localedef-modules): Add localedef.
17863         (locale-modules): Add locale.
17864
17865         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17866         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17867         to avoid a warning.
17868
17869 2011-08-14  David S. Miller  <davem@davemloft.net>
17870
17871         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17872         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17873
17874 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17875
17876         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17877         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17878         * elf/rtld.c (dl_main): Set l_name of vDSO.
17879         Call _dl_show_scope when DL_DEBUG_SCOPES.
17880         (process_dl_debug): Recognize scopes flag and also set it for all.
17881         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17882         Declare _dl_show_scope.
17883
17884         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17885         (do_dlopen): Pass caller_dlopen to dl_open.
17886         (__libc_dlopen_mode): Initialize caller_dlopen.
17887
17888         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17889         of libc.  Make tolower call locale-independent.  Optimize a bit by
17890         using isdigit instead of isalnum.
17891         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17892
17893 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17894
17895         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17896         was a dependency or dynamically loaded.
17897
17898 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17899
17900         * intl/l10nflist.c: Allow architecture-specific pop function.
17901         * sysdeps/x86_64/l10nflist.c: New file.
17902
17903         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17904         classification.
17905
17906 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17907
17908         * include/dirent.h: Add libc_hidden_proto for scandirat and
17909         scandirat64.  Don't declare __scandirat64.
17910         * dirent/scandirat.c: Add libc_hidden_def.
17911         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17912         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17913
17914 2011-08-10  David S. Miller  <davem@davemloft.net>
17915
17916         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17917         enum.
17918         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17919         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17920         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17921
17922 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17923
17924         * Versions.def [libc]: Add GLIBC_2.15.
17925         * dirent/Makefile (routines): Add scandirat and scandirat64.
17926         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17927         GLIBC_2.15.
17928         * dirent/dirent.h: Declare scandirat and scandirat64.
17929         * dirent/scandirat.c: New file.
17930         * dirent/scandirat64.c: New file.
17931         * sysdeps/wordsize-64/scandirat.c: New file.
17932         * sysdeps/wordsize-64/scandirat64.c: New file.
17933         * dirent/opendir.c: Define opendirat.
17934         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17935         using scandirat.
17936         * dirent/scandir64.c: Adjust for scandir.c change.
17937         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17938         __scandirat64, and __scandir_cancel_handler.
17939         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17940         additional parameter and use openat instead of open (outside of ld.so).
17941         Add new __opendir as wrapper around __opendirat.
17942         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17943         here without requiring old scandirat implementation.
17944
17945 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17946
17947         * dirent/scandir.c (cancel_handler): Renamed to
17948         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17949         defined.  Adjust users.
17950         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17951         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17952
17953 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17954
17955         * string/test-string.h (IMPL): Use __STRING to expand name and then
17956         stringify it.
17957
17958         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17959         of cleanups.
17960
17961 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17962
17963         * string/Makefile: Update.
17964         (strop-tests): Append strncat.
17965         * string/test-wcscmp.c: New file.
17966         New comprehensive test for wcscmp.
17967         * string/test-strcmp.c: Update.
17968         (WIDE): New define.
17969
17970 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17971
17972         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17973         line.
17974
17975 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17976
17977         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17978         encoding to ACE if AI_IDN.
17979
17980 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17981
17982         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17983         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17984
17985 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17986
17987         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17988         Fix overflow bug in strncat.
17989         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17990
17991         * string/test-strncat.c: Update.
17992         Add new tests for checking overflow bugs.
17993
17994 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17995
17996         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17997         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17998         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17999         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18000         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18001         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18002         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18003         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18004         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18005
18006         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18007         (USE_AS_STRCAT): Define.
18008         Add strcat and strncat support.
18009         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18010
18011 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18012
18013         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18014         __n bigger than INT_MAX+1.
18015         (__strncmp_g): Likewise.
18016
18017 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18018
18019         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18020         * libio/stido.h: Likewise.
18021
18022         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18023         (AF_NFC): Define.
18024         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18025         (AF_NFC): Define.
18026
18027         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18028         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18029         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18030         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18031         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18032
18033         [BZ #13021]
18034         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18035         installed.
18036
18037         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18038         typo.
18039         (_dl_x86_64_save_sse): Likewise.
18040
18041 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18042
18043         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18044         OSXSAVE.
18045         (_dl_x86_64_save_sse): Likewise.
18046
18047         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18048
18049         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18050
18051 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18052
18053         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18054         change.
18055         (_dl_x86_64_save_sse): Use correct AVX check.
18056
18057 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18058
18059         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18060         bug in strncpy/strncat.
18061         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18062
18063 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18064
18065         * string/tester.c (test_strcat): Add tests for different alignments
18066         of source and destination.
18067         (test_strncat): Likewise.
18068
18069 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18070
18071         [BZ #12852]
18072         * posix/glob.c (glob): Check passed in values before using them in
18073         expressions to avoid some overflows.
18074         (glob_in_dir): Likewise.
18075
18076         [BZ #13007]
18077         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18078         check for AVX enablement so that we don't crash with old kernels and
18079         new hardware.
18080         * elf/tst-audit4.c: Add same checks here.
18081         * elf/tst-audit6.c: Likewise.
18082
18083         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18084
18085 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18086
18087         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18088
18089 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18090
18091         * po/cs.po: Update from translation team.
18092         * po/bg.po: Likewise.
18093
18094 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18095
18096         * misc/sys/cdefs.h: Add support for const attribute.
18097         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18098         to gnu_dev_{major,minor,makedev} functions.
18099
18100 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18101
18102         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18103
18104 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18105
18106         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18107         strlen results.
18108
18109 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18110
18111         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18112         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18113         register in order to avoid conflicts with the soft frame pointer
18114         being held in r11 when necessary.
18115         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18116         (INTERNAL_VSYSCALL_NCS): Likewise.
18117
18118 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18119
18120         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18121         * elf/dl-fini.c (_dl_fini): Adjust caller.
18122         * elf/dl-close.c (_dl_close_worker): Likewise.
18123         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18124
18125 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18126
18127         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18128         "aux_cache->nlibs < 0".
18129
18130         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18131         in the reload-count case.
18132
18133 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18134
18135         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18136         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18137         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18138         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18139         * sysdeps/x86_64/multiarch/strcat.S: New file.
18140         * sysdeps/x86_64/multiarch/strncat.S: New file.
18141         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18142         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18143         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18144         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18145         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18146         (USE_AS_STRCAT): Define.
18147         Add strcat and strncat support.
18148         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18149         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18150         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18151         * string/strncat.c: Update.
18152         (USE_AS_STRNCAT): Define.
18153         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18154         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18155         and i7.
18156         * sysdeps/x86_64/multiarch/init-arch.h
18157         (bit_Prefer_PMINUB_for_stringop): New.
18158         (index_Prefer_PMINUB_for_stringop): Likewise.
18159         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18160         bit_Prefer_PMINUB_for_stringop.
18161
18162 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18163
18164         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18165         buffer64.
18166         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18167         of casting of buffer.
18168         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18169         buffer32 and buffer64.
18170         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18171         writes instead of casting of buffer.
18172         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18173         buffer32.
18174         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18175         casting of buffer.
18176
18177 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18178
18179         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18180
18181 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18182
18183         * nscd/nscd.c (termination_handler): Don't do anything for a database
18184         if it has not yet been initialized.
18185
18186 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18187
18188         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18189
18190 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18191
18192         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18193
18194 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18195
18196         * po/nl.po: Update from translation team.
18197         * po/sv.po: Likewise.
18198
18199 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18200
18201         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18202         now disallowed by GCC.
18203
18204         * configure.in (use-default-link): Default to yes if a test -shared
18205         link meets our qualifications.
18206         * configure: Regenerated.
18207
18208         * config.make.in (output-format): New variable.
18209         * configure.in: Check for ld --print-output-format support.
18210         * configure: Regenerated.
18211         * Makerules ($(common-objpfx)format.lds)
18212         [$(output-format) != unknown]: Just use $(output-format),
18213         instead of the linker-script munging.
18214
18215 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18216
18217         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18218         of $(common-objpfx)shlib.lds.
18219         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18220
18221         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18222         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18223
18224         * configure.in (-z relro check): Adjust test code to add a large
18225         writable data section after it.
18226         * configure: Regenerated.
18227
18228 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18229
18230         * configure.in (-z relro check): Fix test code to make the variable
18231         truly const.
18232         * configure: Regenerated.
18233
18234 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18235
18236         * nscd/nscd.h (struct traced_file): Define.
18237         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18238         elements.  Add traced_files.
18239         (inotify_fd): Declare.
18240         (register_traced_file): Declare.
18241         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18242         (inotify_fd): Export.
18243         (resolv_conf_descr): Remove.
18244         (nscd_init): Move inotify descriptor creation to main.
18245         Don't register files for notification here.
18246         (register_traced_file): New function.
18247         (invalidate_cache): Don't use reset_res to determine whether to call
18248         res_init, go through the list of registered files.
18249         (main_loop_poll): The inotify descriptors are now stored in the
18250         structures for the traced files.
18251         (main_loop_epoll): Likewise
18252         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18253         to __nss_disable_nscd.
18254         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18255         for a database anymore.  Check the records for all the registered
18256         files instead.
18257         * nss/Makefile (libnss_files-routines): Add files-init.
18258         (libnss_db-routines): Add db-init.
18259         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18260         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18261         * nss/nss_db/db-init.c: New file.
18262         * nss/nss_files/files-init.c: New file.
18263         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18264         __nss_lookup_function.
18265         (__nss_lookup_function): Call nss_load_library.
18266         (nss_load_all_libraries): New function.
18267         (__nss_disable_nscd): Take parameter with callback function for files
18268         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18269         used for the cached services.
18270         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18271         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18272         options for features to all the files in nscd.
18273
18274         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18275
18276 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18277
18278         * csu/elf-init.c (__libc_csu_init): Comment typo.
18279
18280 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18281
18282         * po/pl.po: Update from translation team.
18283         * po/ja.po: Likewise.
18284         * po/ru.po: Likewise.
18285         * po/ko.po: Likewise.
18286         * po/fr.po: Likewise.
18287
18288 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18289
18290         * configure.in (.ctors/.dtors header and trailer check):
18291         Use an empirical test on a built program.
18292         * configure: Regenerated.
18293
18294         * configure.in (-z relro check): Use an empirical test on a built DSO.
18295         Detect, but do not require, on ia64.
18296         * configure: Regenerated.
18297
18298         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18299         Update tests that use readelf to use $READELF instead.
18300         * configure: Regenerated.
18301
18302 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18303
18304         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18305         if the result is not used.
18306
18307 2011-07-05  Andreas Jaeger  <aj@suse.de>
18308
18309         [BZ#9696]
18310         * stdlib/tst-strtod.c: Add testcase.
18311
18312 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18313
18314         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18315         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18316         The latter has a higher limit.  Take additional parameter to pass to
18317         the new function.
18318         (__pathconf): Pass file to __statfs_link_max.
18319         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18320         __statfs_link_max.
18321         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18322         __statfs_link_max.
18323
18324         [BZ #12868]
18325         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18326         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18327         Handle Lustre.
18328         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18329         (__statfs_filesize_max): Likewise.
18330         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18331
18332 2011-07-05  Andreas Jaeger  <aj@suse.de>
18333
18334         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18335
18336 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18337
18338         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18339         `status' variable.
18340         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18341         Likewise.
18342
18343 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18344
18345         * Makefile (strop-tests): Add strncat.
18346         * string/test-strncat.c: New file.
18347
18348 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18349
18350         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
18351
18352 2011-06-21  Andreas Jaeger  <aj@suse.de>
18353
18354         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
18355         Copy rule from iconvdata/Makefile.
18356
18357 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18358
18359         [BZ #12922]
18360         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
18361         but no long options are defined, just return 'W'.
18362
18363 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
18364
18365         [BZ #9696]
18366         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
18367
18368 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
18369
18370         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
18371         netgroups to read.
18372         (innetgr): Likewise.
18373
18374 2011-07-05  Roland McGrath  <roland@hack.frob.com>
18375
18376         * config.make.in (install_root): Default to $(DESTDIR).
18377
18378 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
18379
18380         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
18381
18382 2011-07-02  Roland McGrath  <roland@hack.frob.com>
18383
18384         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
18385
18386         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
18387         containing directory rather than embedding absolute directory names.
18388
18389         * scripts/check-local-headers.sh: Rewritten using awk.
18390         Match by word, not by line.  Print error messages for matches.
18391         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
18392
18393         * Makerules [shlib-lds-flags empty]:
18394         ($(common-objpfx)libc_pic.opts): New target.
18395         ($(common-objpfx)libc_pic.os.clean): New target.
18396         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
18397
18398         * config.make.in (OBJCOPY): New variable.
18399         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
18400         * configure: Regenerated.
18401
18402         * config.make.in (use-default-link): New variable.
18403         * configure.in (use_default_link): Grok --with-default-link to set it.
18404         * configure: Regenerated.
18405         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
18406         (shlib-lds, shlib-lds-flags): Define to empty.
18407
18408         * Makerules (shlib-lds): New variable.
18409         (shlib-lds-flags): New variable.
18410         (build-shlib, build-moduile, build-module-asneeded): Use it.
18411         ($(common-objpfx)libc.so): Use $(shlib-lds).
18412         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
18413         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
18414
18415         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
18416         DT_FLAGS/DT_FLAGS_1 with zero flags.
18417
18418         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
18419         linker script munging.
18420
18421 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
18422
18423         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
18424         as 128-bit value.
18425         * crypt/sha512.c (sha512_process_block): Perform total addition using
18426         128-bit if possible.
18427         (__sha512_finish_ctx): Likewise.
18428         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
18429         as 64-bit value.
18430         * crypt/sha256.c (SWAP64): Define.
18431         (sha256_process_block): Perform total addition using 64-bit if
18432         possible.
18433         (__sha256_finish_ctx): Likewise.
18434
18435 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
18436
18437         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
18438         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18439         * nscd/hstcache.c (cache_addhst): Likewise.
18440         * nscd/grpcache.c (cache_addgr): Likewise.
18441         * nscd/aicache.c (addhstaiX): Likewise
18442         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
18443
18444 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
18445
18446         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
18447         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18448         * nscd/hstcache.c (cache_addhst): Likewise.
18449         * nscd/grpcache.c (cache_addgr): Likewise.
18450         * nscd/aicache.c (addhstaiX): Likewise
18451
18452 2011-07-01  Andreas Schwab  <schwab@redhat.com>
18453
18454         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
18455         domain only when needed.
18456
18457 2011-06-30  Andreas Schwab  <schwab@redhat.com>
18458
18459         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
18460         is always restored.
18461
18462 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
18463
18464         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
18465         are re-adding the entry.
18466         * nscd/servicescache.c (cache_addserv): Likewise.
18467
18468 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
18469
18470         * sysdeps/generic/dl-irel.h: fix protection against multiple
18471         inclusions.
18472         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
18473
18474 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
18475
18476         [BZ #12935]
18477         * malloc/memusage.sh: Fix quoting in message.
18478         * debug/xtrace.sh: Likewise.
18479
18480         * configure.in: Remove support for --experimental-malloc option, make
18481         it the default.
18482         * config.make.in: Likewise.
18483         * malloc/Makefile: Likewise.
18484
18485 2011-06-27  Andreas Schwab  <schwab@redhat.com>
18486
18487         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
18488         two-byte characters.
18489
18490 2011-06-27  Roland McGrath  <roland@hack.frob.com>
18491
18492         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
18493         AC_CACHE_CHECK invocation.
18494         * configure: Regenerated.
18495
18496         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
18497
18498 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
18499
18500         [BZ #12350]
18501         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
18502         bit from old_res_options.
18503
18504         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
18505
18506         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
18507         value type for setfct.
18508
18509 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18510
18511         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18512         __gettimeofday instead of gettimeofday.
18513
18514 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
18515
18516         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
18517
18518 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18519
18520         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
18521
18522         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
18523         info.
18524
18525 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18526
18527         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18528         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18529         strcpy-sse2-unaligned strncpy-sse2-unaligned
18530         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18531         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18532         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18533         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18534         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18535         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18536         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18537         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18538         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18539         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18540         (STRCPY): Support SSE2 and SSSE3 versions.
18541
18542 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18543
18544         [BZ #12874]
18545         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18546         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18547         kernels which artificially limit size of requests.
18548
18549 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18550
18551         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18552         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18553         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18554         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18555         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18556         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18557         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18558         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18559         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18560         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18561         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18562         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18563         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18564         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18565         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18566         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18567         Enable unaligned load optimization for Intel Core i3, i5 and i7
18568         processors.
18569         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18570         Define.
18571         (index_Fast_Unaligned_Load): Define.
18572         (HAS_FAST_UNALIGNED_LOAD): Define.
18573
18574 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18575
18576         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18577
18578 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18579
18580         [BZ #12907]
18581         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18582         until it is clear that the information is realy needed.
18583         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18584
18585 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18586
18587         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18588
18589 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18590
18591         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18592         /sys/devices/system/cpu/online if it is usable.
18593
18594         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18595         reading the information from the /proc filesystem to once a second.
18596
18597 2011-06-21  Andreas Jaeger  <aj@suse.de>
18598
18599         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18600         NULL after inclusion of kernel headers.
18601
18602 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18603
18604         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18605         calls to internal_setent.
18606
18607         [BZ #12885]
18608         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18609         addresses using gethostbyname4_r ignore IPv4 addresses.
18610
18611         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18612         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18613
18614         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18615
18616 2011-06-20  David S. Miller  <davem@davemloft.net>
18617
18618         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18619         inclusions.
18620         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18621
18622         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18623         (elf_irel): Use it.
18624         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18625         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18626         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18627         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18628         * sysdeps/x86_64/dl-irel.h: Likewise.
18629
18630         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18631         * elf/dl-sym.c: Likewise.
18632
18633 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18634
18635         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18636         need to dereference resplen2.
18637
18638 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18639
18640         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18641
18642 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18643
18644         * Makeconfig: Define vardbdir and inst_vardbdir.
18645         * nss/Makefile: Add rules to install db-Makefile.
18646
18647         * nss/nss_db/db-XXX.c: Cleanup.
18648
18649         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18650         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18651         GLIBC_PRIVATE.
18652         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18653         * nss/makedb.c: Implement -g option to specify that value strings
18654         are generated and should not be added to table iterated over for
18655         get*ent calls.
18656         * nss/nss_db/db-initgroups.c: New file.
18657
18658         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18659         interface.
18660
18661         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18662         (internal_getgrouplist): Adjust to name change.
18663         Update use_initgroups_entry if this is not the first call.
18664         * nss/databases.def: Add initgroups entry.
18665
18666         * nss/makedb.c (compute_tables): Check result of multiple hash table
18667         sizes to minimize maximum chain length.
18668
18669 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18670
18671         * Versions.def: Add entry for libnss_db.
18672         * shlib-versions: Likewise.
18673         * nss/Makefile: Add rules to build libnss_db.
18674         * nss/Versions: Add libnss_db information.  Organize libnss_files
18675         entries better.
18676         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18677         makedb progra.  Some minor improvements to generate smaller files.
18678         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18679         here from...
18680         * nss/makedb.c: ...here.
18681         Improve database format to be smaller and require less memory at
18682         runtime.
18683         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18684         db anymore.
18685         * nss/nss_db/db-netgrp.c: Likewise.
18686         * nss/nss_db/db-open.c: Likewise.
18687         * nss/nss_files/flies-XXX.x: Adjust comments.
18688         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18689         * nss/nss_files/files-grp.c: Likewise.
18690         * nss/nss_files/files-hosts.c: Likewise.
18691         * nss/nss_files/files-network.c: Likewise.
18692         * nss/nss_files/files-proto.c: Likewise.
18693         * nss/nss_files/files-pwd.c: Likewise.
18694         * nss/nss_files/files-rpc.c: Likewise.
18695         * nss/nss_files/files-service.c: Likewise.
18696         * nss/nss_files/files-sgrp.c: Likewise.
18697         * nss/nss_files/files-spwd.c: Likewise.
18698         * nss/nss_db/db-alias.c: Removed.
18699         * nss/nss_db/dummy-db.h: Removed.
18700
18701 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18702
18703         * nss/makedb.c: Rewritten to not use database library.
18704         * nss/Makefile: Update to build new makedb program.
18705
18706 2011-06-14  Andreas Jaeger  <aj@suse.de>
18707
18708         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18709         memset declaration.
18710
18711 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18712
18713         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18714         tmpbuf.
18715
18716 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18717
18718         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18719         * elf/Makefile ($(objpfx)ld.so): Likewise.
18720
18721         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18722         Don't list ld.so twice in dependencies.
18723
18724         * posix/bug-regex31.c: Include <stdlib.h>.
18725
18726         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18727
18728         * nis/nss_compat/compat-spwd.c
18729         (getspent_next_nss_netgr): Remove unused variable.
18730         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18731
18732         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18733         nonmembers" output to use the right array.
18734
18735         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18736
18737         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18738
18739         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18740         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18741         * catgets/gencat.c (read_input_file): Likewise.
18742         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18743
18744         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18745         variable definition inside #if's controlling its use.
18746
18747         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18748
18749         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18750
18751         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18752
18753         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18754         unreachable code.
18755
18756         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18757
18758         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18759         * configure: Regenerated.
18760
18761         * Makerules: Revert last change.
18762         * elf/Makefile: Likewise.
18763
18764 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18765
18766         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18767         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18768         (reloc-link): Likewise.
18769
18770 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18771
18772         * elf/Makefile: Add rules to build pldd.
18773         * elf/pldd.c: New file.
18774         * elf/pldd-xx.c: New file.
18775
18776 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18777
18778         * version.h: Update for 2.15 development version.
18779
18780 2011-06-07  David S. Miller  <davem@davemloft.net>
18781
18782         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18783         ifuncs.
18784         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18785         elf_machine_lazy_rel): Likewise.
18786         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18787         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18788         elf_machine_lazy_rel): Likewise.
18789         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18790         dl_hwcap via passed in argument.
18791         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18792         Likewise.
18793
18794 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18795
18796         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18797
18798 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18799
18800         [BZ #12849]
18801         * manual/fdl-1.1.texi: New file, verbatim from:
18802         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18803         * manual/lgpl-2.1.texi: New file, verbatim from:
18804         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18805         * manual/Makefile (licenses): New variable, list those new file names.
18806         (texis): Use it.
18807         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18808
18809         * manual/fdl.texi: File removed.
18810         * manual/lesser.texi: File removed.
18811         * manual/libc.texinfo (Copying, Documentation License):
18812         Use new @include file names, put @appendix directive before @include.
18813
18814 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18815
18816         [BZ #12841]
18817         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18818         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18819         (mq_open): Add __NTH.
18820
18821 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18822
18823         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18824         Assume Intel Core i3/i5/i7 processor if AVX is available.
18825
18826 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18827
18828         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18829         typo.
18830
18831 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18832
18833         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18834         memory.  Use alloca_account.  Fix memory leak when retrying.
18835
18836 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18837
18838         * version.h (RELEASE): Bump for 2.14 release.
18839         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18840
18841         * config.make.in (RANLIB): Remove entry.
18842
18843 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18844
18845         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18846         (libc.pot): Work around missing support for .ksh extension in xgettext.
18847
18848         [BZ #12684]
18849         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18850         if both request failed.
18851         (send_dg): In case of server errors clear resplen or *resplen2.
18852
18853         [BZ #12454]
18854         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18855         when there are multiple maps.
18856         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18857         (_dl_fini): Remove test here.
18858
18859         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18860
18861 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18862
18863         [BZ #12350]
18864         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18865         bit from old_res_options.
18866         (gaih_inet): Likewise.
18867
18868         [BZ #11099]
18869         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18870         as signed.
18871
18872         * resolv/res_init.c (res_setoptions): Make the code more compact.
18873
18874         [BZ #11558]
18875         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18876         set RES_USEVC.
18877
18878         [BZ #11634]
18879         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18880
18881         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18882
18883         [BZ #11781]
18884         * malloc/malloc.h: Declare malloc hook variables as volatile.
18885
18886         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18887         in last patch.
18888
18889         [BZ #11799]
18890         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18891         raise in the comment.
18892         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18893         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18894         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18895
18896 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18897
18898         [BZ #12811]
18899         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18900         grow the buffers more if it already has to be sufficient.
18901         (build_wcs_upper_buffer): Likewise.
18902         * posix/regexec.c (check_matching): Likewise.
18903         (clean_state_log_if_needed): Likewise.
18904         (extend_buffers): Don't enlarge buffers beyond size of the input
18905         buffer.
18906         Patches mostly by Emil Wojak <emil@wojak.eu>.
18907         * posix/bug-regex32.c: New file.
18908         * posix/Makefile (tests): Add bug-regex32.
18909
18910         * locale/findlocale.c (_nl_find_locale): Return right away if
18911         _nl_explode_name failed.
18912         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18913
18914         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18915
18916         * debug/xtrace.sh: Unify messages.
18917         * malloc/memusage.sh: Likewise.
18918
18919         [BZ #12813]
18920         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18921         time symbol from vDSO.  Substitute with vsyscall if not available.
18922         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18923         __vdso_time.
18924
18925         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18926         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18927         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18928         Add sendmmsg and internal_sendmmsg.
18929         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18930         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18931         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18932
18933         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18934         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18935         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18936
18937 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18938
18939         [BZ #12813]
18940         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18941         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18942         available.
18943         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18944         __vdso_getcpu.
18945
18946         [BZ #12814]
18947         * iconvdata/Makefile (tests): Add bug-iconv9.
18948         * iconvdata/bug-iconv9.c: New file.
18949
18950 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18951
18952         [BZ #12814]
18953         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18954
18955 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18956
18957         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18958         (struct user_regs_struct): Change intcs field back to cs.
18959
18960 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18961
18962         * po/ja.po: Update from translation team.
18963
18964 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18965
18966         [BZ #12795]
18967         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18968         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18969
18970 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18971
18972         * stdlib/longlong.h: Update from GCC.
18973
18974 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18975
18976         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18977         parameter name.
18978         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18979         Add parameter name.
18980         (__sysconf): Pass it down.
18981
18982 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18983
18984         [BZ #12671]
18985         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18986         some situations.
18987         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18988         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18989         add in in __libc_use_alloca calls.  Adjust callers.
18990         (glob): Use malloc in some situations.
18991
18992         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18993         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18994         pltexit.
18995
18996 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18997
18998         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18999         and CLOCK_BOOTTIME_ALARM.
19000
19001         [BZ #12782]
19002         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19003         is returned.
19004
19005         * string/_strerror.c (__strerror_r): Print negative errors as signed
19006         numbers.
19007
19008         [BZ #12777]
19009         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19010         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19011         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19012
19013         * configure.in: Fix typo in redirection and correct removal of test
19014         files in two cases.
19015
19016         [BZ #12788]
19017         * locale/setlocale.c (new_composite_name): Fix test to check for
19018         identical name of all categories.
19019
19020         [BZ #12792]
19021         * libio/filedoalloc.c (local_isatty): New function.
19022         (_IO_file_doallocate): Use local_isatty.
19023         * stdio-common/perror.c (perror): In case a new stream is used
19024         forward the stream error.
19025         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19026         error flag.
19027
19028 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19029
19030         [BZ #11869]
19031         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19032         alloca.
19033         * include/alloca.h (extend_alloca_account): Define.
19034
19035         [BZ #11857]
19036         * posix/regex.h: Fix comments with documentation of user-accessible
19037         fields after compilation and describe correct free'ing of pattern
19038         after re_compile_pattern.
19039         Patch by Reuben Thomas <rrt@sc3d.org>.
19040
19041 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19042
19043         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19044         and -mno-altivec to prevent the compiler from using Altivec and/or
19045         VSX instructions when the corresponding registers are not available.
19046
19047 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19048
19049         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19050
19051 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19052
19053         * libio/freopen.c (freopen): Use __dup2, not dup2.
19054         * libio/freopen64.c (freopen64): Likewise.
19055
19056 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19057
19058         [BZ #12775]
19059         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19060         * math/Makefile (tests): Add test-powl.
19061         (CFLAGS-test-powl.c): Define.
19062         * math/test-powl.c: New file.
19063
19064 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19065
19066         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19067
19068 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19069
19070         [BZ #11837]
19071         * iconvdata/gb18030.c: Update to GB18020-2005.
19072
19073 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19074
19075         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19076         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19077         Patch by Aharon Robbins <arnold@skeeve.com>.
19078
19079         [BZ #11892]
19080         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19081         on the stack.
19082
19083         [BZ #11895]
19084         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19085         through underflows.
19086
19087         [BZ #12766]
19088         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19089         point to strings before performing equality test for error_one_per_line
19090         mode.
19091
19092         [BZ #11697]
19093         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19094
19095         [BZ #11820]
19096         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19097         (struct user_fpregs_struct): Avoid __uint*_t types.
19098
19099         [BZ #6420]
19100         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19101         symbol info.  Use it instead of calling _dl_addr locally.
19102         (lock_and_info): New function.
19103         (tr_freehook): Call lock_and_info and pass symbol info as additional
19104         parameter to tr_where.
19105         (tr_mallochook): Likewise.
19106         (tr_reallochook): Likewise.
19107         (tr_memalignhook): Likewise.
19108
19109         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19110         used and couldn't be at all thread-safe.
19111
19112 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19113
19114         * libio/freopen.c (freopen): Don't close old file descriptor
19115         before the new one is opened.  Instead dup the new file descriptor
19116         to the old one after the new stream is created.
19117         * libio/freopen64.c (freopen64): Likewise.
19118         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19119         * libio/fileops.c (_IO_new_file_close_it): Handle new
19120         _IO_FLAGS2_NOCLOSE flag.
19121         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19122         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19123         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19124         _IO_FLAGS2_NOCLOSE flag.
19125         * include/unistd.h: Add hidden_proto for dup3.
19126         Define __have_dup3.
19127         * io/dup3.c: Define hidden symbol.
19128         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19129
19130         [BZ #7101]
19131         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19132         when an incomplete long option is used.
19133         * posix/tst-getopt_long1.c: New file.
19134         * posix/Makefile (tests): Add tst-getopt_long1.
19135
19136         [BZ #10138]
19137         * scripts/config.guess: Update from autoconf-2.68.
19138         * scripts/config.sub: Likewise.
19139
19140         [BZ #10157]
19141         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19142         tests into ...
19143         (has_cpuclock): ...this.  New function.
19144         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19145         macro here based on has_cpuclock code.
19146
19147         [BZ #10149]
19148         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19149         First byte (not low byte) is now always NUL.
19150         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19151
19152         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19153         Use non-cancelable interfaces.
19154
19155         [BZ #9809]
19156         * locale/iso-639.def: Add entry for Sorani.
19157
19158         [BZ #11901]
19159         * include/stdlib.h: Move include protection to the right place.
19160         Define abort_msg_s.  Declare __abort_msg with it.
19161         * stdlib/abort.c (__abort_msg): Adjust type.
19162         * assert/assert.c (__assert_fail_base): New function.  Majority
19163         of code from __assert_fail.  Allocate memory for __abort_msg with
19164         mmap.
19165         (__assert_fail): Now call __assert_fail_base.
19166         * assert/assert-perr.c: Remove bulk of implementation.  Use
19167         __assert_fail_base.
19168         * include/assert.hL Declare __assert_fail_base.
19169         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19170         mmap.
19171         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19172
19173 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19174
19175         [BZ #11952]
19176         [BZ #12453]
19177         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19178         until all modules are registered in the DTV.
19179         * elf/Makefile: Add rules to build and run tst-tls19.
19180         * elf/tst-tls19.c: New file.
19181         * elf/tst-tls19mod1.c: New file.
19182         * elf/tst-tls19mod2.c: New file.
19183         * elf/tst-tls19mod3.c: New file.
19184         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19185
19186         [BZ #12083]
19187         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19188         correctly.
19189
19190         [BZ #12601]
19191         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19192         two-byte sequence errors.
19193         * iconvdata/Makefile (tests): Add bug-iconv8.
19194         * iconvdata/bug-iconv8.c: New file.
19195
19196         [BZ #12626]
19197         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19198         buf2 definition.
19199
19200         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19201
19202         [BZ #12432]
19203         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19204         (dummy_getcfa): New function.
19205         (init): Get _Unwind_GetCFA address, use dummy if not found.
19206         (backtrace_helper): In recursion check, also check whether CFA changes.
19207         (__backtrace): Completely initialize arg.
19208
19209         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19210         storing incomplete byte sequence in state object.  Avoid testing for
19211         guaranteed too small input if we know there is enough data available.
19212
19213 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19214
19215         * Makeconfig (+link-pie): Indent.
19216         * Rules (binaries-pie): Define if $(have-fpie) and
19217         $(build-shared).
19218         (binaries-shared): Also filter out $(binaries-pie).
19219         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19220         * nscd/Makefile (others-pie): Add nscd.
19221         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19222         ($(objpfx)nscd): Remove command override.
19223         * login/Makefile (others-pie): Add pt_chown.
19224         ($(objpfx)pt_chown): Remove command override.
19225         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19226         remove command overrides.
19227
19228 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19229
19230         * libio/tst_putwc.c: Fix error messages.
19231
19232         [BZ #12724]
19233         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19234         currently writing and seek to current position when not.
19235         * libio/Makefile (tests): Add bug-fclose1.
19236         * libio/bug-fclose1.c: New file.
19237
19238 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19239
19240         [BZ #12511]
19241         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19242         don't set DF_1_NODELETE here.
19243         (do_lookup_x): When entering new entry test for copy relocation
19244         and if necessary set DF_1_NODELETE flag.
19245         * elf/tst-unique4.cc: New file.
19246         * elf/tst-unique4.h: New file.
19247         * elf/tst-unique4lib.cc: New file.
19248         * elf/Makefile: Add rules to build and run tst-unique4.
19249         Patch by Piotr Bury <pbury@goahead.com>.
19250
19251 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19252
19253         [BZ #12052]
19254         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19255
19256         [BZ #12625]
19257         * misc/mntent_r.c (addmntent): Flush the stream after the output
19258
19259         [BZ #12393]
19260         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19261         (is_trusted_path_normalize): Skip initial colon.  Append slash
19262         to empty buffer.  Duplicate is_trusted_path code but allow
19263         constructed patch to be prefix.
19264         (is_dst): Allow $ORIGIN followed by /.
19265         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19266         Correct testing of result of is_trusted_path_normalize
19267         (decompose_rpath): Fix warning.
19268
19269 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19270
19271         [BZ #11257]
19272         * grp/initgroups.c (internal_getgrouplist): When we found the service
19273         list through the initgroups entry in nsswitch.conf do not always
19274         continue on a successful lookup.  Don't always use the
19275         __nss_group_database value if it is set.
19276         * nss/nsswitch.conf (initgroups): Change action for successful db
19277         lookup to continue for compatibility.
19278
19279 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19280
19281         [BZ #11532]
19282         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19283         and CP774 modules.
19284         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19285         and CP774 modules.
19286         * iconvdata/tst-tables.sh: Likewise.
19287         * iconvdata/cp770.c: New file.
19288         * iconvdata/cp771.c: New file.
19289         * iconvdata/cp772.c: New file.
19290         * iconvdata/cp773.c: New file.
19291         * iconvdata/cp774.c: New file.
19292         * iconvdata/testdata/CP770: New file.
19293         * iconvdata/testdata/CP770..UTF8: New file.
19294         * iconvdata/testdata/CP771: New file.
19295         * iconvdata/testdata/CP771..UTF8: New file.
19296         * iconvdata/testdata/CP772: New file.
19297         * iconvdata/testdata/CP772..UTF8: New file.
19298         * iconvdata/testdata/CP773: New file.
19299         * iconvdata/testdata/CP773..UTF8: New file.
19300         * iconvdata/testdata/CP774: New file.
19301         * iconvdata/testdata/CP774..UTF8: New file.
19302
19303         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19304         END CHARMAP line.
19305         * iconvdata/gen-8bit-gap.sh: Likewise.
19306         * iconvdata/gen-8bit.sh: Likewise.
19307
19308         * locale/iso-639.def: Add ary entry.
19309
19310         [BZ #11258]
19311         * locale/C-translit.h.in: Add U20A1 transliteration.
19312
19313         [BZ #12178]
19314         * locale/iso-639.def: Add wae entry.
19315         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19316
19317         [BZ #12545]
19318         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19319         for n.
19320
19321         [BZ #12711]
19322         * locale/C-translit.h.in: Add entry for U20B9.
19323         Patch by pravin.d.s@gmail.com.
19324
19325 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19326
19327         [BZ #12713]
19328         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19329         ENAMETOOLONG use generic getcwd.
19330         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19331         in rtld.  Use *stat64.
19332         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19333         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19334         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19335         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19336         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19337         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19338         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19339         __fstatat64 macros.
19340         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19341         * dirent/rewinddir.c: Add libc_hidden_def.
19342         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19343         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19344
19345         * include/dirent.h (__alloc_dir): Add flags parameter.
19346         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19347         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19348         __alloc_dir.
19349         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19350         from fdopendir if O_CLOEXEC is already set.
19351
19352 2011-03-15  Alan Modra  <amodra@gmail.com>
19353
19354         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
19355         l_tls_firstbyte_offset non-zero.  Save padding offset in
19356         l_tls_firstbyte_offset for later use.
19357         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
19358         freeing static tls block.
19359
19360 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
19361
19362         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
19363         where #ifdef was intended.  The intent is to prevent ARG_MAX from
19364         being defined by the kernel headers.
19365
19366 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
19367
19368         [BZ #12734]
19369         * resolv/resolv.h: Define RES_NOTLDQUERY.
19370         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
19371         no-tld-query and set RES_NOTLDQUERY.
19372         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
19373         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
19374         modern BIND to search name as TLD unless forbidden.
19375
19376 2011-05-07  Petr Baudis  <pasky@suse.cz>
19377             Ulrich Drepper  <drepper@gmail.com>
19378
19379         [BZ #12393]
19380         * elf/dl-load.c (fillin_rpath): Move trusted path check...
19381         (is_trusted_path): ...to here.
19382         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
19383         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
19384         using is_trusted_path_normalize() in setuid scripts.
19385
19386 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19387
19388         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
19389         __BEGIN/__END_DECLS.
19390
19391 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
19392
19393         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
19394         NSS_STATUS_NOTFOUND if no record was found.
19395
19396 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19397
19398         * sunrpc/Makefile (headers): Add rpc/netdb.h.
19399         (headers-not-in-tirpc): Remove rpc/netdb.h
19400         * resolv/netdb.h: Revert last change.
19401
19402 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19403
19404         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
19405         circular dependency between libgcc.a and libc.a.
19406
19407 2011-05-05  Andreas Schwab  <schwab@redhat.com>
19408
19409         * resolv/netdb.h: Don't include <rpc/netdb.h>.
19410         * nis/Makefile: Don't install rpcsvc/*.
19411         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
19412         instead of <rpc/types.h>.
19413         (MAXHOSTNAMELEN): Define.
19414
19415 2011-05-03  Andreas Schwab  <schwab@redhat.com>
19416
19417         * elf/ldconfig.c (add_dir): Don't crash on empty path.
19418
19419 2011-04-28  Maciej Babinski  <mbabinski@google.com>
19420
19421         [BZ #12714]
19422         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
19423         gethostbyname4_r when IPv6 results are possible.
19424
19425 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
19426
19427         [BZ #12723]
19428         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
19429         _PC_PIPE_BUF handling.
19430
19431 2011-04-30  Bruno Haible  <bruno@clisp.org>
19432
19433         [BZ #12717]
19434         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
19435         * resolv/netdb.h (getnameinfo): Change type of flags parameter
19436         to 'int'.
19437         * inet/getnameinfo.c (getnameinfo): Likewise.
19438
19439 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
19440
19441         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
19442         to groups setting in database lookup.
19443         * nss/nsswitch.conf: Add initgroups entry.
19444
19445 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
19446
19447         [BZ #12685]
19448         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
19449         mode string.
19450         Patch by Eric Blake <eblake@redhat.com>.
19451
19452 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
19453
19454         * sunrpc/Makefile (need-export-routines): Add svc_run.
19455         (routines): Remove svc_run.
19456         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
19457         * sunrpc/clnt_perr.c (clnt_perrno): Export.
19458         * sunrpc/svc_run.c (svc_run): Likewise.
19459         * sunrpc/svc_udp.c (svcudp_create): Likewise.
19460
19461 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
19462
19463         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
19464         problem in reallocation in last patch.
19465
19466 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
19467
19468         * sunrpc/Makefile: Move inclusion of Rules.
19469
19470 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19471
19472         * nss/nss_files/files-initgroups.c: New file.
19473         * nss/Makefile (libnss_files-routines): Add files-initgroups.
19474         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
19475         _nss_files_initgroups_dyn.
19476
19477 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
19478
19479         * elf/elf.h (R_ARM_IRELATIVE): Define.
19480
19481 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
19482
19483         * po/ru.po: Update from translation team.
19484
19485 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19486
19487         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
19488         dependencies.
19489
19490 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
19491
19492         [BZ #12653]
19493         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
19494         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
19495         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19496         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19497         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
19498
19499 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
19500
19501         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
19502         differing bytes.
19503         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
19504         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
19505         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
19506
19507 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
19508
19509         [BZ #12420]
19510         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
19511         storing it.
19512         * stdlib/bug-getcontext.c: New file.
19513         * stdlib/Makefile: Add rules to build and run bug-getcontext.
19514
19515 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19516
19517         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
19518         instructions into .machine "z9-109".
19519         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
19520         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
19521
19522 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19523
19524         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
19525         between environment variables and auxiliary vector.
19526
19527 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
19528
19529         * Makefile: Add rules to build linkobj/libc.so.
19530         * include/libc-symbols.h: Define libc_hidden_nolink.
19531         * include/rpc/auth.h: Mark functions which are to be hidden.
19532         * include/rpc/auth_des.h: Likewise.
19533         * include/rpc/auth_unix.h: Likewise.
19534         * include/rpc/clnt.h: Likewise.
19535         * include/rpc/des_crypt.h: Likewise.
19536         * include/rpc/key_prot.h: Likewise.
19537         * include/rpc/pmap_clnt.h: Likewise.
19538         * include/rpc/pmap_prot.h: Likewise.
19539         * include/rpc/pmap_rmt.h: Likewise.
19540         * include/rpc/rpc_msg.h: Likewise.
19541         * include/rpc/svc.h: Likewise.
19542         * include/rpc/svc_auth.h: Likewise.
19543         * include/rpc/xdr.h: Likewise.
19544         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19545         * nss/Makefile: Likewise.
19546         * sunrpc/Makefile: Don't install headers.  Build library with normal
19547         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19548         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19549         for the compat linking library.  Remove use of INTDEF/INTUSE.
19550         * sunrpc/auth_none.c: Likewise.
19551         * sunrpc/auth_unix.c: Likewise.
19552         * sunrpc/authdes_prot.c: Likewise.
19553         * sunrpc/authuxprot.c: Likewise.
19554         * sunrpc/clnt_gen.c: Likewise.
19555         * sunrpc/clnt_perr.c: Likewise.
19556         * sunrpc/clnt_raw.c: Likewise.
19557         * sunrpc/clnt_simp.c: Likewise.
19558         * sunrpc/clnt_tcp.c: Likewise.
19559         * sunrpc/clnt_udp.c: Likewise.
19560         * sunrpc/clnt_unix.c: Likewise.
19561         * sunrpc/des_crypt.c: Likewise.
19562         * sunrpc/des_soft.c: Likewise.
19563         * sunrpc/get_myaddr.c: Likewise.
19564         * sunrpc/key_call.c: Likewise.
19565         * sunrpc/key_prot.c: Likewise.
19566         * sunrpc/netname.c: Likewise.
19567         * sunrpc/pm_getmaps.c: Likewise.
19568         * sunrpc/pm_getport.c: Likewise.
19569         * sunrpc/pmap_clnt.c: Likewise.
19570         * sunrpc/pmap_prot.c: Likewise.
19571         * sunrpc/pmap_prot2.c: Likewise.
19572         * sunrpc/pmap_rmt.c: Likewise.
19573         * sunrpc/publickey.c: Likewise.
19574         * sunrpc/rpc_cmsg.c: Likewise.
19575         * sunrpc/rpc_common.c: Likewise.
19576         * sunrpc/rpc_dtable.c: Likewise.
19577         * sunrpc/rpc_prot.c: Likewise.
19578         * sunrpc/rpc_thread.c: Likewise.
19579         * sunrpc/rtime.c: Likewise.
19580         * sunrpc/svc.c: Likewise.
19581         * sunrpc/svc_auth.c: Likewise.
19582         * sunrpc/svc_authux.c: Likewise.
19583         * sunrpc/svc_raw.c: Likewise.
19584         * sunrpc/svc_run.c: Likewise.
19585         * sunrpc/svc_simple.c: Likewise.
19586         * sunrpc/svc_tcp.c: Likewise.
19587         * sunrpc/svc_udp.c: Likewise.
19588         * sunrpc/svc_unix.c: Likewise.
19589         * sunrpc/svcauth_des.c: Likewise.
19590         * sunrpc/xcrypt.c: Likewise.
19591         * sunrpc/xdr.c: Likewise.
19592         * sunrpc/xdr_array.c: Likewise.
19593         * sunrpc/xdr_float.c: Likewise.
19594         * sunrpc/xdr_intXX_t.c: Likewise.
19595         * sunrpc/xdr_mem.c: Likewise.
19596         * sunrpc/xdr_rec.c: Likewise.
19597         * sunrpc/xdr_ref.c: Likewise.
19598         * sunrpc/xdr_sizeof.c: Likewise.
19599         * sunrpc/xdr_stdio.c: Likewise.
19600
19601 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19602
19603         [BZ #12650]
19604         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19605         * sysdeps/ia64/dl-tls.h: Likewise.
19606         * sysdeps/powerpc/dl-tls.h: Likewise.
19607         * sysdeps/s390/dl-tls.h: Likewise.
19608         * sysdeps/sh/dl-tls.h: Likewise.
19609         * sysdeps/sparc/dl-tls.h: Likewise.
19610         * sysdeps/x86_64/dl-tls.h: Likewise.
19611         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19612
19613 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19614
19615         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19616         rpath element also skip the following colon.
19617         (expand_dynamic_string_token): Add is_path parameter and pass
19618         down to DL_DST_REQUIRED and _dl_dst_substitute.
19619         (decompose_rpath): Call expand_dynamic_string_token with
19620         non-zero is_path.  Ignore empty rpaths.
19621         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19622         with zero is_path.
19623
19624 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19625
19626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19627         Make cancelable.
19628
19629 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19630
19631         [BZ #12655]
19632         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19633         Patch by Filipe David Manana <fdmanana@apache.org>.
19634
19635 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19636
19637         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19638         Maintain aligned stack.
19639         (CHECK_RSP): Remove unused macro.
19640
19641 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19642
19643         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19644         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19645
19646 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19647
19648         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19649
19650         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19651
19652 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19653
19654         [BZ #12518]
19655         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19656         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19657         * sysdeps/x86_64/memmove.c: New file.
19658         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19659         (memcpy): Renamed to ...
19660         (__new_memcpy): This.
19661         (memcpy): Provide GLIBC_2_14 memcpy.
19662         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19663         (memcpy): Provide GLIBC_2_2_5 memcpy.
19664
19665 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19666
19667         [BZ #12631]
19668         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19669
19670 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19671
19672         * misc/syncfs.c: New file.
19673         * misc/Makefile (routines): Add syncfs.
19674         * posix/unistd.h: Declare syncfs.
19675         * sysdeps/unix/syscalls.list: Add syncfs.
19676
19677 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19678
19679         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19680         open_by_handle_at.
19681         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19682         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19683         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19684         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19685         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19686         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19687         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19688
19689 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19690
19691         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19692         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19693         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19694         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19695         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19696         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19697         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19698
19699         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19700         sync_file_range.c with -fexceptions.
19701         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19702         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19703         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19704         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19705         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19706         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19707         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19708         sync_file_range as cancellation point
19709         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19710         now a wrapper around __call_sync_file_range with cancellation handling.
19711         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19712         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19713         function name to __call_sync_file_range.
19714         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19715         Add call_sync_file_range.
19716
19717 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19718
19719         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19720         bits/timex.h.
19721
19722 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19723
19724         * iconv/iconv.h: Fix typo in comment.
19725         * io/fcntl.h: Likewise.
19726         * libio/stdio.h: Likewise.
19727         * posix/spawn.h: Likewise.
19728         * posix/unistd.h: Likewise.
19729         * stdlib/stdlib.h: Likewise.
19730         * time/time.h: Likewise.
19731         * wcsmbs/wchar.h: Likewise.
19732
19733         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19734         open_by_handle): Add.
19735         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19736         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19737         Augment a few comments.
19738         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19739         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19740         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19741         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19742         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19743         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19744         open_by_handle.
19745
19746         * io/fcntl.h (AT_EMPTY_PATH): Define.
19747
19748 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19749
19750         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19751         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19752         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19753         to...
19754         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19755         * Versions.def: Add GLIBC_2.14.
19756         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19757         Export.
19758
19759 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19760
19761         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19762         round counter.
19763         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19764
19765 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19766
19767         [BZ #12597]
19768         * string/test-strncmp.c (do_page_test): New function.
19769         (check2): Likewise.
19770         (test_main): Call check2.
19771         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19772
19773 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19774
19775         [BZ #12587]
19776         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19777         Handle cache information in CPU leaf 4.
19778         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19779
19780 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19781
19782         [BZ #12583]
19783         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19784         character representation.
19785         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19786
19787 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19788
19789         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19790         END(__isnan) to END(__isnanf) to match function entry point/label
19791         EALIGN(__isnanf,...).
19792
19793 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19794
19795         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19796
19797 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19798
19799         [BZ #12510]
19800         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19801         copy from the symbol referenced in the relocation to initialize the
19802         used variable.
19803         Patch by Piotr Bury <pbury@goahead.com>.
19804         * elf/Makefile: Add rules to build and tst-unique3.
19805         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19806         * elf/tst-unique3.cc: New file.
19807         * elf/tst-unique3.h: New file.
19808         * elf/tst-unique3lib.cc: New file.
19809         * elf/tst-unique3lib2.cc: New file.
19810
19811         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19812
19813 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19814
19815         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19816         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19817         to _start.
19818
19819 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19820
19821         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19822         to-be-loaded object along a path to loader is ld.so.
19823
19824 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19825             Ulrich Drepper  <drepper@gmail.com>
19826
19827         * sysdeps/x86_64/memset.S: After aligning destination, code
19828         branches to different locations depending on the value of
19829         misalignment, when multiarch is enabled. Fix this.
19830
19831 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19832
19833         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19834         Set _x86_64_preferred_memory_instruction for AMD processsors.
19835         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19836         Set bit_Prefer_SSE_for_memop for AMD processors.
19837
19838 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19839
19840         * libio/fmemopen.c (fmemopen): Optimize a bit.
19841
19842 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19843
19844         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19845
19846 2011-03-03  Roland McGrath  <roland@redhat.com>
19847
19848         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19849
19850 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19851
19852         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19853         __bzero_ultra1 instead of __memset_ultra1.
19854
19855 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19856             Ulrich Drepper  <drepper@gmail.com>
19857
19858         [BZ #12509]
19859         * include/link.h (struct link_map): Add l_orig_initfini.
19860         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19861         returning unsuccessfully.
19862         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19863         close of a file loaded at startup, restore the original l_initfini
19864         list.
19865         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19866         list, store the pointer.
19867         * elf/Makefile ($(objpfx)noload-mem): New rule.
19868         (noload-ENV): Define.
19869         (tests): Add $(objpfx)noload-mem.
19870         * elf/noload.c: Include <memcheck.h>.
19871         (main): Call mtrace.  Close all opened handles.
19872
19873 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19874
19875         [BZ #12454]
19876         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19877         dependencies are missing.
19878
19879 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19880
19881         Fix __if_freereq crash: Unlike the generic version which uses free,
19882         Hurd needs munmap.
19883         * sysdeps/mach/hurd/ifreq.h: New file.
19884
19885 2011-01-27  Petr Baudis  <pasky@suse.cz>
19886             Ulrich Drepper  <drepper@gmail.com>
19887
19888         [BZ 12445]#
19889         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19890         to extend_alloca().
19891         * stdio-common/bug23.c: New file.
19892         * stdio-common/Makefile (tests): Add bug23.
19893
19894 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19895             Ulrich Drepper  <drepper@gmail.com>
19896
19897         [BZ #12489]
19898         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19899         before performing relro protection.  At old place add assertion
19900         to make sure nothing changed.
19901
19902 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19903             Glauber de Oliveira Costa  <glommer@gmail.com>
19904
19905         * elf/elf.h: Add new ARM TLS relocs.
19906
19907 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19908
19909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19910         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19911         cast from r3.
19912         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19913         'tests' variable.
19914         * sysdeps/wordsize-64/tst-writev.c: New file.
19915
19916 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19917
19918         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19919         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19920         insns in _dl_start to prevent a TOC reference before relocs are
19921         resolved.
19922
19923 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19924
19925         [BZ #12469]
19926         * Makeconfig: Remove RANLIB definition.
19927         * Makerules: Don't use RANLIB.
19928         * aclocal.m4: Remove ranlib test.
19929         * configure.in: No need to check for ranlib.
19930         * elf/rtld-Rules: Don't use RANLIB.
19931
19932 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19933
19934         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19935         protection macro.
19936         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19937         inclusion protection macro.
19938
19939         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19940         SIGRTMIN and SIGRTMAX and print information in that case only when
19941         SIGRTMIN is defined.
19942
19943 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19944
19945         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19946         arginfo fn returning -1.
19947
19948         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19949         and thousands string is zero terminated.
19950
19951 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19952
19953         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19954         sysdeps/unix/sysv/linux/bits/socket.h.
19955
19956 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19957
19958         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19959         (__CPU_COUNT): Remove old macros.
19960         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19961         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19962         (__CPU_ALLOC, __CPU_FREE): Add macros.
19963         (__sched_cpualloc, __sched_cpufree): Add declarations.
19964
19965 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19966
19967         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19968         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19969         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19970         (readdhstai): Return value of addhstaiX call.
19971         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19972         (addgrbyX): Return value returned by cache_addgr.
19973         (readdgrbyname): Return value returned by addgrbyX.
19974         (readdgrbygid): Likewise.
19975         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19976         (addpwbyX): Return value returned by cache_addpw.
19977         (readdpwbyname): Return value returned by addhstbyX.
19978         (readdpwbyuid): Likewise.
19979         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19980         (addservbyX): Return value returned by cache_addserv.
19981         (readdservbyname): Return value returned by addservbyX:
19982         (readdservbyport): Likewise.
19983         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19984         (addhstbyX): Return value returned by cache_addhst.
19985         (readdhstbyname): Return value returned by addhstbyX.
19986         (readdhstbyaddr): Likewise.
19987         (readdhstbynamev6): Likewise.
19988         (readdhstbyaddrv6): Likewise.
19989         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19990         (readdinitgroups): Return value returned by addinitgroupsX.
19991         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19992         (prune_cache): Keep track of timeout value of re-added entries.
19993         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19994         * nscd/nscd.h: Adjust prototypes of readd* functions.
19995
19996 2011-02-04  Roland McGrath  <roland@redhat.com>
19997
19998         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19999         (nis_stats): Likewise.
20000         * nis/nis_modify.c (nis_modify): Likewise.
20001         * nis/nis_remove.c (nis_remove): Likewise.
20002         * nis/nis_add.c (nis_add): Likewise.
20003
20004         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20005
20006         * posix/fnmatch_loop.c: Add some consts.
20007
20008         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20009
20010 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20011
20012         [BZ #12460]
20013         * config.make.in (config-cflags-novzeroupper): Define.
20014         * configure.in: Substitute libc_cv_cc_novzeroupper.
20015         * elf/Makefile (AVX-CFLAGS): Define.
20016         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20017         (CFLAGS-tst-auditmod4a.c): Likewise.
20018         (CFLAGS-tst-auditmod4b.c): Likewise.
20019         (CFLAGS-tst-auditmod6b.c): Likewise.
20020         (CFLAGS-tst-auditmod6c.c): Likewise.
20021         (CFLAGS-tst-auditmod7b.c): Likewise.
20022         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20023
20024 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20025
20026         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20027         function to the callback.
20028         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20029
20030 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20031
20032         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20033         of errno.
20034
20035 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20036
20037         [BZ #11724]
20038         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20039         of constructors.
20040         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20041         of destructors.
20042         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20043
20044         [BZ #11724]
20045         * elf/Makefile: Add rules to build and run new test.
20046         * elf/tst-initorder.c: New file.
20047         * elf/tst-initorder.exp: New file.
20048         * elf/tst-initordera1.c: New file.
20049         * elf/tst-initordera2.c: New file.
20050         * elf/tst-initordera3.c: New file.
20051         * elf/tst-initordera4.c: New file.
20052         * elf/tst-initorderb1.c: New file.
20053         * elf/tst-initorderb2.c: New file.
20054         * elf/tst-order-a1.c: New file.
20055         * elf/tst-order-a2.c: New file.
20056         * elf/tst-order-a3.c: New file.
20057         * elf/tst-order-a4.c: New file.
20058         * elf/tst-order-b1.c: New file.
20059         * elf/tst-order-b2.c: New file.
20060         * elf/tst-order-main.c: New file.
20061         New test case by George Gensure <werkt0@gmail.com>.
20062
20063 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20064
20065         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20066         decoding ACE if AI_CANONIDN.
20067
20068 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20069
20070         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20071
20072 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20073
20074         * version.h (RELEASE): Bump for 2.13 release.
20075         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20076
20077         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20078
20079         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20080         MADV_NOHUGEPAGE.
20081         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20082         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20083         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20084         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20085         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20086         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20087
20088         * posix/getconf.c: Update copyright year.
20089         * catgets/gencat.c: Likewise.
20090         * csu/version.c: Likewise.
20091         * debug/catchsegv.sh: Likewise.
20092         * debug/xtrace.sh: Likewise.
20093         * elf/ldconfig.c: Likewise.
20094         * elf/ldd.bash.in: Likewise.
20095         * elf/sprof.c (print_version): Likewise.
20096         * iconv/iconv_prog.c: Likewise.
20097         * iconv/iconvconfig.c: Likewise.
20098         * locale/programs/locale.c: Likewise.
20099         * locale/programs/localedef.c: Likewise.
20100         * malloc/memusage.sh: Likewise.
20101         * malloc/mtrace.pl: Likewise.
20102         * nscd/nscd.c (print_version): Likewise.
20103         * nss/getent.c: Likewise.
20104
20105         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20106         PF_CAIF, and PF_ALG.
20107         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20108
20109 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20110
20111         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20112         (modules-names): Use them.
20113         (ifunc-test-modules, ifunc-pie-tests): Define.
20114         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20115         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20116         (test-extras): Likewise.
20117         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20118         $(compile-command.c).
20119         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20120         (all-built-dso): Define.
20121         (check-textrel.out, check-execstack.out): Depend on it.
20122
20123         * configure.in: Don't override --enable-multi-arch.
20124
20125 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20126
20127         [BZ #6812]
20128         * nscd/hstcache.c (tryagain): Define.
20129         (cache_addhst): Return tryagain not notfound for temporary errors.
20130         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20131         failed.
20132
20133 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20134
20135         [BZ #10563]
20136         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20137         to make the syscall.
20138         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20139
20140         [BZ #12378]
20141         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20142         and fall back to matching as normal character if the string ends before
20143         the matching ']' is found.  This is what POSIX requires.
20144         * posix/testfnm.c: Adjust test result.
20145         * posix/globtest.sh: Adjust test result.  Add new test.
20146         * posix/tst-fnmatch.input: Likewise.
20147         * posix/tst-fnmatch2.c: Add new test.
20148
20149 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20150
20151         * elf/Makefile (check-execstack): Revert last change.  Depend on
20152         check-execstack.h.
20153         (check-execstack.h): New target.
20154         (generated): Add check-execstack.h.
20155         * elf/check-execstack.c: Include "check-execstack.h".
20156         (main): Revert last change.
20157         (handle_file): Return zero if GNU_STACK is absent and
20158         DEFAULT_STACK_PERMS doesn't include PF_X.
20159
20160 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20161
20162         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20163         in child fails because the descriptor is already closed.
20164         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20165         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20166         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20167
20168         [BZ #12397]
20169         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20170         syscall.
20171
20172         [BZ #10484]
20173         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20174         temporary buffer used to handle multi lookups locally.
20175         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20176
20177 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20178
20179         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20180         loader is ld.so.
20181
20182 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20183
20184         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20185         alignment for SSE2.
20186
20187 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20188
20189         [BZ #12394]
20190         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20191         characters.  When rounding increased number of integer digits recompute
20192         number of groups.
20193         * stdio-common/tst-grouping.c: New file.
20194         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20195
20196 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20197
20198         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20199         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20200
20201         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20202         void.
20203         * bits/select.h: Likewise.
20204
20205 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20206
20207         * po/ja.po: Update from translation team.
20208
20209 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20210
20211         [BZ #11155]
20212         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20213         implementation just like for lxstat, fxstatat, et al.
20214
20215 2010-12-27  Jim Meyering  <meyering@redhat.com>
20216
20217         [BZ #12348]
20218         * posix/regexec.c (build_trtable): Return failure indication upon
20219         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20220
20221 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20222
20223         [BZ #12201]
20224         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20225         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20226         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20227         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20228
20229         [BZ #12207]
20230         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20231
20232         [BZ #12204]
20233         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20234         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20235
20236 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20237
20238         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20239         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20240         script has SORT_BY_INIT_PRIORITY.
20241         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20242         NO_CTORS_DTORS_SECTIONS is defined.
20243         * elf/soinit.c: Likewise.
20244         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20245         NO_CTORS_DTORS_SECTIONS is defined.
20246         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20247         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20248         * sysdeps/sh/init-first.c: Likewise.
20249         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20250
20251 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20252
20253         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20254         always use the slow path.
20255
20256 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20257
20258         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20259         similar rule which adds the sysdep directories to the header search in
20260         order to pick up the correct platform stackinfo.h.
20261         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20262         perform test if it is, otherwise return successfully without testing.
20263         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20264         DEFAULT_STACK_PERMS define in stackinfo.h.
20265         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20266         defined in stackinfo.h.
20267         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20268         DEFAULT_STACK_PERMS defined in stackinfo.h.
20269         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20270         * sysdeps/ia64/stackinfo.h: Likewise.
20271         * sysdeps/s390/stackinfo.h: Likewise.
20272         * sysdeps/sh/stackinfo.h: Likewise.
20273         * sysdeps/sparc/stackinfo.h: Likewise.
20274         * sysdeps/x86_64/stackinfo.h: Likewise.
20275         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20276         PF_X for powerpc64.  Retain PF_X for powerpc32.
20277
20278 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20279
20280         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20281         accurately.
20282         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20283         GETDENTS_64BIT_ALIGNED.
20284
20285 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20286
20287         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20288
20289 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20290
20291         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20292         _GNU_SOURCE.
20293
20294         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20295         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20296         Remove __restrict.
20297         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20298         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20299
20300 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20301
20302         [BZ #11655]
20303         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20304         are initialized.
20305
20306 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20307
20308         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20309
20310 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20311
20312         * po/it.po: Update from translation team.
20313
20314 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20315
20316         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20317         unused codes.
20318
20319 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20320
20321         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20322
20323 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20324
20325         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20326         specially.
20327         (gaih_getanswer_slice): Likewise.
20328
20329 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20330
20331         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20332
20333 2010-05-31  Petr Baudis  <pasky@suse.cz>
20334
20335         [BZ #11149]
20336         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20337         silently even in the chroot mode.
20338
20339 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20340
20341         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20342         last patch a bit.  Pretty printing
20343
20344 2010-05-31  Petr Baudis <pasky@suse.cz>
20345
20346         [BZ #10085]
20347         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20348         initialization of skip_initgroups_dyn.
20349
20350 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
20351
20352         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
20353         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20354
20355 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
20356
20357         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
20358
20359 2010-11-11  Andreas Schwab  <schwab@redhat.com>
20360
20361         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
20362         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
20363         (tst-fnmatch-ENV): Set MALLOC_TRACE.
20364         ($(objpfx)tst-fnmatch-mem): New rule.
20365         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
20366         * posix/tst-fnmatch.c (main): Call mtrace.
20367
20368 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
20369
20370         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20371         Support Intel processor model 6 and model 0x2c.
20372
20373 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
20374
20375         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
20376           signed comparison.
20377
20378 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
20379
20380         [BZ #12205]
20381         * string/test-strncasecmp.c (check_result): New function.
20382         (do_one_test): Use it.
20383         (check1): New function.
20384         (test_main): Use it.
20385         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
20386         Support strcasecmp and strncasecmp.
20387
20388 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
20389
20390         [BZ #12194]
20391         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
20392         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20393
20394 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
20395
20396         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
20397         IFUNC support.
20398         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20399         memset-x86-64.
20400         * sysdeps/x86_64/multiarch/bzero.S: New file.
20401         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
20402         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
20403         * sysdeps/x86_64/multiarch/memset.S: New file.
20404         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
20405         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20406         Set bit_Prefer_SSE_for_memop for Intel processors.
20407         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
20408         Define.
20409         (index_Prefer_SSE_for_memop): Define.
20410         (HAS_PREFER_SSE_FOR_MEMOP): Define.
20411
20412 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
20413
20414         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
20415         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
20416
20417 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
20418
20419         [BZ #12191]
20420         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20421         (__x86_64_raw_data_cache_size_half): Likewise.
20422         (__x86_64_raw_shared_cache_size): Likewise.
20423         (__x86_64_raw_shared_cache_size_half): Likewise.
20424
20425         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
20426         (__x86_64_raw_data_cache_size_half): Likewise.
20427         (__x86_64_raw_shared_cache_size): Likewise.
20428         (__x86_64_raw_shared_cache_size_half): Likewise.
20429         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
20430         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
20431         and __x86_64_raw_shared_cache_size_half.  Round
20432         __x86_64_data_cache_size_half, __x86_64_data_cache_size
20433         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
20434         to multiple of 256 bytes.
20435
20436 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
20437
20438         [BZ #12167]
20439         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
20440         of inacessible symlinks.  Verify result of symlink before returning it.
20441         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
20442         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
20443
20444 2010-10-28  Erich Ritz  <erichritz@gmail.com>
20445
20446         * math/math.h (isinf): Fix typo in comment.
20447
20448 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
20449
20450         * po/da.po: Update from translation team.
20451
20452 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
20453
20454         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
20455         is added to the list.
20456
20457 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20458             Ulrich Drepper  <drepper@gmail.com>
20459
20460         * elf/dl-object.c (_dl_new_object): Don't append the new object to
20461         the global list here.  Move code to...
20462         (_dl_add_to_namespace_list): ...here.  New function.
20463         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
20464         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
20465         * elf/dl-load.c (lose): Don't remove the element from the list.
20466         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
20467         (_dl_map_object): Likewise.
20468
20469 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
20470
20471         [BZ #12159]
20472         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
20473         into all bytes of SSE register.
20474         Patch by Richard Li <richardpku@gmail.com>.
20475
20476 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
20477
20478         [BZ #12140]
20479         * malloc/malloc.c (_int_free): Fill correct number of bytes when
20480         perturbing.
20481
20482 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
20483
20484         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
20485         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
20486         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
20487         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
20488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
20489         submachine.
20490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
20491
20492 2010-10-22  Andreas Schwab  <schwab@redhat.com>
20493
20494         * include/dlfcn.h (__RTLD_SECURE): Define.
20495         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
20496         mode & __RTLD_SECURE instead.
20497         (open_path): Rename preloaded parameter to secure.
20498         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
20499         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
20500         * elf/dl-deps.c (openaux): Likewise.
20501         * elf/rtld.c (struct map_args): Remove is_preloaded.
20502         (map_doit): Don't use it.
20503         (dl_main): Likewise.
20504         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
20505         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
20506
20507 2010-09-09  Andreas Schwab  <schwab@redhat.com>
20508
20509         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
20510         (sysd-rules-targets): Remove duplicates.
20511         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
20512         rtld-%.$o dependency.
20513
20514 2010-10-18  Andreas Schwab  <schwab@redhat.com>
20515
20516         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
20517         _dl_map_object do it.
20518
20519 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
20520
20521         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
20522         fast fma builtins, define the macros in the C99 standard.
20523         (FP_FAST_FMAF): Likewise.
20524         (FP_FAST_FMAL): Likewise.
20525         * sysdeps/x86_64/bits/mathdef.h: Likewise.
20526
20527         * bits/mathdef.h: Update copyright year.
20528         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20529
20530 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20531
20532         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20533         builtins, define the macros in the C99 standard.
20534         (FP_FAST_FMAF): Likewise.
20535         (FP_FAST_FMAL): Likewise.
20536         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20537         multiply/add.
20538         (FP_FAST_FMAF): Likewise.
20539
20540 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20541
20542         [BZ #3268]
20543         * math/libm-test.inc (fma_test): Some new testcases.
20544         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20545         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20546         y and infinite z.  Do multiplication by C already in long double.
20547         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20548         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20549         y and infinite z.  Do bitwise or of inexact bit into u.d.
20550         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20551         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20552         * sysdeps/i386/fpu/s_fma.S: Removed.
20553         * sysdeps/i386/fpu/s_fmal.S: Removed.
20554
20555 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20556
20557         [BZ #3268]
20558         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20559         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20560         computation is not scheduled after fetestexcept.  Fix value
20561         of minimum denormal long double.
20562
20563 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20564
20565         [BZ #3268]
20566         * math/libm-test.inc (fma_test): Add some more tests.
20567         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20568         correctly.
20569
20570 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20571
20572         * scripts/data/localplt-s390-linux-gnu.data: New file.
20573         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20574
20575 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20576
20577         [BZ #3268]
20578         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20579         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20580         instead of dbl-64.
20581         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20582         inlines.
20583         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20584         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20585         if one of x and y is very large and the other is subnormal.
20586         * sysdeps/s390/fpu/s_fmaf.c: New file.
20587         * sysdeps/s390/fpu/s_fma.c: New file.
20588         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20589         * sysdeps/powerpc/fpu/s_fma.S: New file.
20590         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20591         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20592         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20593
20594 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20595
20596         [BZ #3268]
20597         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20598         fma tests.
20599         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20600         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20601         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20602         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20603         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20604         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20605         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20606
20607 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20608
20609         [BZ #12078]
20610         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20611         * posix/bug-regex31.input: Add test case.
20612
20613 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20614
20615         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20616         * posix/bug-regex31.input: New file.
20617
20618         [BZ #12078]
20619         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20620         (parse_sub_exp): Fix last change, use postorder.
20621
20622         * posix/bug-regex31.c: New file.
20623         * posix/Makefile: Add rules to build and run bug-regex31.
20624
20625         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20626
20627         [BZ #12078]
20628         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20629
20630         [BZ #12108]
20631         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20632         to have entries in sys_siglist.
20633
20634         [BZ #12093]
20635         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20636         be NULL.
20637
20638 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20639
20640         [BZ #3268]
20641         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20642         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20643         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20644         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20645         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20646         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20647         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20648         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20649         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20650         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20651         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20652         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20653         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20654         * math/ftestexcept.c (fetestexcept): Likewise.
20655         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20656         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20657         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20658         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20659         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20660         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20661         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20662
20663 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20664
20665         [BZ #12107]
20666         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20667         newline.
20668
20669 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20670
20671         * string/bug-strstr1.c: New file.
20672         * string/Makefile: Add rules to build and run bug-strstr1.
20673
20674 2010-10-05  Eric Blake  <eblake@redhat.com>
20675
20676         [BZ #12092]
20677         * string/str-two-way.h (two_way_long_needle): Always clear memory
20678         when skipping input due to the shift table.
20679
20680 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20681
20682         [BZ #12005]
20683         * malloc/mcheck.c: Handle large requests.
20684
20685         [BZ #12077]
20686         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20687         for strncmp and strncasecmp.
20688         * string/stratcliff.c: Add tests for strcmp and strncmp.
20689         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20690
20691 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20692
20693         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20694         __set_fpscr.
20695
20696 2010-09-30  Andreas Jaeger  <aj@suse.de>
20697
20698         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20699         (CGROUP_SUPER_MAGIC): Define.
20700         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20701         Handle btrfs and cgroup file systems.
20702         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20703         Likewise.
20704
20705 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20706
20707         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20708         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20709
20710 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20711
20712         [BZ #12067]
20713         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20714         trying to locate the ELF header.
20715
20716 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20717
20718         [BZ #11611]
20719         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20720         Mask out sign-bit copies when constructing f_fsid.
20721
20722 2010-09-24  Petr Baudis <pasky@suse.cz>
20723
20724         * debug/stack_chk_fail_local.c: Add missing licence exception.
20725         * debug/warning-nop.c: Likewise.
20726
20727 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20728
20729         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20730         implementing getdents64 using getdents syscall, set d_type if
20731         __ASSUME_GETDENTS32_D_TYPE.
20732
20733 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20734
20735         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20736         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20737
20738 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20739
20740         [BZ #12037]
20741         * posix/unistd.h: Undo change of feature selection for ftruncate from
20742         2010-01-11.
20743
20744 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20745
20746         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20747         detection.
20748
20749 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20750
20751         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20752         fanotify_mark.
20753         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20754
20755 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20756
20757         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20758         variables after CHECK_SP call.
20759         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20760
20761 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20762             Ulrich Drepper  <drepper@redhat.com>
20763
20764         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20765         re-relocationg ld.so.
20766         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20767         _dl_init_paths call.
20768         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20769         here anymore.
20770
20771 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20772
20773         * resolv/res_init.c (__res_vinit): Count the default server we added.
20774
20775 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20776             Ulrich Drepper  <drepper@redhat.com>
20777
20778         [BZ #11968]
20779         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20780         (____longjmp_chk): Use %ebx for saving value across system call.
20781         Add unwind info.
20782
20783 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20784
20785         * manual/Makefile: Don't mix pattern rules with normal rules.
20786
20787 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20788
20789         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20790         operation.
20791         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20792         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20793         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20794         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20795         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20796         Likewise.
20797
20798 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20799
20800         [BZ #11979]
20801         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20802         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20803
20804 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20805
20806         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20807         * sysdeps/x86_64/addmul_1.S: Likewise.
20808         * sysdeps/x86_64/lshift.S: Likewise.
20809         * sysdeps/x86_64/mul_1.S: Likewise.
20810         * sysdeps/x86_64/rshift.S: Likewise.
20811         * sysdeps/x86_64/sub_n.S: Likewise.
20812         * sysdeps/x86_64/submul_1.S: Likewise.
20813
20814 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20815
20816         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20817         Define __sched_param instead of SCHED_* and sched_param when
20818         <bits/sched.h> is included with __need_schedparam defined.
20819         * bits/sched.h [__need_schedparam]
20820         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20821         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20822         (__defined_schedparam): Define to 1.
20823         (__sched_param): New structure, identical to sched_param.
20824         (__need_schedparam): Undefine.
20825
20826 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20827
20828         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20829         (epoll_create1): Declare.
20830
20831         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20832
20833 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20834
20835         [BZ #7066]
20836         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20837         shifting retval into place.
20838
20839 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20840
20841         * nis/rpcsvc/nis.h: Update copyright notice.
20842         * nis/rpcsvc/nis.x: Likewise.
20843         * nis/rpcsvc/nis_callback.h: Likewise.
20844         * nis/rpcsvc/nis_callback.x: Likewise.
20845         * nis/rpcsvc/nis_object.x: Likewise.
20846         * nis/rpcsvc/nis_tags.h: Likewise.
20847         * nis/rpcsvc/yp.h: Likewise.
20848         * nis/rpcsvc/yp.x: Likewise.
20849         * nis/rpcsvc/ypupd.h: Likewise.
20850         * nis/yp_xdr.c: Likewise.
20851         * nis/ypupdate_xdr.c: Likewise.
20852
20853         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20854         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20855         (pmap_getport): Use __libc_rpc_getport.
20856         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20857         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20858         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20859
20860 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20861
20862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20863         fanotify_mark.
20864
20865 2010-08-27  Roland McGrath  <roland@redhat.com>
20866
20867         * sysdeps/i386/i686/multiarch/Makefile
20868         (CFLAGS-varshift.c): New variable.
20869
20870 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20871
20872         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20873         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20874
20875         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20876
20877         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20878
20879 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20880
20881         * sysdeps/x86_64/strlen.S: Unroll the loop.
20882         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20883         strlen-sse2 strlen-sse2-bsf.
20884         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20885         __strlen_no_bsf if bit_Slow_BSF is set.
20886         (__strlen_sse42): Removed.
20887         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20888         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20889
20890 2010-08-25  Roland McGrath  <roland@redhat.com>
20891
20892         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20893         * sysdeps/x86_64/multiarch/varshift.c: New file.
20894         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20895         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20896         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20897         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20898
20899 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20900
20901         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20902         strlen-sse2 strlen-sse2-bsf.
20903         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20904         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20905         (__strlen_sse2): Removed.
20906         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20907         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20908         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20909         bit_Slow_BSF for Atom.
20910         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20911         (index_Slow_BSF): Define.
20912         (HAS_SLOW_BSF): Define.
20913
20914 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20915
20916         [BZ #10851]
20917         * resolv/res_init.c (__res_vinit): When no server address at all
20918         is given default to loopback.
20919
20920 2010-08-24  Roland McGrath  <roland@redhat.com>
20921
20922         * configure.in: Remove config-name.h generation.
20923         * configure: Regenerated.
20924         * config-name.in: File removed.
20925         * scripts/config-uname.sh: New file.
20926         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20927         ($(objdir)config-name.h): New target.
20928
20929         * sunrpc/rpc_parse.h: Avoid nested comment.
20930
20931 2010-08-24  Richard Henderson  <rth@redhat.com>
20932             Ulrich Drepper  <drepper@redhat.com>
20933             H.J. Lu  <hongjiu.lu@intel.com>
20934
20935         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20936         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20937         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20938         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20939         _mm_alignr_epi8 with _mm_loadu_si128.
20940         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20941         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20942         (__m128i_shift_right): Removed.
20943         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20944         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20945         * sysdeps/x86_64/multiarch/varshift.h: New file.
20946         * sysdeps/x86_64/multiarch/varshift.S: New file.
20947
20948 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20949
20950         * configure.in: Move assembler checks to before sysdep dir checking.
20951
20952 2010-08-20  Petr Baudis  <pasky@suse.cz>
20953
20954         * LICENSES: Sync the sunrpc license.
20955
20956 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20957
20958         * sunrpc/auth_des.c: Update copyright notice once again.
20959         * sunrpc/auth_none.c: Likewise.
20960         * sunrpc/auth_unix.c: Likewise.
20961         * sunrpc/authdes_prot.c: Likewise.
20962         * sunrpc/authuxprot.c: Likewise.
20963         * sunrpc/bindrsvprt.c: Likewise.
20964         * sunrpc/clnt_gen.c: Likewise.
20965         * sunrpc/clnt_perr.c: Likewise.
20966         * sunrpc/clnt_raw.c: Likewise.
20967         * sunrpc/clnt_simp.c: Likewise.
20968         * sunrpc/clnt_tcp.c: Likewise.
20969         * sunrpc/clnt_udp.c: Likewise.
20970         * sunrpc/clnt_unix.c: Likewise.
20971         * sunrpc/des_crypt.c: Likewise.
20972         * sunrpc/des_soft.c: Likewise.
20973         * sunrpc/get_myaddr.c: Likewise.
20974         * sunrpc/getrpcport.c: Likewise.
20975         * sunrpc/key_call.c: Likewise.
20976         * sunrpc/key_prot.c: Likewise.
20977         * sunrpc/openchild.c: Likewise.
20978         * sunrpc/pm_getmaps.c: Likewise.
20979         * sunrpc/pm_getport.c: Likewise.
20980         * sunrpc/pmap_clnt.c: Likewise.
20981         * sunrpc/pmap_prot.c: Likewise.
20982         * sunrpc/pmap_prot2.c: Likewise.
20983         * sunrpc/pmap_rmt.c: Likewise.
20984         * sunrpc/rpc/auth.h: Likewise.
20985         * sunrpc/rpc/auth_unix.h: Likewise.
20986         * sunrpc/rpc/clnt.h: Likewise.
20987         * sunrpc/rpc/des_crypt.h: Likewise.
20988         * sunrpc/rpc/key_prot.h: Likewise.
20989         * sunrpc/rpc/netdb.h: Likewise.
20990         * sunrpc/rpc/pmap_clnt.h: Likewise.
20991         * sunrpc/rpc/pmap_prot.h: Likewise.
20992         * sunrpc/rpc/pmap_rmt.h: Likewise.
20993         * sunrpc/rpc/rpc.h: Likewise.
20994         * sunrpc/rpc/rpc_des.h: Likewise.
20995         * sunrpc/rpc/rpc_msg.h: Likewise.
20996         * sunrpc/rpc/svc.h: Likewise.
20997         * sunrpc/rpc/svc_auth.h: Likewise.
20998         * sunrpc/rpc/types.h: Likewise.
20999         * sunrpc/rpc/xdr.h: Likewise.
21000         * sunrpc/rpc_clntout.c: Likewise.
21001         * sunrpc/rpc_cmsg.c: Likewise.
21002         * sunrpc/rpc_common.c: Likewise.
21003         * sunrpc/rpc_cout.c: Likewise.
21004         * sunrpc/rpc_dtable.c: Likewise.
21005         * sunrpc/rpc_hout.c: Likewise.
21006         * sunrpc/rpc_main.c: Likewise.
21007         * sunrpc/rpc_parse.c: Likewise.
21008         * sunrpc/rpc_parse.h: Likewise.
21009         * sunrpc/rpc_prot.c: Likewise.
21010         * sunrpc/rpc_sample.c: Likewise.
21011         * sunrpc/rpc_scan.c: Likewise.
21012         * sunrpc/rpc_scan.h: Likewise.
21013         * sunrpc/rpc_svcout.c: Likewise.
21014         * sunrpc/rpc_tblout.c: Likewise.
21015         * sunrpc/rpc_util.c: Likewise.
21016         * sunrpc/rpc_util.h: Likewise.
21017         * sunrpc/rpcinfo.c: Likewise.
21018         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21019         * sunrpc/rpcsvc/key_prot.x: Likewise.
21020         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21021         * sunrpc/rpcsvc/mount.x: Likewise.
21022         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21023         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21024         * sunrpc/rpcsvc/rex.x: Likewise.
21025         * sunrpc/rpcsvc/rstat.x: Likewise.
21026         * sunrpc/rpcsvc/rusers.x: Likewise.
21027         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21028         * sunrpc/rpcsvc/spray.x: Likewise.
21029         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21030         * sunrpc/rtime.c: Likewise.
21031         * sunrpc/svc.c: Likewise.
21032         * sunrpc/svc_auth.c: Likewise.
21033         * sunrpc/svc_authux.c: Likewise.
21034         * sunrpc/svc_raw.c: Likewise.
21035         * sunrpc/svc_run.c: Likewise.
21036         * sunrpc/svc_simple.c: Likewise.
21037         * sunrpc/svc_tcp.c: Likewise.
21038         * sunrpc/svc_udp.c: Likewise.
21039         * sunrpc/svc_unix.c: Likewise.
21040         * sunrpc/svcauth_des.c: Likewise.
21041         * sunrpc/xcrypt.c: Likewise.
21042         * sunrpc/xdr.c: Likewise.
21043         * sunrpc/xdr_array.c: Likewise.
21044         * sunrpc/xdr_float.c: Likewise.
21045         * sunrpc/xdr_mem.c: Likewise.
21046         * sunrpc/xdr_rec.c: Likewise.
21047         * sunrpc/xdr_ref.c: Likewise.
21048         * sunrpc/xdr_sizeof.c: Likewise.
21049         * sunrpc/xdr_stdio.c: Likewise.
21050
21051         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21052         handling.
21053
21054 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21055
21056         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21057
21058 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21059
21060         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21061         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21062         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21063         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21064         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21065         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21066         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21067         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21068         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21069         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21070         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21071         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21072         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21073         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21074
21075 2010-07-26  Anton Blanchard  <anton@samba.org>
21076
21077         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21078         * malloc/arena.c (heap_trim): Likewise.
21079
21080 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21081
21082         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21083         here.  Not...
21084         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21085         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21086
21087 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21088
21089         * sysdeps/i386/elf/Makefile: New file.
21090
21091 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21092
21093         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21094         from fanotify_init.
21095         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21096         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21097
21098 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21099
21100         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21101         of strncasecmp_l.
21102         * sysdeps/multiarch/strcmp.S: Likewise.
21103
21104 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21105
21106         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21107         strncase_l-nonascii.
21108         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21109         Add strncase_l-ssse3.
21110         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21111         * sysdeps/x86_64/strcmp.S: Likewise.
21112         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21113         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21114         * sysdeps/x86_64/strncase.S: New file.
21115         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21116         * sysdeps/x86_64/strncase_l.S: New file.
21117         * string/Makefile (strop-tests): Add strncasecmp.
21118         * string/test-strncasecmp.c: New file.
21119
21120         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21121         warning.
21122
21123         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21124         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21125
21126 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21127
21128         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21129
21130 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21131
21132         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21133         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21134         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21135
21136 2010-05-01  Alan Modra  <amodra@gmail.com>
21137
21138         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21139         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21140         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21141         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21142         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21143         tidying.  Don't tail-call __sigjmp_save for static lib.
21144         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21145         save location.
21146         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21147         (CALL_MCOUNT): Add eh info, and nop after bl.
21148         (TAIL_CALL_SYSCALL_ERROR): New macro.
21149         (PSEUDO_RET): Use it.
21150         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21151         Correct save location of integer regs and cr.
21152         (_dl_profile_resolve): Correct cr save location.  Delete nops
21153         after bl when SHARED.  Reduce cfi size a little by better
21154         placement of cfi directives.
21155         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21156         make a stack frame.  Instead use parm save area as a temp.
21157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21158         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21160         Don't make a stack frame for parent, use parm save area.
21161         Increase child stack frame to 112 bytes.  Don't save unused reg,
21162         and adjust reg usage.  Set up cfi on error recovery and
21163         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21165         (__makecontext): Add dummy nop after jump to exit.
21166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21167         Use correct parm save area and cr save, reduce stack frame.
21168         Correct cfi for possible PSEUDO_RET frame setup.
21169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21170         Branch to local label emitted by PSEUDO_RET rather than
21171         __syscall_error.
21172
21173 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21174
21175         [BZ #11904]
21176         * locale/programs/locale.c (print_assignment): New function.
21177         (show_locale_vars): Use it.
21178
21179 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21180
21181         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21182         field.
21183         (struct statfs64): Likewise.
21184         (_STATFS_F_FLAGS): Define.
21185         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21186         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21187         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21188         (ST_VALID): Define locally.
21189         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21190         __statvfs_getflags, use the provided value.
21191         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21192         __ASSUME_STATFS_F_FLAGS.
21193
21194         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21195
21196         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21197         Add sys/fanotify.h.
21198         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21199         fanotify_mask for GLIBC_2.13.
21200         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21201         fanotify_init and fanotify_mark.
21202         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21203         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21204
21205         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21206         Add prlimit.
21207         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21208         prlimit64 for GLIBC_2.13.
21209         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21210         prlimit64.
21211         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21212         syscall.
21213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21214         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21215         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21216         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21217         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21218         add prlimit alias.
21219         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21220
21221         [BZ #11903]
21222         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21223         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21224
21225         * nss/Makefile: Add rules to build and run tst-nss-test1.
21226         * shlib-versions: Add entry for libnss_test1.
21227         * nss/nss_test1.c: New file.
21228         * nss/tst-nss-test1.c: New file.
21229
21230         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21231         (__nss_configure_lookup): Set appropriate entry in
21232         __nss_configure_lookup to true.
21233         * nss/nsswitch.h: Define enum with indeces of databases in
21234         databases and __nss_database_custom arrays.  Declare
21235         __nss_database_custom.
21236         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21237         to avoid using nscd when custom rules are installed.
21238         * nss/getXXbyYY_r.c: Likewise.
21239         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21240
21241         * nss/nss_files/files-parse.c: Whitespace fixes.
21242
21243 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21244
21245         [BZ #11883]
21246         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21247         * posix/fnmatch_loop.c: Likewise.
21248
21249 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21250
21251         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21252         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21253         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21254         * Versions.def [GLIBC_2.13]: Add.
21255
21256 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21257
21258         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21259         Also fail if tpwd after pwuid call is NULL.
21260
21261 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21262
21263         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21264         when converting to ms.
21265
21266 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21267
21268         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21269         EOPNOTSUPP errors with ENOTTY.
21270         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21271         EOPNOTSUPP errors with ENOTTY.
21272
21273 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21274
21275         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21276         Add strcasecmp_l-ssse3.
21277         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21278         strcasecmp.
21279         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21280         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21281         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21282
21283 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21284
21285         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21286
21287         * string/Makefile (strop-tests): Add strcasecmp.
21288         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21289         strcasecmp_l-nonascii.
21290         (gen-as-const-headers): Add locale-defines.sym.
21291         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21292         * sysdeps/x86_64/strcasecmp.S: New file.
21293         * sysdeps/x86_64/strcasecmp_l.S: New file.
21294         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21295         * sysdeps/x86_64/locale-defines.sym: New file.
21296         * string/test-strcasecmp.c: New file.
21297
21298         * string/test-strcasestr.c: Test both ends of the range of characters.
21299         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21300
21301 2010-07-29  Roland McGrath  <roland@redhat.com>
21302
21303         [BZ #11856]
21304         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21305
21306 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21307
21308         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21309         for ld.so.
21310
21311 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21312
21313         * manual/memory.texi (Malloc Tunable Parameters): Document
21314         M_PERTURB.
21315
21316 2010-07-26  Roland McGrath  <roland@redhat.com>
21317
21318         [BZ #11840]
21319         * configure.in (-fgnu89-inline check): Set and substitute
21320         gnu89_inline, not libc_cv_gnu89_inline.
21321         * configure: Regenerated.
21322         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21323
21324 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21325
21326         * string/test-strnlen.c: New file.
21327         * string/Makefile (strop-tests): Add strnlen.
21328         * string/tester.c (test_strnlen): Add a few more test cases.
21329         * string/tst-strlen.c: Better error reporting.
21330
21331         * sysdeps/x86_64/strnlen.S: New file.
21332
21333 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21334
21335         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21336         lower-latency instructions.
21337
21338 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21339
21340         * string/test-strcasestr.c: New file.
21341         * string/test-strstr.c: New file.
21342         * string/Makefile (strop-tests): Add strstr and strcasestr.
21343         * string/str-two-way.h: Don't undefine MAX.
21344         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21345
21346 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21347
21348         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21349         strcasestr-nonascii.
21350         (CFLAGS-strcasestr-nonascii.c): Define.
21351         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
21352         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
21353         Remove unused attribute.
21354
21355 2010-07-20  Roland McGrath  <roland@redhat.com>
21356
21357         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
21358         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
21359         ld.so.cache was broken.  With it, there is no way to disable dsocaps
21360         like LD_HWCAP_MASK can disable hwcaps.
21361
21362 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21363
21364         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
21365
21366 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
21367
21368         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
21369         call in strcasestr.
21370         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
21371         __strcasestr_sse42_nonascii.
21372         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
21373         strcasestr-nonascii.c.
21374         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
21375
21376 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
21377
21378         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
21379         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
21380         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
21381         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
21382
21383 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
21384
21385         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
21386         fcntl.
21387
21388 2010-07-06  Andreas Schwab  <schwab@redhat.com>
21389
21390         [BZ #11577]
21391         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
21392         dl_signal_cerror.
21393
21394 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
21395
21396         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
21397         _PC_PIPE_BUF using F_GETPIPE_SZ.
21398
21399 2010-07-05  Roland McGrath  <roland@redhat.com>
21400
21401         * manual/arith.texi (Rounding Functions): Fix rint description
21402         implicit in round description.
21403
21404 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
21405
21406         * elf/Makefile: Fix linking for a few tests to make recent linker
21407         happy.
21408
21409 2010-06-30  Andreas Schwab  <schwab@redhat.com>
21410
21411         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
21412         $(common-objpfx)libc_nonshared.a.
21413
21414 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
21415
21416         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
21417         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
21418         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21419         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21420         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
21421         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
21422         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21423         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
21425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
21426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
21427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
21428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
21429         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
21430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
21431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
21432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
21433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
21434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
21435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
21436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
21437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
21438         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
21439         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
21440         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
21441         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
21442         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
21443         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
21444         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
21445         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
21446         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
21447         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
21448         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
21449         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
21450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
21451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
21452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
21453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
21454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
21455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
21456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
21457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
21458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
21459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
21460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
21461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
21462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
21463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
21464
21465 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21466
21467         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
21468         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
21469         * string/memmove.c (memmove): Renamed to ...
21470         (MEMMOVE): ...this.  Default to memmove.
21471         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
21472         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
21473         (END_CHK): Define.
21474         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21475         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
21476         mempcpy-ssse3-back memmove-ssse3-back.
21477         * sysdeps/x86_64/multiarch/bcopy.S: New file .
21478         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
21479         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
21480         * sysdeps/x86_64/multiarch/memcpy.S: New file.
21481         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
21482         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
21483         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
21484         * sysdeps/x86_64/multiarch/memmove.c: New file.
21485         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
21486         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
21487         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
21488         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
21489         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
21490         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
21491         Define.
21492         (index_Fast_Copy_Backward): Define.
21493         (HAS_ARCH_FEATURE): Define.
21494         (HAS_FAST_REP_STRING): Define.
21495         (HAS_FAST_COPY_BACKWARD): Define.
21496
21497 2010-06-21  Andreas Schwab  <schwab@redhat.com>
21498
21499         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21500         Restore proper fallback handling.
21501
21502 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
21503
21504         [BZ #11701]
21505         * posix/group_member.c (__group_member): Correct checking loop.
21506
21507         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
21508         OOM in getpwuid_r correctly.  Return error number when the caller
21509         should return, otherwise -1.
21510         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
21511         call returning > 0 value.
21512         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
21513
21514 2010-06-07  Andreas Schwab  <schwab@redhat.com>
21515
21516         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
21517         libc_nonshared.a from targets in modules-names.
21518
21519 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
21520
21521         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
21522         requires it.
21523
21524 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
21525
21526         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
21527         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
21528         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21529         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21530
21531 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21532
21533         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21534
21535 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21536
21537         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21538         and F_GETPIPE_SZ.
21539         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21540         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21541         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21542         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21543         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21544         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21545
21546 2010-06-14  Roland McGrath  <roland@redhat.com>
21547
21548         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21549
21550 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21551
21552         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21553         __REDIRECT followed by __THROW.
21554         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21555         * posix/getopt.h (getopt): Likewise.
21556
21557 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21558
21559         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21560         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21561         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21562         in AT_FLAGS.
21563         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21564         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21565
21566 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21567
21568         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21569
21570 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21571
21572         [BZ #11640]
21573         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21574         Properly check family and model.
21575
21576 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21577
21578         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21579
21580 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21581
21582         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21583
21584 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21585
21586         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21587         symbol reference.
21588
21589 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21590
21591         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21592         symbol reference.
21593
21594 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21595
21596         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21597         and internal_recvmmsg.
21598         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21599         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21600         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21601         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21602
21603         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21604         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21605         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21606
21607 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21608
21609         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21610
21611 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21612
21613         POWER7 optimizations.
21614         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21615         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21616
21617 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21618
21619         * version.h: Update for 2.13 development version.
21620
21621 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21622
21623         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21624         exceptions.  Return 0.
21625
21626 2010-05-07  Roland McGrath  <roland@redhat.com>
21627
21628         * elf/ldconfig.c (main): Add a const.
21629
21630 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21631
21632         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21633         (args_options): Add no-idn option.
21634         (ahosts_keys_int): Add idn_flags to ai_flags.
21635         (parse_option): Handle 'i' option to clear idn_flags.
21636
21637         * malloc/malloc.c (_int_free): Possible race in the most recently
21638         added check.  Only act on the data if no current modification
21639         happened.
21640
21641 See ChangeLog.17 for earlier changes.